Bomberman
Public Types | Static Public Member Functions | List of all members
BBM::Bonus Class Reference

#include <Bonus.hpp>

Collaboration diagram for BBM::Bonus:

Public Types

enum  BonusType {
  NOTHING, BOMBSTOCK, SPEEDUP, EXPLOSIONINC,
  NOCLIP
}
 

Static Public Member Functions

static void BombUpBonus (WAL::Entity &player, const WAL::Entity &bonus, CollisionComponent::CollidedAxis axis)
 Apply bonus effect that allows players to carry one more bomb than before. More...
 
static void ExplosionRangeBonus (WAL::Entity &player, const WAL::Entity &bonus, CollisionComponent::CollidedAxis axis)
 Apply bonus effect that expend the explosion range of the bomb. More...
 
static void SpeedUpBonus (WAL::Entity &player, const WAL::Entity &bonus, CollisionComponent::CollidedAxis axis)
 Apply bonus effect that allows to run faster. More...
 
static void NoClipBonus (WAL::Entity &player, const WAL::Entity &bonus, CollisionComponent::CollidedAxis axis)
 Apply bonus effect that allows to pass trough breakbable walls. More...
 
static BonusType getRandomBonusType ()
 

Member Enumeration Documentation

◆ BonusType

Enumerator
NOTHING 
BOMBSTOCK 
SPEEDUP 
EXPLOSIONINC 
NOCLIP 

Member Function Documentation

◆ BombUpBonus()

void BBM::Bonus::BombUpBonus ( WAL::Entity player,
const WAL::Entity bonus,
CollisionComponent::CollidedAxis  axis 
)
static

Apply bonus effect that allows players to carry one more bomb than before.

Parameters
bonusbonus
playerthe entity on which the effect will be applied

◆ ExplosionRangeBonus()

void BBM::Bonus::ExplosionRangeBonus ( WAL::Entity player,
const WAL::Entity bonus,
CollisionComponent::CollidedAxis  axis 
)
static

Apply bonus effect that expend the explosion range of the bomb.

Parameters
bonusbonus
playerthe entity on which the effect will be applied

◆ getRandomBonusType()

Bonus::BonusType BBM::Bonus::getRandomBonusType ( )
static

◆ NoClipBonus()

void BBM::Bonus::NoClipBonus ( WAL::Entity player,
const WAL::Entity bonus,
CollisionComponent::CollidedAxis  axis 
)
static

Apply bonus effect that allows to pass trough breakbable walls.

Parameters
bonusbonus
playerthe entity on which the effect will be applied

◆ SpeedUpBonus()

void BBM::Bonus::SpeedUpBonus ( WAL::Entity player,
const WAL::Entity bonus,
CollisionComponent::CollidedAxis  axis 
)
static

Apply bonus effect that allows to run faster.

Parameters
bonusbonus
playerthe entity on which the effect will be applied

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