Jamie Slowgrove - PGG Assignment 1 - SDL
 All Classes Functions
Public Member Functions | List of all members
Animation Class Reference

Creates a Animation object to handle the animations. More...

#include <animation.h>

Collaboration diagram for Animation:
Collaboration graph

Public Member Functions

 Animation (float)
 
 ~Animation ()
 
void upadateTimer (float)
 
void upadateAnimation (char, Entity *)
 
void snailAnimation (Entity *)
 
void wormAnimation (Entity *)
 
void endGoalAnimation (Entity *)
 
void gemAnimation (int, Entity *)
 

Detailed Description

Creates a Animation object to handle the animations.

Constructor & Destructor Documentation

Animation::Animation ( float  inLength)

Constructs an Animation object Constructs the Animation object.

Parameters
floatthe length of the timer
Animation::~Animation ( )

De-constructs a Animation object De-constructs the Animation object

Member Function Documentation

void Animation::endGoalAnimation ( Entity entity)

Performs the animation for the end goal

Parameters
Entity* the entity to use the Animation

Here is the call graph for this function:

Here is the caller graph for this function:

void Animation::gemAnimation ( int  type,
Entity entity 
)

Performs the timer test and animation for the Gem

Parameters
intthe type of Gem
Entity* the entity to use the Animation

Here is the call graph for this function:

Here is the caller graph for this function:

void Animation::snailAnimation ( Entity entity)

Performs the animation for the snail

Parameters
Entity* the entity to use the Animation

Here is the call graph for this function:

Here is the caller graph for this function:

void Animation::upadateAnimation ( char  type,
Entity entity 
)

Updates the Animation If the timer is 0 update the Animation.

Parameters
charthe type of the Animation
Entity* the entity to use the Animation

Here is the call graph for this function:

Here is the caller graph for this function:

void Animation::upadateTimer ( float  deltaTime)

Updates the timer Updates the timer using the delta time. If the timer is now greater than 1, then reset the timer to 0.

Parameters
floatthe delta time

Here is the caller graph for this function:

void Animation::wormAnimation ( Entity entity)

Performs the animation for the worm

Parameters
Entity* the entity to use the Animation

Here is the call graph for this function:

Here is the caller graph for this function:


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