]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/player.h
I've begun to add daily news and split up gameserv.cpp a bit
[irc/gameservirc.git] / gameserv / player.h
index b8582fac973886daa4b4da6bb3cb618c060fca86..92e95b4a66fb4be3212544e9df3c0b6f9bd85cc1 100644 (file)
@@ -2,7 +2,6 @@
 #define PLAYER_H
 
 #include <string.h>
-#include <iostream.h>
 #include "aClient.h"
 #include "pouch.h"
 
@@ -12,7 +11,8 @@ class aClient; // forward declaration
 
 class Player {
 public:
-    Player(aClient *user = NULL);
+    Player();
+    Player(aClient *);
     Player(char *);
     ~Player();
     void setData(Player *);
@@ -40,8 +40,9 @@ 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
 
-    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