From 4a606d557d1185f01f4b4944804fd24491605d2b Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 23 Mar 2005 10:59:50 +0000 Subject: Corrections to syntax, includes, headers and comments. Updated architecture.txt with a distributed approach. --- src/accounthandler.h | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) (limited to 'src/accounthandler.h') 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 +#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 -- cgit v1.2.3-60-g2f50