102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
constants.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define LEVEL_ENTITY_SPAWN_ON_LOAD   ((int32_t)(1 << 2))
#define LEVEL_ENTITY_DESTROY_ON_UNLOAD   ((int32_t)(1 << 6))
#define LEVEL_NODE_TRANSITION_ELIGIBLE   ((int32_t)(1 << 0))
#define LEVEL_NODE_TRANSITION_INITIALIZED   ((int32_t)(1 << 0))
#define LEVEL_NODE_TRANSITION_ACTIVE   ((int32_t)(1 << 12))
#define LEVEL_COMPLETION_ITEM_0   ((int32_t)(1 << 0))
#define LEVEL_COMPLETION_ITEM_1   ((int32_t)(1 << 1))
#define LEVEL_COMPLETION_ITEM_2   ((int32_t)(1 << 2))
#define LEVEL_COMPLETION_ITEM_3   ((int32_t)(1 << 3))
#define LEVEL_COMPLETION_ITEM_4   ((int32_t)(1 << 4))
#define LEVEL_COMPLETION_ITEM_5   ((int32_t)(1 << 5))
#define LEVEL_COMPLETION_ALL   (LEVEL_COMPLETION_ITEM_0 | LEVEL_COMPLETION_ITEM_1 | LEVEL_COMPLETION_ITEM_2 | LEVEL_COMPLETION_ITEM_3 | LEVEL_COMPLETION_ITEM_4 | LEVEL_COMPLETION_ITEM_5)
#define LEVEL_FINAL_WORLD_PERFECT_SCORES   ((int32_t)(1 << 4))
#define LEVEL_FINAL_WORLD_ALL_COLLECTIBLES   ((int32_t)(1 << 5))
#define LEVEL_WORLD_COMPLETION_ALL   (LEVEL_COMPLETION_ALL | (LEVEL_COMPLETION_ALL << 6) | (LEVEL_COMPLETION_ALL << 12) | (LEVEL_COMPLETION_ALL << 18))
#define LEVEL_PERFECT_SCORE   100
#define LEVEL_CAMPAIGN_SAVE_COUNT   16
#define LEVEL_TRANSITION_FRAMES_PER_SECOND   30
#define LEVEL_TRANSITION_TARGET_NONE   (-1)
#define LEVEL_MENU_FADE_FRAMES   10
#define LEVEL_MENU_UNLOAD_DELAY_FRAMES   50
#define LEVEL_DEFAULT_SCALE   150.0f
#define LEVEL_RENDER_DISTANCE_EXTENDED   10.9219999f
#define LEVEL_RENDER_DISTANCE_STANDARD   1.09220004f
#define LEVEL_MENU_BACKGROUND_TOP_RGB   0xc147d0
#define LEVEL_MENU_BACKGROUND_BOTTOM_RGB   0xf6867a
#define LEVEL_MENU_ROW_SPACING   32
#define LEVEL_MENU_HIGHLIGHT_GRADIENT_RATE   0x30003
#define LEVEL_MENU_HIGHLIGHT_GRADIENT_COLOR   0xff007f
#define LEVEL_MENU_FADE_IN_TIMER   0xf9
#define LEVEL_MENU_FADE_IN_FRAMES   7
#define LEVEL_MENU_MUSIC_FADE_OUT_FRAMES   9
#define LEVEL_START_PUPPY_COUNT   4
#define LEVEL_CAMPAIGN_LAST_MENU_ORDINAL   19
#define LEVEL_INVALID_SAVE_INDEX   (-1)
#define LEVEL_ID_NONE   0xffff
#define LEVEL_MENU_HIGHLIGHT_GRADIENT_STEPS   2
#define LEVEL_PROGRESS_AWARD_POINTS   5
#define LEVEL_PROGRESS_COMPLETE_POINTS   800
#define LEVEL_PROGRESS_POINTS_PER_PERCENT   8
#define LEVEL_PROGRESS_COMPLETE_PERCENT   100
#define LEVEL_PROGRESS_INCOMPLETE_MAX_PERCENT   99

Enumerations

