Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Data Structures | Functions | Variables
bowser_puzzle_piece.inc.c File Reference

Data Structures

struct  BowserPuzzlePiece
 

Functions

void bhv_lll_bowser_puzzle_spawn_piece (s16 model, void *behavior, f32 xOffset, f32 zOffset, s8 initialAction, s8 *actionList)
 Spawn a single puzzle piece. More...
 
void bhv_lll_bowser_puzzle_spawn_pieces (f32 pieceWidth)
 Spawn the 14 puzzle pieces. More...
 
void bhv_lll_bowser_puzzle_loop (void)
 
void bhv_lll_bowser_puzzle_piece_action_0 (void)
 
void bhv_lll_bowser_puzzle_piece_action_1 (void)
 
void bhv_lll_bowser_puzzle_piece_update (void)
 
void bhv_lll_bowser_puzzle_piece_move (f32 xOffset, f32 zOffset, s32 duration, UNUSED s32 a3)
 
void bhv_lll_bowser_puzzle_piece_idle (void)
 
void bhv_lll_bowser_puzzle_piece_move_left (void)
 
void bhv_lll_bowser_puzzle_piece_move_right (void)
 
void bhv_lll_bowser_puzzle_piece_move_up (void)
 
void bhv_lll_bowser_puzzle_piece_move_down (void)
 
void bhv_lll_bowser_puzzle_piece_loop (void)
 

Variables

static s8 sPieceActions01 []
 Behavior for the sliding Bowser puzzle in Lethal Lava Land. More...
 
static s8 sPieceActions02 []
 
static s8 sPieceActions05 []
 
static s8 sPieceActions06 []
 
static s8 sPieceActions10 []
 
static s8 sPieceActions09 []
 
static s8 sPieceActions13 []
 
static s8 sPieceActions12 []
 
static s8 sPieceActions08 []
 
static s8 sPieceActions07 []
 
static s8 sPieceActions03 []
 
static s8 sPieceActions04 []
 
static s8 sPieceActions11 []
 
static s8 sPieceActions14 []
 
static struct BowserPuzzlePiece sBowserPuzzlePieces []
 
void(* sBowserPuzzlePieceActions [])(void)
 

Function Documentation

◆ bhv_lll_bowser_puzzle_loop()

void bhv_lll_bowser_puzzle_loop ( void  )

◆ bhv_lll_bowser_puzzle_piece_action_0()

void bhv_lll_bowser_puzzle_piece_action_0 ( void  )

◆ bhv_lll_bowser_puzzle_piece_action_1()

void bhv_lll_bowser_puzzle_piece_action_1 ( void  )

◆ bhv_lll_bowser_puzzle_piece_idle()

void bhv_lll_bowser_puzzle_piece_idle ( void  )

◆ bhv_lll_bowser_puzzle_piece_loop()

void bhv_lll_bowser_puzzle_piece_loop ( void  )

◆ bhv_lll_bowser_puzzle_piece_move()

void bhv_lll_bowser_puzzle_piece_move ( f32  xOffset,
f32  zOffset,
s32  duration,
UNUSED s32  a3 
)

◆ bhv_lll_bowser_puzzle_piece_move_down()

void bhv_lll_bowser_puzzle_piece_move_down ( void  )

◆ bhv_lll_bowser_puzzle_piece_move_left()

void bhv_lll_bowser_puzzle_piece_move_left ( void  )

◆ bhv_lll_bowser_puzzle_piece_move_right()

void bhv_lll_bowser_puzzle_piece_move_right ( void  )

◆ bhv_lll_bowser_puzzle_piece_move_up()

void bhv_lll_bowser_puzzle_piece_move_up ( void  )

◆ bhv_lll_bowser_puzzle_piece_update()

void bhv_lll_bowser_puzzle_piece_update ( void  )

◆ bhv_lll_bowser_puzzle_spawn_piece()

void bhv_lll_bowser_puzzle_spawn_piece ( s16  model,
void behavior,
f32  xOffset,
f32  zOffset,
s8  initialAction,
s8 actionList 
)

Spawn a single puzzle piece.

◆ bhv_lll_bowser_puzzle_spawn_pieces()

void bhv_lll_bowser_puzzle_spawn_pieces ( f32  pieceWidth)

Spawn the 14 puzzle pieces.

Variable Documentation

◆ sBowserPuzzlePieceActions

void(* sBowserPuzzlePieceActions[])(void)
Initial value:
= {
}
void bhv_lll_bowser_puzzle_piece_move_up(void)
Definition: bowser_puzzle_piece.inc.c:239
void bhv_lll_bowser_puzzle_piece_move_left(void)
Definition: bowser_puzzle_piece.inc.c:231
void bhv_lll_bowser_puzzle_piece_action_1(void)
Definition: bowser_puzzle_piece.inc.c:154
void bhv_lll_bowser_puzzle_piece_action_0(void)
Definition: bowser_puzzle_piece.inc.c:148
void bhv_lll_bowser_puzzle_piece_idle(void)
Definition: bowser_puzzle_piece.inc.c:220
void bhv_lll_bowser_puzzle_piece_move_right(void)
Definition: bowser_puzzle_piece.inc.c:235
void bhv_lll_bowser_puzzle_piece_move_down(void)
Definition: bowser_puzzle_piece.inc.c:243

