Entity.h 638 B

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