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

Contains the data and functions for the Player Archer. More...

#include <EP_PlayerArcher.h>

Inheritance diagram for EP_PlayerArcher:
Inheritance graph
Collaboration diagram for EP_PlayerArcher:
Collaboration graph

Public Member Functions

 EP_PlayerArcher (C_Texture *sprite, C_Vec2 pos, C_Vec2 dimensions, float *universalSpeed)
 Constructs the Player Archer object. More...
 
 ~EP_PlayerArcher ()
 Destructs the Player Archer object. More...
 
void update (float dt)
 A function that updates the Player Archer. More...
 
void setFireArrow (bool fireArrow)
 Sets the value of the fireArrow boolean. More...
 
bool getFireArrow ()
 Gets the value of the fireArrow boolean. More...
 
void setFiring (bool firing)
 Sets the value of the firing boolean. More...
 
bool getFiring ()
 Gets the value of the firing boolean. More...
 
- Public Member Functions inherited from EB_Animated
 EB_Animated (C_Texture *sprite, C_Vec2 pos, C_Vec2 dimensions, int animationFrames, C_Vec2 spriteDimensions, float animationLength, std::string iD, float *universalSpee)
 Constructs the Animated Entity. More...
 
 ~EB_Animated ()
 Destructs the Animated Entity object. More...
 
void draw (SDL_Renderer *renderer)
 Draws the StormCloud to the screen. More...
 
- Public Member Functions inherited from EB_Entity
 EB_Entity (C_Texture *sprite, C_Vec2 pos, C_Vec2 dimensions, std::string iD, float *universalSpeed)
 Constructs the Entity object. More...
 
 ~EB_Entity ()
 Destructs the Entity object. More...
 
void setPosition (C_Vec2 pos)
 Sets the position of the Entity. More...
 
void setX (float x)
 Sets the x position of the Entity. More...
 
void setY (float y)
 Sets the y position of the Entity. More...
 
void setDimensions (C_Vec2 dimensions)
 Sets the dimensions of the Entity. More...
 
void setWidth (float width)
 Sets the width of the Entity. More...
 
void setHeight (float height)
 Sets the height of the Entity. More...
 
C_Vec2 getPosition ()
 Gets the position of the Entity. More...
 
C_Vec2 getDimensions ()
 Gets the dimensions of the Entity. More...
 

Private Member Functions

void animate (float dt)
 Animates the sprite of the Archer. More...
 

Private Attributes

bool fireArrow
 A boolean for if the Player Archer should fire an arrow. More...
 
bool firing
 A boolean for if the Player Archer is firing an arrow. More...
 

Additional Inherited Members

- Protected Attributes inherited from EB_Animated
int animationFrames
 The number of animation frames in the spritesheet. More...
 
C_Vec2 spriteDimensions
 The dimensions of the sprite in the spritesheet. More...
 
C_Vec2 spriteIndex
 The index of the current sprite in the spritesheet. More...
 
C_Timer animationTimer
 The animation timer. More...
 
- Protected Attributes inherited from EB_Entity
C_Texturesprite
 A pointer to the Entity Texture. More...
 
C_Vec2 pos
 The position of the Entity. More...
 
C_Vec2 dimensions
 The dimensions of the Entity. More...
 
std::string iD
 The ID of the type of Entity. More...
 
float * universalSpeed
 A pointer for the universal speed of the game. More...
 

Detailed Description

Contains the data and functions for the Player Archer.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

EP_PlayerArcher::EP_PlayerArcher ( C_Texture sprite,
C_Vec2  pos,
C_Vec2  dimensions,
float *  universalSpeed 
)

Constructs the Player Archer object.

Parameters
spriteA pointer to the objects Texture.
posThe position of the Player Archer.
dimensionsThe dimensions of the Player Archer.
universalSpeedA pointer for the universal speed of the game.
EP_PlayerArcher::~EP_PlayerArcher ( )

Destructs the Player Archer object.

Member Function Documentation

void EP_PlayerArcher::animate ( float  dt)
privatevirtual

Animates the sprite of the Archer.

Parameters
dtThe delta time.

Reimplemented from EB_Animated.

Here is the call graph for this function:

Here is the caller graph for this function:

bool EP_PlayerArcher::getFireArrow ( )

Gets the value of the fireArrow boolean.

Returns
The value of fireArrow.

Here is the caller graph for this function:

bool EP_PlayerArcher::getFiring ( )

Gets the value of the firing boolean.

Returns
The value of firing.

Here is the caller graph for this function:

void EP_PlayerArcher::setFireArrow ( bool  fireArrow)

Sets the value of the fireArrow boolean.

Parameters
coinSpawnThe new value of fireArrow.

Here is the caller graph for this function:

void EP_PlayerArcher::setFiring ( bool  firing)

Sets the value of the firing boolean.

Parameters
coinSpawnThe new value of firing.

Here is the caller graph for this function:

void EP_PlayerArcher::update ( float  dt)
virtual

A function that updates the Player Archer.

Parameters
dtThe delta time.

Implements EB_Animated.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool EP_PlayerArcher::fireArrow
private

A boolean for if the Player Archer should fire an arrow.

bool EP_PlayerArcher::firing
private

A boolean for if the Player Archer is firing an arrow.


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