enum  Level_TransitionSelector { LEVEL_TRANSITION_DEFAULT = 200 , LEVEL_TRANSITION_IDLE = 255 }
enum  Level_LoadMenuState {
  LEVEL_LOAD_INITIALIZE = 0 , LEVEL_LOAD_SAVED_GAME = 1 , LEVEL_LOAD_TITLE = 2 , LEVEL_LOAD_MAIN_MENU = 3 ,
  LEVEL_LOAD_NEW_STORY = 4 , LEVEL_LOAD_OPEN_WORLD_MENU = 5 , LEVEL_LOAD_WORLD_MENU = 6 , LEVEL_LOAD_STORY = 7 ,
  LEVEL_LOAD_WORLD_HUB = 8 , LEVEL_LOAD_DIRECT = 10
}
enum  Level_StreamState {
  LEVEL_STREAM_TEXTURES = 0 , LEVEL_STREAM_WAIT_TEXTURES = 1 , LEVEL_STREAM_AUDIO = 2 , LEVEL_STREAM_WAIT_AUDIO = 4 ,
  LEVEL_STREAM_DATA = 5 , LEVEL_STREAM_FIXUP = 7
}
enum  Level_MainMenuState {
  LEVEL_MAIN_MENU_INITIALIZE = 0 , LEVEL_MAIN_MENU_INPUT = 1 , LEVEL_MAIN_MENU_OPTIONS = 2 , LEVEL_MAIN_MENU_FADE_OUT = 3 ,
  LEVEL_MAIN_MENU_WAIT_UNLOAD = 4
}
enum  Level_WorldSelectState { LEVEL_WORLD_SELECT_INITIALIZE = 0 , LEVEL_WORLD_SELECT_INPUT = 1 , LEVEL_WORLD_SELECT_FADE_OUT = 2 , LEVEL_WORLD_SELECT_WAIT_UNLOAD = 3 }
enum  Level_MainMenuChoice { LEVEL_MENU_NEW_STORY = 0 , LEVEL_MENU_WORLD_SELECT = 1 , LEVEL_MENU_OPTIONS = 2 , LEVEL_MENU_CHOICE_COUNT = 3 }
enum  Level_IdBoundary {
  LEVEL_WORLD_HUB = 6 , LEVEL_CAMPAIGN_FIRST = 7 , LEVEL_WORLD_ONE_BOSS = 11 , LEVEL_WORLD_TWO_BOSS = 16 ,
  LEVEL_WORLD_THREE_BOSS = 21 , LEVEL_WORLD_FOUR_BOSS = 26 , LEVEL_BONUS_FIRST = 27 , LEVEL_BONUS_SECOND = 28 ,
  LEVEL_BONUS_THIRD = 29 , LEVEL_BONUS_FOURTH = 30 , LEVEL_BONUS_FIFTH = 31 , LEVEL_AFTER_BONUS = 33
}
enum  Level_MenuResult { LEVEL_MENU_RESULT_START_STORY = 0 , LEVEL_MENU_RESULT_OPEN_WORLD_SELECT = 1 , LEVEL_MENU_RESULT_START_WORLD_HUB = 2 , LEVEL_MENU_RESULT_PENDING = 3 }
enum  Level_MainMenuString { LEVEL_STRING_NEW_STORY = 15 , LEVEL_STRING_WORLD_SELECT = 16 , LEVEL_STRING_OPTIONS = 11 }
enum  Level_BonusCheckpointState { LEVEL_BONUS_CHECKPOINT_RESET = 2 , LEVEL_BONUS_CHECKPOINT_FIRST = 3 }
enum  Level_BonusCommandTarget { LEVEL_BONUS_UNLOCK_COMMAND_TARGET = -19884 }
enum  Level_WorldIndex { LEVEL_WORLD_INDEX_FIRST = 0 , LEVEL_WORLD_INDEX_SECOND = 1 , LEVEL_WORLD_INDEX_THIRD = 2 , LEVEL_WORLD_INDEX_FOURTH = 3 }
enum  Level_SaveLoadStep { LEVEL_SAVE_LOAD_BEGIN = 0 , LEVEL_SAVE_LOAD_CONTINUE = 1 }

Macro Definition Documentation

◆ LEVEL_CAMPAIGN_LAST_MENU_ORDINAL

