Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

defs.h File Reference

#include "defines.h"

Go to the source code of this file.

Defines

#define min(a, b)   ((a) < (b) ? (a) : (b))
#define max(a, b)   ((a) > (b) ? (a) : (b))
#define PI   3.14159265359
#define ERR_FILE   "A required file (%s) was not found in PAK file"
#define ERR_LOCALE   "Locale information missing for section '%s' (contains only partial translation)"
#define MAX_SOUNDS   50
#define MAX_TILES   256
#define MAX_WEAPONS   25
#define MAX_ITEMS   25
#define MAX_ENEMIES   25
#define MAX_HEALTH   10
#define DEAD_ALIVE   0
#define DEAD_DYING   1
#define DEAD_DEAD   2
#define SECTION_INTRO   0
#define SECTION_TITLE   1
#define SECTION_HUB   2
#define SECTION_GAME   3
#define SECTION_GAMEOVER   4
#define SECTION_CREDITS   5
#define SECTION_EASYOVER   6
#define CH_ANY   -1
#define CH_WEAPON   0
#define CH_ITEM   1
#define CH_EXPLODE   3
#define CH_DEATH   4
#define CH_TOUCH   5
#define CH_AMBIANCE   6
#define CH_SPAWN   7
#define KEY_UP   0
#define KEY_DOWN   1
#define KEY_LEFT   2
#define KEY_RIGHT   3
#define KEY_FIRE   4
#define KEY_MAP   5
#define KEY_PAUSE   6
#define KEY_JETPACK   7
#define WG_BUTTON   0
#define WG_RADIO   1
#define WG_SMOOTH_SLIDER   2
#define WG_SLIDER   3
#define WG_LABEL   4
#define WG_KEYBOARD   5
#define WG_JOYPAD   6
#define TXT_LEFT   0
#define TXT_CENTERED   1
#define TXT_RIGHT   2
#define INFO_NORMAL   0
#define INFO_OBJECTIVE   1
#define INFO_HINT   2
#define INFO_ACTIVATE   3
#define INFO_BAD   4
#define WP_PISTOL   0
#define WP_MACHINEGUN   1
#define WP_LASER   2
#define WP_GRENADES   3
#define WP_SPREAD   4
#define WP_ROCKETS   5
#define WP_PLASMARIFLE   6
#define WP_FLAMETHROWER   7
#define WP_ICEGUN   8
#define WP_LAVABALL1   9
#define WP_LAVABALL2   10
#define WP_AIMEDPISTOL   11
#define WP_ALIENSPREAD   12
#define WP_SHELLS   13
#define WP_ROCK1   14
#define WP_STALAGTITE   15
#define WP_BOMB   16
#define WP_ALIENLASER   17
#define WP_ALIENGRENADE   18
#define WP_AIMEDMACHINE   19
#define OBJ_UP   0
#define OBJ_DOWN   1
#define OBJ_LEFT   2
#define OBJ_RIGHT   3
#define ENV_AIR   0
#define ENV_WATER   1
#define ENV_SLIME   2
#define ENV_LAVA   3
#define PLAYER_WALK_SPEED   2.5
#define PLAYER_FLY_SPEED   6
#define PLAYER_JUMP_SPEED   -10.25
#define PAR_WEIGHTLESS   1
#define PAR_COLLIDES   2
#define EFF_BLEEDS   1
#define EFF_TRAILSFIRE   2
#define EFF_SMOKES   4
#define EFF_WEIGHTLESS   8
#define EFF_COLORED   16
#define MAPWIDTH   400
#define MAPHEIGHT   300
#define BRICKSIZE   32
#define BRICKSHIFT   5
#define OFFSETX   320
#define OFFSETY   240
#define MAP_AIR   0
#define MAP_WATER   1
#define MAP_SLIME   2
#define MAP_LAVA   3
#define MAP_BREAKABLE   4
#define MAP_BREAKABLE2   8
#define MAP_SOLID   9
#define MAP_NORESET   115
#define MAP_DECORATION   120
#define MAP_EXITSIGN   196
#define MAP_WATERANIM   200
#define MAP_SLIMEANIM   207
#define MAP_LAVAANIM   214
#define MAP_TOPLAYER   221
#define MAP_SHAKEAMOUNT   2
#define MIAPERCENT   0.70
#define MIS_INPROGRESS   0
#define MIS_COMPLETE   1
#define MIS_PLAYEROUT   2
#define MIS_PLAYERDEAD   3
#define MIS_PLAYERQUIT   4
#define MIS_PLAYERESCAPE   5
#define MIS_GAMECOMPLETE   6
#define MIS_TIMEUP   7
#define MIS_PLAYERRESTART   8
#define USEPAK   1
#define PAKLOCATION   ""
#define PAKNAME   "blobwars.pak"
#define PAKFULLPATH   PAKLOCATION PAKNAME
#define PATH_MAX   4096
#define GAMEPLAYMANUAL   "manual.html"
#define debug(x)   {printf("*** DEBUG: "); printf x;}
#define IGNORE_FLAGTOKEN_ERRORS   0

