Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
EP_PlayerArcher.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include "../Base/EB_Animated.h"
5 #include "../../Core/C_Vec2.h"
6 #include "../../Core/C_Timer.h"
7 
13 {
14 public:
23 
28 
33  void update(float dt);
34 
39  void setFireArrow(bool fireArrow);
40 
45  bool getFireArrow();
46 
51  void setFiring(bool firing);
52 
57  bool getFiring();
58 
59 private:
61  bool fireArrow;
63  bool firing;
64 
69  void animate(float dt);
70 };
void setFiring(bool firing)
Sets the value of the firing boolean.
Definition: EP_PlayerArcher.cpp:29
void animate(float dt)
Animates the sprite of the Archer.
Definition: EP_PlayerArcher.cpp:39
bool getFiring()
Gets the value of the firing boolean.
Definition: EP_PlayerArcher.cpp:34
void setFireArrow(bool fireArrow)
Sets the value of the fireArrow boolean.
Definition: EP_PlayerArcher.cpp:19
bool getFireArrow()
Gets the value of the fireArrow boolean.
Definition: EP_PlayerArcher.cpp:24
C_Vec2 dimensions
The dimensions of the Entity.
Definition: EB_Entity.h:94
Contains the Vec2 structure with functions and overloaded operators.
Definition: C_Vec2.h:7
Contains the data and functions for the Player Archer.
Definition: EP_PlayerArcher.h:12
EP_PlayerArcher(C_Texture *sprite, C_Vec2 pos, C_Vec2 dimensions, float *universalSpeed)
Constructs the Player Archer object.
Definition: EP_PlayerArcher.cpp:3
bool fireArrow
A boolean for if the Player Archer should fire an arrow.
Definition: EP_PlayerArcher.h:61
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
An Entity that uses a spritesheet for animation.
Definition: EB_Animated.h:11
void update(float dt)
A function that updates the Player Archer.
Definition: EP_PlayerArcher.cpp:13
~EP_PlayerArcher()
Destructs the Player Archer object.
Definition: EP_PlayerArcher.cpp:9
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
bool firing
A boolean for if the Player Archer is firing an arrow.
Definition: EP_PlayerArcher.h:63