Player.h 590 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <Text.h>
  3. #include "Entity.h"
  4. #include "StaticRegistry.h"
  5. class Player : public Entity
  6. {
  7. private:
  8. Framework::Text name;
  9. public:
  10. Player();
  11. ~Player();
  12. virtual bool tick( double time ) override;
  13. };
  14. class PlayerEntityType : public EntityType
  15. {
  16. REGISTRABLE( PlayerEntityType )
  17. protected:
  18. virtual void loadSuperEntity( Entity* zEntity, Framework::StreamReader* zReader ) const override;
  19. virtual Entity* createEntity() const override;
  20. public:
  21. PlayerEntityType();
  22. };
  23. REGISTER( PlayerEntityType, EntityType )