Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
entity.h File Reference

Go to the source code of this file.

Data Structures

struct  SaveBlockData
 
struct  SwitchData
 
struct  ShatteringBlockData
 
struct  BlockData
 
struct  SuperBlockContentData
 
struct  HeartBlockContentData
 
struct  WoodenCrateData
 
struct  ChestData
 
struct  BlueWarpPipeData
 
struct  SimpleSpringData
 
struct  HiddenPanelData
 
struct  SignpostData
 
struct  PadlockData
 
struct  BoardedFloorData
 
struct  BombableRockData
 
struct  TweesterData
 
struct  StarBoxLauncherData
 
struct  CymbalPlantData
 
struct  PinkFlowerData
 
struct  SpinningFlowerData
 
struct  TrumpetPlantData
 
struct  MunchlesiaData
 
struct  ArrowSignData
 
struct  EntityModel
 
union  EntityModel.gfx
 

Macros

#define es_End   ENTITY_SCRIPT_OP_End,
 
#define es_Jump(script)   ENTITY_SCRIPT_OP_Jump, (s32)script,
 
#define es_Call(func)   ENTITY_SCRIPT_OP_Call, (s32)func,
 
#define es_SetCallback(func, time)   ENTITY_SCRIPT_OP_SetCallback, time, (s32)func,
 
#define es_Goto(labelId)   ENTITY_SCRIPT_OP_Goto, labelId,
 
#define es_Restart   ENTITY_SCRIPT_OP_Goto, 0,
 
#define es_Label(labelId)   ENTITY_SCRIPT_OP_Label, labelId,
 
#define es_RestartBoundScript   ENTITY_SCRIPT_OP_RestartBoundScript,
 
#define es_SetFlags(flags)   ENTITY_SCRIPT_OP_SetFlags, flags,
 
#define es_ClearFlags(flags)   ENTITY_SCRIPT_OP_ClearFlags, flags,
 
#define es_PlaySound(soundId)   ENTITY_SCRIPT_OP_PlaySound, soundId,
 
#define ems_End   ENTITY_MODEL_SCRIPT_OP_End,
 
#define ems_Draw(dlist, holdTime)   ENTITY_MODEL_SCRIPT_OP_Draw, holdTime, (s32)dlist,
 
#define ems_Restart   ENTITY_MODEL_SCRIPT_OP_Restart,
 
#define ems_Loop   ENTITY_MODEL_SCRIPT_OP_Loop,
 
#define ems_SetRenderMode(mode)   ENTITY_MODEL_SCRIPT_OP_SetRenderMode, mode,
 
#define ems_SetFlags(flags)   ENTITY_MODEL_SCRIPT_OP_SetFlags, flags,
 
#define ems_ClearFlags(flags)   ENTITY_MODEL_SCRIPT_OP_ClearFlags, flags,
 
#define ems_DrawImage(raster, palette, width, height, holdTime)   ENTITY_MODEL_SCRIPT_OP_DrawImage, holdTime, (s32)raster, (s32)palette, width, height,
 
#define STANDARD_ENTITY_MODEL_SCRIPT(gfx, renderMode)
 
#define ENTITY_ADDR(entity, type, data)   (type)((s32)(entity->gfxBaseAddr) + ((s32)(data) & 0xFFFF))
 
#define ENTITY_ROM(name)   { entity_model_##name##_ROM_START, entity_model_##name##_ROM_END }
 
#define BLOCK_GRID_SIZE   25
 
#define TWEESTER_PATH_STOP   0x80000000
 
#define TWEESTER_PATH_LOOP   0x80000001
 
#define FRAGMENT_BUF_SIZE   13
 

Typedefs

typedef s32 EntityScript[]
 
typedef s32 EntityModelScript[]
 
typedef Vec3i TweesterPath[]
 
typedef EntityModelEntityModelList[256]
 

Enumerations

enum  {
  ENTITY_SCRIPT_OP_End , ENTITY_SCRIPT_OP_Jump , ENTITY_SCRIPT_OP_Call , ENTITY_SCRIPT_OP_SetCallback ,
  ENTITY_SCRIPT_OP_Goto , ENTITY_SCRIPT_OP_Label , ENTITY_SCRIPT_OP_RestartBoundScript , ENTITY_SCRIPT_OP_SetFlags ,
  ENTITY_SCRIPT_OP_ClearFlags , ENTITY_SCRIPT_OP_PlaySound
}
 
enum  {
  ENTITY_MODEL_SCRIPT_OP_End , ENTITY_MODEL_SCRIPT_OP_Draw , ENTITY_MODEL_SCRIPT_OP_Restart , ENTITY_MODEL_SCRIPT_OP_Loop ,
  ENTITY_MODEL_SCRIPT_OP_SetRenderMode , ENTITY_MODEL_SCRIPT_OP_SetFlags , ENTITY_MODEL_SCRIPT_OP_ClearFlags , ENTITY_MODEL_SCRIPT_OP_DrawImage
}
 

Functions

EntityModelget_entity_model (s32 idx)
 
s32 load_entity_model (EntityModelScript *cmdList)
 
s32 ALT_load_entity_model (EntityModelScript *cmdList)
 
void entity_set_render_script (Entity *entity, EntityModelScript *cmdList)
 
void set_entity_model_render_command_list (s32 idx, EntityModelScript *cmdList)
 
void virtual_entity_list_render_world (void)
 
void virtual_entity_list_render_UI (void)
 

Variables

s32 CreateEntityVarArgBuffer []
 
ShadowBlueprint CircularShadowA
 
ShadowBlueprint CircularShadowB
 
ShadowBlueprint SquareShadow
 
EntityBlueprint Entity_SavePoint
 
EntityBlueprint Entity_RedSwitch
 
EntityBlueprint Entity_BlueSwitch
 
EntityBlueprint Entity_HugeBlueSwitch
 
EntityBlueprint Entity_GreenStompSwitch
 
EntityBlueprint Entity_InertYellowBlock
 
EntityBlueprint Entity_InertRedBlock
 
EntityBlueprint Entity_BrickBlock
 
EntityBlueprint Entity_MulticoinBlock
 
EntityBlueprint Entity_Hammer1Block
 
EntityBlueprint Entity_Hammer1BlockWideX
 
EntityBlueprint Entity_Hammer1BlockWideZ
 
EntityBlueprint Entity_Hammer1BlockTiny
 
EntityBlueprint Entity_Hammer2Block
 
EntityBlueprint Entity_Hammer2BlockWideX
 
EntityBlueprint Entity_Hammer2BlockWideZ
 
EntityBlueprint Entity_Hammer2BlockTiny
 
EntityBlueprint Entity_Hammer3Block
 
EntityBlueprint Entity_Hammer3BlockWideX
 
EntityBlueprint Entity_Hammer3BlockWideZ
 
EntityBlueprint Entity_Hammer3BlockTiny
 
EntityBlueprint Entity_PushBlock
 
EntityBlueprint Entity_PowBlock
 
EntityBlueprint Entity_YellowBlock
 
EntityBlueprint Entity_HiddenYellowBlock
 
EntityBlueprint Entity_RedBlock
 
EntityBlueprint Entity_HiddenRedBlock
 
EntityBlueprint Entity_TriggerBlock
 
EntityBlueprint Entity_HeartBlock
 
EntityBlueprint Entity_SuperBlock
 
EntityBlueprint Entity_ScriptSpring
 
EntityBlueprint Entity_SimpleSpring
 
EntityBlueprint Entity_HiddenPanel
 
EntityBlueprint Entity_GiantChest
 
EntityBlueprint Entity_Chest
 
EntityBlueprint Entity_WoodenCrate
 
EntityBlueprint Entity_BlueWarpPipe
 
EntityBlueprint Entity_Signpost
 
EntityBlueprint Entity_Padlock
 
EntityBlueprint Entity_PadlockRedFrame
 
EntityBlueprint Entity_PadlockRedFace
 
EntityBlueprint Entity_PadlockBlueFace
 
EntityBlueprint Entity_BoardedFloor
 
EntityBlueprint Entity_BombableRock
 
EntityBlueprint Entity_BombableRockWide
 
EntityBlueprint Entity_Tweester
 
EntityBlueprint Entity_StarBoxLauncher
 
EntityBlueprint Entity_CymbalPlant
 
EntityBlueprint Entity_PinkFlower
 
EntityBlueprint Entity_SpinningFlower
 
EntityBlueprint Entity_BellbellPlant
 
EntityBlueprint Entity_TrumpetPlant
 
EntityBlueprint Entity_Munchlesia
 
EntityBlueprint Entity_ArrowSign
 

Data Structure Documentation

◆ SaveBlockData

struct SaveBlockData
Data Fields
char unk_0[4]
s16 angle
char unk_6[0x1A]

◆ SwitchData

struct SwitchData
Data Fields
f32 fallVel
f32 deltaScaleX
f32 deltaScaleY
char unk_0C[4]
s8 animStateScaleX
s8 animStateScaleY
Vec3f baseScale
u16 areaFlagIndex
s16 greenMotionTimer
s16 scaleAnimTimer
struct Entity * linkedSwitch

◆ ShatteringBlockData

struct ShatteringBlockData
Data Fields
u16 fragmentFlags[25]
Gfx ** fragmentDisplayLists
f32 originalPosY
s16 alpha
s16 fadeOutCounter
s8 fragmentRebounds[25]
s8 fragmentRotSpeed[25]
u8 fragmentMoveAngle[25]
u8 fragmentRotX[25]
u8 fragmentRotY[25]
f32 fragmentPosX[25]
f32 fragmentPosY[25]
f32 fragmentPosZ[25]
f32 fragmentFallSpeed[25]

◆ BlockData

struct BlockData
Data Fields
u8 parentEntityIndex
char unk_01[2]
s8 empty
s16 coinsLeft
s16 timeLeft
char unk_08[2]
u16 gameFlagIndex
char unk_0C[2]
s16 sinkingTimer
s16 item
s16 childEntityIndex
f32 initialY
f32 recoilInterpPhase
char unk_1C[0x4]

◆ SuperBlockContentData

struct SuperBlockContentData
Data Fields
u8 parentEntityIndex
u8 unk_01
s8 effectTimer
s8 unk_03
f32 unk_04
u8 paletteTimer
u8 paletteArrOffset
u8 isHidden
char unk_0B
s32 unk_0C
Mtx unk_10
Mtx unk_50
Mtx unk_90
u16 yawBufferPos
f32 yawBuffer[20]
s32 unk_124
Gfx * gfx1
Gfx * gfx2

◆ HeartBlockContentData

struct HeartBlockContentData
Data Fields
u8 parentEntityIndex
u8 state
s8 sparkleTimer
s8 sparkleTrailTimer
f32 sparkleTrailPosY
u8 heartbeatTimer
u8 unk_09
u8 sparkleEffectType
char unk_0B
s32 unk_0C
s32 unk_10
f32 riseVel
f32 sparkleTrailAngle
f32 sparkleTrailRadius
f32 bouncePhase
u16 yawBufferPos
s16 unk_26
f32 yawBuffer[10]
f32 unk_50
f32 rotRate
Mtx unk_58
Mtx unk_98

