green::GRunApplication Class Reference

#include <GRunApplication.h>

Inheritance diagram for green::GRunApplication:

green::Application List of all members.

Public Member Functions

virtual void Init ()
virtual void display ()
virtual void keyboard (unsigned char ch, int x, int y)
virtual void keyboard_up (unsigned char ch, int x, int y)

Protected Member Functions

void _InitDefaultEntity ()

Protected Attributes

EntityTemplateTablePtr mEntityTemplates
BehaviorTemplateTablePtr mBehaviorTemplates
MessageTemplateTablePtr mMessageTemplates
EntityPoolPtr mEntityPool
MessagePoolPtr mMsgPool
SystemPtr mSys
Key mDefaultEntityType
Key mKeyEventMsgType
Key mAlwaysMsgType
ID mFirstEntity
Timer mTimer

Detailed Description

The GRunApplication class is the object which runs our engine basically. It contains all the VariableTableTemplates, InstancePools, and TemplateTables in the currently running game, and runs them.


Member Function Documentation

void green::GRunApplication::_InitDefaultEntity (  )  [inline, protected]

Create a default entity template called "default". It just has the default parameters x, y, xs, ys, and rot

virtual void green::GRunApplication::Init (  )  [inline, virtual]

Initialize the application

Reimplemented from green::Application.

virtual void green::GRunApplication::display (  )  [inline, virtual]

Display is called when the window/screen needs to be drawn/updated

Reimplemented from green::Application.

virtual void green::GRunApplication::keyboard ( unsigned char  ch,
int  x,
int  y 
) [inline, virtual]

this function is called when an key is pressed down it only supports keys that generate ascii characters

Parameters:
ch This is the ascii character generated by the key
x the x coordinate of the mouse in window-relative coords
y the y coordinate of the mouse in window-relative coords

Reimplemented from green::Application.

virtual void green::GRunApplication::keyboard_up ( unsigned char  ch,
int  x,
int  y 
) [inline, virtual]

this function is called when a key is released it only supports keys that generate ascii characters

Parameters:
ch This is the ascii character generated by the key
x the x coordinate of the mouse in window-relative coords
y the y coordinate of the mouse in window-relative coords

Reimplemented from green::Application.


The documentation for this class was generated from the following file:
Generated on Fri Apr 27 10:27:39 2007 for Green Engine by  doxygen 1.5.1