Entity.h 591 B

1234567891011121314151617181920212223242526
  1. #ifndef INCLUDE_ENTITY_H
  2. #define INCLUDE_ENTITY_H
  3. #include "Camera.h"
  4. namespace WalrusRPG {
  5. /**
  6. * Well, for now, this class will be a non abstract for ALPHA PROGRAMMING REASONS.
  7. * Expect this sooner or later to be abstract.
  8. * I don't know at this moment how will we manage the different classes heriting or compositing from this, if we use components or heritance.
  9. */
  10. class Entity {
  11. protected:
  12. unsigned x;
  13. unsigned y;
  14. unsigned width;
  15. unsigned height;
  16. public:
  17. Entity();
  18. ~Entity();
  19. void render(Camera &camera, float dt) const;
  20. void update(float dt);
  21. };
  22. }
  23. #endif