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

Contains the data and functions for the FlamingArrow. More...

#include <EA_FlamingArrow.h>

Inheritance diagram for EA_FlamingArrow:
Inheritance graph
Collaboration diagram for EA_FlamingArrow:
Collaboration graph

Public Member Functions

 EA_FlamingArrow (C_Texture *sprite, C_Texture *fireSprite, C_Vec2 pos, C_Vec2 dimensions, C_Vec2 screenDimensions, SDL_Colour minTint, SDL_Colour maxTint, float *universalSpeed)
 Constructs the FlamingArrow object. More...
 
 ~EA_FlamingArrow ()
 Destructs the FlamingArrow object. More...
 
void update (float dt)
 A function that updates the FlamingArrow. More...
 
void draw (SDL_Renderer *renderer)
 A function that draws the FlammingArrow to the screen. More...
 
- Public Member Functions inherited from EA_Arrow
 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. More...
 
 ~EA_Arrow ()
 Destructs the Arrow object. More...
 
void setDeadStatus (bool dead)
 Sets the value of dead. More...
 
bool getDeadStatus ()
 Returns the value of dead. More...
 
void setDeathParticles (bool deathParticles)
 Sets the value of deathParticles. More...
 
bool getDeathParticles ()
 Returns the value of deathParticles. More...
 
int getDamage ()
 Returns the value of damage. More...
 
- Public Member Functions inherited from EB_Velocity
 EB_Velocity (C_Texture *sprite, C_Vec2 pos, C_Vec2 dimensions, C_Vec2 velocities, std::string iD, float *universalSpee)
 Constructs the Velocity Entity. More...
 
 ~EB_Velocity ()
 Destructs the Velocity Entity object. More...
 
void updatePosWithVelocities (float dt)
 Updates the position of the Entity using the velocities. More...
 
void setVelocities (C_Vec2 velocity)
 Sets the velocities of the Entity. More...
 
C_Vec2 getVelocities ()
 Gets the velocities of the Entity. 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 Attributes

C_Vec2 screenDimensions
 The screen dimensions. More...
 
PS_ParticleEffectfireEffect
 The fire particle effect. More...
 

Additional Inherited Members

- Protected Attributes inherited from EA_Arrow
bool dead
 A boolean for if the Arrow is dead and to be deleted. More...
 
bool deathParticles
 A boolean for if the Arrow should spawn particles upon death. More...
 
int damage
 The amount of damage the arrow does. More...
 
- Protected Attributes inherited from EB_Velocity
C_Vec2 velocities
 The velocities of the Entity. 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 FlamingArrow.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

EA_FlamingArrow::EA_FlamingArrow ( C_Texture sprite,
C_Texture fireSprite,
C_Vec2  pos,
C_Vec2  dimensions,
C_Vec2  screenDimensions,
SDL_Colour  minTint,
SDL_Colour  maxTint,
float *  universalSpeed 
)

Constructs the FlamingArrow object.

Parameters
spriteA pointer to the objects Texture.
fireSpriteA pointer to the particles Texture.
posThe position of the FlamingArrow.
dimensionsThe dimensions of the FlamingArrow.
screenDimensionsThe dimensions of the screen.
minTintThe minimum tint for the fire particles.
maxTintThe maximum tint for the fire particles.
universalSpeedA pointer for the universal speed of the game.
EA_FlamingArrow::~EA_FlamingArrow ( )

Destructs the FlamingArrow object.

Member Function Documentation

void EA_FlamingArrow::draw ( SDL_Renderer *  renderer)
virtual

A function that draws the FlammingArrow to the screen.

Parameters
rendererA pointer to the SDL renderer.

Reimplemented from EB_Entity.

Here is the call graph for this function:

void EA_FlamingArrow::update ( float  dt)
virtual

A function that updates the FlamingArrow.

Parameters
dtThe delta time.

Implements EB_Velocity.

Here is the call graph for this function:

Member Data Documentation

PS_ParticleEffect* EA_FlamingArrow::fireEffect
private

The fire particle effect.

C_Vec2 EA_FlamingArrow::screenDimensions
private

The screen dimensions.


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