![]() |
The LARC Game Engine
A Simple Game Engine from the Laboratory for Recreational Computing
|
The component accessor. More...
#include <Component.h>
Static Protected Attributes | |
static LTimer * | m_pTimer = &cTimer |
Pointer to a timer. More... | |
static LRandom * | m_pRandom = &cRandom |
Pointer to a PRNG. More... | |
static LKeyboard * | m_pKeyboard = &cKeyboard |
Pointer to a keyboard handler. More... | |
static LXBoxController * | m_pController = &cController |
Pointer to a XBox controller. More... | |
static LSound * | m_pAudio = &cAudio |
Pointer to an audio player. More... | |
This singleton class encapsulates the components commonly needed to create a game: A timer, a PRNG, an audio player, a keyboard handler, and a controller handler. Classes that need these pointers simply need to be derived from LComponent.
|
staticprotected |
Pointer to the sound player.
|
staticprotected |
Pointer to the controller handler.
|
staticprotected |
Pointer to the keyboard handler.
|
staticprotected |
Pointer to the PRNG.
|
staticprotected |
Pointer to teh timer.