From b54666222ca5020438aa9151a51a295269b1b319 Mon Sep 17 00:00:00 2001 From: Aaron Marks Date: Sun, 24 Jul 2005 05:41:44 +0000 Subject: Added character selection. --- src/netcomputer.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/netcomputer.h') 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 #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 -- cgit v1.2.3-60-g2f50