Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
sleepy_sheep.c File Reference

Go to the source code of this file.

Functions

s32 virtual_entity_create (EntityModelScript *)
 
void virtual_entity_set_pos (s32, s32, s32, s32)
 
void virtual_entity_set_scale (s32, f32, f32, f32)
 
void virtual_entity_delete_by_index (s32)
 
 INCLUDE_IMG ("battle/move/item/sleepy_sheep1.png", battle_item_sleepy_sheep1_png)
 
 INCLUDE_PAL ("battle/move/item/sleepy_sheep1.pal", battle_item_sleepy_sheep1_pal)
 
 INCLUDE_IMG ("battle/move/item/sleepy_sheep2.png", battle_item_sleepy_sheep2_png)
 
 INCLUDE_PAL ("battle/move/item/sleepy_sheep2.pal", battle_item_sleepy_sheep2_pal)
 
 INCLUDE_IMG ("battle/move/item/sleepy_sheep3.png", battle_item_sleepy_sheep3_png)
 
 INCLUDE_PAL ("battle/move/item/sleepy_sheep3.pal", battle_item_sleepy_sheep3_pal)
 

Variables

s32 D_802A3E88_7214D8 []
 
EntityModelScriptD_802A3F28_721578 [10]
 
f32 D_802A3F00_721550 [] = { 1.0f, 1.0f, 0.75f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.75f, 0.75f }
 
BSS s32 D_802A3F54
 
BSS s32 D_802A3F58 [10]
 
BSS s32 D_802A3F80 [2]
 
BSS Vec3f D_802A3F88
 

Function Documentation

◆ virtual_entity_create()

s32 virtual_entity_create ( EntityModelScript * cmdList)

Definition at line 550 of file virtual_entity.c.

550 {
551 s32 i;
552 VirtualEntity* virtualEntity;
553
554 for (i = 0; i < ARRAY_COUNT(*gCurrentVirtualEntityListPtr); i++) {
555 virtualEntity = (*gCurrentVirtualEntityListPtr)[i];
556 if (virtualEntity->entityModelIndex < 0) {
557 break;
558 }
559 }
560
562 return 0;
563 }
564
565 virtualEntity->entityModelIndex = load_entity_model(cmdList);
566 virtualEntity->pos.x = 0.0f;
567 virtualEntity->pos.y = 0.0f;
568 virtualEntity->pos.z = 0.0f;
569 virtualEntity->rot.x = 0.0f;
570 virtualEntity->rot.y = 0.0f;
571 virtualEntity->rot.z = 0.0f;
572 virtualEntity->scale.x = 1.0f;
573 virtualEntity->scale.y = 1.0f;
574 virtualEntity->scale.z = 1.0f;
575
577
578 return i;
579}
s32 load_entity_model(EntityModelScript *cmdList)
void exec_entity_model_commandlist(s32 idx)
#define ARRAY_COUNT(arr)
Definition macros.h:40
VirtualEntityList * gCurrentVirtualEntityListPtr
Definition script_list.c:47

◆ virtual_entity_set_pos()

void virtual_entity_set_pos ( s32 index,
s32 posX,
s32 posY,
s32 posZ )

Definition at line 612 of file virtual_entity.c.

612 {
613 VirtualEntity* virtualEntity = (*gCurrentVirtualEntityListPtr)[index];
614
615 virtualEntity->pos.x = posX;
616 virtualEntity->pos.y = posY;
617 virtualEntity->pos.z = posZ;
618}

◆ virtual_entity_set_scale()

void virtual_entity_set_scale ( s32 index,
f32 scaleX,
f32 scaleY,
f32 scaleZ )

Definition at line 620 of file virtual_entity.c.

620 {
621 VirtualEntity* virtualEntity = (*gCurrentVirtualEntityListPtr)[index];
622
623 virtualEntity->scale.x = scaleX;
624 virtualEntity->scale.y = scaleY;
625 virtualEntity->scale.z = scaleZ;
626}