◆ WoodenCrateData

struct WoodenCrateData
Data Fields
s32 itemID
u16 globalFlagIndex
u8 unk_06[2]
Gfx ** fragmentsGfx
f32 basePosY
s8 fragmentRebounds[36]
u8 fragmentMoveAngle[36]
u8 fragmentRotX[36]
u8 fragmentRotY[36]
u8 fragmentLateralSpeed[36]
f32 fragmentRotSpeed[36]
f32 fragmentPosX[36]
f32 fragmentPosY[36]
f32 fragmentPosZ[36]
f32 fragmentFallSpeed[36]

◆ ChestData

struct ChestData
Data Fields
u16 gameFlagIndex
s16 giveItemTimer
u8 state
u8 openState
s8 postLidAnimDelay
s8 unk_07
f32 lidAngle
f32 lidAnimInterpPhase
s32 itemID
s32 itemEntityIndex
Vec3f itemEntityPos
f32 giveItemRadiusInterpPhase
f32 giveItemHeightInterpPhase
f32 itemVelY
s8 gotItemDone
char unk_31[3]
struct EffectInstance * gotItemEffect

◆ BlueWarpPipeData

struct BlueWarpPipeData
Data Fields
s32 unk_00
s32 timer
b32 isRaised
s32 entryID
EvtScript * onEnterPipeEvt
s32 flagIndex
f32 finalPosY

◆ SimpleSpringData

struct SimpleSpringData
Data Fields
s32 launchVel

◆ HiddenPanelData

struct HiddenPanelData
Data Fields
s8 state
s8 timer
s8 unk_02
s8 needSpawnItem
s8 unk_04
s8 unk_05
u16 pickupVar
s32 standingNpcIndex
s32 npcFlags
s32 itemID
s32 spawnedItemIndex
Vec3i spawnedItemPos
f32 initialY
f32 riseVel
f32 riseInterpPhase
f32 rotSpeed
Matrix4f entityMatrix
u16 modelID
char unk_76[0x2]
Gfx * renderDList

◆ SignpostData

struct SignpostData
Data Fields
char unk_00[8]

◆ PadlockData

struct PadlockData
Data Fields
f32 pushSpeed
f32 shacklePos
f32 fallSpeed
f32 rotSpeed
u8 blinkCounter
s8 timer
s8 state
char unk_13
Mtx * shackleMtx
Gfx * shackleGfx

◆ BoardedFloorData

struct BoardedFloorData
Data Fields
Gfx ** fragmentsGfx
f32 inititalY
s8 fragmentRebounds[13]
u8 fragmentMoveAngle[13]
u8 fragmentRotX[13]
u8 fragmentRotY[13]
u8 fragmentLateralSpeed[13]
f32 fragmentRotSpeed[13]
f32 fragmentPosX[13]
f32 fragmentPosY[13]
f32 fragmentPosZ[13]
f32 fragmentFallSpeed[13]

◆ BombableRockData

struct BombableRockData
Data Fields
Gfx ** fragmentsGfx
f32 inititalY
s8 fragmentRebounds[6]
u8 fragmentMoveAngle[6]
u8 fragmentRotX[6]
u8 fragmentRotY[6]
u8 fragmentLateralSpeed[6]
f32 fragmentRotSpeed[6]
f32 fragmentPosX[6]
f32 fragmentPosY[6]
f32 fragmentPosZ[6]
f32 fragmentFallSpeed[6]

◆ TweesterData

struct TweesterData
Data Fields
s8 unk_00
s8 faceAnimState
s8 faceAnimTimer
s8 faceAnimTexOffset
f32 rotSpeed
f32 innerWhirlRotY
f32 outerWhirlRotY
Mtx mtxInnerWhirl
Mtx mtxOuterWhirl
s16 innerWhirlTexOffsetX
s16 innerWhirlTexOffsetY
s16 outerWhirlTexOffsetX
s16 outerWhirlTexOffsetY
s16 frameCounter
s32 * curPath
s32 ** paths
s16 targetX
s16 targetY
s16 targetZ
s16 pathOffset
char unk_AC[12]
f32 yaw
char unk_BC[4]

◆ StarBoxLauncherData

struct StarBoxLauncherData
Data Fields
s8 state
s8 timer
s8 flags
s8 faceDataIndex
s8 faceAnimTimer
s8 faceTexOffset
f32 basePosX
f32 basePosZ
f32 basePosY
f32 riseSpeedPhase
f32 riseVel
f32 rotZPhase
f32 maxRotZ

◆ CymbalPlantData

struct CymbalPlantData
Data Fields
u8 state
s8 unk_01
s16 timer
f32 angle
f32 dist

◆ PinkFlowerData

struct PinkFlowerData
Data Fields
u16 state
u16 timer
u16 linkedEntityIndex
f32 initialRotY

◆ SpinningFlowerData

struct SpinningFlowerData
Data Fields
s16 unk_00
s8 state
Vec3f rot
s32 unk_10
f32 spinSpeed
s32 unk_18
char unk_1C[0x0C]
Vec3s goalPos
Mtx unk_30

◆ TrumpetPlantData

struct TrumpetPlantData
Data Fields
s32 numCoins

◆ MunchlesiaData

struct MunchlesiaData
Data Fields
s32 unk_00
s8 unk_04[0x8]
f32 unk_0C
f32 unk_10
f32 unk_14
f32 unk_18

◆ ArrowSignData

struct ArrowSignData
Data Fields
s32 unk_00
f32 angle
f32 unk_08
f32 unk_0C

◆ EntityModel.gfx

union EntityModel.gfx
Data Fields
Gfx * displayList
SpriteRasterInfo * imageData

Macro Definition Documentation

◆ es_End

#define es_End   ENTITY_SCRIPT_OP_End,

Definition at line 35 of file entity.h.

◆ es_Jump

#define es_Jump ( script)    ENTITY_SCRIPT_OP_Jump, (s32)script,

Definition at line 36 of file entity.h.

◆ es_Call

#define es_Call ( func)    ENTITY_SCRIPT_OP_Call, (s32)func,

Definition at line 37 of file entity.h.

◆ es_SetCallback

#define es_SetCallback ( func,
time )   ENTITY_SCRIPT_OP_SetCallback, time, (s32)func,

Definition at line 38 of file entity.h.

◆ es_Goto

#define es_Goto ( labelId)    ENTITY_SCRIPT_OP_Goto, labelId,

Definition at line 39 of file entity.h.

◆ es_Restart

#define es_Restart   ENTITY_SCRIPT_OP_Goto, 0,

Definition at line 40 of file entity.h.

◆ es_Label

#define es_Label ( labelId)    ENTITY_SCRIPT_OP_Label, labelId,

Definition at line 41 of file entity.h.

◆ es_RestartBoundScript

#define es_RestartBoundScript   ENTITY_SCRIPT_OP_RestartBoundScript,

Definition at line 42 of file entity.h.

◆ es_SetFlags

#define es_SetFlags ( flags)    ENTITY_SCRIPT_OP_SetFlags, flags,

Definition at line 43 of file entity.h.

◆ es_ClearFlags

#define es_ClearFlags ( flags)    ENTITY_SCRIPT_OP_ClearFlags, flags,

Definition at line 44 of file entity.h.

◆ es_PlaySound

#define es_PlaySound ( soundId)    ENTITY_SCRIPT_OP_PlaySound, soundId,

Definition at line 45 of file entity.h.

◆ ems_End

#define ems_End   ENTITY_MODEL_SCRIPT_OP_End,

Definition at line 47 of file entity.h.

◆ ems_Draw

#define ems_Draw ( dlist,
holdTime )   ENTITY_MODEL_SCRIPT_OP_Draw, holdTime, (s32)dlist,

Definition at line 48 of file entity.h.

◆ ems_Restart

#define ems_Restart   ENTITY_MODEL_SCRIPT_OP_Restart,

Definition at line 49 of file entity.h.

◆ ems_Loop

#define ems_Loop   ENTITY_MODEL_SCRIPT_OP_Loop,

Definition at line 50 of file entity.h.

◆ ems_SetRenderMode

#define ems_SetRenderMode ( mode)    ENTITY_MODEL_SCRIPT_OP_SetRenderMode, mode,

Definition at line 51 of file entity.h.

◆ ems_SetFlags

#define ems_SetFlags ( flags)    ENTITY_MODEL_SCRIPT_OP_SetFlags, flags,

Definition at line 52 of file entity.h.

◆ ems_ClearFlags

#define ems_ClearFlags ( flags)    ENTITY_MODEL_SCRIPT_OP_ClearFlags, flags,

Definition at line 53 of file entity.h.

◆ ems_DrawImage

#define ems_DrawImage ( raster,
palette,
width,
height,
holdTime )   ENTITY_MODEL_SCRIPT_OP_DrawImage, holdTime, (s32)raster, (s32)palette, width, height,

Definition at line 54 of file entity.h.

◆ STANDARD_ENTITY_MODEL_SCRIPT

#define STANDARD_ENTITY_MODEL_SCRIPT ( gfx,
renderMode )
Value:
{ \
ems_SetRenderMode(renderMode) \
ems_Draw(gfx, 60) \
ems_Restart \
ems_End \
}

Definition at line 56 of file entity.h.

56#define STANDARD_ENTITY_MODEL_SCRIPT(gfx, renderMode) \
57 { \
58 ems_SetRenderMode(renderMode) \
59 ems_Draw(gfx, 60) \
60 ems_Restart \
61 ems_End \
62 }

◆ ENTITY_ADDR

◆ ENTITY_ROM

#define ENTITY_ROM ( name)    { entity_model_##name##_ROM_START, entity_model_##name##_ROM_END }

Definition at line 65 of file entity.h.

◆ BLOCK_GRID_SIZE

#define BLOCK_GRID_SIZE   25

Definition at line 67 of file entity.h.

Referenced by push_block_handle_fall().

◆ TWEESTER_PATH_STOP

#define TWEESTER_PATH_STOP   0x80000000

Definition at line 69 of file entity.h.

Referenced by entity_Tweester_select_target_point().

◆ TWEESTER_PATH_LOOP

#define TWEESTER_PATH_LOOP   0x80000001

Definition at line 70 of file entity.h.

Referenced by entity_Tweester_select_target_point().

◆ FRAGMENT_BUF_SIZE

#define FRAGMENT_BUF_SIZE   13

Definition at line 266 of file entity.h.

Referenced by Entity_BoardedFloor_init_fragments().

Typedef Documentation

◆ EntityScript

typedef s32 EntityScript[]

Definition at line 6 of file entity.h.

◆ EntityModelScript

typedef s32 EntityModelScript[]

Definition at line 7 of file entity.h.

◆ TweesterPath

typedef Vec3i TweesterPath[]

Definition at line 298 of file entity.h.

◆ EntityModelList

typedef EntityModel* EntityModelList[256]

Definition at line 467 of file entity.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ENTITY_SCRIPT_OP_End 
ENTITY_SCRIPT_OP_Jump 
ENTITY_SCRIPT_OP_Call 
ENTITY_SCRIPT_OP_SetCallback 
ENTITY_SCRIPT_OP_Goto 
ENTITY_SCRIPT_OP_Label 
ENTITY_SCRIPT_OP_RestartBoundScript 
ENTITY_SCRIPT_OP_SetFlags 
ENTITY_SCRIPT_OP_ClearFlags 
ENTITY_SCRIPT_OP_PlaySound 

