Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031
  1. #ifndef PROGRAMMER_H
  2. #define PROGRAMMER_H
  3. #include "entity.h"
  4. #include "olcPGE_Common.h"
  5. namespace pabloader {
  6. class Programmer : public Entity {
  7. protected:
  8. uint8_t tile = 0;
  9. uint32_t tileCounter = 0;
  10. uint8_t skin = 0;
  11. bool onGround = false;
  12. bool doJump = false;
  13. bool walkLeft = false;
  14. bool walkRight = false;
  15. bool moveDown = false;
  16. public:
  17. Programmer(Debuggers* game);
  18. virtual void Think();
  19. virtual void Update(float dt) override;
  20. virtual void Draw() override;
  21. bool IsOnGround() { return onGround; }
  22. uint8_t GetSkin() { return skin; }
  23. void UpgradeLevel() { skin = std::min(skin + 1, 2); }
  24. };
  25. }
  26. #endif