Arcade Shooter
Public Member Functions | Protected Member Functions | List of all members
ShooterLibrary::Background Class Referenceabstract

Abstract base class for a scrolling background. More...

#include <Background.h>

Inheritance diagram for ShooterLibrary::Background:
Sample::Background

Public Member Functions

virtual void LoadContent (ResourceManager *pResourceManager)=0
 Called when resources need to be loaded. More...
 
virtual void UnloadContent ()
 Called when resources need to be unloaded. Override this method to unload any unneeded resources.
 
virtual void Update (const GameTime *pGameTime)=0
 Called when the game has determined that game logic needs to be processed. More...
 
virtual void Draw (SpriteBatch *pSpriteBatch)=0
 Called when the game determines it is time to draw a frame. More...
 

Protected Member Functions

virtual int GetScrollSpeed () const
 Gets the scrolling speed of the background, measured in pixels per second.
 

Detailed Description

Abstract base class for a scrolling background.

Member Function Documentation

◆ Draw()

virtual void ShooterLibrary::Background::Draw ( SpriteBatch *  pSpriteBatch)
pure virtual

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

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

Implemented in Sample::Background.

◆ LoadContent()

virtual void ShooterLibrary::Background::LoadContent ( ResourceManager *  pResourceManager)
pure virtual

Called when resources need to be loaded.

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

Implemented in Sample::Background.

◆ Update()

virtual void ShooterLibrary::Background::Update ( const GameTime *  pGameTime)
pure virtual

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

Parameters
pGameTimeTiming values including time since last update.

Implemented in Sample::Background.


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