Definition at line 11 of file entity.h.

11 {
22};
@ ENTITY_SCRIPT_OP_End
Definition entity.h:12
@ ENTITY_SCRIPT_OP_Label
Definition entity.h:17
@ ENTITY_SCRIPT_OP_Jump
Definition entity.h:13
@ ENTITY_SCRIPT_OP_PlaySound
Definition entity.h:21
@ ENTITY_SCRIPT_OP_RestartBoundScript
Definition entity.h:18
@ ENTITY_SCRIPT_OP_ClearFlags
Definition entity.h:20
@ ENTITY_SCRIPT_OP_Goto
Definition entity.h:16
@ ENTITY_SCRIPT_OP_SetFlags
Definition entity.h:19
@ ENTITY_SCRIPT_OP_Call
Definition entity.h:14
@ ENTITY_SCRIPT_OP_SetCallback
Definition entity.h:15

◆ anonymous enum

anonymous enum
Enumerator
ENTITY_MODEL_SCRIPT_OP_End 
ENTITY_MODEL_SCRIPT_OP_Draw 
ENTITY_MODEL_SCRIPT_OP_Restart 
ENTITY_MODEL_SCRIPT_OP_Loop 
ENTITY_MODEL_SCRIPT_OP_SetRenderMode 
ENTITY_MODEL_SCRIPT_OP_SetFlags 
ENTITY_MODEL_SCRIPT_OP_ClearFlags 
ENTITY_MODEL_SCRIPT_OP_DrawImage 

Definition at line 24 of file entity.h.

24 {
33};
@ ENTITY_MODEL_SCRIPT_OP_SetFlags
Definition entity.h:30
@ ENTITY_MODEL_SCRIPT_OP_Draw
Definition entity.h:26
@ ENTITY_MODEL_SCRIPT_OP_Loop
Definition entity.h:28
@ ENTITY_MODEL_SCRIPT_OP_SetRenderMode
Definition entity.h:29
@ ENTITY_MODEL_SCRIPT_OP_Restart
Definition entity.h:27
@ ENTITY_MODEL_SCRIPT_OP_End
Definition entity.h:25
@ ENTITY_MODEL_SCRIPT_OP_DrawImage
Definition entity.h:32
@ ENTITY_MODEL_SCRIPT_OP_ClearFlags
Definition entity.h:31

Function Documentation

◆ get_entity_model()

EntityModel * get_entity_model ( s32 idx)

Definition at line 724 of file entity_model.c.

724 {
725 return (*gCurrentEntityModelList)[listIndex & ~BATTLE_ENTITY_ID_BIT];
726}
BSS EntityModelList * gCurrentEntityModelList

Referenced by render_entities(), update_npcs(), virtual_entity_list_render_UI(), and virtual_entity_list_render_world().

◆ load_entity_model()

s32 load_entity_model ( EntityModelScript * cmdList)

Definition at line 93 of file entity_model.c.

93 {
94 EntityModel* newEntityModel;
95 s32* entityModelCount;
96 s32 i;
97
98 for (i = 0; i < MAX_ENTITY_MODELS; i++) {
99 if ((*gCurrentEntityModelList)[i] == NULL) {
100 break;
101 }
102 }
104
105 (*gCurrentEntityModelList)[i] = newEntityModel = heap_malloc(sizeof(*newEntityModel));
106 entityModelCount = &gEntityModelCount;
107 (*entityModelCount)++;
108
109 ASSERT(newEntityModel != NULL);
110
112 newEntityModel->renderMode = 1;
113 newEntityModel->gfx.displayList = NULL;
114 newEntityModel->cmdListReadPos = cmdList;
115 newEntityModel->nextFrameTime = 1.0f;
116 newEntityModel->timeScale = 1.0f;
117 if (cmdList == NULL) {
118 newEntityModel->cmdListReadPos = &D_8014C260;
119 }
120 newEntityModel->vertexArray = NULL;
121 newEntityModel->fpSetupGfxCallback = NULL;
122 newEntityModel->cmdListSavedPos = newEntityModel->cmdListReadPos;
123
126 }
127 return i;
128}
#define ASSERT(condition)
s32 gEntityModelCount
EntityModelScript D_8014C260
Definition entity_model.c:4
@ ENTITY_MODEL_FLAG_CAM1
Definition enums.h:5011
@ ENTITY_MODEL_FLAG_CAM2
Definition enums.h:5012
@ ENTITY_MODEL_FLAG_CAM0
Definition enums.h:5010
@ ENTITY_MODEL_FLAG_ENABLED
Definition enums.h:5014
@ CONTEXT_WORLD
Definition enums.h:3529
void * heap_malloc(s32 size)
Definition heap.c:34
#define BATTLE_ENTITY_ID_BIT
Definition macros.h:146
#define MAX_ENTITY_MODELS
Definition macros.h:87
s32 flags
Definition entity.h:448
EntityModelScript * cmdListSavedPos
Definition entity.h:461
void(* fpSetupGfxCallback)(void *)
Definition entity.h:463
union EntityModel::@46 gfx
EntityModelScript * cmdListReadPos
Definition entity.h:455
Vec3s * vertexArray
Definition entity.h:462
f32 timeScale
Default is 1.0.
Definition entity.h:454
f32 nextFrameTime
Set to 1.0 after each update.
Definition entity.h:453
s8 renderMode
Definition entity.h:449
GameStatus * gGameStatusPtr
Definition main_loop.c:32

Referenced by create_entity(), create_shadow_from_data(), show_immune_bonk(), virtual_entity_create(), and virtual_entity_create_at_index().

◆ ALT_load_entity_model()

s32 ALT_load_entity_model ( EntityModelScript * cmdList)

Definition at line 130 of file entity_model.c.

130 {
131 EntityModel* newEntityModel;
132 SpriteRasterInfo* imageData;
133 s32 i;
134
135 for (i = 0; i < MAX_ENTITY_MODELS; i++) {
136 if ((*gCurrentEntityModelList)[i] == NULL) {
137 break;
138 }
139 }
141
142 {
143 s32* entityModelCount;
144 (*gCurrentEntityModelList)[i] = newEntityModel = heap_malloc(sizeof(*newEntityModel));
145 entityModelCount = &gEntityModelCount;
146 (*entityModelCount)++;
147 }
148
149 ASSERT(newEntityModel != NULL);
150
151 newEntityModel->gfx.imageData = imageData = heap_malloc(sizeof(*imageData));
152 ASSERT(imageData != NULL);
153
155 newEntityModel->renderMode = 1;
156 newEntityModel->cmdListReadPos = cmdList;
157 newEntityModel->nextFrameTime = 1.0f;
158 newEntityModel->timeScale = 1.0f;
159 if (cmdList == NULL) {
160 newEntityModel->cmdListReadPos = &D_8014C260;
161 }
162 newEntityModel->vertexArray = NULL;
163 newEntityModel->fpSetupGfxCallback = NULL;
164 newEntityModel->cmdListSavedPos = newEntityModel->cmdListReadPos;
165
168 }
169 return i;
170}
@ ENTITY_MODEL_FLAG_USE_IMAGE
Definition enums.h:5020

Referenced by ALT_virtual_entity_create().

◆ entity_set_render_script()

void entity_set_render_script ( Entity * entity,
EntityModelScript * cmdList )

Definition at line 761 of file entity.c.

761 {
762 if (!(entity->flags & ENTITY_FLAG_HAS_ANIMATED_MODEL)) {
764 }
765}
void set_entity_model_render_command_list(s32 idx, EntityModelScript *cmdList)
@ ENTITY_FLAG_HAS_ANIMATED_MODEL
Definition enums.h:2616
s16 virtualModelIndex

Referenced by Entity_BoardedFloor_shatter(), entity_HeartBlock_change_render_script(), entity_HeartBlockContent__anim_heal(), entity_HeartBlockContent_reset(), entity_HiddenPanel_init(), and entity_WoodenCrate_idle().

◆ set_entity_model_render_command_list()

void set_entity_model_render_command_list ( s32 idx,
EntityModelScript * cmdList )

Definition at line 710 of file entity_model.c.

710 {
711 EntityModel* entityModel = (*gCurrentEntityModelList)[idx & ~BATTLE_ENTITY_ID_BIT];
712
713 if (entityModel != NULL && entityModel->flags) {
714 if (cmdList == NULL) {
715 cmdList = &D_8014C260;
716 }
717 entityModel->cmdListReadPos = cmdList;
718 entityModel->cmdListSavedPos = cmdList;
719 entityModel->nextFrameTime = 1.0f;
720 entityModel->timeScale = 1.0f;
721 }
722}

Referenced by entity_set_render_script().

◆ virtual_entity_list_render_world()

void virtual_entity_list_render_world ( void )

Definition at line 55 of file virtual_entity.c.

55 {
56 Matrix4f translation;
57 Matrix4f xRot;
58 Matrix4f yRot;
59 Matrix4f zRot;
60 Matrix4f rotation;
61 Matrix4f temp;
62 Matrix4f transform;
63 Matrix4f scale;
64 Mtx transformMtxL;
65 VirtualEntity* virtualEntity;
66 s32 i;
67
68 for (i = 0; i < ARRAY_COUNT(*gCurrentVirtualEntityListPtr); i++) {
69 virtualEntity = (*gCurrentVirtualEntityListPtr)[i];
70 if (virtualEntity != NULL) {
71 if (!(virtualEntity->entityModelIndex < 0 || get_entity_model(virtualEntity->entityModelIndex)->flags & ENTITY_MODEL_FLAG_CAM3)) {
72 guTranslateF(translation, virtualEntity->pos.x, virtualEntity->pos.y, virtualEntity->pos.z);
73 guRotateF(xRot, virtualEntity->rot.x, 1.0f, 0.0f, 0.0f);
74 guRotateF(yRot, virtualEntity->rot.y, 0.0f, 1.0f, 0.0f);
75 guRotateF(zRot, virtualEntity->rot.z, 0.0f, 0.0f, 1.0f);
76 guScaleF(scale, virtualEntity->scale.x, virtualEntity->scale.y, virtualEntity->scale.z);
77 guMtxCatF(zRot, xRot, temp);
78 guMtxCatF(temp, yRot, rotation);
79 guMtxCatF(scale, rotation, temp);
80 guMtxCatF(temp, translation, transform);
81 guMtxF2L(transform, &transformMtxL);
82 draw_entity_model_A(virtualEntity->entityModelIndex, &transformMtxL);
83 }
84 }
85 }
86}
f32 Matrix4f[4][4]
#define guRotateF
#define guMtxF2L
#define guTranslateF
#define guMtxCatF
#define guScaleF
EntityModel * get_entity_model(s32 idx)
@ ENTITY_MODEL_FLAG_CAM3
Definition enums.h:5013
void draw_entity_model_A(s32, Mtx *)
#define ARRAY_COUNT(arr)
Definition macros.h:40
VirtualEntityList * gCurrentVirtualEntityListPtr
Definition script_list.c:47

