papermario
Decompilation of Paper Mario
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
effect_utils.c File Reference

Functions

u32 effect_rand_int (s32 max)
 
s32 effect_simple_rand (s32 max, s32 idx)
 
void func_E02000AC (s32 arg0, s32 arg1)
 

Variables

u32 effect_prng_seed = 0x1E6D3457
 
void * effectFuncs []
 
s32 SimpleRandLUT [128]
 

Function Documentation

◆ effect_rand_int()

◆ effect_simple_rand()

◆ func_E02000AC()

void func_E02000AC ( s32 arg0,
s32 arg1 )

Variable Documentation

◆ effect_prng_seed

u32 effect_prng_seed = 0x1E6D3457

Referenced by effect_rand_int().

◆ effectFuncs

void* effectFuncs[]
Initial value:
= {
}
#define general_heap_malloc
Definition effect_shims.h:50
#define transform_point
Definition effect_shims.h:63
#define guRotateF
Definition effect_shims.h:41
#define is_point_visible
Definition effect_shims.h:61
#define guOrthoF
Definition effect_shims.h:65
#define get_msg_width
Definition effect_shims.h:70
#define sfx_play_sound_at_position
Definition effect_shims.h:72
#define queue_render_task
Definition effect_shims.h:47
#define sqrtf
Definition effect_shims.h:59
#define npc_raycast_down_sides
Definition effect_shims.h:57
#define guMtxF2L
Definition effect_shims.h:46
#define sin_deg
Definition effect_shims.h:54
#define guTranslateF
Definition effect_shims.h:42
#define guMtxCatF
Definition effect_shims.h:45
#define remove_effect
Definition effect_shims.h:49
#define mdl_draw_hidden_panel_surface
Definition effect_shims.h:60
#define rand_int
Definition effect_shims.h:52
#define guFrustumF
Definition effect_shims.h:66
#define draw_prev_frame_buffer_at_screen_pos
Definition effect_shims.h:67
#define guPositionF
Definition effect_shims.h:64
#define guPerspectiveF
Definition effect_shims.h:62
#define clamp_angle
Definition effect_shims.h:53
#define load_effect
Definition effect_shims.h:58
#define cos_deg
Definition effect_shims.h:55
#define draw_msg
Definition effect_shims.h:69
#define mdl_get_shroud_tint_params
Definition effect_shims.h:71
#define atan2
Definition effect_shims.h:56
#define draw_box
Definition effect_shims.h:68
#define create_effect_instance
Definition effect_shims.h:48
#define guTranslate
Definition effect_shims.h:43
#define mem_clear
Definition effect_shims.h:51
#define guScaleF
Definition effect_shims.h:44
void set_screen_overlay_params_back(u8, f32)
Definition screen_overlays.c:366
void set_screen_overlay_center_worldpos(s32 idx, s32 posIdx, s32 x, s32 y, s32 z)
Definition screen_overlays.c:413
void set_screen_overlay_center(s32, s32, s32, s32)
Definition screen_overlays.c:395
void * mdl_get_next_texture_address(s32)
Definition model.c:4517

◆ SimpleRandLUT

s32 SimpleRandLUT[128]
Initial value:
= {
0x100B2AF5, 0x45B59924, 0x35094B45, 0x4ABFA67A, 0x164F5371, 0x7B195845, 0x58562A56, 0x25733D41,
0x48008107, 0x0E004F28, 0x6963B8AD, 0x5B82AB71, 0x6BC1F51B, 0x3D947816, 0x39705175, 0x44409A59,
0x0ED99067, 0x5F70B6F8, 0x3225AEEE, 0x08B5E97C, 0x2CDE7594, 0x5E9E5B7D, 0x5B2A2888, 0x107F0F50,
0x58FBC53B, 0x65F69F19, 0x3AF6CEF3, 0x15C3894F, 0x4C931A2C, 0x39A897E9, 0x5945BB8C, 0x5C9E4521,
0x7F5E310D, 0x0E4F06D2, 0x275DEB9C, 0x15AD847F, 0x09685F17, 0x7FB415F2, 0x3B20C1C0, 0x5168E01E,
0x0DB4651A, 0x24847A6D, 0x2CEB8B8F, 0x79765A35, 0x6218F283, 0x665BDD04, 0x3DB6F48F, 0x70F282EB,
0x45CC93FC, 0x6FDCA37D, 0x79A86C67, 0x72AB0990, 0x4E7AFEFA, 0x54D294F0, 0x032A18E0, 0x2776C435,
0x3AC93409, 0x3E20E7D4, 0x3D3A4D85, 0x075C4E35, 0x77C97FBD, 0x16800911, 0x63FA9357, 0x7727B0CB,
0x24CF0FE3, 0x0B587EF3, 0x0CD5354A, 0x2E376EFA, 0x0B0C94E5, 0x47F5F70A, 0x7FA04F19, 0x18C0FA00,
0x6C7A7178, 0x2C8BDAA8, 0x12375435, 0x4E9363FB, 0x12E7B7AD, 0x4FEE48C4, 0x3F85E6E6, 0x58B44BA9,
0x3FCAEC41, 0x392E534E, 0x4B5F553A, 0x0E45EB3C, 0x0E00E83E, 0x4E896E1A, 0x35BCAF71, 0x48CA1C47,
0x0CAA55EE, 0x72F6FCF6, 0x50266A7D, 0x0473D5AC, 0x09770608, 0x3420FDD4, 0x7B9B8677, 0x2E4615EB,
0x3F797CC7, 0x0870BBC1, 0x5C7D84E6, 0x4A8611AC, 0x5066B2CB, 0x5C1DD3FF, 0x63470BAC, 0x3CE12443,
0x08A9AEA7, 0x757E5FE2, 0x0B74883F, 0x1B916654, 0x456CA8A6, 0x4AFA6F25, 0x7445B1FE, 0x053794E8,
0x0428C273, 0x3FA50738, 0x137D8024, 0x1229AAB1, 0x0E2E7552, 0x493A2F95, 0x5AF3C6F9, 0x1AD8CB41,
0x3C312C8C, 0x2B1A3176, 0x1F4CA0ED, 0x45A83294, 0x5F3B2F4A, 0x1AE82764, 0x73EE487F, 0x1EB4AC11,
}

Referenced by effect_simple_rand().