Arcade Shooter
Background.h
1 
2 /* . ,'`. .
3  . .." _.-;' ⁄‚ `. . `
4  _.-"`.##%"_.--" ,' ⁄` `. "#" ___,,od000
5  ,'"-_ _.-.--"\ ,' `-_ '%#%',,/00000000000
6  ,' |_.' )`/- __..--""`-_`-._ J L/00000000000000
7  . + ,' _.-" / / _-"" `-._`-_/___\///0000 000M
8  .'_.-"" ' :_/_.-' _,`-/__V__\0000 00MMM
9  . _-"" . ' _,/000\ | /000 0MMMMM
10 _-" . ' . . ,/ 000\ | /000000000MMMMM
11  ` Shooter Library ' ,/ 000\|/000000000MMMMMM
12 . © 2017 - Shuriken Studios LLC ,/0 00000|0000000000MMMMMM */
13 
14 #pragma once
15 
16 namespace ShooterLibrary
17 {
18 
20  class Background
21  {
22 
23  public:
24 
25  Background() { }
26  virtual ~Background() { }
27 
31  virtual void LoadContent(ResourceManager *pResourceManager) = 0;
32 
35  virtual void UnloadContent() { }
36 
39  virtual void Update(const GameTime *pGameTime) = 0;
40 
43  virtual void Draw(SpriteBatch *pSpriteBatch) = 0;
44 
45 
46  protected:
47 
49  virtual int GetScrollSpeed() const { return 100; }
50 
51  };
52 }
virtual void Update(const GameTime *pGameTime)=0
Called when the game has determined that game logic needs to be processed.
virtual int GetScrollSpeed() const
Gets the scrolling speed of the background, measured in pixels per second.
Definition: Background.h:49
virtual void LoadContent(ResourceManager *pResourceManager)=0
Called when resources need to be loaded.
virtual void Draw(SpriteBatch *pSpriteBatch)=0
Called when the game determines it is time to draw a frame.
Shooter Library is a library of classes, interfaces, and value types that provides a foundation for d...
Definition: Background.h:16
virtual void UnloadContent()
Called when resources need to be unloaded. Override this method to unload any unneeded resources...
Definition: Background.h:35
Abstract base class for a scrolling background.
Definition: Background.h:20