#include <main.h>
Public Member Functions | |
cGame () | |
void | printHelp () |
int | parseArgs (int argc, char **args) |
void | initMission () |
Public Attributes | |
cPad * | pad1 |
Keyboard/Joystick inputs sent to which Virtual-Gamepad? | |
int * | map1 |
Mapping of real joystick/gamepad to virtual gamepad. | |
cObject * | camera |
Seeing the world through which object's eyes? | |
cWorld * | world |
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. |
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.
cGame::cGame | ( | ) |
Initialises default attribute parameters for running a game.
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.
void cGame::printHelp | ( | ) |
Prints commandline help.