Referenced by clear_virtual_entity_list().

◆ virtual_entity_list_render_UI()

void virtual_entity_list_render_UI ( void )

Definition at line 88 of file virtual_entity.c.

88 {
89 Matrix4f translation;
90 Matrix4f xRot;
91 Matrix4f yRot;
92 Matrix4f zRot;
93 Matrix4f rotation;
94 Matrix4f temp;
95 Matrix4f transform;
96 Matrix4f scale;
97 Mtx transformMtxL;
98 VirtualEntity* virtualEntity;
99 s32 i;
100
101 for (i = 0; i < ARRAY_COUNT(*gCurrentVirtualEntityListPtr); i++) {
102 virtualEntity = (*gCurrentVirtualEntityListPtr)[i];
103 if (virtualEntity != NULL) {
104 if (!(virtualEntity->entityModelIndex < 0 || !(get_entity_model(virtualEntity->entityModelIndex)->flags & ENTITY_MODEL_FLAG_CAM3))) {
105 guTranslateF(translation, virtualEntity->pos.x, virtualEntity->pos.y, virtualEntity->pos.z);
106 guRotateF(xRot, virtualEntity->rot.x, 1.0f, 0.0f, 0.0f);
107 guRotateF(yRot, virtualEntity->rot.y, 0.0f, 1.0f, 0.0f);
108 guRotateF(zRot, virtualEntity->rot.z, 0.0f, 0.0f, 1.0f);
109 guScaleF(scale, virtualEntity->scale.x, virtualEntity->scale.y, virtualEntity->scale.z);
110 guMtxCatF(zRot, xRot, temp);
111 guMtxCatF(temp, yRot, rotation);
112 guMtxCatF(scale, rotation, temp);
113 guMtxCatF(temp, translation, transform);
114 guMtxF2L(transform, &transformMtxL);
115 draw_entity_model_E(virtualEntity->entityModelIndex, &transformMtxL);
116 }
117 }
118 }
119}
void draw_entity_model_E(s32, Mtx *)

Referenced by clear_virtual_entity_list().

Variable Documentation

◆ CreateEntityVarArgBuffer

◆ CircularShadowA

ShadowBlueprint CircularShadowA
extern

Definition at line 106 of file Shadow.c.

106 {
108 .renderCommandList = Entity_CircularShadowA_Render,
109 .animModelNode = NULL,
110 .onCreateCallback = entity_Shadow_init,
111 .entityType = ENTITY_TYPE_SHADOW,
112 .aabbSize = { 25, 10, 25 }
113};
void entity_Shadow_init(Shadow *shadow)
Definition Shadow.c:5
EntityModelScript Entity_CircularShadowA_Render
Definition Shadow.c:82
@ ENTITY_TYPE_SHADOW
Definition enums.h:2544
@ ENTITY_FLAG_DISABLE_COLLISION
Definition enums.h:2618

Referenced by create_shadow_type().

◆ CircularShadowB

ShadowBlueprint CircularShadowB
extern

Definition at line 115 of file Shadow.c.

115 {
117 .renderCommandList = Entity_CircularShadowB_Render,
118 .animModelNode = NULL,
119 .onCreateCallback = entity_Shadow_init,
120 .entityType = ENTITY_TYPE_SHADOW,
121 .aabbSize = { 25, 10, 25 }
122};
EntityModelScript Entity_CircularShadowB_Render
Definition Shadow.c:90

Referenced by create_shadow_type().

◆ SquareShadow

ShadowBlueprint SquareShadow
extern

Definition at line 124 of file Shadow.c.

124 {
126 .renderCommandList = Entity_SquareShadow_Render,
127 .animModelNode = NULL,
128 .onCreateCallback = entity_Shadow_init,
129 .entityType = ENTITY_TYPE_SHADOW,
130 .aabbSize = { 25, 10, 25 }
131};
EntityModelScript Entity_SquareShadow_Render
Definition Shadow.c:98

Referenced by create_shadow_type().

◆ Entity_SavePoint

EntityBlueprint Entity_SavePoint
extern

Definition at line 191 of file SaveBlock.c.

191 {
193 .typeDataSize = sizeof(SaveBlockData),
194 .renderCommandList = Entity_SaveBlock_RenderScript,
195 .modelAnimationNodes = 0,
196 .fpInit = entity_SaveBlock_init,
197 .updateEntityScript = Entity_SaveBlock_Script,
198 .fpHandleCollision = entity_block_handle_collision,
199 { .dma = ENTITY_ROM(SaveBlock) },
200 .entityType = ENTITY_TYPE_SAVE_POINT,
201 .aabbSize = { 25, 25, 25 }
202};
EntityModelScript Entity_SaveBlock_RenderScript
Definition SaveBlock.c:189
EntityScript Entity_SaveBlock_Script
Definition SaveBlock.c:161
void entity_SaveBlock_init(Entity *entity)
Definition SaveBlock.c:153
#define ENTITY_ROM(name)
Definition entity.h:65
@ ENTITY_TYPE_SAVE_POINT
Definition enums.h:2575
@ ENTITY_FLAG_FIXED_SHADOW_SIZE
Definition enums.h:2622
@ ENTITY_FLAG_4000
Definition enums.h:2627
s32 entity_block_handle_collision(Entity *entity)
Definition Block.c:334

◆ Entity_RedSwitch

EntityBlueprint Entity_RedSwitch
extern

Definition at line 538 of file Switch.c.

538 {
540 .typeDataSize = sizeof(SwitchData),
541 .renderCommandList = Entity_RedSwitch_RenderScript,
542 .modelAnimationNodes = 0,
543 .fpInit = entity_base_switch_init,
544 .updateEntityScript = Entity_RedSwitch_Script,
545 .fpHandleCollision = NULL,
546 { .dma = ENTITY_ROM(RedSwitch) },
547 .entityType = ENTITY_TYPE_RED_SWITCH,
548 .aabbSize = {22, 23, 22}
549};
EntityScript Entity_RedSwitch_Script
Definition Switch.c:490
void entity_base_switch_init(Entity *entity)
Definition Switch.c:447
EntityModelScript Entity_RedSwitch_RenderScript
Definition Switch.c:534
@ ENTITY_TYPE_RED_SWITCH
Definition enums.h:2551
@ ENTITY_FLAG_8000
Definition enums.h:2628
@ ENTITY_FLAG_ALWAYS_FACE_CAMERA
Definition enums.h:2626

◆ Entity_BlueSwitch

EntityBlueprint Entity_BlueSwitch
extern

Definition at line 551 of file Switch.c.

551 {
553 .typeDataSize = sizeof(SwitchData),
554 .renderCommandList = Entity_BlueSwitch_RenderScript,
555 .modelAnimationNodes = 0,
556 .fpInit = entity_BlueSwitch_init,
557 .updateEntityScript = Entity_BlueSwitch_Script,
558 .fpHandleCollision = NULL,
559 { .dma = ENTITY_ROM(BlueSwitch) },
560 .entityType = ENTITY_TYPE_BLUE_SWITCH,
561 .aabbSize = {22, 23, 22}
562};
EntityModelScript Entity_BlueSwitch_RenderScript
Definition Switch.c:530
EntityScript Entity_BlueSwitch_Script
Definition Switch.c:511
void entity_BlueSwitch_init(Entity *entity)
Definition Switch.c:457
@ ENTITY_TYPE_BLUE_SWITCH
Definition enums.h:2550
@ ENTITY_FLAG_HAS_DYNAMIC_SHADOW
Definition enums.h:2615
@ ENTITY_FLAG_CIRCULAR_SHADOW
Definition enums.h:2624

◆ Entity_HugeBlueSwitch

EntityBlueprint Entity_HugeBlueSwitch
extern

Definition at line 564 of file Switch.c.

564 {
566 .typeDataSize = sizeof(SwitchData),
567 .renderCommandList = Entity_HugeBlueSwitch_RenderScript,
568 .modelAnimationNodes = 0,
570 .updateEntityScript = Entity_HugeBlueSwitch_Script,
571 .fpHandleCollision = NULL,
572 { .dma = ENTITY_ROM(BlueSwitch) },
573 .entityType = ENTITY_TYPE_HUGE_BLUE_SWITCH,
574 .aabbSize = {66, 75, 66}
575};
EntityModelScript Entity_HugeBlueSwitch_RenderScript
Definition Switch.c:532
void entity_HugeBlueSwitch_init(Entity *entity)
Definition Switch.c:477
EntityScript Entity_HugeBlueSwitch_Script
Definition Switch.c:501
@ ENTITY_TYPE_HUGE_BLUE_SWITCH
Definition enums.h:2552

◆ Entity_GreenStompSwitch

EntityBlueprint Entity_GreenStompSwitch
extern

Definition at line 577 of file Switch.c.

577 {
579 .typeDataSize = sizeof(SwitchData),
580 .renderCommandList = Entity_GreenStompSwitch_RenderScript,
581 .modelAnimationNodes = 0,
582 .fpInit = entity_base_switch_init,
583 .updateEntityScript = Entity_GreenStompSwitch_Script,
584 .fpHandleCollision = NULL,
585 { .dma = ENTITY_ROM(GreenStompSwitch) },
586 .entityType = ENTITY_TYPE_GREEN_STOMP_SWITCH,
587 .aabbSize = {50, 15, 50}
588};
EntityModelScript Entity_GreenStompSwitch_RenderScript
Definition Switch.c:536
EntityScript Entity_GreenStompSwitch_Script
Definition Switch.c:521
@ ENTITY_TYPE_GREEN_STOMP_SWITCH
Definition enums.h:2553

◆ Entity_InertYellowBlock

EntityBlueprint Entity_InertYellowBlock
extern

Definition at line 578 of file Block.c.

578 {
580 .typeDataSize = sizeof(BlockData),
581 .renderCommandList = Entity_InertYellowBlock_RenderScript,
582 .modelAnimationNodes = 0,
584 .updateEntityScript = Entity_InertBlock_Script,
585 .fpHandleCollision = entity_block_handle_collision,
586 { .dma = ENTITY_ROM(InertYellowBlock) },
588 .aabbSize = { 25, 25, 25 }
589};
EntityScript Entity_InertBlock_Script
Definition Block.c:503
void entity_init_Hammer1Block_normal(Entity *entity)
Definition Block.c:465
EntityModelScript Entity_InertYellowBlock_RenderScript
Definition Block.c:560
s32 entity_block_handle_collision(Entity *entity)
Definition Block.c:334
@ ENTITY_TYPE_MULTI_TRIGGER_BLOCK
Definition enums.h:2554

Referenced by entity_ItemBlock_check_if_inactive(), entity_ItemBlock_replace_with_inactive(), entity_MulticoinBlock_check_if_inactive(), entity_MulticoinBlock_idle(), and entity_MulticoinBlock_spawn_coin().

◆ Entity_InertRedBlock

EntityBlueprint Entity_InertRedBlock
extern

Definition at line 591 of file Block.c.

