#include "CElement.h"
Classes | |
struct | SFlame |
Describe a flame created by an explosion. More... | |
class | CExplosion |
An element in the arena which represents an explosion. More... | |
Defines | |
#define | EXPLOSIONS_ORIGINALSTYLE |
Mode of the explosion : original style or new style. | |
Enumerations | |
enum | EBurnDirection { BURNDIRECTION_NONE, BURNDIRECTION_UP, BURNDIRECTION_DOWN, BURNDIRECTION_LEFT, BURNDIRECTION_RIGHT } |
Describe in which direction a flame hits something. More... |
#define EXPLOSIONS_ORIGINALSTYLE |
Mode of the explosion : original style or new style.
New style (not so good) : makes the explosions as up-to-date as possible : the flame rays always go further until they are forced to stop. On each update the blocks where there are some flames and where the flame rays stop BURN. So if the explosion duration is too long, the explosion can burn a wall, and the item under it afterwards.
Original style (Super Bomberman) : the flame sizes are computed once when the explosion is created. These flames can be shorter, but not longer than the computed flame sizes. The blocks where the flame rays stop BURN once. On each update the blocks where there are flames BURN. So unlike the new style, the result does not depend on the explosion duration.
enum EBurnDirection |
Describe in which direction a flame hits something.
This is used for the skull item. The skull item, when hit by a flame, needs to know in which direction it has to fly.