◆ sBowserPuzzlePieces

struct BowserPuzzlePiece sBowserPuzzlePieces[]
static
Initial value:
= {
}
#define MODEL_LLL_BOWSER_PIECE_11
Definition: model_ids.h:257
static s8 sPieceActions02[]
Definition: bowser_puzzle_piece.inc.c:17
#define MODEL_LLL_BOWSER_PIECE_6
Definition: model_ids.h:252
#define MODEL_LLL_BOWSER_PIECE_1
Definition: model_ids.h:247
static s8 sPieceActions14[]
Definition: bowser_puzzle_piece.inc.c:41
#define MODEL_LLL_BOWSER_PIECE_13
Definition: model_ids.h:259
static s8 sPieceActions12[]
Definition: bowser_puzzle_piece.inc.c:29
#define MODEL_LLL_BOWSER_PIECE_3
Definition: model_ids.h:249
static s8 sPieceActions06[]
Definition: bowser_puzzle_piece.inc.c:21
#define MODEL_LLL_BOWSER_PIECE_8
Definition: model_ids.h:254
static s8 sPieceActions04[]
Definition: bowser_puzzle_piece.inc.c:37
#define MODEL_LLL_BOWSER_PIECE_14
Definition: model_ids.h:260
static s8 sPieceActions08[]
Definition: bowser_puzzle_piece.inc.c:31
static s8 sPieceActions07[]
Definition: bowser_puzzle_piece.inc.c:33
#define MODEL_LLL_BOWSER_PIECE_7
Definition: model_ids.h:253
static s8 sPieceActions09[]
Definition: bowser_puzzle_piece.inc.c:25
#define MODEL_LLL_BOWSER_PIECE_2
Definition: model_ids.h:248
#define MODEL_LLL_BOWSER_PIECE_5
Definition: model_ids.h:251
#define MODEL_LLL_BOWSER_PIECE_10
Definition: model_ids.h:256
#define MODEL_LLL_BOWSER_PIECE_4
Definition: model_ids.h:250
#define MODEL_LLL_BOWSER_PIECE_9
Definition: model_ids.h:255
static s8 sPieceActions13[]
Definition: bowser_puzzle_piece.inc.c:27
static s8 sPieceActions11[]
Definition: bowser_puzzle_piece.inc.c:39
static s8 sPieceActions01[]
Behavior for the sliding Bowser puzzle in Lethal Lava Land.
Definition: bowser_puzzle_piece.inc.c:15
static s8 sPieceActions10[]
Definition: bowser_puzzle_piece.inc.c:23
static s8 sPieceActions05[]
Definition: bowser_puzzle_piece.inc.c:19
#define MODEL_LLL_BOWSER_PIECE_12
Definition: model_ids.h:258
static s8 sPieceActions03[]
Definition: bowser_puzzle_piece.inc.c:35

◆ sPieceActions01

s8 sPieceActions01[]
static
Initial value:
= { 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, -1 }

Behavior for the sliding Bowser puzzle in Lethal Lava Land.

◆ sPieceActions02

s8 sPieceActions02[]
static
Initial value:
= { 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, -1 }

◆ sPieceActions03

s8 sPieceActions03[]
static
Initial value:
= { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 6, 2, 2,
5, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, -1 }

◆ sPieceActions04

s8 sPieceActions04[]
static
Initial value:
= { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, -1 }

◆ sPieceActions05

s8 sPieceActions05[]
static
Initial value:
= { 2, 2, 2, 5, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 6, 2, 2, 2, -1 }

◆ sPieceActions06

s8 sPieceActions06[]
static
Initial value:
= { 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, -1 }

◆ sPieceActions07

s8 sPieceActions07[]
static
Initial value:
= { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2,
2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, -1 }

◆ sPieceActions08

s8 sPieceActions08[]
static
Initial value:
= { 2, 2, 2, 2, 2, 2, 2, 2, 2, 6, 2, 2, 2, 2,
2, 2, 5, 2, 2, 2, 2, 2, 2, 2, 2, 2, -1 }

◆ sPieceActions09

s8 sPieceActions09[]
static
Initial value:
= { 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, -1 }

◆ sPieceActions10

s8 sPieceActions10[]
static
Initial value:
= { 2, 2, 2, 2, 2, 5, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 6, 2, 2, 2, 2, 2, -1 }

◆ sPieceActions11

s8 sPieceActions11[]
static
Initial value:
= { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, -1 }

◆ sPieceActions12

s8 sPieceActions12[]
static
Initial value:
= { 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2,
2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, -1 }

◆ sPieceActions13

s8 sPieceActions13[]
static
Initial value:
= { 2, 2, 2, 2, 2, 2, 2, 5, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 6, 2, 2, 2, 2, 2, 2, 2, -1 }

◆ sPieceActions14

s8 sPieceActions14[]
static
Initial value:
= { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, -1 }