Player.h 540 B

1234567891011121314151617181920212223242526272829
  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. };
  13. class PlayerEntityType : public EntityType
  14. {
  15. REGISTRABLE( PlayerEntityType )
  16. protected:
  17. virtual void loadSuperEntity( Entity* zEntity, Framework::StreamReader* zReader ) const override;
  18. virtual Entity* createEntity() const override;
  19. public:
  20. PlayerEntityType();
  21. };
  22. REGISTER( PlayerEntityType, EntityType )