Space Fighter
A "shmup" game for Computer Programming C++
Loading...
Searching...
No Matches
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.
 
virtual ~ScreenManager ()
 
GameGetGame () const
 Gets a pointer to the Game.
 
ResourceManagerGetResourceManager () const
 Gets a pointer to the ResourceManager, for loading and managing resources.
 
virtual void AddScreen (Screen *pScreen)
 Add a screen to be managed.
 
virtual void Update (const GameTime &gameTime)
 Called when the game has determined that screen logic needs to be processed.
 
virtual void Draw (SpriteBatch &spriteBatch)
 Called when the game determines it is time to draw a frame.
 

Friends

class Game
 

Detailed Description

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

Definition at line 22 of file ScreenManager.h.

Constructor & Destructor Documentation

◆ ScreenManager()

KatanaEngine::ScreenManager::ScreenManager ( Game * pGame)

Instantiate a screen manager object.

Parameters
pGameA pointer to the game instance.

Definition at line 19 of file ScreenManager.cpp.

◆ ~ScreenManager()

virtual KatanaEngine::ScreenManager::~ScreenManager ( )
inlinevirtual

Definition at line 31 of file ScreenManager.h.

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.

Definition at line 139 of file ScreenManager.cpp.

◆ Draw()

void KatanaEngine::ScreenManager::Draw ( SpriteBatch & spriteBatch)
virtual

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

Parameters
spriteBatchA reference to the game's sprite batch, used for rendering.

Definition at line 101 of file ScreenManager.cpp.

◆ GetGame()

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

Gets a pointer to the Game.

Returns
A pointer to the game instance.

Definition at line 35 of file ScreenManager.h.

◆ 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.

Definition at line 24 of file ScreenManager.cpp.

◆ Update()

void KatanaEngine::ScreenManager::Update ( const GameTime & gameTime)
virtual

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

Parameters
gameTimeA reference to the game time object.

Definition at line 50 of file ScreenManager.cpp.

Friends And Related Symbol Documentation

◆ Game

friend class Game
friend

Definition at line 24 of file ScreenManager.h.


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