The LARC Game Engine
A Simple Game Engine from the Laboratory for Recreational Computing
Static Protected Attributes | List of all members
LComponent Class Reference

The component accessor. More...

#include <Component.h>

Inheritance diagram for LComponent:
LParticleEngine< LParticle2D, LParticleDesc2D, Vector2 > LParticleEngine< LParticle3D, LParticleDesc3D, Vector3 > LBaseObject LBaseObjectManager< obj > LEventTimer LParticleEngine< PARTICLE, PARTICLEDESC, VECTOR > LRandom LRenderer3D LSound LSprite

Static Protected Attributes

static LTimerm_pTimer = &cTimer
 Pointer to a timer. More...
 
static LRandomm_pRandom = &cRandom
 Pointer to a PRNG. More...
 
static LKeyboardm_pKeyboard = &cKeyboard
 Pointer to a keyboard handler. More...
 
static LXBoxControllerm_pController = &cController
 Pointer to a XBox controller. More...
 
static LSoundm_pAudio = &cAudio
 Pointer to an audio player. More...
 

Detailed Description

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.

Member Data Documentation

◆ m_pAudio

LSound * LComponent::m_pAudio = &cAudio
staticprotected

Pointer to the sound player.

◆ m_pController

LXBoxController * LComponent::m_pController = &cController
staticprotected

Pointer to the controller handler.

◆ m_pKeyboard

LKeyboard * LComponent::m_pKeyboard = &cKeyboard
staticprotected

Pointer to the keyboard handler.

◆ m_pRandom

LRandom * LComponent::m_pRandom = &cRandom
staticprotected

Pointer to the PRNG.

◆ m_pTimer

LTimer * LComponent::m_pTimer = &cTimer
staticprotected

Pointer to teh timer.