591 {
593 .typeDataSize = sizeof(BlockData),
594 .renderCommandList = Entity_InertRedBlock_RenderScript,
595 .modelAnimationNodes = 0,
597 .updateEntityScript = Entity_InertBlock_Script,
598 .fpHandleCollision = entity_block_handle_collision,
599 { .dma = ENTITY_ROM(InertRedBlock) },
600 .entityType = ENTITY_TYPE_INACTIVE_BLOCK,
601 .aabbSize = { 25, 25, 25 }
602};
EntityModelScript Entity_InertRedBlock_RenderScript
Definition Block.c:562
@ ENTITY_TYPE_INACTIVE_BLOCK
Definition enums.h:2562

Referenced by entity_ItemBlock_check_if_inactive(), and entity_ItemBlock_replace_with_inactive().

◆ Entity_BrickBlock

EntityBlueprint Entity_BrickBlock
extern

Definition at line 604 of file Block.c.

604 {
606 .typeDataSize = sizeof(BlockData),
607 .renderCommandList = Entity_BrickBlock_RenderScript,
608 .modelAnimationNodes = 0,
609 .fpInit = entity_base_block_init,
610 .updateEntityScript = Entity_BrickBlock_Script,
611 .fpHandleCollision = entity_block_handle_collision,
612 { .dma = ENTITY_ROM(BrickBlock) },
613 .entityType = ENTITY_TYPE_BRICK_BLOCK,
614 .aabbSize = { 25, 25, 25 }
615};
EntityModelScript Entity_BrickBlock_RenderScript
Definition Block.c:574
EntityScript Entity_BrickBlock_Script
Definition Block.c:529
void entity_base_block_init(Entity *entity)
Definition Block.c:213
@ ENTITY_TYPE_BRICK_BLOCK
Definition enums.h:2556
@ ENTITY_FLAG_80
Definition enums.h:2620

◆ Entity_MulticoinBlock

EntityBlueprint Entity_MulticoinBlock
extern

Definition at line 617 of file Block.c.

617 {
619 .typeDataSize = sizeof(BlockData),
620 .renderCommandList = Entity_MulticoinBrick_RenderScript,
621 .modelAnimationNodes = 0,
623 .updateEntityScript = Entity_MulticoinBlock_Script,
624 .fpHandleCollision = entity_block_handle_collision,
625 { .dma = ENTITY_ROM(BrickBlock) },
626 .entityType = ENTITY_TYPE_MULTI_COIN_BRICK,
627 .aabbSize = { 25, 25, 25 }
628};
EntityScript Entity_MulticoinBlock_Script
Definition Block.c:547
EntityModelScript Entity_MulticoinBrick_RenderScript
Definition Block.c:564
void entity_MulticoinBlock_init(Entity *entity)
Definition Block.c:257
@ ENTITY_TYPE_MULTI_COIN_BRICK
Definition enums.h:2557

◆ Entity_Hammer1Block

EntityBlueprint Entity_Hammer1Block
extern

Definition at line 630 of file Block.c.

630 {
632 .typeDataSize = sizeof(BlockData),
633 .renderCommandList = Entity_Hammer1Block_RenderScript,
634 .modelAnimationNodes = 0,
636 .updateEntityScript = Entity_Hammer1Block_Script,
637 .fpHandleCollision = entity_block_handle_collision,
638 { .dma = ENTITY_ROM(Hammer1Block) },
639 .entityType = ENTITY_TYPE_HAMMER1_BLOCK,
640 .aabbSize = { 50, 50, 50 }
641};
EntityScript Entity_Hammer1Block_Script
Definition Block.c:540
EntityModelScript Entity_Hammer1Block_RenderScript
Definition Block.c:566
@ ENTITY_TYPE_HAMMER1_BLOCK
Definition enums.h:2564

◆ Entity_Hammer1BlockWideX

EntityBlueprint Entity_Hammer1BlockWideX
extern

Definition at line 643 of file Block.c.

643 {
645 .typeDataSize = sizeof(BlockData),
646 .renderCommandList = Entity_Hammer1Block_RenderScript,
647 .modelAnimationNodes = 0,
649 .updateEntityScript = Entity_Hammer1Block_Script,
650 .fpHandleCollision = entity_block_handle_collision,
651 { .dma = ENTITY_ROM(Hammer1Block) },
652 .entityType = ENTITY_TYPE_HAMMER1_BLOCK,
653 .aabbSize = { 100, 50, 50 }
654};

◆ Entity_Hammer1BlockWideZ

EntityBlueprint Entity_Hammer1BlockWideZ
extern

Definition at line 656 of file Block.c.

656 {
658 .typeDataSize = sizeof(BlockData),
659 .renderCommandList = Entity_Hammer1Block_RenderScript,
660 .modelAnimationNodes = 0,
662 .updateEntityScript = Entity_Hammer1Block_Script,
663 .fpHandleCollision = entity_block_handle_collision,
664 { .dma = ENTITY_ROM(Hammer1Block) },
665 .entityType = ENTITY_TYPE_HAMMER1_BLOCK,
666 .aabbSize = { 50, 50, 100 }
667};

◆ Entity_Hammer1BlockTiny

EntityBlueprint Entity_Hammer1BlockTiny
extern

Definition at line 669 of file Block.c.

669 {
671 .typeDataSize = sizeof(BlockData),
672 .renderCommandList = Entity_Hammer1Block_RenderScript,
673 .modelAnimationNodes = 0,
675 .updateEntityScript = Entity_BaseBlock_Script,
676 .fpHandleCollision = entity_block_handle_collision,
677 { .dma = ENTITY_ROM(Hammer1Block) },
678 .entityType = ENTITY_TYPE_HAMMER1_BLOCK_TINY,
679 .aabbSize = { 25, 25, 25 }
680};
void entity_init_HammerBlock_small(Entity *entity)
Definition Block.c:470
EntityScript Entity_BaseBlock_Script
Definition Block.c:491
@ ENTITY_TYPE_HAMMER1_BLOCK_TINY
Definition enums.h:2567

◆ Entity_Hammer2Block

EntityBlueprint Entity_Hammer2Block
extern

Definition at line 682 of file Block.c.

682 {
684 .typeDataSize = sizeof(BlockData),
685 .renderCommandList = Entity_Hammer2Block_RenderScript,
686 .modelAnimationNodes = 0,
687 .fpInit = entity_base_block_init,
688 .updateEntityScript = Entity_BaseBlock_Script,
689 .fpHandleCollision = entity_block_handle_collision,
690 { .dma = ENTITY_ROM(Hammer2Block) },
691 .entityType = ENTITY_TYPE_HAMMER2_BLOCK,
692 .aabbSize = { 50, 50, 50 }
693};
EntityModelScript Entity_Hammer2Block_RenderScript
Definition Block.c:568
@ ENTITY_TYPE_HAMMER2_BLOCK
Definition enums.h:2565

◆ Entity_Hammer2BlockWideX

EntityBlueprint Entity_Hammer2BlockWideX
extern

Definition at line 695 of file Block.c.

695 {
697 .typeDataSize = sizeof(BlockData),
698 .renderCommandList = Entity_Hammer2Block_RenderScript,
699 .modelAnimationNodes = 0,
700 .fpInit = entity_base_block_init,
701 .updateEntityScript = Entity_BaseBlock_Script,
702 .fpHandleCollision = entity_block_handle_collision,
703 { .dma = ENTITY_ROM(Hammer2Block) },
704 .entityType = ENTITY_TYPE_HAMMER2_BLOCK,
705 .aabbSize = { 100, 50, 50 }
706};

◆ Entity_Hammer2BlockWideZ

EntityBlueprint Entity_Hammer2BlockWideZ
extern

Definition at line 708 of file Block.c.

708 {
710 .typeDataSize = sizeof(BlockData),
711 .renderCommandList = Entity_Hammer2Block_RenderScript,
712 .modelAnimationNodes = 0,
713 .fpInit = entity_base_block_init,
714 .updateEntityScript = Entity_BaseBlock_Script,
715 .fpHandleCollision = entity_block_handle_collision,
716 { .dma = ENTITY_ROM(Hammer2Block) },
717 .entityType = ENTITY_TYPE_HAMMER2_BLOCK,
718 .aabbSize = { 50, 50, 100 }
719};

◆ Entity_Hammer2BlockTiny

EntityBlueprint Entity_Hammer2BlockTiny
extern

Definition at line 721 of file Block.c.

721 {
723 .typeDataSize = sizeof(BlockData),
724 .renderCommandList = Entity_Hammer2Block_RenderScript,
725 .modelAnimationNodes = 0,
727 .updateEntityScript = Entity_BaseBlock_Script,
728 .fpHandleCollision = entity_block_handle_collision,
729 { .dma = ENTITY_ROM(Hammer2Block) },
730 .entityType = ENTITY_TYPE_HAMMER2_BLOCK_TINY,
731 .aabbSize = { 25, 25, 25 }
732};
@ ENTITY_TYPE_HAMMER2_BLOCK_TINY
Definition enums.h:2568

◆ Entity_Hammer3Block

EntityBlueprint Entity_Hammer3Block
extern

Definition at line 734 of file Block.c.

734 {
736 .typeDataSize = sizeof(BlockData),
737 .renderCommandList = Entity_Hammer3Block_RenderScript,
738 .modelAnimationNodes = 0,
739 .fpInit = entity_base_block_init,
740 .updateEntityScript = Entity_BaseBlock_Script,
741 .fpHandleCollision = entity_block_handle_collision,
742 { .dma = ENTITY_ROM(Hammer3Block) },
743 .entityType = ENTITY_TYPE_HAMMER3_BLOCK,
744 .aabbSize = { 50, 50, 50 }
745};
EntityModelScript Entity_Hammer3Block_RenderScript
Definition Block.c:570
@ ENTITY_TYPE_HAMMER3_BLOCK
Definition enums.h:2566

◆ Entity_Hammer3BlockWideX

EntityBlueprint Entity_Hammer3BlockWideX
extern

Definition at line 747 of file Block.c.

747 {
749 .typeDataSize = sizeof(BlockData),
750 .renderCommandList = Entity_Hammer3Block_RenderScript,
751 .modelAnimationNodes = 0,
752 .fpInit = entity_base_block_init,
753 .updateEntityScript = Entity_BaseBlock_Script,
754 .fpHandleCollision = entity_block_handle_collision,
755 { .dma = ENTITY_ROM(Hammer3Block) },
756 .entityType = ENTITY_TYPE_HAMMER3_BLOCK,
757 .aabbSize = { 100, 50, 50 }
758};

◆ Entity_Hammer3BlockWideZ

EntityBlueprint Entity_Hammer3BlockWideZ
extern

Definition at line 760 of file Block.c.

760 {
762 .typeDataSize = sizeof(BlockData),
763 .renderCommandList = Entity_Hammer3Block_RenderScript,
764 .modelAnimationNodes = 0,
765 .fpInit = entity_base_block_init,
766 .updateEntityScript = Entity_BaseBlock_Script,
767 .fpHandleCollision = entity_block_handle_collision,
768 { .dma = ENTITY_ROM(Hammer3Block) },
769 .entityType = ENTITY_TYPE_HAMMER3_BLOCK,
770 .aabbSize = { 50, 50, 100 }
771};