#define LEVEL_CAMPAIGN_LAST_MENU_ORDINAL   19

Definition at line 113 of file constants.h.

◆ LEVEL_CAMPAIGN_SAVE_COUNT

#define LEVEL_CAMPAIGN_SAVE_COUNT   16

Definition at line 23 of file constants.h.

◆ LEVEL_COMPLETION_ALL

◆ LEVEL_COMPLETION_ITEM_0

#define LEVEL_COMPLETION_ITEM_0   ((int32_t)(1 << 0))

Definition at line 12 of file constants.h.

◆ LEVEL_COMPLETION_ITEM_1

#define LEVEL_COMPLETION_ITEM_1   ((int32_t)(1 << 1))

Definition at line 13 of file constants.h.

◆ LEVEL_COMPLETION_ITEM_2

#define LEVEL_COMPLETION_ITEM_2   ((int32_t)(1 << 2))

Definition at line 14 of file constants.h.

◆ LEVEL_COMPLETION_ITEM_3

#define LEVEL_COMPLETION_ITEM_3   ((int32_t)(1 << 3))

Definition at line 15 of file constants.h.

◆ LEVEL_COMPLETION_ITEM_4

#define LEVEL_COMPLETION_ITEM_4   ((int32_t)(1 << 4))

Definition at line 16 of file constants.h.

◆ LEVEL_COMPLETION_ITEM_5

#define LEVEL_COMPLETION_ITEM_5   ((int32_t)(1 << 5))

Definition at line 17 of file constants.h.

◆ LEVEL_DEFAULT_SCALE

#define LEVEL_DEFAULT_SCALE   150.0f

Definition at line 101 of file constants.h.

◆ LEVEL_ENTITY_DESTROY_ON_UNLOAD

#define LEVEL_ENTITY_DESTROY_ON_UNLOAD   ((int32_t)(1 << 6))

Definition at line 8 of file constants.h.

◆ LEVEL_ENTITY_SPAWN_ON_LOAD

#define LEVEL_ENTITY_SPAWN_ON_LOAD   ((int32_t)(1 << 2))

Definition at line 7 of file constants.h.

◆ LEVEL_FINAL_WORLD_ALL_COLLECTIBLES

#define LEVEL_FINAL_WORLD_ALL_COLLECTIBLES   ((int32_t)(1 << 5))

Definition at line 20 of file constants.h.

◆ LEVEL_FINAL_WORLD_PERFECT_SCORES

#define LEVEL_FINAL_WORLD_PERFECT_SCORES   ((int32_t)(1 << 4))

Definition at line 19 of file constants.h.

◆ LEVEL_ID_NONE

#define LEVEL_ID_NONE   0xffff

Definition at line 115 of file constants.h.

◆ LEVEL_INVALID_SAVE_INDEX

#define LEVEL_INVALID_SAVE_INDEX   (-1)

Definition at line 114 of file constants.h.

◆ LEVEL_MENU_BACKGROUND_BOTTOM_RGB

#define LEVEL_MENU_BACKGROUND_BOTTOM_RGB   0xf6867a

Definition at line 105 of file constants.h.

◆ LEVEL_MENU_BACKGROUND_TOP_RGB

#define LEVEL_MENU_BACKGROUND_TOP_RGB   0xc147d0

Definition at line 104 of file constants.h.

◆ LEVEL_MENU_FADE_FRAMES

#define LEVEL_MENU_FADE_FRAMES   10

Definition at line 98 of file constants.h.

◆ LEVEL_MENU_FADE_IN_FRAMES

#define LEVEL_MENU_FADE_IN_FRAMES   7

Definition at line 110 of file constants.h.

◆ LEVEL_MENU_FADE_IN_TIMER

#define LEVEL_MENU_FADE_IN_TIMER   0xf9

Definition at line 109 of file constants.h.

◆ LEVEL_MENU_HIGHLIGHT_GRADIENT_COLOR

#define LEVEL_MENU_HIGHLIGHT_GRADIENT_COLOR   0xff007f

Definition at line 108 of file constants.h.

◆ LEVEL_MENU_HIGHLIGHT_GRADIENT_RATE

