Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
EA_Arrow.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 EA_Arrow : public EB_Velocity
12 {
13 public:
25  std::string iD, int damage, float* universalSpeed);
26 
30  ~EA_Arrow();
31 
36  void setDeadStatus(bool dead);
37 
42  bool getDeadStatus();
43 
49 
54  bool getDeathParticles();
55 
60  int getDamage();
61 
62 protected:
64  bool dead;
68  int damage;
69 };
~EA_Arrow()
Destructs the Arrow object.
Definition: EA_Arrow.cpp:8
bool deathParticles
A boolean for if the Arrow should spawn particles upon death.
Definition: EA_Arrow.h:66
C_Vec2 dimensions
The dimensions of the Entity.
Definition: EB_Entity.h:94
int getDamage()
Returns the value of damage.
Definition: EA_Arrow.cpp:32
An Entity that contains velocities.
Definition: EB_Velocity.h:10
Contains the Vec2 structure with functions and overloaded operators.
Definition: C_Vec2.h:7
void setDeathParticles(bool deathParticles)
Sets the value of deathParticles.
Definition: EA_Arrow.cpp:22
int damage
The amount of damage the arrow does.
Definition: EA_Arrow.h:68
Contains the data and functions for the Arrow.
Definition: EA_Arrow.h:11
bool dead
A boolean for if the Arrow is dead and to be deleted.
Definition: EA_Arrow.h:64
bool getDeadStatus()
Returns the value of dead.
Definition: EA_Arrow.cpp:17
C_Vec2 pos
The position of the Entity.
Definition: EB_Entity.h:92
bool getDeathParticles()
Returns the value of deathParticles.
Definition: EA_Arrow.cpp:27
C_Texture * sprite
A pointer to the Entity Texture.
Definition: EB_Entity.h:90
EA_Arrow(C_Texture *sprite, C_Vec2 pos, C_Vec2 dimensions, C_Vec2 velocity, std::string iD, int damage, float *universalSpeed)
Constructs the Arrow object.
Definition: EA_Arrow.cpp:3
float * universalSpeed
A pointer for the universal speed of the game.
Definition: EB_Entity.h:98
std::string iD
The ID of the type of Entity.
Definition: EB_Entity.h:96
Creates a Texture for use with a renderer.
Definition: C_Texture.h:13
void setDeadStatus(bool dead)
Sets the value of dead.
Definition: EA_Arrow.cpp:12