Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
B_Background.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../Enitites/Base/EB_Velocity.h"
4 #include "../Core/C_Vec2.h"
5 
10 class B_Background : public EB_Velocity
11 {
12 public:
22 
26  ~B_Background();
27 
32  void update(float dt);
33 };
void update(float dt)
A function that updates the Background.
Definition: B_Background.cpp:12
C_Vec2 dimensions
The dimensions of the Entity.
Definition: EB_Entity.h:94
An Entity that contains velocities.
Definition: EB_Velocity.h:10
An object for a background layer that inherits Velocity Entity.
Definition: B_Background.h:10
Contains the Vec2 structure with functions and overloaded operators.
Definition: C_Vec2.h:7
B_Background(C_Texture *sprite, C_Vec2 pos, C_Vec2 dimensions, C_Vec2 velocities, float *universalSpeed)
Constructs the Background object.
Definition: B_Background.cpp:3
C_Vec2 velocities
The velocities of the Entity.
Definition: EB_Velocity.h:55
~B_Background()
Destructs the Background object.
Definition: B_Background.cpp:8
C_Vec2 pos
The position of the Entity.
Definition: EB_Entity.h:92
C_Texture * sprite
A pointer to the Entity Texture.
Definition: EB_Entity.h:90
float * universalSpeed
A pointer for the universal speed of the game.
Definition: EB_Entity.h:98
Creates a Texture for use with a renderer.
Definition: C_Texture.h:13