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

Contains the data and functions for the Storm Cloud. More...

#include <EE_StormCloud.h>

Inheritance diagram for EE_StormCloud:
Inheritance graph
Collaboration diagram for EE_StormCloud:
Collaboration graph

Public Member Functions

 EE_StormCloud (C_Texture *sprite, C_Vec2 pos, C_Vec2 dimensions, float *universalSpeed)
 Constructs the StormCloud object. More...
 
 ~EE_StormCloud ()
 Destructs the StormCloud object. More...
 
void update (float dt)
 A function that updates the StormCloud. 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...
 
C_Vec2 getCloudDim ()
 Returns the value of the clouds dimensions (Not including lighting). More...
 
- Public Member Functions inherited from EB_VelocityAnimated
 EB_VelocityAnimated (C_Texture *sprite, C_Vec2 pos, C_Vec2 dimensions, C_Vec2 velocities, int animationFrames, C_Vec2 spriteDimensions, float animationLength, std::string iD, float *universalSpee)
 Constructs the Velocity Animated Entity. More...
 
 ~EB_VelocityAnimated ()
 Destructs the Velocity Animated 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_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 storm cloud. More...
 

Private Attributes

bool dead
 A boolean for if the StormCloud is dead and to be deleted. More...
 
bool deathParticles
 A boolean for if the StormCloud should spawn particles upon death. More...
 
C_Vec2 cloudDim
 The dimensions of the actual cloud, not the cloud sprite (including lightning) dimensions. More...
 

Additional Inherited Members

- Protected Attributes inherited from EB_VelocityAnimated
C_Vec2 velocities
 The velocities of the Entity. More...
 
- 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 Storm Cloud.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

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

Constructs the StormCloud object.

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

Destructs the StormCloud object.

Member Function Documentation

void EE_StormCloud::animate ( float  dt)
privatevirtual

Animates the sprite of the storm cloud.

Parameters
dtThe delta time.

Reimplemented from EB_Animated.

Here is the call graph for this function:

Here is the caller graph for this function:

C_Vec2 EE_StormCloud::getCloudDim ( )

Returns the value of the clouds dimensions (Not including lighting).

Returns
The value of cloudDim.

Here is the caller graph for this function:

bool EE_StormCloud::getDeadStatus ( )

Returns the value of dead.

Returns
The value of dead.
bool EE_StormCloud::getDeathParticles ( )

Returns the value of deathParticles.

Returns
The value of deathParticles.
void EE_StormCloud::setDeadStatus ( bool  dead)

Sets the value of dead.

Parameters
deadThe new value of dead.

Here is the caller graph for this function:

void EE_StormCloud::setDeathParticles ( bool  deathParticles)

Sets the value of deathParticles.

Parameters
deathParticlesThe new value of deathParticles.

Here is the caller graph for this function:

void EE_StormCloud::update ( float  dt)
virtual

A function that updates the StormCloud.

Parameters
dtThe delta time.

Implements EB_VelocityAnimated.

Here is the call graph for this function:

Member Data Documentation

C_Vec2 EE_StormCloud::cloudDim
private

The dimensions of the actual cloud, not the cloud sprite (including lightning) dimensions.

bool EE_StormCloud::dead
private

A boolean for if the StormCloud is dead and to be deleted.

bool EE_StormCloud::deathParticles
private

A boolean for if the StormCloud should spawn particles upon death.


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