diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-21 13:30:58 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-21 13:30:58 +0000 |
commit | 28f6096586bf4e3465140f48f1eae54f11fef88d (patch) | |
tree | cad019bc88da694a12706c0cf23ef48e4a84f6df /src/messagehandler.cpp | |
parent | 995eea38b362e9c57abfb5354a8b6e1af6dd3637 (diff) | |
download | manaserv-28f6096586bf4e3465140f48f1eae54f11fef88d.tar.gz manaserv-28f6096586bf4e3465140f48f1eae54f11fef88d.tar.bz2 manaserv-28f6096586bf4e3465140f48f1eae54f11fef88d.tar.xz manaserv-28f6096586bf4e3465140f48f1eae54f11fef88d.zip |
Some header fixes, formatting conventions and moved DevCpp project file.
Diffstat (limited to 'src/messagehandler.cpp')
-rw-r--r-- | src/messagehandler.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/messagehandler.cpp b/src/messagehandler.cpp index bf176124..cc79d45e 100644 --- a/src/messagehandler.cpp +++ b/src/messagehandler.cpp @@ -22,22 +22,16 @@ */ #include "messagehandler.h" - -extern void debugCatch(int result) +#include "debug.h" /* recieveMessage * This function recieves a message, then sends it to the appropriate handler * sub-routine for processing. - * Execution: O(x) -- Variable * Preconditions: valid parameters, queue initialized, etc. * Postconditions: message successfully processed. - * --- by Kyokai */ void MessageHandler::receiveMessage(NetComputer *computer, MessageIn &message) { - // ASSERT: valid computer - // ASSERT: valid message - int result = 0; // determine message type @@ -53,10 +47,8 @@ void MessageHandler::receiveMessage(NetComputer *computer, MessageIn &message) } - /* loginMessage * Accepts a login message and interprets it, assigning the proper login - * Execution: O(n) -- Linear by (number of accounts) * Preconditions: The requested handle is not logged in already. * The requested handle exists. * The requested handle is not banned or restricted. @@ -64,11 +56,9 @@ void MessageHandler::receiveMessage(NetComputer *computer, MessageIn &message) * Postconditions: the player recieves access through a character in the world. * Return Value: SUCCESS if the player was successfully assigned the requested char * ERROR on early termination of the routine. - * --- by Kyokai */ int MessageHandler::loginMessage(NetComputer *computer, MessageIn &message) { - // Get the handle (account) the player is requesting // RETURN TMW_ACCOUNTERROR_NOEXIST if: requested does not handle exist // RETURN TMW_ACCOUNTERROR_BANNED if: the handle status is HANDLE_STATUS_BANNED @@ -81,6 +71,4 @@ int MessageHandler::loginMessage(NetComputer *computer, MessageIn &message) // RETURN TMW_ACCOUNTERROR_ASSIGNFAILED if: assignment not successful // return TMW_SUCCESS -- successful exit - } - |