Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
EE_StyphBird.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include "../Base/EB_Velocity.h"
5 #include "../../Core/C_Vec2.h"
6 
11 class EE_StyphBird : public EB_Velocity
12 {
13 public:
22 
26  ~EE_StyphBird();
27 
32  void update(float dt);
33 
38  void setDeadStatus(bool dead);
39 
44  bool getDeadStatus();
45 
51 
56  bool getDeathParticles();
57 
62  void setCoinSpawn(bool coinSpawn);
63 
68  bool getCoinSpawn();
69 
70 private:
72  bool dead;
74  bool coinSpawn;
77 };
bool getDeathParticles()
Returns the value of deathParticles.
Definition: EE_StyphBird.cpp:41
bool coinSpawn
A boolean for if the StyphBird should turn into coins on death.
Definition: EE_StyphBird.h:74
EE_StyphBird(C_Texture *sprite, C_Vec2 pos, C_Vec2 dimensions, float *universalSpeed)
Constructs the StyphBird object.
Definition: EE_StyphBird.cpp:3
void update(float dt)
A function that updates the StyphBird.
Definition: EE_StyphBird.cpp:13
C_Vec2 dimensions
The dimensions of the Entity.
Definition: EB_Entity.h:94
An Entity that contains velocities.
Definition: EB_Velocity.h:10
~EE_StyphBird()
Destructs the StyphBird object.
Definition: EE_StyphBird.cpp:9
Contains the Vec2 structure with functions and overloaded operators.
Definition: C_Vec2.h:7
bool getCoinSpawn()
Gets the value of the coinSpawn boolean.
Definition: EE_StyphBird.cpp:51
bool deathParticles
A boolean for if the StyphBird should spawn particles upon death.
Definition: EE_StyphBird.h:76
void setCoinSpawn(bool coinSpawn)
Sets the value of the coinSpawn boolean.
Definition: EE_StyphBird.cpp:46
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
bool dead
A boolean for if the StyphBird is dead and to be deleted.
Definition: EE_StyphBird.h:72
bool getDeadStatus()
Returns the value of dead.
Definition: EE_StyphBird.cpp:31
float * universalSpeed
A pointer for the universal speed of the game.
Definition: EB_Entity.h:98
Contains the data and functions for the Stymphalian Bird.
Definition: EE_StyphBird.h:11
void setDeadStatus(bool dead)
Sets the value of dead.
Definition: EE_StyphBird.cpp:26
void setDeathParticles(bool deathParticles)
Sets the value of deathParticles.
Definition: EE_StyphBird.cpp:36
Creates a Texture for use with a renderer.
Definition: C_Texture.h:13