CExplosion.h File Reference

Header file of an explosion. More...

#include "CElement.h"

Include dependency graph for CExplosion.h:

This graph shows which files directly or indirectly include this file:


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...

Detailed Description

Header file of an explosion.


Define Documentation

#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.


Enumeration Type Documentation

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.

Enumerator:
BURNDIRECTION_NONE  A center of explosion hits elements in this direction.
BURNDIRECTION_UP  The element is hit from below (so go up).
BURNDIRECTION_DOWN  The element is hit from above (so go down).
BURNDIRECTION_LEFT  The element is hit from the right (so go left).
BURNDIRECTION_RIGHT  The element is hit from the left (so go right).


Generated on Sat Oct 18 12:26:38 2008 for Bombermaaan by  doxygen 1.5.5
Visit the Bombermaaan project page
SourceForge.net Logo