◆ Entity_Hammer3BlockTiny

EntityBlueprint Entity_Hammer3BlockTiny
extern

Definition at line 773 of file Block.c.

773 {
775 .typeDataSize = sizeof(BlockData),
776 .renderCommandList = Entity_Hammer3Block_RenderScript,
777 .modelAnimationNodes = 0,
779 .updateEntityScript = Entity_BaseBlock_Script,
780 .fpHandleCollision = entity_block_handle_collision,
781 { .dma = ENTITY_ROM(Hammer3Block) },
782 .entityType = ENTITY_TYPE_HAMMER3_BLOCK_TINY,
783 .aabbSize = { 25, 25, 25 }
784};
@ ENTITY_TYPE_HAMMER3_BLOCK_TINY
Definition enums.h:2569

◆ Entity_PushBlock

EntityBlueprint Entity_PushBlock
extern

Definition at line 786 of file Block.c.

786 {
787 .flags = ENTITY_FLAG_4000,
788 .typeDataSize = sizeof(BlockData),
789 .renderCommandList = Entity_PushBlock_RenderScript,
790 .modelAnimationNodes = 0,
791 .fpInit = entity_base_block_init,
792 .updateEntityScript = Entity_BaseBlock_Script,
793 .fpHandleCollision = entity_block_handle_collision,
794 { .dma = ENTITY_ROM(PushBlock) },
795 .entityType = ENTITY_TYPE_PUSH_BLOCK,
796 .aabbSize = { 25, 25, 25 }
797};
EntityModelScript Entity_PushBlock_RenderScript
Definition Block.c:572
@ ENTITY_TYPE_PUSH_BLOCK
Definition enums.h:2555

◆ Entity_PowBlock

EntityBlueprint Entity_PowBlock
extern

Definition at line 799 of file Block.c.

799 {
800 .flags = ENTITY_FLAG_4000,
801 .typeDataSize = sizeof(BlockData),
802 .renderCommandList = Entity_PowBlock_RenderScript,
803 .modelAnimationNodes = 0,
804 .fpInit = entity_base_block_init,
805 .updateEntityScript = Entity_PowBlock_Script,
806 .fpHandleCollision = entity_block_handle_collision,
807 { .dma = ENTITY_ROM(PowBlock) },
808 .entityType = ENTITY_TYPE_POW_BLOCK,
809 .aabbSize = { 30, 25, 25 },
810};
EntityScript Entity_PowBlock_Script
Definition Block.c:482
EntityModelScript Entity_PowBlock_RenderScript
Definition Block.c:576
@ ENTITY_TYPE_POW_BLOCK
Definition enums.h:2576

◆ Entity_YellowBlock

EntityBlueprint Entity_YellowBlock
extern

Definition at line 358 of file ItemBlock.c.

358 {
360 .typeDataSize = sizeof(BlockData),
361 .renderCommandList = Entity_YellowBlock_RenderScript,
362 .modelAnimationNodes = 0,
363 .fpInit = entity_ItemBlock_init,
364 .updateEntityScript = Entity_ItemBlock_Script,
365 .fpHandleCollision = entity_block_handle_collision,
366 { .dma = ENTITY_ROM(YellowBlock) },
367 .entityType = ENTITY_TYPE_YELLOW_BLOCK,
368 .aabbSize = { 25, 25, 25 }
369};
void entity_ItemBlock_init(Entity *entity)
Definition ItemBlock.c:263
EntityModelScript Entity_YellowBlock_RenderScript
Definition ItemBlock.c:353
EntityScript Entity_ItemBlock_Script
Definition ItemBlock.c:294
@ ENTITY_TYPE_YELLOW_BLOCK
Definition enums.h:2558

◆ Entity_HiddenYellowBlock

EntityBlueprint Entity_HiddenYellowBlock
extern

Definition at line 371 of file ItemBlock.c.

371 {
373 .typeDataSize = sizeof(BlockData),
374 .renderCommandList = Entity_HiddenYellowBlock_RenderScript,
375 .modelAnimationNodes = 0,
377 .updateEntityScript = Entity_HiddenItemBlock_Script,
378 .fpHandleCollision = entity_block_handle_collision,
379 { .dma = ENTITY_ROM(YellowBlock) },
381 .aabbSize = { 25, 25, 25 }
382};
void entity_HiddenItemBlock_init(Entity *entity)
Definition ItemBlock.c:273
EntityModelScript Entity_HiddenYellowBlock_RenderScript
Definition ItemBlock.c:354
EntityScript Entity_HiddenItemBlock_Script
Definition ItemBlock.c:307
@ ENTITY_TYPE_HIDDEN_YELLOW_BLOCK
Definition enums.h:2560

◆ Entity_RedBlock

EntityBlueprint Entity_RedBlock
extern

Definition at line 384 of file ItemBlock.c.

384 {
386 .typeDataSize = sizeof(BlockData),
387 .renderCommandList = Entity_RedBlock_RenderScript,
388 .modelAnimationNodes = 0,
389 .fpInit = entity_ItemBlock_init,
390 .updateEntityScript = Entity_ItemBlock_Script,
391 .fpHandleCollision = entity_block_handle_collision,
392 { .dma = ENTITY_ROM(RedBlock) },
393 .entityType = ENTITY_TYPE_RED_BLOCK,
394 .aabbSize = { 25, 25, 25 }
395};
EntityModelScript Entity_RedBlock_RenderScript
Definition ItemBlock.c:355
@ ENTITY_TYPE_RED_BLOCK
Definition enums.h:2563

◆ Entity_HiddenRedBlock

EntityBlueprint Entity_HiddenRedBlock
extern

Definition at line 397 of file ItemBlock.c.

397 {
399 .typeDataSize = sizeof(BlockData),
400 .renderCommandList = Entity_HiddenRedBlock_RenderScript,
401 .modelAnimationNodes = 0,
403 .updateEntityScript = Entity_HiddenItemBlock_Script,
404 .fpHandleCollision = entity_block_handle_collision,
405 { .dma = ENTITY_ROM(RedBlock) },
406 .entityType = ENTITY_TYPE_HIDDEN_RED_BLOCK,
407 .aabbSize = { 25, 25, 25 }
408};
EntityModelScript Entity_HiddenRedBlock_RenderScript
Definition ItemBlock.c:356
@ ENTITY_TYPE_HIDDEN_RED_BLOCK
Definition enums.h:2561

◆ Entity_TriggerBlock

EntityBlueprint Entity_TriggerBlock
extern

Definition at line 410 of file ItemBlock.c.

410 {
412 .typeDataSize = sizeof(BlockData),
413 .renderCommandList = Entity_HitYellowBlock_AnimationIdle,
414 .modelAnimationNodes = Entity_HitYellowBlock_Mesh,
416 .updateEntityScript = Entity_TriggerBlock_Script,
417 .fpHandleCollision = entity_block_handle_collision,
418 { .dmaList = Entity_HitYellowBlock_dma },
420 .aabbSize = { 25, 25, 25 }
421};
AnimScript Entity_HitYellowBlock_AnimationIdle
EntityScript Entity_TriggerBlock_Script
Definition ItemBlock.c:331
DmaEntry Entity_HitYellowBlock_dma[]
Definition ItemBlock.c:349
StaticAnimatorNode * Entity_HitYellowBlock_Mesh[]
void entity_ItemlessBlock_init(Entity *entity)
Definition ItemBlock.c:278
@ ENTITY_TYPE_SINGLE_TRIGGER_BLOCK
Definition enums.h:2559

◆ Entity_HeartBlock

EntityBlueprint Entity_HeartBlock
extern

Definition at line 467 of file HeartBlock.c.

467 {
469 .typeDataSize = sizeof(BlockData),
470 .renderCommandList = Entity_HeartBlock_RenderScript,
471 .modelAnimationNodes = 0,
472 .fpInit = entity_HeartBlock_init,
473 .updateEntityScript = Entity_HeartBlock_Script,
474 .fpHandleCollision = entity_block_handle_collision,
475 { .dma = ENTITY_ROM(HeartBlock) },
476 .entityType = ENTITY_TYPE_HEALING_BLOCK,
477 .aabbSize = { 25, 25, 25 }
478};
EntityModelScript Entity_HeartBlock_RenderScript
Definition HeartBlock.c:439
void entity_HeartBlock_init(Entity *entity)
Definition HeartBlock.c:408
EntityScript Entity_HeartBlock_Script
Definition HeartBlock.c:426
@ ENTITY_TYPE_HEALING_BLOCK
Definition enums.h:2570

◆ Entity_SuperBlock

EntityBlueprint Entity_SuperBlock
extern

Definition at line 253 of file SuperBlock.c.

253 {
255 .typeDataSize = sizeof(BlockData),
256 .renderCommandList = Entity_SuperBlock_RenderScript,
257 .modelAnimationNodes = 0,
258 .fpInit = entity_SuperBlock_init,
259 .updateEntityScript = Entity_SuperBlock_Script,
260 .fpHandleCollision = entity_block_handle_collision,
261 { .dma = ENTITY_ROM(SuperBlock) },
262 .entityType = ENTITY_TYPE_SUPER_BLOCK,
263 .aabbSize = { 25, 25, 25 }
264};
EntityModelScript Entity_SuperBlock_RenderScript
Definition SuperBlock.c:248
void entity_SuperBlock_init(Entity *entity)
Definition SuperBlock.c:78
EntityScript Entity_SuperBlock_Script
Definition SuperBlock.c:95
@ ENTITY_TYPE_SUPER_BLOCK
Definition enums.h:2577

◆ Entity_ScriptSpring

EntityBlueprint Entity_ScriptSpring
extern

Definition at line 100 of file SimpleSpring.c.

100 {
102 .typeDataSize = 0,
103 .renderCommandList = Entity_ScriptSpring_AnimIdle,
104 .modelAnimationNodes = Entity_ScriptSpring_Mesh,
105 .fpInit = entity_ScriptSpring_init,
106 .updateEntityScript = Entity_ScriptSpring_Script,
107 .fpHandleCollision = NULL,
108 { .dmaList = Entity_ScriptSpring_dma },
109 .entityType = ENTITY_TYPE_SCRIPT_SPRING,
110 .aabbSize = {40, 25, 40}
111};
EntityScript Entity_ScriptSpring_Script
DmaEntry Entity_ScriptSpring_dma[]
void entity_ScriptSpring_init(Entity *entity)
StaticAnimatorNode * Entity_ScriptSpring_Mesh[]
AnimScript Entity_ScriptSpring_AnimIdle
@ ENTITY_TYPE_SCRIPT_SPRING
Definition enums.h:2584

◆ Entity_SimpleSpring

EntityBlueprint Entity_SimpleSpring
extern

Definition at line 113 of file SimpleSpring.c.

