diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-01-22 18:13:12 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-01-22 18:13:12 +0100 |
commit | c832fbeb8e3f06849adc6bf02f2310c3f0331bc8 (patch) | |
tree | b990d233e6d63ecc398f77354975a01bf47466c5 /src/Entities/Player.h | |
parent | Actually implemented interfaces (diff) | |
parent | Merge pull request #574 from tonibm19/patch-1 (diff) | |
download | cuberite-c832fbeb8e3f06849adc6bf02f2310c3f0331bc8.tar cuberite-c832fbeb8e3f06849adc6bf02f2310c3f0331bc8.tar.gz cuberite-c832fbeb8e3f06849adc6bf02f2310c3f0331bc8.tar.bz2 cuberite-c832fbeb8e3f06849adc6bf02f2310c3f0331bc8.tar.lz cuberite-c832fbeb8e3f06849adc6bf02f2310c3f0331bc8.tar.xz cuberite-c832fbeb8e3f06849adc6bf02f2310c3f0331bc8.tar.zst cuberite-c832fbeb8e3f06849adc6bf02f2310c3f0331bc8.zip |
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r-- | src/Entities/Player.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h index bf3ca08e8..52ba2065c 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -13,6 +13,7 @@ class cGroup; class cWindow; class cClientHandle; +class cTeam; @@ -153,6 +154,15 @@ public: AString GetIP(void) const { return m_IP; } // tolua_export + /// Returns the associated team, NULL if none + cTeam * GetTeam(void) { return m_Team; } // tolua_export + + /// Sets the player team, NULL if none + void SetTeam(cTeam * a_Team); + + /// Forces the player to query the scoreboard for his team + cTeam * UpdateTeam(void); + // tolua_end void SetIP(const AString & a_IP); @@ -456,6 +466,8 @@ protected: int m_FloaterID; + cTeam* m_Team; + void ResolvePermissions(void); @@ -463,7 +475,7 @@ protected: virtual void Destroyed(void); - /// Filters out damage for creative mode + /// Filters out damage for creative mode/friendly fire virtual void DoTakeDamage(TakeDamageInfo & TDI) override; /// Called in each tick to handle food-related processing |