Logo Search packages:      
Sourcecode: fillets-ng version File versions

OptionAgent Class Reference

#include <OptionAgent.h>

Inheritance diagram for OptionAgent:

BaseAgent NoCopy BaseListener INamed

List of all members.


Detailed Description

Game options.

Definition at line 16 of file OptionAgent.h.


Public Member Functions

void addWatcher (const std::string &name, BaseMsg *msg)
int getAsInt (const std::string &name, int implicit=0) const
virtual const char * getName () const =0
std::string getParam (const std::string &name, const std::string &implicit="") const
void init ()
bool isInitialized ()
void parseCmdOpt (int argc, char *argv[], const OptionParams &params)
virtual void receiveInt (const IntMsg *msg)
virtual void receiveSimple (const SimpleMsg *msg)
void receiveString (const StringMsg *msg)
void setDefault (const std::string &name, int value)
void setDefault (const std::string &name, const std::string &value)
void setParam (const std::string &name, long value)
void setParam (const std::string &name, const std::string &value)
void setPersistent (const std::string &name, long value)
void setPersistent (const std::string &name, const std::string &value)
void shutdown ()
void update ()

Protected Member Functions

virtual void own_init ()
virtual void own_shutdown ()
virtual void own_update ()
void registerWatcher (const std::string &param)

Private Member Functions

 AGENT (OptionAgent, Name::OPTION_NAME)
std::string getHelpInfo (const OptionParams &params) const
std::string getVersionInfo () const
void parseDashOpt (const std::string &arg, const OptionParams &params)
void parseParamOpt (const std::string &arg, const OptionParams &params)
void prepareDataPaths ()
void prepareLang ()
void prepareVersion ()
void readSystemConfig ()
void readUserConfig ()
bool splitOpt (const std::string &option, std::string *out_name, std::string *out_value)

Private Attributes

Environm_environ

Static Private Attributes

static const char * CONFIG_FILE = "script/options.lua"

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

Generated by  Doxygen 1.6.0   Back to index