113 {
115 .typeDataSize = sizeof(SimpleSpringData),
116 .renderCommandList = Entity_SimpleSpring_AnimIdle,
117 .modelAnimationNodes = Entity_SimpleSpring_Mesh,
118 .fpInit = entity_SimpleSpring_init,
119 .updateEntityScript = Entity_SimpleSpring_Script,
120 .fpHandleCollision = NULL,
121 { .dmaList = Entity_SimpleSpring_dma },
122 .entityType = ENTITY_TYPE_SIMPLE_SPRING,
123 .aabbSize = {40, 25, 40}
124};
void entity_SimpleSpring_init(Entity *entity)
StaticAnimatorNode * Entity_SimpleSpring_Mesh[]
EntityScript Entity_SimpleSpring_Script
AnimScript Entity_SimpleSpring_AnimIdle
DmaEntry Entity_SimpleSpring_dma[]
@ ENTITY_TYPE_SIMPLE_SPRING
Definition enums.h:2583

◆ Entity_HiddenPanel

EntityBlueprint Entity_HiddenPanel
extern

Definition at line 366 of file HiddenPanel.c.

366 {
367 .flags = ENTITY_FLAG_HIDDEN,
368 .typeDataSize = sizeof(HiddenPanelData),
369 .renderCommandList = ERS_HiddenPanel,
370 .modelAnimationNodes = 0,
371 .fpInit = entity_HiddenPanel_init,
372 .updateEntityScript = Entity_HiddenPanel_Script,
373 .fpHandleCollision = NULL,
374 { .dma = ENTITY_ROM(HiddenPanel) },
375 .entityType = ENTITY_TYPE_HIDDEN_PANEL,
376 .aabbSize = { 60, 0, 60 }
377};
EntityModelScript ERS_HiddenPanel
EntityScript Entity_HiddenPanel_Script
void entity_HiddenPanel_init(Entity *entity)
@ ENTITY_TYPE_HIDDEN_PANEL
Definition enums.h:2585
@ ENTITY_FLAG_HIDDEN
Definition enums.h:2613

◆ Entity_GiantChest

EntityBlueprint Entity_GiantChest
extern

Definition at line 498 of file Chest.c.

498 {
499 .flags = ENTITY_FLAG_4000,
500 .typeDataSize = sizeof(ChestData),
501 .renderCommandList = Entity_Chest_RenderScript,
502 .modelAnimationNodes = 0,
503 .fpInit = entity_GiantChest_init,
504 .updateEntityScript = Entity_GiantChest_Script,
505 .fpHandleCollision = NULL,
506 { .dma = ENTITY_ROM(Chest) },
507 .entityType = ENTITY_TYPE_CHEST,
508 .aabbSize = { 50, 45, 46 }
509};
EntityModelScript Entity_Chest_RenderScript
Definition Chest.c:496
void entity_GiantChest_init(Entity *entity)
Definition Chest.c:447
EntityScript Entity_GiantChest_Script
Definition Chest.c:462
@ ENTITY_TYPE_CHEST
Definition enums.h:2587

◆ Entity_Chest

EntityBlueprint Entity_Chest
extern

Definition at line 510 of file Chest.c.

510 {
512 .typeDataSize = sizeof(ChestData),
513 .renderCommandList = Entity_Chest_RenderScript,
514 .modelAnimationNodes = 0,
515 .fpInit = entity_Chest_init,
516 .updateEntityScript = Entity_Chest_Script,
517 .fpHandleCollision = NULL,
518 { .dma = ENTITY_ROM(Chest) },
519 .entityType = ENTITY_TYPE_CHEST,
520 .aabbSize = { 28, 26, 23 }
521};
void entity_Chest_init(Entity *entity)
Definition Chest.c:452
EntityScript Entity_Chest_Script
Definition Chest.c:483

◆ Entity_WoodenCrate

EntityBlueprint Entity_WoodenCrate
extern

Definition at line 280 of file WoodenCrate.c.

280 {
282 .typeDataSize = sizeof(WoodenCrateData),
283 .renderCommandList = Entity_WoodenCrate_RenderScript,
284 .modelAnimationNodes = 0,
285 .fpInit = entity_WoodenCrate_init,
286 .updateEntityScript = Entity_WoodenCrate_Script,
287 .fpHandleCollision = NULL,
288 { .dma = ENTITY_ROM(WoodenCrate) },
289 .entityType = ENTITY_TYPE_WOODEN_CRATE,
290 .aabbSize = { 35, 30, 35 }
291};
EntityModelScript Entity_WoodenCrate_RenderScript
EntityScript Entity_WoodenCrate_Script
void entity_WoodenCrate_init(Entity *entity)
Definition WoodenCrate.c:56
@ ENTITY_TYPE_WOODEN_CRATE
Definition enums.h:2579

◆ Entity_BlueWarpPipe

EntityBlueprint Entity_BlueWarpPipe
extern

Definition at line 203 of file BlueWarpPipe.c.

203 {
204 .flags = 0,
205 .typeDataSize = sizeof(BlueWarpPipeData),
206 .renderCommandList = Entity_BlueWarpPipe_RenderScript,
207 .modelAnimationNodes = 0,
208 .fpInit = entity_init_BlueWarpPipe,
209 .updateEntityScript = Entity_BlueWarpPipe_Script,
210 .fpHandleCollision = NULL,
211 { .dma = ENTITY_ROM(BlueWarpPipe) },
212 .entityType = ENTITY_TYPE_BLUE_WARP_PIPE,
213 .aabbSize = { 40, 50, 40}
214};
EntityModelScript Entity_BlueWarpPipe_RenderScript
void entity_init_BlueWarpPipe(Entity *entity)
EntityScript Entity_BlueWarpPipe_Script
@ ENTITY_TYPE_BLUE_WARP_PIPE
Definition enums.h:2582

◆ Entity_Signpost

EntityBlueprint Entity_Signpost
extern

Definition at line 35 of file Signpost.c.

35 {
37 .typeDataSize = sizeof(SignpostData),
38 .renderCommandList = Entity_Signpost_RenderScript,
39 .modelAnimationNodes = NULL,
40 .fpInit = NULL,
41 .updateEntityScript = Entity_Signpost_Script,
42 .fpHandleCollision = NULL,
43 {{ entity_model_Signpost_ROM_START, entity_model_Signpost_ROM_END }},
44 .entityType = ENTITY_TYPE_SIGNPOST,
45 .aabbSize = { 40, 50, 20 }
46};
EntityModelScript Entity_Signpost_RenderScript
Definition Signpost.c:33
EntityScript Entity_Signpost_Script
Definition Signpost.c:28
@ ENTITY_TYPE_SIGNPOST
Definition enums.h:2588
@ ENTITY_FLAG_400
Definition enums.h:2623

◆ Entity_Padlock

EntityBlueprint Entity_Padlock
extern

Definition at line 240 of file Padlock.c.

240 {
242 .typeDataSize = sizeof(PadlockData),
243 .renderCommandList = Entity_Padlock_RenderScript,
244 .modelAnimationNodes = 0,
245 .fpInit = entity_Padlock_init,
246 .updateEntityScript = Entity_Padlock_Script,
247 .fpHandleCollision = NULL,
248 { .dma = ENTITY_ROM(Padlock) },
249 .entityType = ENTITY_TYPE_PADLOCK,
250 .aabbSize = { 30, 175, 10 }
251};
EntityScript Entity_Padlock_Script
Definition Padlock.c:229
EntityModelScript Entity_Padlock_RenderScript
Definition Padlock.c:235
void entity_Padlock_init(Entity *entity)
Definition Padlock.c:193
@ ENTITY_TYPE_PADLOCK
Definition enums.h:2546
@ ENTITY_FLAG_HAS_SHADOW
Definition enums.h:2621
@ ENTITY_FLAG_SHOWS_INSPECT_PROMPT
Definition enums.h:2625

◆ Entity_PadlockRedFrame

EntityBlueprint Entity_PadlockRedFrame
extern

Definition at line 253 of file Padlock.c.

253 {
255 .typeDataSize = sizeof(PadlockData),
256 .renderCommandList = Entity_PadlockRedFrame_RenderScript,
257 .modelAnimationNodes = 0,
259 .updateEntityScript = Entity_Padlock_Script,
260 .fpHandleCollision = NULL,
261 { .dma = ENTITY_ROM(PadlockRedFrame) },
262 .entityType = ENTITY_TYPE_PADLOCK_RED_FRAME,
263 .aabbSize = { 30, 175, 10 }
264};
EntityModelScript Entity_PadlockRedFrame_RenderScript
Definition Padlock.c:236
void entity_PadlockRedFrame_init(Entity *entity)
Definition Padlock.c:202
@ ENTITY_TYPE_PADLOCK_RED_FRAME
Definition enums.h:2547

◆ Entity_PadlockRedFace

EntityBlueprint Entity_PadlockRedFace
extern

Definition at line 266 of file Padlock.c.

266 {
268 .typeDataSize = sizeof(PadlockData),
269 .renderCommandList = Entity_PadlockRedFace_RenderScript,
270 .modelAnimationNodes = 0,
272 .updateEntityScript = Entity_Padlock_Script,
273 .fpHandleCollision = NULL,
274 { .dma = ENTITY_ROM(PadlockRedFace) },
275 .entityType = ENTITY_TYPE_PADLOCK_RED_FACE,
276 .aabbSize = { 30, 175, 10 }
277 };
void entity_PadlockRedFace_init(Entity *entity)
Definition Padlock.c:211
EntityModelScript Entity_PadlockRedFace_RenderScript
Definition Padlock.c:237
@ ENTITY_TYPE_PADLOCK_RED_FACE
Definition enums.h:2548

◆ Entity_PadlockBlueFace

EntityBlueprint Entity_PadlockBlueFace
extern

Definition at line 279 of file Padlock.c.

279 {
281 .typeDataSize = sizeof(PadlockData),
282 .renderCommandList = Entity_PadlockBlueFace_RenderScript,
283 .modelAnimationNodes = 0,
285 .updateEntityScript = Entity_Padlock_Script,
286 .fpHandleCollision = NULL,
287 { .dma = ENTITY_ROM(PadlockBlueFace) },
288 .entityType = ENTITY_TYPE_PADLOCK_BLUE_FACE,
289 .aabbSize = { 30, 175, 10 }
290};
void entity_PadlockBlueFace_init(Entity *entity)
Definition Padlock.c:220
EntityModelScript Entity_PadlockBlueFace_RenderScript
Definition Padlock.c:238
@ ENTITY_TYPE_PADLOCK_BLUE_FACE
Definition enums.h:2549

◆ Entity_BoardedFloor

EntityBlueprint Entity_BoardedFloor
extern

Definition at line 244 of file BoardedFloor.c.

244 {
245 .flags = 0,
246 .typeDataSize = sizeof(BoardedFloorData),
247 .renderCommandList = Entity_BoardedFloor_RenderScript,
248 .modelAnimationNodes = 0,
249 .fpInit = Entity_BoardedFloor_init,
250 .updateEntityScript = Entity_BoardedFloor_Script,
251 .fpHandleCollision = NULL,
252 { .dma = ENTITY_ROM(BoardedFloor) },
253 .entityType = ENTITY_TYPE_BOARDED_FLOOR,
254 .aabbSize = { 60, 5, 60 }
255};
void Entity_BoardedFloor_init(Entity *entity)
EntityModelScript Entity_BoardedFloor_Script
EntityModelScript Entity_BoardedFloor_RenderScript
@ ENTITY_TYPE_BOARDED_FLOOR
Definition enums.h:2580

