The class that represents a single BrickOut level. More...
#include <Game/Level.h>
Inherits BrickGroupListener.
Public Member Functions | |
void | DrawGui () |
Called by the app after all other level related drawing is done. | |
void | PowerUpGrabbed (PowerUp &p, const PhysicsCollisionInfo &hitInfo) |
Called when a powerup is grabbed by the paddle. | |
virtual void | BrickHit (BrickGroup &group, Brick &brick, const PhysicsCollisionInfo &hitInfo, int points) |
Called each time a brick is hit. |
The class that represents a single BrickOut level.
void Level::BrickHit | ( | BrickGroup & | group, | |
Brick & | brick, | |||
const PhysicsCollisionInfo & | hitInfo, | |||
int | points | |||
) | [virtual] |
Called each time a brick is hit.
[in] | group | referance to the appropriate BrickGroup. |
[in] | brick | referance to the Brick that was hit. |
[in] | info | the collision information for the brick hit. |
[in] | points | the number of points awarded for the hit. |
void Level::PowerUpGrabbed | ( | PowerUp & | p, | |
const PhysicsCollisionInfo & | hitInfo | |||
) |
Called when a powerup is grabbed by the paddle.
[in] | p | the powerup that was grabbed. |
[in] | hitInfo | the hit information from the collision between the powerup and the paddle. |
NOTE: Do not destroy the powerup in this function.