]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/player.h
Added files to the .cvsignore
[irc/gameservirc.git] / gameserv / player.h
index 3ea5fa1b165fa8fa449f186dde26bab31e9e4f90..00b95f32fb0bcc6824d1d81cd26777453b6c2c39 100644 (file)
@@ -11,7 +11,8 @@ class aClient; // forward declaration
 
 class Player {
 public:
-    Player(aClient *user = NULL);
+    Player();
+    Player(aClient *);
     Player(char *);
     ~Player();
     void setData(Player *);
@@ -39,8 +40,10 @@ public:
     int player_fights;          // Amount of player<->player fights for today
     char *password;            // Player's encrypted password
     Pouch inventory;           // This contains their potions, etc.
+    long int lastcommand;      // timestamp for the last command typed
+    long int lastlogin;                // timestamp for the last login
 
-    aClient *user;             // Pointer to the aClient this player is from
+    aClient *client;           // Pointer to the aClient this player is from
     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