Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GameVegaConfig Class Reference

#include <config_xml.h>

Inheritance diagram for GameVegaConfig:
VegaConfig

Public Member Functions

 GameVegaConfig (const char *configfile)
 
- Public Member Functions inherited from VegaConfig
 VegaConfig (const char *configfile)
 
virtual ~VegaConfig ()
 
void getColor (configNode *node, string name, float color[4], bool have_color=false)
 
void getColor (string section, string name, float color[4], bool have_color=false)
 
void gethColor (string section, string name, float color[4], int hexcolor)
 
void getColor (string name, float color[4], bool have_color=false)
 
string getVariable (string section, string name, string defaultvalue)
 
string getVariable (string section, string subsection, string name, string defaultvalue)
 
configNodefindSection (string section, configNode *startnode)
 
configNodefindEntry (string name, configNode *startnode)
 
void setVariable (configNode *entry, string value)
 
bool setVariable (string section, string name, string value)
 
bool setVariable (string section, string subsection, string name, string value)
 
easyDomNodeVariables ()
 

Additional Inherited Members

- Public Attributes inherited from VegaConfig
int axis_axis [MAX_AXIS]
 
int axis_joy [MAX_AXIS]
 
bool axis_inverse [MAX_AXIS]
 
float hatswitch [MAX_HATSWITCHES][MAX_VALUES]
 
float hatswitch_margin [MAX_HATSWITCHES]
 
int hatswitch_axis [MAX_HATSWITCHES]
 
int hatswitch_joystick [MAX_HATSWITCHES]
 
- Protected Member Functions inherited from VegaConfig
string getVariable (configNode *section, string name, string defaultval)
 
bool checkConfig (configNode *node)
 
void doVariables (configNode *node)
 
void checkSection (configNode *node, enum section_t section_type)
 
void checkVar (configNode *node)
 
void doSection (string prefix, configNode *node, enum section_t section_type)
 
void doVar (string prefix, configNode *node)
 
void doColors (configNode *node)
 
bool checkColor (string prefix, configNode *node)
 
- Protected Attributes inherited from VegaConfig
configNodevariables
 
configNodebindings
 
configNodecolors
 
map< string, string > map_variables
 
map< string, vColormap_colors
 
int hs_value_index
 

Detailed Description

Definition at line 45 of file config_xml.h.

Constructor & Destructor Documentation

GameVegaConfig::GameVegaConfig ( const char *  configfile)
explicit

Definition at line 49 of file config_xml.cpp.

References VegaConfig::axis_axis, VegaConfig::axis_joy, h, VegaConfig::hatswitch, VegaConfig::hatswitch_margin, i, MAX_AXES, MAX_HATSWITCHES, MAX_VALUES, and v.

49  : VegaConfig( configfile )
50 {
51  initCommandMap();
52  initKeyMap();
53  //set hatswitches to off
54  for (int h = 0; h < MAX_HATSWITCHES; h++) {
55  hatswitch_margin[h] = 2.0;
56  for (int v = 0; v < MAX_VALUES; v++)
57  hatswitch[h][v] = 2.0;
58  }
59  for (int i = 0; i < MAX_AXES; i++) {
60  axis_axis[i] = -1;
61  axis_joy[i] = -1;
62  }
63 }

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