summaryrefslogtreecommitdiff
path: root/src/accounthandler.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-23 10:59:50 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-23 10:59:50 +0000
commit4a606d557d1185f01f4b4944804fd24491605d2b (patch)
tree861dd84d78936ce530be5a9d83d0fd1f1674b54f /src/accounthandler.h
parent97024b3b51a3d9e2daf2832fe8598b38b6670cab (diff)
downloadmanaserv-4a606d557d1185f01f4b4944804fd24491605d2b.tar.gz
manaserv-4a606d557d1185f01f4b4944804fd24491605d2b.tar.bz2
manaserv-4a606d557d1185f01f4b4944804fd24491605d2b.tar.xz
manaserv-4a606d557d1185f01f4b4944804fd24491605d2b.zip
Corrections to syntax, includes, headers and comments. Updated architecture.txt
with a distributed approach.
Diffstat (limited to 'src/accounthandler.h')
-rw-r--r--src/accounthandler.h43
1 files changed, 25 insertions, 18 deletions
diff --git a/src/accounthandler.h b/src/accounthandler.h
index e27c4a81..56ef30cf 100644
--- a/src/accounthandler.h
+++ b/src/accounthandler.h
@@ -19,36 +19,43 @@
* along with The Mana World; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- *
+ * $Id$
*/
-// INCLUDES
-#include "debug.h"
+#ifndef _TMW_SERVER_ACCOUNTHANDLER_
+#define _TMW_SERVER_ACCOUNTHANDLER_
+
#include "messagehandler.h"
-#include <string>
+#include "netcomputer.h"
+#include "messagein.h"
#include "defines.h"
-/* Account Handler Class
- *
+/**
* Manages the data stored in user accounts and provides a reliable interface
* for working with an account. The account handler class can be used as a link
* to a working account handle, and can be assigned to a user persistently as
* an interface between the computer and account. (Messages from the user can
* be traced to this account through the NetComputer structure, then processed
* here with the persistent stored data).
- *
*/
-
-class AccountHandler public: MessageHandler
+class AccountHandler : public MessageHandler
{
- public: // functions
- // generic message handling
+ public:
+ /**
+ * Receives account related messages.
+ */
void receiveMessage(NetComputer &computer, MessageIn &message);
- // message interpretation subroutine
+
+ private:
+ /**
+ * Handles the login message.
+ */
int loginMessage(NetComputer &computer, MessageIn &message);
-
- private: // functions
- // account assignment
- int assignAccount(NetComputer &computer, accountData *account);
-
-} \ No newline at end of file
+
+ /**
+ * Account assignment.
+ */
+ int assignAccount(NetComputer &computer, AccountData *account);
+};
+
+#endif