diff options
| author | joschiwald <joschiwald@online.de> | 2014-01-10 17:42:08 +0100 |
|---|---|---|
| committer | joschiwald <joschiwald@online.de> | 2014-01-10 17:42:08 +0100 |
| commit | 41b613186e06e3f41549912f91e68bafa3e8c059 (patch) | |
| tree | 4052a1f276e97bda4a4a7a31f32c14e712a9c7f5 /src/server/game/Entities/GameObject | |
| parent | 7378baee49185823503da33b5d8325f7d3825f59 (diff) | |
Core/Battlefield: some codestyle changes
Diffstat (limited to 'src/server/game/Entities/GameObject')
| -rw-r--r-- | src/server/game/Entities/GameObject/GameObject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.h b/src/server/game/Entities/GameObject/GameObject.h index 67e8c94f927..0ef03723cb4 100644 --- a/src/server/game/Entities/GameObject/GameObject.h +++ b/src/server/game/Entities/GameObject/GameObject.h @@ -816,6 +816,9 @@ class GameObject : public WorldObject, public GridObject<GameObject>, public Map void SetDisplayId(uint32 displayid); uint32 GetDisplayId() const { return GetUInt32Value(GAMEOBJECT_DISPLAYID); } + uint32 GetFaction() const { return GetUInt32Value(GAMEOBJECT_FACTION); } + void SetFaction(uint32 faction) { SetUInt32Value(GAMEOBJECT_FACTION, faction); } + GameObjectModel* m_model; void GetRespawnPosition(float &x, float &y, float &z, float* ori = NULL) const; |