Enumerations

enum  {
  SND_WATERIN, SND_WATEROUT, SND_ITEM, SND_PISTOL,
  SND_RICO1, SND_RICO2, SND_MACHINEGUN, SND_DEATH1,
  SND_DEATH2, SND_DEATH3, SND_GRENADE, SND_ROCKET,
  SND_FIREBALL, SND_HIT, SND_SPLAT, SND_TELEPORT1,
  SND_TELEPORT2, SND_TELEPORT3, SND_GETWEAPON, SND_LASER,
  SND_ELECDEATH1, SND_ELECDEATH2, SND_ELECDEATH3, SND_LOCKEDDOOR,
  SND_OPENDOOR, SND_SWITCH1, SND_SWITCH2, SND_DROWNING,
  SND_AMBIANCE, SND_GULP, SND_EAT, SND_THROW,
  SND_GRBOUNCE, SND_DOOROPENED, SND_SPREADGUN, SND_ELECTRICITY1,
  SND_ELECTRICITY2, SND_ELECTRICITY3, SND_CLANG, SND_FIRECRACKLE,
  SND_CLOCK, SND_BOSSCUSTOM1, SND_BOSSCUSTOM2, SND_BOSSCUSTOM3,
  SND_BOSSCUSTOM4, SND_BOSSCUSTOM5, SND_POP, SND_STONEBREAK,
  SND_CHEAT = MAX_SOUNDS - 3, SND_HIGHLIGHT = MAX_SOUNDS - 2, SND_SELECT = MAX_SOUNDS - 1
}
enum  {
  ITEM_PISTOL, ITEM_MACHINEGUN, ITEM_LASER, ITEM_GRENADES,
  ITEM_SPREAD, ITEM_CHERRY, ITEM_DOUBLECHERRY, ITEM_TRIPLECHERRY,
  ITEM_POINTS, ITEM_POINTS2, ITEM_POINTS3, ITEM_POINTS4,
  ITEM_POINTS5, ITEM_POINTS6, ITEM_POINTS7, ITEM_MISC = 100,
  ITEM_MISC_NOSHOW, ITEM_MISC_INVISIBLE
}
enum  {
  PAK_IMG, PAK_SOUND, PAK_MUSIC, PAK_DATA,
  PAK_FONT
}

Variables

const char widgetName [][25]
const char skill [][10]


Define Documentation

#define BRICKSHIFT   5
 

#define BRICKSIZE   32
 

#define CH_AMBIANCE   6
 

#define CH_ANY   -1
 

#define CH_DEATH   4
 

#define CH_EXPLODE   3
 

#define CH_ITEM   1
 

#define CH_SPAWN   7
 

#define CH_TOUCH   5
 

#define CH_WEAPON   0
 

#define DEAD_ALIVE   0
 

#define DEAD_DEAD   2
 

