EventManager Class Reference

Class Manages the different levels that the game may have. It also manage how and when a level should load and the switching of the levels. More...

#include <EventManager.h>

Static Public Member Functions

static void Init ()
 Initialize values and assets for the level More...
 
static void LoadInitialLevel (GameManager *Lvl)
 Loads the level More...
 
static void SwitchLevel (GameManager *Lvl)
 Switches level when current level is complete More...
 
static void Rander ()
 Renders the current level and any updates More...
 
static void Update ()
 Updates any game behavior based on certain condition More...
 

Static Public Attributes

static bool Loading
 This bool tell the game's loading state This prevents rendering while loading assets More...
 

Static Private Attributes

static GameManagercurrentLevel
 

Detailed Description

Class Manages the different levels that the game may have. It also manage how and when a level should load and the switching of the levels.

: EventManager.h Brian Hinds : 07-02-2017 : 1.0.2

Member Function Documentation

◆ Init()

void EventManager::Init ( )
static

Initialize values and assets for the level

This method set the value of current level

<method name="Init"></method>

Parameters
None
Returns
void

◆ LoadInitialLevel()

void EventManager::LoadInitialLevel ( GameManager Lvl)
static

Loads the level

This method Initialize the current level

<method name="LoadInitialLevel"></method>

Parameters
GameManager* Lvl
Returns
void

◆ Rander()

void EventManager::Rander ( )
static

Renders the current level and any updates

This method render the graphics for the current level

<method name="Render"></method>

Parameters
GameManager* EngineGFX
Returns
void

◆ SwitchLevel()

void EventManager::SwitchLevel ( GameManager Lvl)
static

Switches level when current level is complete

This method switches the current level to a new one

<method name="SwitchLevel"></method>

Parameters
GameManager* Lvl
Returns
void

◆ Update()

void EventManager::Update ( )
static

Updates any game behavior based on certain condition

This method updates the current level

<method name="Update"></method>

Parameters
None
Returns
void

Member Data Documentation

◆ currentLevel

GameManager * EventManager::currentLevel
staticprivate

: EventManager.cpp Brian Hinds : 07-02-2017 : 1.0.2

◆ Loading

bool EventManager::Loading
static

This bool tell the game's loading state This prevents rendering while loading assets


The documentation for this class was generated from the following files: