This module implement a simple bonus system for Bomberman game. Currently, it’s quite limited, and not yet used by the game.
Warning
By now, the bonus system is not yet ready.
- no – nothing,
- apple – a poisoned apple, decrease the life of the player (and can kill him),
- dice – change randomly the life of the player,
- fire – increase the force of player’s bomb (i.e. the distance of explosion),
- ice – increase the timer of player’s bomb,
- life[1|2|3] – increase (by *2, by +1 or by +2) the player’s life,
- sword – increase the power of player’s bomb (they hit more !)
This bonus use the method Bonus.affect to change the game, so some modifications can be unable to do.
For now, there is no bonus system used in the server or in the client, so this constant represent the default bonus (i.e. no bonus). Those constants are different bonus type. From here.
a poisoned apple, decrease the life of the player (and can kill him),
change randomly the life of the player,
increase the force of player’s bomb (i.e. the distance of explosion),⚡
increase the timer of player’s bomb,
increase (by +1) the player’s life,
increase (by +2) the player’s life,
increase the power of player’s bomb (they hit more !)
List of all availables bonuses.
A Class to define a Bomberman bonus.
reference of the bonus (by now, integer).
return self.kind[1].capitalize()