summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h
index e75870a0..4ac9d0eb 100644
--- a/src/player.h
+++ b/src/player.h
@@ -138,6 +138,18 @@ class Player : public Being
*/
virtual void optionChanged(const std::string &value);
+ /*
+ * 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; }
+
protected:
/**
* Gets the way the monster blocks pathfinding for other objects.
@@ -156,6 +168,8 @@ class Player : public Being
Party *mParty;
bool mIsGM;
+
+ int mIp;
};
#endif