X-Git-Url: https://jfr.im/git/irc/gameservirc.git/blobdiff_plain/c8ada07e2ac45fbb2aeee5fcdf25115ec8bf94f7..f809a0d876151c3149168d121e833884a394015c:/gameserv/player.h diff --git a/gameserv/player.h b/gameserv/player.h index bac6da9..9e8b2da 100644 --- a/gameserv/player.h +++ b/gameserv/player.h @@ -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 @@ -29,7 +36,6 @@ public: int armor; // Number for the player's armor int weapon; // Number for the player's weapon bool alive; // True/False: is the player alive? - bool started; // True/False: has this player started? -Possibly deprecated bool yourturn; // True/False: is it your turn in battle? int forest_fights; // Amount of forest fights left today int player_fights; // Amount of player<->player fights for today @@ -39,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_ {