moros Class Reference

Data in the current game. More...

#include <moros.h>

List of all members.

Public Member Functions

 moros ()
 ~moros ()
void config ()
bool comm_poll ()
 routine to call a couple of times a second
void config_handler (channel *ch)
void login_handler (channel *ch)
void data_handler (channel *ch)
bool update_games ()
void ip_addr (std::string host)
 set the ip address of the central server
void main_loop (Gtk::Main kit)
 main loop of the program

Public Attributes

std::string config_file
std::map
< std::string,
std::string > 
users
 username to password map
std::string user
 current logged on user
std::string url
 url to current game
std::string central
 address of the central server
communicate comm
channelcent_ch
 Channel to the central server.
list_gamesgame_list
cache img_cache
bool login_central
bool login_chat
bool login_game
std::string current_game
loginlogin_win


Detailed Description

Data in the current game.

Constructor & Destructor Documentation

moros::moros (  ) 

moros::~moros (  ) 


Member Function Documentation

void moros::config (  ) 

bool moros::comm_poll (  ) 

routine to call a couple of times a second

timeout of 5 seconds to test new data on the central server or on changes from this side

void moros::config_handler ( channel ch  ) 

void moros::login_handler ( channel ch  ) 

void moros::data_handler ( channel ch  ) 

bool moros::update_games (  ) 

void moros::ip_addr ( std::string  host  ) 

set the ip address of the central server

void moros::main_loop ( Gtk::Main  kit  ) 

main loop of the program

Todo:
Ask central server for URL of central chatserver


Member Data Documentation

std::string moros::config_file

std::map<std::string, std::string> moros::users

username to password map

std::string moros::user

current logged on user

std::string moros::url

url to current game

std::string moros::central

address of the central server

communicate moros::comm

channel* moros::cent_ch

Channel to the central server.

list_games* moros::game_list

cache moros::img_cache

bool moros::login_central

bool moros::login_chat

bool moros::login_game

std::string moros::current_game

login* moros::login_win


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

Generated on Tue Jan 1 17:30:01 2008 for moros Class Reference by  doxygen   Visit the project page on SourceForge.net Logo