#define LEVEL_MENU_HIGHLIGHT_GRADIENT_RATE   0x30003

Definition at line 107 of file constants.h.

◆ LEVEL_MENU_HIGHLIGHT_GRADIENT_STEPS

#define LEVEL_MENU_HIGHLIGHT_GRADIENT_STEPS   2

Definition at line 144 of file constants.h.

◆ LEVEL_MENU_MUSIC_FADE_OUT_FRAMES

#define LEVEL_MENU_MUSIC_FADE_OUT_FRAMES   9

Definition at line 111 of file constants.h.

◆ LEVEL_MENU_ROW_SPACING

#define LEVEL_MENU_ROW_SPACING   32

Definition at line 106 of file constants.h.

◆ LEVEL_MENU_UNLOAD_DELAY_FRAMES

#define LEVEL_MENU_UNLOAD_DELAY_FRAMES   50

Definition at line 99 of file constants.h.

◆ LEVEL_NODE_TRANSITION_ACTIVE

#define LEVEL_NODE_TRANSITION_ACTIVE   ((int32_t)(1 << 12))

Definition at line 11 of file constants.h.

◆ LEVEL_NODE_TRANSITION_ELIGIBLE

#define LEVEL_NODE_TRANSITION_ELIGIBLE   ((int32_t)(1 << 0))

Definition at line 9 of file constants.h.

◆ LEVEL_NODE_TRANSITION_INITIALIZED

#define LEVEL_NODE_TRANSITION_INITIALIZED   ((int32_t)(1 << 0))

Definition at line 10 of file constants.h.

◆ LEVEL_PERFECT_SCORE

#define LEVEL_PERFECT_SCORE   100

Definition at line 22 of file constants.h.

◆ LEVEL_PROGRESS_AWARD_POINTS

#define LEVEL_PROGRESS_AWARD_POINTS   5

Definition at line 145 of file constants.h.

◆ LEVEL_PROGRESS_COMPLETE_PERCENT

#define LEVEL_PROGRESS_COMPLETE_PERCENT   100

Definition at line 148 of file constants.h.

◆ LEVEL_PROGRESS_COMPLETE_POINTS

#define LEVEL_PROGRESS_COMPLETE_POINTS   800

Definition at line 146 of file constants.h.

◆ LEVEL_PROGRESS_INCOMPLETE_MAX_PERCENT

#define LEVEL_PROGRESS_INCOMPLETE_MAX_PERCENT   99

Definition at line 149 of file constants.h.

◆ LEVEL_PROGRESS_POINTS_PER_PERCENT

#define LEVEL_PROGRESS_POINTS_PER_PERCENT   8

Definition at line 147 of file constants.h.

◆ LEVEL_RENDER_DISTANCE_EXTENDED

#define LEVEL_RENDER_DISTANCE_EXTENDED   10.9219999f

Definition at line 102 of file constants.h.

◆ LEVEL_RENDER_DISTANCE_STANDARD

#define LEVEL_RENDER_DISTANCE_STANDARD   1.09220004f

Definition at line 103 of file constants.h.

◆ LEVEL_START_PUPPY_COUNT

#define LEVEL_START_PUPPY_COUNT   4

Definition at line 112 of file constants.h.

◆ LEVEL_TRANSITION_FRAMES_PER_SECOND

#define LEVEL_TRANSITION_FRAMES_PER_SECOND   30

Definition at line 24 of file constants.h.

◆ LEVEL_TRANSITION_TARGET_NONE

#define LEVEL_TRANSITION_TARGET_NONE   (-1)

Definition at line 25 of file constants.h.

◆ LEVEL_WORLD_COMPLETION_ALL

#define LEVEL_WORLD_COMPLETION_ALL   (LEVEL_COMPLETION_ALL | (LEVEL_COMPLETION_ALL << 6) | (LEVEL_COMPLETION_ALL << 12) | (LEVEL_COMPLETION_ALL << 18))

Definition at line 21 of file constants.h.

Enumeration Type Documentation

◆ Level_BonusCheckpointState

Enumerator
LEVEL_BONUS_CHECKPOINT_RESET 
LEVEL_BONUS_CHECKPOINT_FIRST 

