Arcade Shooter
Public Member Functions | Friends | List of all members
KatanaEngine::ScreenManager Class Reference

Updates, renders, and manages transitions between instances of the Screen class. More...

#include <ScreenManager.h>

Public Member Functions

 ScreenManager (Game *pGame)
 Instantiate a screen manager object. More...
 
GameGetGame () const
 Gets a pointer to the Game. More...
 
ResourceManagerGetResourceManager () const
 Gets a pointer to the ResourceManager, for loading and managing resources. More...
 
virtual void AddScreen (Screen *pScreen)
 Add a screen to be managed. More...
 
virtual void Update (const GameTime *pGameTime)
 Called when the game has determined that screen logic needs to be processed. More...
 
virtual void Draw (SpriteBatch *pSpriteBatch)
 Called when the game determines it is time to draw a frame. More...
 

Friends

class Game
 

Detailed Description

Updates, renders, and manages transitions between instances of the Screen class.

Constructor & Destructor Documentation

◆ ScreenManager()

KatanaEngine::ScreenManager::ScreenManager ( Game pGame)

Instantiate a screen manager object.

Parameters
pGameA pointer to the game instance.

Member Function Documentation

◆ AddScreen()

void KatanaEngine::ScreenManager::AddScreen ( Screen pScreen)
virtual

Add a screen to be managed.

Parameters
pScreenA pointer to the screen to be managed.

◆ Draw()

void KatanaEngine::ScreenManager::Draw ( SpriteBatch pSpriteBatch)
virtual

Called when the game determines it is time to draw a frame.

Parameters
pSpriteBatchThe game's sprite batch, used for rendering.

◆ GetGame()

Game* KatanaEngine::ScreenManager::GetGame ( ) const
inline

Gets a pointer to the Game.

Returns
A pointer to the game instance.

◆ GetResourceManager()

ResourceManager * KatanaEngine::ScreenManager::GetResourceManager ( ) const

Gets a pointer to the ResourceManager, for loading and managing resources.

Returns
A pointer to the game's ResourceManager instance.

◆ Update()

void KatanaEngine::ScreenManager::Update ( const GameTime pGameTime)
virtual

Called when the game has determined that screen logic needs to be processed.

Parameters
pGameTimeTiming values including time since last update.

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