◆ Entity_BombableRock

EntityBlueprint Entity_BombableRock
extern

Definition at line 250 of file BombableRock.c.

250 {
251 .flags = 0,
252 .typeDataSize = sizeof(BombableRockData),
253 .renderCommandList = Entity_BombableRock_RenderScript,
254 .modelAnimationNodes = 0,
255 .fpInit = entity_BombableRock_init,
256 .updateEntityScript = Entity_BombableRock_Script,
257 .fpHandleCollision = NULL,
258 { .dma = ENTITY_ROM(BombableRock) },
259 .entityType = ENTITY_TYPE_BOMBABLE_ROCK,
260 .aabbSize = { 50, 50, 50 }
261};
EntityModelScript Entity_BombableRock_RenderScript
void entity_BombableRock_init(Entity *entity)
EntityScript Entity_BombableRock_Script
@ ENTITY_TYPE_BOMBABLE_ROCK
Definition enums.h:2581

◆ Entity_BombableRockWide

EntityBlueprint Entity_BombableRockWide
extern

Definition at line 263 of file BombableRock.c.

263 {
264 .flags = 0,
265 .typeDataSize = sizeof(BombableRockData),
266 .renderCommandList = Entity_BombableRock_RenderScript,
267 .modelAnimationNodes = 0,
268 .fpInit = entity_BombableRock_init,
269 .updateEntityScript = Entity_BombableRock_Script,
270 .fpHandleCollision = NULL,
271 { .dma = ENTITY_ROM(BombableRock) },
272 .entityType = ENTITY_TYPE_BOMBABLE_ROCK,
273 .aabbSize = { 50, 50, 100 }
274};

◆ Entity_Tweester

EntityBlueprint Entity_Tweester
extern

Definition at line 317 of file Tweester.c.

317 {
319 .typeDataSize = sizeof(TweesterData),
320 .renderCommandList = Entity_Tweester_RenderScript,
321 .modelAnimationNodes = 0,
322 .fpInit = entity_Tweester_init,
323 .updateEntityScript = Entity_Tweester_Script,
324 .fpHandleCollision = NULL,
325 { .dma = ENTITY_ROM(Tweester) },
326 .entityType = ENTITY_TYPE_TWEESTER,
327 .aabbSize = { 50, 70, 50 }
328};
@ ENTITY_TYPE_TWEESTER
Definition enums.h:2597
EntityScript Entity_Tweester_Script
Definition Tweester.c:309
void entity_Tweester_init(Entity *entity)
Definition Tweester.c:297
EntityModelScript Entity_Tweester_RenderScript
Definition Tweester.c:315

◆ Entity_StarBoxLauncher

EntityBlueprint Entity_StarBoxLauncher
extern

Definition at line 263 of file StarBoxLauncher.c.

263 {
264 .flags = ENTITY_FLAG_8000,
265 .typeDataSize = sizeof(StarBoxLauncherData),
266 .renderCommandList = Entity_StarBoxLauncher_RenderScript,
267 .modelAnimationNodes = 0,
269 .updateEntityScript = Entity_StarBoxLauncher_Script,
270 .fpHandleCollision = NULL,
271 { .dma = ENTITY_ROM(StarBoxLauncher) },
272 .entityType = ENTITY_TYPE_STAR_BOX_LAUNCHER,
273 .aabbSize = { 35, 35, 35 }
274};
@ ENTITY_TYPE_STAR_BOX_LAUNCHER
Definition enums.h:2586
void entity_StarBoxLauncher_init(Entity *entity)
EntityModelScript Entity_StarBoxLauncher_RenderScript
EntityScript Entity_StarBoxLauncher_Script

◆ Entity_CymbalPlant

EntityBlueprint Entity_CymbalPlant
extern

Definition at line 379 of file Plants1.c.

379 {
381 .typeDataSize = sizeof(CymbalPlantData),
382 .renderCommandList = Entity_CymbalPlant_AnimationIdle,
383 .modelAnimationNodes = Entity_CymbalPlant_Mesh,
384 .fpInit = NULL,
385 .updateEntityScript = Entity_CymbalPlant_Update,
386 .fpHandleCollision = NULL,
387 { .dmaList = Entity_CymbalPlant_dma },
388 .entityType = ENTITY_TYPE_CYMBAL_PLANT,
389 .aabbSize = { 103, 30, 24 }
390};
AnimScript Entity_CymbalPlant_AnimationIdle
EntityScript Entity_CymbalPlant_Update
Definition Plants1.c:368
DmaEntry Entity_CymbalPlant_dma[]
Definition Plants1.c:376
StaticAnimatorNode * Entity_CymbalPlant_Mesh[]
@ ENTITY_TYPE_CYMBAL_PLANT
Definition enums.h:2593

◆ Entity_PinkFlower

EntityBlueprint Entity_PinkFlower
extern

Definition at line 392 of file Plants1.c.

392 {
394 .typeDataSize = sizeof(PinkFlowerData),
395 .renderCommandList = Entity_PinkFlower_AnimationIdle,
396 .modelAnimationNodes = Entity_PinkFlower_Mesh,
397 .fpInit = entity_PinkFlower_init,
398 .updateEntityScript = Entity_PinkFlower_Script,
399 .fpHandleCollision = NULL,
400 { .dmaList = Entity_PinkFlower_dma },
401 .entityType = ENTITY_TYPE_PINK_FLOWER,
402 .aabbSize = { 44, 100, 25 }
403};
StaticAnimatorNode * Entity_PinkFlower_Mesh[]
DmaEntry Entity_PinkFlower_dma[]
Definition Plants1.c:377
EntityScript Entity_PinkFlower_Script
Definition Plants1.c:353
void entity_PinkFlower_init(Entity *entity)
Definition Plants1.c:195
AnimScript Entity_PinkFlower_AnimationIdle
@ ENTITY_TYPE_PINK_FLOWER
Definition enums.h:2594

◆ Entity_SpinningFlower

EntityBlueprint Entity_SpinningFlower
extern

Definition at line 418 of file Plants1.c.

418 {
419 .flags = 0,
420 .typeDataSize = sizeof(SpinningFlowerData),
421 .renderCommandList = Entity_SpinningFlower_RenderScript,
422 .modelAnimationNodes = 0,
424 .updateEntityScript = Entity_SpinningFlower_Script,
425 .fpHandleCollision = NULL,
426 { .dma = ENTITY_ROM(SpinningFlower) },
427 .entityType = ENTITY_TYPE_SPINNING_FLOWER,
428 .aabbSize = { 45, 22, 42 }
429};
EntityScript Entity_SpinningFlower_Script
Definition Plants1.c:344
void entity_SpinningFlower_init(Entity *entity)
Definition Plants1.c:118
EntityModelScript Entity_SpinningFlower_RenderScript
Definition Plants1.c:374
@ ENTITY_TYPE_SPINNING_FLOWER
Definition enums.h:2595

◆ Entity_BellbellPlant

EntityBlueprint Entity_BellbellPlant
extern

Definition at line 331 of file Plants2.c.

331 {
333 .typeDataSize = 0,
334 .renderCommandList = Entity_BellbellPlant_AnimationIdle,
335 .modelAnimationNodes = Entity_BellbellPlant_Mesh,
336 .fpInit = NULL,
337 .updateEntityScript = Entity_BellbellPlant_Script,
338 .fpHandleCollision = NULL,
339 { .dmaList = Entity_BellbellPlant_dma },
340 .entityType = ENTITY_TYPE_BELLBELL_PLANT,
341 .aabbSize = { 30, 40, 30 }
342};
EntityScript Entity_BellbellPlant_Script
Definition Plants2.c:198
AnimScript Entity_BellbellPlant_AnimationIdle
DmaEntry Entity_BellbellPlant_dma[]
Definition Plants2.c:328
StaticAnimatorNode * Entity_BellbellPlant_Mesh[]
@ ENTITY_TYPE_BELLBELL_PLANT
Definition enums.h:2590

◆ Entity_TrumpetPlant

EntityBlueprint Entity_TrumpetPlant
extern

Definition at line 344 of file Plants2.c.

344 {
346 .typeDataSize = sizeof(TrumpetPlantData),
347 .renderCommandList = Entity_TrumpetPlant_AnimationIdle,
348 .modelAnimationNodes = Entity_TrumpetPlant_Mesh,
349 .fpInit = NULL,
350 .updateEntityScript = Entity_TrumpetPlant_Script,
351 .fpHandleCollision = NULL,
352 { .dmaList = Entity_TrumpetPlant_dma },
353 .entityType = ENTITY_TYPE_TRUMPET_PLANT,
354 .aabbSize = { 30, 40, 30 }
355};
AnimScript Entity_TrumpetPlant_AnimationIdle
StaticAnimatorNode * Entity_TrumpetPlant_Mesh[]
EntityScript Entity_TrumpetPlant_Script
Definition Plants2.c:208
DmaEntry Entity_TrumpetPlant_dma[]
Definition Plants2.c:329
@ ENTITY_TYPE_TRUMPET_PLANT
Definition enums.h:2591

◆ Entity_Munchlesia

EntityBlueprint Entity_Munchlesia
extern

Definition at line 357 of file Plants2.c.

357 {
359 .typeDataSize = sizeof(MunchlesiaData),
360 .renderCommandList = Entity_RenderNone_Script,
361 .modelAnimationNodes = 0,
362 .fpInit = entity_Munchlesia_init,
363 .updateEntityScript = Entity_Munchlesia_Script,
364 .fpHandleCollision = NULL,
365 { .dmaList = NULL },
366 .entityType = ENTITY_TYPE_MUNCHLESIA,
367 .aabbSize = { 45, 20, 45 }
368};
EntityModelScript Entity_RenderNone_Script
Definition Shadow.c:73
EntityScript Entity_Munchlesia_Script
Definition Plants2.c:230
void entity_Munchlesia_init(Entity *entity)
Definition Plants2.c:90
@ ENTITY_TYPE_MUNCHLESIA
Definition enums.h:2592

◆ Entity_ArrowSign

EntityBlueprint Entity_ArrowSign
extern

Definition at line 55 of file ArrowSign.c.

55 {
57 .typeDataSize = sizeof(ArrowSignData),
58 .renderCommandList = Entity_ArrowSign_RenderScript,
59 .modelAnimationNodes = 0,
60 .fpInit = entity_ArrowSign_init,
61 .updateEntityScript = Entity_ArrowSign_Script,
62 .fpHandleCollision = entity_ArrowSign_handle_collision,
63 { .dma = ENTITY_ROM(ArrowSign) },
64 .entityType = ENTITY_TYPE_RED_ARROW_SIGNS,
65 .aabbSize = { 18, 50, 10 }
66};
@ ENTITY_TYPE_RED_ARROW_SIGNS
Definition enums.h:2589
EntityScript Entity_ArrowSign_Script
Definition ArrowSign.c:48
void entity_ArrowSign_init(Entity *entity)
Definition ArrowSign.c:32
EntityModelScript Entity_ArrowSign_RenderScript
Definition ArrowSign.c:53
s32 entity_ArrowSign_handle_collision(Entity *entity)
Definition ArrowSign.c:41