Application Class Reference

Class that controls toplevel functions. More...

#include <application.h>

List of all members.

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.


Detailed Description

Class that controls toplevel functions.

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.


Constructor & Destructor Documentation

Application::Application ( int  argc,
char *  argv[] 
)

Constructor.

Parameters:
argc Amount of arguments
argv Array of arguments


Member Function Documentation

bool Application::processEvents (  )  [private]

Process any events.

Returns:
true if the event loop should continue, false otherwise

bool Application::keyboardEvent ( SDL_KeyboardEvent &  e  )  [private]

Keyboard event handler.

Parameters:
The SDL_KeyboardEvent object
Returns:
true if the event loop should continue, false otherwise


The documentation for this class was generated from the following files:
Generated on Fri Feb 22 22:29:23 2008 for Phoenix Wright Case Player API by  doxygen 1.5.3