#define DEAD_DYING   1
 

#define debug  )     {printf("*** DEBUG: "); printf x;}
 

#define EFF_BLEEDS   1
 

#define EFF_COLORED   16
 

#define EFF_SMOKES   4
 

#define EFF_TRAILSFIRE   2
 

#define EFF_WEIGHTLESS   8
 

#define ENV_AIR   0
 

#define ENV_LAVA   3
 

#define ENV_SLIME   2
 

#define ENV_WATER   1
 

#define ERR_FILE   "A required file (%s) was not found in PAK file"
 

#define ERR_LOCALE   "Locale information missing for section '%s' (contains only partial translation)"
 

#define GAMEPLAYMANUAL   "manual.html"
 

#define IGNORE_FLAGTOKEN_ERRORS   0
 

#define INFO_ACTIVATE   3
 

#define INFO_BAD   4
 

#define INFO_HINT   2
 

#define INFO_NORMAL   0
 

#define INFO_OBJECTIVE   1
 

#define KEY_DOWN   1
 

#define KEY_FIRE   4
 

#define KEY_JETPACK   7
 

#define KEY_LEFT   2
 

#define KEY_MAP   5
 

#define KEY_PAUSE   6
 

#define KEY_RIGHT   3
 

#define KEY_UP   0
 

#define MAP_AIR   0
 

#define MAP_BREAKABLE   4
 

#define MAP_BREAKABLE2   8
 

#define MAP_DECORATION   120
 

#define MAP_EXITSIGN   196
 

#define MAP_LAVA   3
 

#define MAP_LAVAANIM   214
 

#define MAP_NORESET   115
 

#define MAP_SHAKEAMOUNT   2
 

#define MAP_SLIME   2
 

#define MAP_SLIMEANIM   207
 

#define MAP_SOLID   9
 

#define MAP_TOPLAYER   221
 

#define MAP_WATER   1
 

#define MAP_WATERANIM   200
 

#define MAPHEIGHT   300
 

#define MAPWIDTH   400
 

#define max a,
 )     ((a) > (b) ? (a) : (b))
 

#define MAX_ENEMIES   25
 

#define MAX_HEALTH   10
 

#define MAX_ITEMS   25
 

#define MAX_SOUNDS   50
 

#define MAX_TILES   256
 

#define MAX_WEAPONS   25
 

#define MIAPERCENT   0.70
 

#define min a,
 )     ((a) < (b) ? (a) : (b))
 

#define MIS_COMPLETE   1
 

#define MIS_GAMECOMPLETE   6
 

#define MIS_INPROGRESS   0
 

#define MIS_PLAYERDEAD   3
 

#define MIS_PLAYERESCAPE   5
 

#define MIS_PLAYEROUT   2
 

#define MIS_PLAYERQUIT   4
 

#define MIS_PLAYERRESTART   8
 

#define MIS_TIMEUP   7
 

#define OBJ_DOWN   1
 

#define OBJ_LEFT   2
 

#define OBJ_RIGHT   3
 

#define OBJ_UP   0
 

#define OFFSETX   320
 

#define OFFSETY   240
 

#define PAKFULLPATH   PAKLOCATION PAKNAME
 

#define PAKLOCATION   ""
 

#define PAKNAME   "blobwars.pak"
 

#define PAR_COLLIDES   2
 

#define PAR_WEIGHTLESS   1
 

#define PATH_MAX   4096
 

#define PI   3.14159265359
 

#define PLAYER_FLY_SPEED   6
 

#define PLAYER_JUMP_SPEED   -10.25
 

#define PLAYER_WALK_SPEED   2.5
 

#define SECTION_CREDITS   5
 

#define SECTION_EASYOVER   6
 

#define SECTION_GAME   3
 

#define SECTION_GAMEOVER   4
 

#define SECTION_HUB   2
 

#define SECTION_INTRO   0
 

#define SECTION_TITLE   1
 

#define TXT_CENTERED   1
 

#define TXT_LEFT   0
 

