暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

programmer.h 636B

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 tileX; }
  21. void UpgradeLevel() { tileX = std::min(tileX + 1, tileCols - 1); }
  22. };
  23. }
  24. #endif