#include <GRunApplication.h>
Inheritance diagram for green::GRunApplication:
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 |
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
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
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.