diff options
author | erorcun <erayorcunus@gmail.com> | 2020-12-09 01:31:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 01:31:03 +0100 |
commit | ac3484b82e0bd286ddd1e56fb566303d7a3ca40d (patch) | |
tree | f6c95cfd85cb2261f010983f01fd6d62a6de5ef1 /src/entities/Entity.h | |
parent | fix CObject::DeleteAllTempObjectsInArea (diff) | |
parent | uint8 enums fixed (diff) | |
download | re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.gz re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.bz2 re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.lz re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.xz re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.zst re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/entities/Entity.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/entities/Entity.h b/src/entities/Entity.h index 08d1900a..b2ea7217 100644 --- a/src/entities/Entity.h +++ b/src/entities/Entity.h @@ -6,7 +6,7 @@ struct CReference; class CPtrList; -enum eEntityType : uint8 +enum eEntityType { ENTITY_TYPE_NOTHING = 0, ENTITY_TYPE_BUILDING, @@ -16,7 +16,7 @@ enum eEntityType : uint8 ENTITY_TYPE_DUMMY, }; -enum eEntityStatus : uint8 +enum eEntityStatus { STATUS_PLAYER, STATUS_PLAYER_PLAYBACKFROMBUFFER, @@ -99,10 +99,10 @@ public: CReference *m_pFirstReference; public: - eEntityType GetType() const { return (eEntityType)m_type; } - void SetType(eEntityType type) { m_type = type; } - eEntityStatus GetStatus() const { return (eEntityStatus)m_status; } - void SetStatus(eEntityStatus status) { m_status = status; } + uint8 GetType() const { return m_type; } + void SetType(uint8 type) { m_type = type; } + uint8 GetStatus() const { return m_status; } + void SetStatus(uint8 status) { m_status = status; } CColModel *GetColModel(void) { return CModelInfo::GetModelInfo(m_modelIndex)->GetColModel(); } bool GetIsStatic(void) const { return bIsStatic || bIsStaticWaitingForCollision; } void SetIsStatic(bool state) { bIsStatic = state; } |