Entity.h 670 B

1234567891011121314151617181920212223242526272829
  1. #ifndef INCLUDE_ENTITY_H
  2. #define INCLUDE_ENTITY_H
  3. #include "Camera.h"
  4. namespace WalrusRPG
  5. {
  6. /**
  7. * Well, for now, this class will be a non abstract for ALPHA PROGRAMMING REASONS.
  8. * Expect this sooner or later to be abstract.
  9. * 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.
  10. */
  11. class Entity
  12. {
  13. protected:
  14. unsigned x;
  15. unsigned y;
  16. unsigned width;
  17. unsigned height;
  18. public:
  19. Entity();
  20. ~Entity();
  21. void render(Camera &camera, unsigned dt) const;
  22. void update(unsigned dt);
  23. };
  24. }
  25. #endif