◆ virtual_entity_delete_by_index()

void virtual_entity_delete_by_index ( s32 index)

Definition at line 636 of file virtual_entity.c.

636 {
637 VirtualEntity* virtualEntity = (*gCurrentVirtualEntityListPtr)[index];
638
640 virtualEntity->entityModelIndex = -1;
641}
void free_entity_model_by_index(s32 idx)

Referenced by virtual_entity_delete_by_ref().

◆ INCLUDE_IMG() [1/3]

INCLUDE_IMG ( "battle/move/item/sleepy_sheep1.png" ,
battle_item_sleepy_sheep1_png  )

◆ INCLUDE_PAL() [1/3]

INCLUDE_PAL ( "battle/move/item/sleepy_sheep1.pal" ,
battle_item_sleepy_sheep1_pal  )

◆ INCLUDE_IMG() [2/3]

INCLUDE_IMG ( "battle/move/item/sleepy_sheep2.png" ,
battle_item_sleepy_sheep2_png  )

◆ INCLUDE_PAL() [2/3]

INCLUDE_PAL ( "battle/move/item/sleepy_sheep2.pal" ,
battle_item_sleepy_sheep2_pal  )

◆ INCLUDE_IMG() [3/3]

INCLUDE_IMG ( "battle/move/item/sleepy_sheep3.png" ,
battle_item_sleepy_sheep3_png  )

◆ INCLUDE_PAL() [3/3]

INCLUDE_PAL ( "battle/move/item/sleepy_sheep3.pal" ,
battle_item_sleepy_sheep3_pal  )

Variable Documentation

◆ D_802A3E88_7214D8

s32 D_802A3E88_7214D8
Initial value:
= {
0, 0, 0,
-30, 0, -50,
-27, 0, 30,
-70, 0, -5,
-105, 0, 30,
-110, 0, -50,
-145, 0, -5,
-170, 0, -50,
-190, 0, -30,
-210, 0, -10,
}

Definition at line 440 of file sleepy_sheep.c.

440 {
441 0, 0, 0,
442 -30, 0, -50,
443 -27, 0, 30,
444 -70, 0, -5,
445 -105, 0, 30,
446 -110, 0, -50,
447 -145, 0, -5,
448 -170, 0, -50,
449 -190, 0, -30,
450 -210, 0, -10,
451};

◆ D_802A3F28_721578

EntityModelScript * D_802A3F28_721578
Initial value:
= {
&N(modelCommandList),
&N(modelCommandList2),
&N(modelCommandList3),
&N(modelCommandList),
&N(modelCommandList2),
&N(modelCommandList3),
&N(modelCommandList),
&N(modelCommandList2),
&N(modelCommandList3),
&N(modelCommandList)
}

Definition at line 455 of file sleepy_sheep.c.

455 {
456 &N(modelCommandList),
457 &N(modelCommandList2),
458 &N(modelCommandList3),
459 &N(modelCommandList),
460 &N(modelCommandList2),
461 &N(modelCommandList3),
462 &N(modelCommandList),
463 &N(modelCommandList2),
464 &N(modelCommandList3),
465 &N(modelCommandList)
466};

◆ D_802A3F00_721550

f32 D_802A3F00_721550 = { 1.0f, 1.0f, 0.75f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.75f, 0.75f }

Definition at line 453 of file sleepy_sheep.c.

453{ 1.0f, 1.0f, 0.75f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.75f, 0.75f };

◆ D_802A3F54

BSS s32 D_802A3F54

Definition at line 22 of file sleepy_sheep.c.

◆ D_802A3F58

BSS s32 D_802A3F58[10]

Definition at line 23 of file sleepy_sheep.c.

◆ D_802A3F80

BSS s32 D_802A3F80[2]

Definition at line 24 of file sleepy_sheep.c.

◆ D_802A3F88

BSS Vec3f D_802A3F88

Definition at line 25 of file sleepy_sheep.c.