Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
Public Member Functions | Private Attributes | List of all members
B_BackgroundManager Class Reference

Contains the functions to manage the background objects. More...

#include <B_BackgroundManager.h>

Collaboration diagram for B_BackgroundManager:
Collaboration graph

Public Member Functions

 B_BackgroundManager (SDL_Renderer *renderer, C_Vec2 dimensions, float *universalSpeed)
 Constructs the Background Manager. More...
 
 ~B_BackgroundManager ()
 Destructs the Background Manager. More...
 
void update (float dt)
 A function to update the Backgrounds. More...
 
void draw (SDL_Renderer *renderer)
 A function to draw the Backgrounds to the screen. More...
 

Private Attributes

C_Texturebackground [3]
 The Background images. More...
 
B_BackgroundbottomBackgroundLayer
 The bottom background layer backgrounds. More...
 
B_BackgroundmiddleBackgroundLayer [2]
 The middle background layer backgrounds. More...
 
B_BackgroundtopBackgroundLayer [2]
 The top background layer backgrounds. More...
 
float * universalSpeed
 A pointer for the universal speed of the game. More...
 

Detailed Description

Contains the functions to manage the background objects.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

B_BackgroundManager::B_BackgroundManager ( SDL_Renderer *  renderer,
C_Vec2  dimensions,
float *  universalSpeed 
)

Constructs the Background Manager.

Parameters
rendererA pointer to the renderer.
dimensionsThe screen dimensions.
universalSpeedA pointer for the universal speed of the game.
B_BackgroundManager::~B_BackgroundManager ( )

Destructs the Background Manager.

Member Function Documentation

void B_BackgroundManager::draw ( SDL_Renderer *  renderer)

A function to draw the Backgrounds to the screen.

Parameters
rendererA pointer to the renderer.

Here is the call graph for this function:

Here is the caller graph for this function:

void B_BackgroundManager::update ( float  dt)

A function to update the Backgrounds.

Parameters
dtThe delta time.

Here is the caller graph for this function:

Member Data Documentation

C_Texture* B_BackgroundManager::background[3]
private

The Background images.

B_Background* B_BackgroundManager::bottomBackgroundLayer
private

The bottom background layer backgrounds.

B_Background* B_BackgroundManager::middleBackgroundLayer[2]
private

The middle background layer backgrounds.

B_Background* B_BackgroundManager::topBackgroundLayer[2]
private

The top background layer backgrounds.

float* B_BackgroundManager::universalSpeed
private

A pointer for the universal speed of the game.


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