Go to the source code of this file.
◆ PulseStoneData
Data Fields |
Vec3f |
pos |
|
f32 |
scale |
|
char |
unk_10[0x8] |
|
s32 |
appearDelay |
|
char |
unk_1C[0x4] |
|
s32 |
pingTime |
|
s32 |
state |
|
◆ anonymous enum
Enumerator |
---|
PULSE_STONE_APPEAR | |
PULSE_STONE_OVERSHOOT | |
PULSE_STONE_HOLD | |
Definition at line 14 of file pulse_stone.c.
◆ INCLUDE_IMG()
INCLUDE_IMG |
( |
"pulse_stone_icon.png" | , |
|
|
pulse_stone_icon_img | ) |
◆ INCLUDE_PAL() [1/2]
INCLUDE_PAL |
( |
"pulse_stone_icon.pal" | , |
|
|
pulse_stone_icon_1_pal | ) |
◆ INCLUDE_PAL() [2/2]
INCLUDE_PAL |
( |
"pulse_stone_icon.flash.pal" | , |
|
|
pulse_stone_icon_2_pal | ) |
◆ pulse_stone_notification_update()
void pulse_stone_notification_update |
( |
void | | ) |
|
Definition at line 154 of file pulse_stone.c.
154 {
156
161
164 playerStatus->
animFlags &= ~PA_FLAG_PULSE_STONE_VISIBLE;
165 return;
166 }
167
171 break;
172 }
175 break;
179 break;
183 break;
184 }
185}
s32 should_continue_pulse_stone(void)
PulseStoneData * PulseStonePtr
void(* PulseStoneNotificationCallback)(void)
PlayerStatus gPlayerStatus
Referenced by pulse_stone_notification_setup().
◆ should_cancel_pulse_stone()
s32 should_cancel_pulse_stone |
( |
void | | ) |
|
Definition at line 31 of file pulse_stone.c.
31 {
35
37 return TRUE;
38 }
39
42 ) {
43 return TRUE;
44 }
45
46 return FALSE;
47}
@ ACTION_STATE_USE_TWEESTER
PartnerStatus gPartnerStatus
Referenced by should_continue_pulse_stone().
◆ should_continue_pulse_stone()
s32 should_continue_pulse_stone |
( |
void | | ) |
|
Definition at line 49 of file pulse_stone.c.
49 {
51
57 ) {
58
61
62 if ((dx + dy) < 6) {
64 return TRUE;
65 }
66 }
67 }
68 return FALSE;
69}
@ PA_FLAG_USING_PULSE_STONE
s32 has_valid_conversation_npc(void)
s32 is_starting_conversation(void)
s32 should_cancel_pulse_stone(void)
GameStatus * gGameStatusPtr
Referenced by pulse_stone_notification_update().
◆ pulse_stone_notification_setup()
void pulse_stone_notification_setup |
( |
void | | ) |
|
Definition at line 71 of file pulse_stone.c.
71 {
73
80}
@ PA_FLAG_PULSE_STONE_VISIBLE
The pulse stone icon is being shown.
void pulse_stone_notification_update(void)
Referenced by check_for_pulse_stone().
◆ appendGfx_pulse_stone_icon()
void appendGfx_pulse_stone_icon |
( |
void | | ) |
|
Definition at line 82 of file pulse_stone.c.
82 {
86 s32 pingDelay;
87 s32 dx, dy;
88
96
98 G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
99 gSPDisplayList(
gMainGfxPos++, pulse_stone_icon_gfx);
100
103
104 switch (dx + dy) {
105 case 0:
106 pingDelay = 4;
107 break;
108 case 1:
109 pingDelay = 8;
110 break;
111 case 2:
112 pingDelay = 16;
113 break;
114 case 3:
115 pingDelay = 32;
116 break;
117 case 4:
118 pingDelay = 64;
119 break;
120 case 5:
121 pingDelay = 128;
122 break;
123 default:
124 pingDelay = -1;
126 break;
127 }
128
129 ifxImg.
palette = pulse_stone_icon_1_pal;
130 if (pingDelay >= 0) {
135 }
137 ifxImg.
palette = pulse_stone_icon_2_pal;
138 } else {
139 ifxImg.
palette = pulse_stone_icon_1_pal;
140 }
141 }
142
143 ifxImg.
raster = pulse_stone_icon_img;
144 ifxImg.
width = pulse_stone_icon_img_width;
145 ifxImg.
height = pulse_stone_icon_img_height;
151 }
152}
s32 imgfx_appendGfx_component(s32, ImgFXTexture *, u32, Matrix4f)
void sfx_play_sound_at_player(s32 soundID, s32 arg1)
DisplayContext * gDisplayContext
Referenced by render_pulse_stone_icon().
◆ PulseStoneNotification
◆ PulseStonePtr