설명 없음
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.

programmer.h 640B

1234567891011121314151617181920212223242526272829
  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. uint32_t tileCounter = 0;
  9. bool onGround = false;
  10. bool doJump = false;
  11. bool walkLeft = false;
  12. bool walkRight = false;
  13. bool moveDown = false;
  14. public:
  15. Programmer(Debuggers* game);
  16. virtual void Think();
  17. virtual void Update(float dt) override;
  18. virtual void Draw() override;
  19. bool IsOnGround() { return onGround; }
  20. uint8_t GetSkin() { return tile.x; }
  21. void UpgradeLevel() { tile.x = std::min(tile.x + 1, tileDim.x - 1); }
  22. };
  23. }
  24. #endif