Нема описа
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.

123456789101112131415161718192021222324252627282930313233
  1. #ifndef ENTITY_H
  2. #define ENTITY_H
  3. #include "olcPGEX_Graphics2D.h"
  4. #include "olcPixelGameEngine.h"
  5. namespace pabloader {
  6. class Awoorwae;
  7. class Entity {
  8. protected:
  9. Awoorwae* game;
  10. olc::Sprite img;
  11. olc::GFX2D::Transform2D transform;
  12. float x, y;
  13. float xv, yv;
  14. int w, h;
  15. int tile = 0;
  16. int skin = 0;
  17. int tileCounter = 0;
  18. bool onGround = false;
  19. public:
  20. Entity(Awoorwae* game_);
  21. virtual ~Entity(){};
  22. virtual olc::rcode Load() = 0;
  23. virtual void Update(float dt) = 0;
  24. virtual void Draw() = 0;
  25. };
  26. }
  27. #endif