Definition at line 132 of file constants.h.

◆ Level_BonusCommandTarget

Enumerator
LEVEL_BONUS_UNLOCK_COMMAND_TARGET 

Definition at line 139 of file constants.h.

◆ Level_IdBoundary

Enumerator
LEVEL_WORLD_HUB 
LEVEL_CAMPAIGN_FIRST 
LEVEL_WORLD_ONE_BOSS 
LEVEL_WORLD_TWO_BOSS 
LEVEL_WORLD_THREE_BOSS 
LEVEL_WORLD_FOUR_BOSS 
LEVEL_BONUS_FIRST 
LEVEL_BONUS_SECOND 
LEVEL_BONUS_THIRD 
LEVEL_BONUS_FOURTH 
LEVEL_BONUS_FIFTH 
LEVEL_AFTER_BONUS 

Definition at line 82 of file constants.h.

◆ Level_LoadMenuState

Enumerator
LEVEL_LOAD_INITIALIZE 
LEVEL_LOAD_SAVED_GAME 
LEVEL_LOAD_TITLE 
LEVEL_LOAD_MAIN_MENU 
LEVEL_LOAD_NEW_STORY 
LEVEL_LOAD_OPEN_WORLD_MENU 
LEVEL_LOAD_WORLD_MENU 
LEVEL_LOAD_STORY 
LEVEL_LOAD_WORLD_HUB 
LEVEL_LOAD_DIRECT 

Definition at line 33 of file constants.h.

◆ Level_MainMenuChoice

Enumerator
LEVEL_MENU_NEW_STORY 
LEVEL_MENU_WORLD_SELECT 
LEVEL_MENU_OPTIONS 
LEVEL_MENU_CHOICE_COUNT 

Definition at line 74 of file constants.h.

◆ Level_MainMenuState

Enumerator
LEVEL_MAIN_MENU_INITIALIZE 
LEVEL_MAIN_MENU_INPUT 
LEVEL_MAIN_MENU_OPTIONS 
LEVEL_MAIN_MENU_FADE_OUT 
LEVEL_MAIN_MENU_WAIT_UNLOAD 

Definition at line 57 of file constants.h.

◆ Level_MainMenuString

Enumerator
LEVEL_STRING_NEW_STORY 
LEVEL_STRING_WORLD_SELECT 
LEVEL_STRING_OPTIONS 

Definition at line 125 of file constants.h.

◆ Level_MenuResult

Enumerator
LEVEL_MENU_RESULT_START_STORY 
LEVEL_MENU_RESULT_OPEN_WORLD_SELECT 
LEVEL_MENU_RESULT_START_WORLD_HUB 
LEVEL_MENU_RESULT_PENDING 

Definition at line 117 of file constants.h.

◆ Level_SaveLoadStep

Enumerator
LEVEL_SAVE_LOAD_BEGIN 
LEVEL_SAVE_LOAD_CONTINUE 

Definition at line 159 of file constants.h.

◆ Level_StreamState

Enumerator
LEVEL_STREAM_TEXTURES 
LEVEL_STREAM_WAIT_TEXTURES 
LEVEL_STREAM_AUDIO 
LEVEL_STREAM_WAIT_AUDIO 
LEVEL_STREAM_DATA 
LEVEL_STREAM_FIXUP 

Definition at line 47 of file constants.h.

◆ Level_TransitionSelector

Enumerator
LEVEL_TRANSITION_DEFAULT 
LEVEL_TRANSITION_IDLE 

Definition at line 27 of file constants.h.

◆ Level_WorldIndex

Enumerator
LEVEL_WORLD_INDEX_FIRST 
LEVEL_WORLD_INDEX_SECOND 
LEVEL_WORLD_INDEX_THIRD 
LEVEL_WORLD_INDEX_FOURTH 

Definition at line 151 of file constants.h.

◆ Level_WorldSelectState

Enumerator
LEVEL_WORLD_SELECT_INITIALIZE 
LEVEL_WORLD_SELECT_INPUT 
LEVEL_WORLD_SELECT_FADE_OUT 
LEVEL_WORLD_SELECT_WAIT_UNLOAD 

Definition at line 66 of file constants.h.