#include <application.h>
Public Types | |
| enum | ArgFlags { ARG_NONE = 0x00, ARG_NO_SOUND = 0x01, ARG_FULLSCREEN = 0x02 } |
| Possible command line arguments. | |
Public Member Functions | |
| Application (int argc, char *argv[]) | |
| Constructor. | |
| void | run () |
| Run the application. | |
Static Public Attributes | |
| static ustring | VERSION = "1.0b" |
| The version of this program. | |
Private Member Functions | |
| bool | processEvents () |
| Process any events. | |
| void | calculateFPS () |
| Calculate and display the FPS. | |
| bool | keyboardEvent (SDL_KeyboardEvent &e) |
| Keyboard event handler. | |
Private Attributes | |
|
std::auto_ptr < SDLContext > | m_SDLContext |
| SDL rendering context. | |
| ustring | m_CasePath |
| Path to case file. | |
| FPSTimer | m_Timer |
| Game timer. | |
| int | m_ArgFlags |
| Arguments from the command line. | |
The Application class handles many functions that relate to the functionality of the player as a whole. This includes window manager control, video and audio output, and keyboard and mouse input.
| Application::Application | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Constructor.
| argc | Amount of arguments | |
| argv | Array of arguments |
| bool Application::processEvents | ( | ) | [private] |
Process any events.
| bool Application::keyboardEvent | ( | SDL_KeyboardEvent & | e | ) | [private] |
Keyboard event handler.
| The | SDL_KeyboardEvent object |
1.5.3