ClientApp Class Reference
[Generic Client Application]

A generic client entry point (immediately after main).

Regroup commonly used code. More...

#include <ClientApp.hh>

Inheritance diagram for ClientApp:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ClientApp (int argc, char **argv, const std::string &cfg_def_file, const std::string &cfg_def_loc)
 ClientApp constructor.
int runApp ()
 Enter in the main outer client loop.
int runChampion ()
 Load a champion as an external dynamic library ad run it.

Protected Member Functions

virtual void showHelp (const char *prgname)
virtual void showVersion ()
virtual int showMenu ()
virtual int onPlay (bool replay)=0

Protected Attributes

xml::XMLConfig cfg_
BaseCRules * rules_
ClientCx ccx_
RulesLoader rules_loader_

Detailed Description

A generic client entry point (immediately after main).

Regroup commonly used code.


Constructor & Destructor Documentation

ClientApp::ClientApp ( int  argc,
char **  argv,
const std::string &  cfg_def_file,
const std::string &  cfg_def_loc 
)

ClientApp constructor.

Parameters:
argc argc from main().
argv argv from main().
cfg_def_file User configuration file to load, $HOME will be appended.
cfg_def_loc Package data directory, where to find default configuration file.


The documentation for this class was generated from the following files:
Generated on Sat Jun 23 16:09:50 2007 for Stechec/TBT by  doxygen 1.4.7