Mania++
 All Classes Functions Variables Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ManiaPP Class Reference

Main class. More...

#include <ManiaPP.h>

Public Member Functions

 ManiaPP ()
 Sets up the several variables needed to run the software.
 
 ~ManiaPP ()
 Destructs the pointers in the main class.
 
bool ConnectToServer ()
 Connects and authenticates with the server.
 
bool ConnectToDatabase ()
 Connects and authenticates with the database server.
 
void PrintServerInfo ()
 Prints information about the server.
 
void MainLoop ()
 Performing our tasks ...
 
void Terminate ()
 Disconnects the software from the server.
 

Private Member Functions

void retrievePlayerList ()
 Gets a list of current players from the server. More...
 
void retrieveMapList ()
 Gets a list of current maps from the server. More...
 

Private Attributes

Configconfig
 Contains the configuration for the software.
 
Logginglogging
 Contains functions to log information.
 
GbxRemoteserver
 Contains the connection with the server and its methods.
 
std::map< std::string, Player > * players
 Contains the list of players currently on the server.
 
MapListmaps
 Contains the list of maps on the server.
 
EventManagerevents
 Contains the event manager.
 
PluginManagerplugins
 Contains the plugin manager.
 
CallBackManagercallbacks
 Contains the callback manager.
 
CommandManagercommands
 Contains the command manager.
 
Methodsmethods
 Server method caller.
 
UIManagerui
 UI manager (ManiaLink).
 
Databasedb = NULL
 Contains database connection and driver (needed on destruction).
 
sql::Connection * database = NULL
 Contains database driver.
 
ServerInfoserverInfo
 Struct with server information.
 

Detailed Description

Main class.

Member Function Documentation

void ManiaPP::retrieveMapList ( )
private

Gets a list of current maps from the server.

Todo:
Insert map into database if needed.
void ManiaPP::retrievePlayerList ( )
private

Gets a list of current players from the server.

Todo:
Insert player into database if needed.

The documentation for this class was generated from the following files: