]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/player.h
Added a lot of functionality. Added player flags and save/load them in the players...
[irc/gameservirc.git] / gameserv / player.h
index 9d18979c92a39cdb6e2bfaffce1a39cf84c6de31..9e8b2da7aed939b9dd39c058e56a6206f257d10f 100644 (file)
@@ -17,6 +17,13 @@ public:
     void setData(Player *);
     void reset();
 
+    long int getFlags() { return flags; };          // Returns the Client's current flags
+        // Functions also return the flags after modifying them
+    long int setFlags(long int);    // Sets the clients flags to a new value
+    long int addFlag(long int);     // Adds a flag to the client's flags
+    long int remFlag(long int);     // Removes a flag from the client's current flags
+
+
     char *name;                        // Player's Name
     int level;                 // Player's level (1-12)
     long int exp;               // Player's experience
@@ -38,6 +45,8 @@ public:
     Monster *fight;            // Pointer to the monster the player is currently fighting
     Monster *master;           // Pointer to the master the player is currently fighting
     aClient *battle;           // Pointer to the player this player is currently fighting
+private:
+    long int flags;            // Player's current flags
 };
 
 struct monster_ {