cGame Struct Reference

#include <main.h>

List of all members.

Public Member Functions

 cGame ()
void printHelp ()
int parseArgs (int argc, char **args)
void initMission ()

Public Attributes

cPadpad1
 Keyboard/Joystick inputs sent to which Virtual-Gamepad?
int * map1
 Mapping of real joystick/gamepad to virtual gamepad.
cObjectcamera
 Seeing the world through which object's eyes?
cWorldworld
 Instance of the world we are on.
int mission
 Id of Mission we are running.
string bgm
 Background music wav filename.
bool paused
 Indicates pausing - no time advancement.
bool fullscreen
 Indicates fullscreenmode (does not change mode).
bool wireframe
 Enables wireframe drawing.
bool nightvision
 Enables (fake) nightvision.
bool printpad
 Enables printing of game-pad button states.
float fps
 Enforced frames per second.
int width
 Horizontal resolution.
int height
 Vertical resolution.
int depth
 Color depth.
int fov
 Field Of View in degrees.

Detailed Description

Structurizes/glues what's necessary to run a game-mission including io-configuration. This is a singleton. It should not be used by any other class and is maintained directly by the main code.


Constructor & Destructor Documentation

cGame::cGame (  ) 

Initialises default attribute parameters for running a game.


Member Function Documentation

void cGame::initMission (  ) 

Starts and initializes Mission according to the current game attributes.

int cGame::parseArgs ( int  argc,
char **  args 
)

Parses commandline arguments and sets game attributes accordingly. See printHelp for arguments or use "-h" to print help.

Returns:
0 on success, 1 on failure.
void cGame::printHelp (  ) 

Prints commandline help.


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

Generated on Tue Feb 16 18:32:39 2010 for Linwarrior 3D by  doxygen 1.6.1