![]() |
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 CStepTimer * | m_pStepTimer = &cStepTimer |
Pointer to a step timer. More... | |
static CRandom * | m_pRandom = &cRandom |
Pointer to a PRNG. More... | |
static CKeyboard * | m_pKeyboard = &cKeyboard |
Pointer to a keyboard handler. More... | |
static CXBoxController * | m_pController = &cController |
Pointer to a XBox controller. More... | |
static CAudio * | 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 CComponent.
|
staticprotected |
Sound player.
|
staticprotected |
Controller handler.
|
staticprotected |
Keyboard handler.
|
staticprotected |
PRNG.
|
staticprotected |
Timer pointer.