Hosting courtesy of Sourceforge

SourceForge Logo
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Game::Constants Namespace Reference


Variables

const int DEFAULT_BOMB_TICKS = 100
const int PLAYER_STARTING_MOVE_SPEED = 5
const size_t BOMB_DROP_REFRESH_INTERVAL = 5
const int SLACK_TOLERANCE = 11
const bool ALLOW_BOMB_STACKING = false


Variable Documentation

const bool Game::Constants::ALLOW_BOMB_STACKING = false
 

Determines whether or not a bomb explosion will be able to continue passed one unbroken passable tile.

W is impassable tile that become passable after explosion
V is vacant tile
B are bombs

W W B B

After the explosion, assuming the bomb radius is greater than 1 and ALLOW_BOMB_STACKING is true, the map should look like this

V V V V

If ALLOW_BOMB_STACKING is false, then the map will look like this

W V V V

Only one tile in any cardinal direction within the bomb radius from any bomb in the explosion can be exploded in that explosion.

Definition at line 77 of file GameMap.h.

const size_t Game::Constants::BOMB_DROP_REFRESH_INTERVAL = 5
 

Number of frames between the allowed dropping of bombs

Definition at line 33 of file Constants.h.

const int Game::Constants::DEFAULT_BOMB_TICKS = 100
 

Number of ticks before a standard bomb will blow up

Definition at line 23 of file Constants.h.

const int Game::Constants::DEFAULT_START_BOMB_RADIUS = 4
 

Definition at line 42 of file Constants.h.

const int Game::Constants::DEFAULT_START_NUM_BOMBS = 5
 

Definition at line 43 of file Constants.h.

const PlayerAction Game::Constants::DROP_BOMB = 0x1
 

Definition at line 36 of file Constants.h.

const int Game::Constants::FLAME_DURATION = 40
 

Definition at line 26 of file Flame.h.

const size_t Game::Constants::MAP_NUM_COLS = 16
 

Definition at line 55 of file GameMap.h.

const size_t Game::Constants::MAP_NUM_ROWS = 16
 

Definition at line 54 of file GameMap.h.

const size_t Game::Constants::MAX_UNIQUE_TILES = 64
 

Definition at line 47 of file Constants.h.

const int Game::Constants::MIN_JOY_AXIS_VALUE = 32768/2
 

Definition at line 58 of file Constants.h.

const PlayerAction Game::Constants::MOVE_DOWN = 0x10
 

Definition at line 40 of file Constants.h.

const PlayerAction Game::Constants::MOVE_LEFT = 0x4
 

Definition at line 38 of file Constants.h.

const PlayerAction Game::Constants::MOVE_RIGHT = 0x2
 

Definition at line 37 of file Constants.h.

const PlayerAction Game::Constants::MOVE_UP = 0x8
 

Definition at line 39 of file Constants.h.

const PlayerAction Game::Constants::NO_ACTION = 0x0
 

Definition at line 35 of file Constants.h.

const int Game::Constants::PLAYER_STARTING_MOVE_SPEED = 5
 

Number of pixels that the player attempts to move if the players speed has not been modified whenever move() is called

Definition at line 26 of file Constants.h.

const float Game::Constants::PROB_BOMB_COUNT = .1f
 

Definition at line 28 of file Constants.h.

const float Game::Constants::PROB_BOMB_RAD = .1f
 

Definition at line 29 of file Constants.h.

const float Game::Constants::PROB_SPEED_UP = .05f
 

Definition at line 30 of file Constants.h.

const int Game::Constants::SLACK_TOLERANCE = 11
 

Number of pixels an object be bordering an unpassable object and still in the direction of that object. For example, if an object is bordered by x (x < SLACK_TOLERANCE) pixels on the top part of the right edge by an unpassable tile, and the other tile to its right is passable and attempts to move right, it will move down x pixels, and then move the full amount to the right

Definition at line 56 of file Constants.h.

const int Game::Constants::TILE_HEIGHT = 30
 

Definition at line 46 of file Constants.h.

const int Game::Constants::TILE_WIDTH = 40
 

Definition at line 45 of file Constants.h.


Generated on Tue May 21 07:26:55 2002 for BomberLAN by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001