1234567891011121314151617181920212223242526272829303132333435363738 |
- #pragma once
- #include <Text.h>
- #include "Entity.h"
- #include "StaticRegistry.h"
- class ItemSlot;
- class PlayerEntityType;
- class Player : public Entity
- {
- private:
- Framework::Text name;
- Framework::Array<ItemSlot*> itemBar;
- int leftHandPosition;
- public:
- Player();
- ~Player();
- virtual bool tick( double time ) override;
- friend PlayerEntityType;
- };
- class PlayerEntityType : public EntityType
- {
- REGISTRABLE( PlayerEntityType )
- protected:
- virtual void loadSuperEntity( Entity* zEntity, Framework::StreamReader* zReader ) const override;
- virtual Entity* createEntity() const override;
- public:
- PlayerEntityType();
- };
- REGISTER( PlayerEntityType, EntityType )
|