summaryrefslogtreecommitdiff
path: root/src/netcomputer.h
diff options
context:
space:
mode:
authorAaron Marks <nymacro@gmail.com>2005-07-24 05:41:44 +0000
committerAaron Marks <nymacro@gmail.com>2005-07-24 05:41:44 +0000
commitb54666222ca5020438aa9151a51a295269b1b319 (patch)
tree76effbcef01e027f6de1b5f77b7c360884c88ac3 /src/netcomputer.h
parent7c69090507eb2d314ca53d99265f538a10a0f1fb (diff)
downloadmanaserv-b54666222ca5020438aa9151a51a295269b1b319.tar.gz
manaserv-b54666222ca5020438aa9151a51a295269b1b319.tar.bz2
manaserv-b54666222ca5020438aa9151a51a295269b1b319.tar.xz
manaserv-b54666222ca5020438aa9151a51a295269b1b319.zip
Added character selection.
Diffstat (limited to 'src/netcomputer.h')
-rw-r--r--src/netcomputer.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/netcomputer.h b/src/netcomputer.h
index 29bf1412..1cecd719 100644
--- a/src/netcomputer.h
+++ b/src/netcomputer.h
@@ -31,6 +31,7 @@
#include <list>
#include "account.h"
+#include "being.h"
// Forward declaration
class ConnectionHandler;
@@ -87,6 +88,16 @@ class NetComputer
*/
tmwserv::Account *getAccount() { return account; }
+ /**
+ * Set the selected character associated with connection
+ */
+ void setCharacter(tmwserv::Being *ch);
+
+ /**
+ * Get character associated with the connection
+ */
+ tmwserv::Being *getCharacter() { return character; }
+
private:
ConnectionHandler *handler;
@@ -94,6 +105,7 @@ class NetComputer
TCPsocket socket; /**< Client socket */
tmwserv::Account *account; /**< Account associated with connection */
+ tmwserv::Being *character; /**< Selected character */
};
#endif