NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
game_constants.h File Reference

Go to the source code of this file.

Macros

#define AMBUSH_ENEMY_COUNT   4
 The maximum amount of ambush enemies per world map.
 
#define HINT_MOVIE_COUNT   70
 The total hint movie count.
 
#define MAX_LIVES   99
 The maximum life count.
 
#define MAX_STOCK_ITEM   99
 The maximum inventory amount per item.
 
#define SAVE_SLOT_COUNT   3
 The total save slot count.
 
#define STAR_COIN_COUNT   3
 The amount of Star Coins per level.
 
#define STARTING_LIVES_COUNT   5
 The amount of starting lives.
 
#define SUPER_GUIDE_DEATH_COUNT   8
 The amount of deaths required for the Super Guide to show.
 

Enumerations

enum  PLAYER_CHARACTER_e {
  PLAYER_MARIO ,
  PLAYER_LUIGI ,
  PLAYER_BLUE_TOAD ,
  PLAYER_YELLOW_TOAD ,
  PLAYER_COUNT
}
 The identifiers for each character. More...
 
enum  PLAYER_CREATE_ITEM_e {
  CREATE_ITEM_NONE = BIT_FLAG(-1) ,
  CREATE_ITEM_STAR_POWER = BIT_FLAG(0) ,
  CREATE_ITEM_YOSHI = BIT_FLAG(1) ,
  CREATE_ITEM_BUBBLE = BIT_FLAG(2) ,
  CREATE_ITEM_RESCUE_TOAD = BIT_FLAG(3)
}
 Various flags applied to the player on occasion. More...
 
enum  PLAYER_POWERUP_e {
  POWERUP_NONE ,
  POWERUP_MUSHROOM ,
  POWERUP_FIRE_FLOWER ,
  POWERUP_MINI_MUSHROOM ,
  POWERUP_PROPELLER_SHROOM ,
  POWERUP_PENGUIN_SUIT ,
  POWERUP_ICE_FLOWER ,
  POWERUP_COUNT
}
 The identifiers for each powerup. More...
 
enum  STAGE_e {
  STAGE_1 ,
  STAGE_2 ,
  STAGE_3 ,
  STAGE_4 ,
  STAGE_5 ,
  STAGE_6 ,
  STAGE_7 ,
  STAGE_8 ,
  STAGE_9 ,
  STAGE_COIN_BATTLE = 19 ,
  STAGE_GHOST_HOUSE ,
  STAGE_TOWER ,
  STAGE_TOWER_2 ,
  STAGE_CASTLE ,
  STAGE_CASTLE_2 ,
  STAGE_KINOKO_HOUSE ,
  STAGE_KINOKO_HOUSE_2 ,
  STAGE_KINOKO_HOUSE_3 ,
  STAGE_KINOKO_HOUSE_4 ,
  STAGE_ENEMY = 32 ,
  STAGE_ENEMY_2 ,
  STAGE_ENEMY_3 ,
  STAGE_CANNON ,
  STAGE_DOOMSHIP = 37 ,
  STAGE_RESCUE ,
  STAGE_TITLE ,
  STAGE_PEACH_CASTLE ,
  STAGE_STAFFROLL ,
  STAGE_COUNT
}
 The numbers corresponding to each level type. More...
 
enum  WORLD_e {
  WORLD_1 ,
  WORLD_2 ,
  WORLD_3 ,
  WORLD_4 ,
  WORLD_5 ,
  WORLD_6 ,
  WORLD_7 ,
  WORLD_8 ,
  WORLD_9 ,
  WORLD_10 ,
  WORLD_COUNT ,
  LAST_WORLD = WORLD_8 ,
  LAST_SPECIAL_WORLD = WORLD_9 ,
  NORMAL_WORLD_COUNT = LAST_WORLD + 1 ,
  SPECIAL_WORLD_COUNT = LAST_SPECIAL_WORLD - LAST_WORLD
}
 The numbers corresponding to each world. More...