Contains the data and functions for the CollisionManager. More...
#include <G_CollisionManager.h>
Public Member Functions | |
G_CollisionManager (EP_Player *player, E_EntityManager *entityManager, float *universalSpeed) | |
Constructs the CollisionManager. More... | |
~G_CollisionManager () | |
Destructs the G_CollisionManager. More... | |
void | entityCollisionDetection () |
A function that handles all of the collision detection between the player and the entities. More... | |
Private Member Functions | |
void | playerStyphBirdCollisionDetection (EE_StyphBird *styphBird) |
A function that handles all of the collision detection between the Player and a StymphBird. More... | |
void | playerStormCloudCollisionDetection (EE_StormCloud *stormCloud) |
A function that handles all of the collision detection between the Player and a StormCloud. More... | |
void | playerArrowCollisionDetection (EA_Arrow *arrow) |
A function that handles all of the collision detection between the Player and an Arrow. More... | |
void | playerCoinCollisionDetection (EPU_Coin *coin) |
A function that handles all of the collision detection between the Player and a Coin. More... | |
void | playerHealthCollisionDetection (EPU_Health *health) |
A function that handles all of the collision detection between the Player and a Health pickup. More... | |
void | playerFlamingCollisionDetection (EPU_Flaming *flaming) |
A function that handles all of the collision detection between the Player and a Flaming pickup. More... | |
void | playerCoinAllCollisionDetection (EPU_CoinAll *coinAll) |
A function that handles all of the collision detection between the Player and a CoinAll pickup. More... | |
void | playerKillAllCollisionDetection (EPU_KillAll *killAll) |
A function that handles all of the collision detection between the Player and a KillAll pickup. More... | |
void | playerShieldCollisionDetection (EPU_Shield *shield) |
A function that handles all of the collision detection between the Player and a Shield pickup. More... | |
void | playerTimeSlowCollisionDetection (EPU_TimeSlow *timeSlow) |
A function that handles all of the collision detection between the Player and a TimeSlow pickup. More... | |
void | arrowStyphBirdCollisionDetection (EA_Arrow *arrow, EE_StyphBird *styphBird) |
A function that handles all of the collision detection between an Arrow and a StyphBird. More... | |
void | arrowArcherCollisionDetection (EA_Arrow *arrow, EE_Archer *archer) |
A function that handles all of the collision detection between an Arrow and an Archer. More... | |
Private Attributes | |
EP_Player * | player |
A pointer to the Player. More... | |
E_EntityManager * | entityManager |
A pointer to the EntityManager. More... | |
float * | universalSpeed |
A pointer for the universal speed of the game. More... | |
Contains the data and functions for the CollisionManager.
G_CollisionManager::G_CollisionManager | ( | EP_Player * | player, |
E_EntityManager * | entityManager, | ||
float * | universalSpeed | ||
) |
Constructs the CollisionManager.
player | A pointer to the Player. |
entityManager | A pointer to the EntityManager. |
universalSpeed | A pointer for the universal speed of the game. |
G_CollisionManager::~G_CollisionManager | ( | ) |
Destructs the G_CollisionManager.
|
private |
A function that handles all of the collision detection between an Arrow and an Archer.
arrow | A pointer to the Arrow. |
archer | A pointer to the Archer. |
|
private |
A function that handles all of the collision detection between an Arrow and a StyphBird.
arrow | A pointer to the Arrow. |
styphBird | A pointer to the StyphBird. |
void G_CollisionManager::entityCollisionDetection | ( | ) |
A function that handles all of the collision detection between the player and the entities.
|
private |
A function that handles all of the collision detection between the Player and an Arrow.
arrow | A pointer to the Arrow. |
|
private |
A function that handles all of the collision detection between the Player and a CoinAll pickup.
coinAll | A pointer to the CoinAll. |
|
private |
A function that handles all of the collision detection between the Player and a Coin.
coin | A pointer to the Coin. |
|
private |
A function that handles all of the collision detection between the Player and a Flaming pickup.
flaming | A pointer to the Flaming. |
|
private |
A function that handles all of the collision detection between the Player and a Health pickup.
helath | A pointer to the Health. |
|
private |
A function that handles all of the collision detection between the Player and a KillAll pickup.
killAll | A pointer to the KillAll. |
|
private |
A function that handles all of the collision detection between the Player and a Shield pickup.
shield | A pointer to the Shield. |
|
private |
A function that handles all of the collision detection between the Player and a StormCloud.
stormCloud | A pointer to the StormCloud. |
|
private |
A function that handles all of the collision detection between the Player and a StymphBird.
styphBird | A pointer to the StyphBird. |
|
private |
A function that handles all of the collision detection between the Player and a TimeSlow pickup.
shield | A pointer to the TimeSlow. |
|
private |
A pointer to the EntityManager.
|
private |
A pointer to the Player.
|
private |
A pointer for the universal speed of the game.