diff options
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h index a55e2d3a..0d1816f9 100644 --- a/src/being.h +++ b/src/being.h @@ -490,6 +490,18 @@ class Being : public ActorSprite, public ConfigListener, public Mana::Listener */ void setGM(bool gm); + /** + * Sets the IP or an IP hash. + * The TMW-Athena server sends this information only to GMs. + */ + void setIp(int ip) { mIp = ip; } + + /** + * Returns the player's IP or an IP hash. + * Value is 0 if not set by the server. + */ + int getIp() const { return mIp; } + bool canTalk(); void talkTo(); @@ -585,6 +597,8 @@ class Being : public ActorSprite, public ConfigListener, public Mana::Listener int mX, mY; /**< Position in tile */ int mDamageTaken; + + int mIp; }; #endif |