#define TXT_RIGHT   2
 

#define USEPAK   1
 

#define WG_BUTTON   0
 

#define WG_JOYPAD   6
 

#define WG_KEYBOARD   5
 

#define WG_LABEL   4
 

#define WG_RADIO   1
 

#define WG_SLIDER   3
 

#define WG_SMOOTH_SLIDER   2
 

#define WP_AIMEDMACHINE   19
 

#define WP_AIMEDPISTOL   11
 

#define WP_ALIENGRENADE   18
 

#define WP_ALIENLASER   17
 

#define WP_ALIENSPREAD   12
 

#define WP_BOMB   16
 

#define WP_FLAMETHROWER   7
 

#define WP_GRENADES   3
 

#define WP_ICEGUN   8
 

#define WP_LASER   2
 

#define WP_LAVABALL1   9
 

#define WP_LAVABALL2   10
 

#define WP_MACHINEGUN   1
 

#define WP_PISTOL   0
 

#define WP_PLASMARIFLE   6
 

#define WP_ROCK1   14
 

#define WP_ROCKETS   5
 

#define WP_SHELLS   13
 

#define WP_SPREAD   4
 

#define WP_STALAGTITE   15
 


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
SND_WATERIN 
SND_WATEROUT 
SND_ITEM 
SND_PISTOL 
SND_RICO1 
SND_RICO2 
SND_MACHINEGUN 
SND_DEATH1 
SND_DEATH2 
SND_DEATH3 
SND_GRENADE 
SND_ROCKET 
SND_FIREBALL 
SND_HIT 
SND_SPLAT 
SND_TELEPORT1 
SND_TELEPORT2 
SND_TELEPORT3 
SND_GETWEAPON 
SND_LASER 
SND_ELECDEATH1 
SND_ELECDEATH2 
SND_ELECDEATH3 
SND_LOCKEDDOOR 
SND_OPENDOOR 
SND_SWITCH1 
SND_SWITCH2 
SND_DROWNING 
SND_AMBIANCE 
SND_GULP 
SND_EAT 
SND_THROW 
SND_GRBOUNCE 
SND_DOOROPENED 
SND_SPREADGUN 
SND_ELECTRICITY1 
SND_ELECTRICITY2 
SND_ELECTRICITY3 
SND_CLANG 
SND_FIRECRACKLE 
SND_CLOCK 
SND_BOSSCUSTOM1 
SND_BOSSCUSTOM2 
SND_BOSSCUSTOM3 
SND_BOSSCUSTOM4 
SND_BOSSCUSTOM5 
SND_POP 
SND_STONEBREAK 
SND_CHEAT 
SND_HIGHLIGHT 
SND_SELECT 

anonymous enum
 

Enumeration values:
ITEM_PISTOL 
ITEM_MACHINEGUN 
ITEM_LASER 
ITEM_GRENADES 
ITEM_SPREAD 
ITEM_CHERRY 
ITEM_DOUBLECHERRY 
ITEM_TRIPLECHERRY 
ITEM_POINTS 
ITEM_POINTS2 
ITEM_POINTS3 
ITEM_POINTS4 
ITEM_POINTS5 
ITEM_POINTS6 
ITEM_POINTS7 
ITEM_MISC 
ITEM_MISC_NOSHOW 
ITEM_MISC_INVISIBLE 

anonymous enum
 

Enumeration values:
PAK_IMG 
PAK_SOUND 
PAK_MUSIC 
PAK_DATA 
PAK_FONT 


Variable Documentation

const char skill[][10]
 

Initial value:

{ "Easy", "Normal", "Hard", "Extreme" }

const char widgetName[][25]
 

Initial value:

{ "BUTTON", "RADIO", "SMOOTH_SLIDER", "SLIDER", "LABEL", "KEYBOARD", "JOYPAD", "-1" }


Generated on Thu Dec 2 20:26:03 2004 for Blob Wars : Metal Blob Solid by doxygen 1.3.7