00001 //
00002 // Constants.h
00003 // -------------------
00004 // begin : Wed Apr 10 2002
00005 // copyright : (C) 2002 by Rob Renaud
00006 // email : rrenaud@eden.rutgers.edu
00007 //
00008 // This program is free software; you can redistribute it and/or modify
00009 // it under the terms of the GNU General Public License as published by
00010 // the Free Software Foundation; either version 2 of the License, or
00011 // (at your option) any later version.
00012 //
00013
00014 #ifndef GAME_CONSTANTS_H
00015 #define GAME_CONSTANTS_H
00016
00017 #include "../Config.h"
00018
00019 namespace Game {
00020 typedef int PlayerAction;
00021 namespace Constants {
00023 const int DEFAULT_BOMB_TICKS=100;
00026 const int PLAYER_STARTING_MOVE_SPEED=5;
00027
00028 const float PROB_BOMB_COUNT=.1f;
00029 const float PROB_BOMB_RAD=.1f;
00030 const float PROB_SPEED_UP=.05f;
00031
00033 const size_t BOMB_DROP_REFRESH_INTERVAL=5;
00034
00035 const PlayerAction NO_ACTION =0x0;
00036 const PlayerAction DROP_BOMB =0x1;
00037 const PlayerAction MOVE_RIGHT =0x2;
00038 const PlayerAction MOVE_LEFT =0x4;
00039 const PlayerAction MOVE_UP =0x8;
00040 const PlayerAction MOVE_DOWN =0x10;
00041
00042 const int DEFAULT_START_BOMB_RADIUS=4;
00043 const int DEFAULT_START_NUM_BOMBS=5;
00044
00045 const int TILE_WIDTH = 40;
00046 const int TILE_HEIGHT= 30;
00047 const size_t MAX_UNIQUE_TILES=64;
00048
00056 const int SLACK_TOLERANCE=11;
00057
00058 const int MIN_JOY_AXIS_VALUE = 32768/2;
00059 };
00060 };
00061
00062 #endif
1.2.12 written by Dimitri van Heesch,
© 1997-2001