main-account.cpp File Reference

#include <cstdlib>
#include <getopt.h>
#include <signal.h>
#include <iostream>
#include <physfs.h>
#include <enet/enet.h>
#include "configuration.h"
#include "resourcemanager.h"
#include "skill.h"
#include "account-server/accounthandler.hpp"
#include "account-server/serverhandler.hpp"
#include "account-server/storage.hpp"
#include "chat-server/chatchannelmanager.hpp"
#include "chat-server/chathandler.hpp"
#include "net/connectionhandler.hpp"
#include "net/messageout.hpp"
#include "utils/logger.h"
#include "utils/processorutils.hpp"
#include "utils/stringfilter.h"

Go to the source code of this file.

Defines

#define DEFAULT_LOG_FILE   "tmwserv-account.log"
#define DEFAULT_CONFIG_FILE   "tmwserv.xml"
#define DEFAULT_ITEMSDB_FILE   "items.xml"

Functions

void closeGracefully (int dummy)
 Callback used when SIGQUIT signal is received.
void initialize ()
 Initializes the server.
void deinitialize ()
 Deinitializes the server.
void printHelp ()
 Show command line arguments.
void parseOptions (int argc, char *argv[])
 Parse the command line arguments.
int main (int argc, char *argv[])
 Main function, initializes and runs server.

Variables

bool running = true
 Determines if server keeps running.
Skill skillTree ("base")
 Skill tree.
Configuration config
 XML config reader.
utils::StringFilterstringFilter
 Slang's Filter.
AccountHandleraccountHandler
 Account message handler.
ChatHandlerchatHandler
 Communications (chat) message handler.
ServerHandlerserverHandler
 Server message handler.
ChatChannelManagerchatChannelManager
 Chat Channels Manager.


Define Documentation

#define DEFAULT_CONFIG_FILE   "tmwserv.xml"
 

Definition at line 50 of file main-account.cpp.

#define DEFAULT_ITEMSDB_FILE   "items.xml"
 

Definition at line 51 of file main-account.cpp.

#define DEFAULT_LOG_FILE   "tmwserv-account.log"
 

Definition at line 49 of file main-account.cpp.


Function Documentation

void closeGracefully int  dummy  ) 
 

Callback used when SIGQUIT signal is received.

Definition at line 74 of file main-account.cpp.

void deinitialize  ) 
 

Deinitializes the server.

Definition at line 191 of file main-account.cpp.

void initialize  ) 
 

Initializes the server.

Definition at line 82 of file main-account.cpp.

int main int  argc,
char *  argv[]
 

Main function, initializes and runs server.

Definition at line 277 of file main-account.cpp.

void parseOptions int  argc,
char *  argv[]
 

Parse the command line arguments.

Definition at line 231 of file main-account.cpp.

void printHelp  ) 
 

Show command line arguments.

Definition at line 218 of file main-account.cpp.


Variable Documentation

AccountHandler* accountHandler
 

Account message handler.

Definition at line 62 of file main-account.cpp.

ChatChannelManager* chatChannelManager
 

Chat Channels Manager.

Definition at line 71 of file main-account.cpp.

ChatHandler* chatHandler
 

Communications (chat) message handler.

Definition at line 65 of file main-account.cpp.

Configuration config
 

XML config reader.

Definition at line 57 of file main-account.cpp.

bool running = true
 

Determines if server keeps running.

Definition at line 53 of file main-account.cpp.

ServerHandler* serverHandler
 

Server message handler.

Definition at line 68 of file main-account.cpp.

Skill skillTree("base")
 

Skill tree.

utils::StringFilter* stringFilter
 

Slang's Filter.

Definition at line 59 of file main-account.cpp.


Generated on Fri Mar 30 15:39:17 2007 for TMW Server by  doxygen 1.3.9.1