Arcade Shooter
Public Member Functions | Protected Member Functions | List of all members
Sample::GameplayScreen Class Reference

The gameplay screen for the sample game. More...

#include <GameplayScreen.h>

Inheritance diagram for Sample::GameplayScreen:

Public Member Functions

virtual void LoadContent (ResourceManager *pResourceManager)
 Called when resources need to be loaded. More...
 
virtual void HandleInput (const InputState *pInput)
 Called when the game has determined that player input needs to be processed. More...
 
virtual void Update (const GameTime *pGameTime)
 Called when the game has determined that game logic needs to be processed. More...
 
virtual void Draw (SpriteBatch *pSpriteBatch)
 Called when the game determines it is time to draw a frame. More...
 

Protected Member Functions

virtual LevelGetLevel ()
 Get the current level. More...
 

Detailed Description

The gameplay screen for the sample game.

Member Function Documentation

◆ Draw()

void Sample::GameplayScreen::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.

◆ GetLevel()

virtual Level* Sample::GameplayScreen::GetLevel ( )
inlineprotectedvirtual

Get the current level.

Returns
Returns a pointer to the level.

◆ HandleInput()

void Sample::GameplayScreen::HandleInput ( const InputState pInput)
virtual

Called when the game has determined that player input needs to be processed.

Parameters
pInputThe current state of all player input devices.

◆ LoadContent()

void Sample::GameplayScreen::LoadContent ( ResourceManager pResourceManager)
virtual

Called when resources need to be loaded.

Parameters
pResourceManagerThe game's resource manager, used for loading and managing game resources.

◆ Update()

void Sample::GameplayScreen::Update ( const GameTime pGameTime)
virtual

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

Parameters
pGameTimeTiming values including time since last update.

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