Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
variables.h
Go to the documentation of this file.
1#ifndef _VARIABLES_H_
2#define _VARIABLES_H_
3
4#include "ultra64.h"
5#include "common_structs.h"
6#include "types.h"
7#include "macros.h"
8#include "enums.h"
9
14extern u32 gRandSeed;
15extern ItemData gItemTable[];
16extern MoveData gMoveTable[];
17
18extern s32 gBattleState;
20extern s32 gLastDrawBattleState;
22extern s32 gBattleSubState;
23extern s32 gDefeatedBattleState;
24extern s32 gCurrentBattleID;
25extern s32 gCurrentStageID;
26extern struct Battle* gOverrideBattlePtr;
27
28extern Camera gCameras[4];
29extern s32 gCurrentCameraID;
30
32
33extern u8* gBackgroundTintModePtr;
34extern s32 gEntityHideMode;
35
37
39
41
42// Animation related
43
45
47
48extern Window gWindows[64];
49
50extern s32 gEncounterState;
51extern s32 gOverrideFlags;
52
54
55extern u16 gCurrentDoorSounds;
56extern u16 gCurrentRoomDoorSounds;
57
62
65
66extern s32 PrevPlayerDirection;
67extern s32 PeachDisguiseNpcIndex;
68extern s32 PlayerRunStateTime;
70extern s32 D_800F7B44;
71extern f32 PlayerNormalYaw;
72extern f32 PlayerNormalPitch;
73extern s32 NpcHitQueryColliderID;
75
76extern s32 gEncounterSubState;
77extern s32 gTimeFreezeMode;
79
80extern u8 IntroMessageIdx;
81extern s32 PartnerIDFromMenuIndex[12]; // partner IDs
82
83// Scripts
85extern EvtScript ShakeCam1;
86extern EvtScript ShakeCamX;
87
89
90// gfx
92extern Gfx* gMainGfxPos;
93extern u16 gMatrixListPos;
95
96extern s16 gCurrentCamID;
97
98extern s32 PartnerWishAnims[][5];
99
101
102extern u32 bMarioIdleAnims[];
103extern s32 bMarioDefendAnims[];
104extern s32 bPeachIdleAnims[];
105
107extern StatusBar gStatusBar;
111
112#if VERSION_PAL
113extern s32 gCurrentLanguage;
114#else
115#define gCurrentLanguage 0
116#endif
117
118#endif
s32 b32
Bytecode EvtScript[]
PartnerWishAnims
Definition enums.h:3393
Zero-terminated.
Definition battle.h:195
#define UNK_FUN_PTR(name)
Definition types.h:10
MusicSettings gMusicSettings[2]
s32 gEntityHideMode
Definition entity.c:37
s32 gBattleState
Definition battle.c:10
u8 IntroMessageIdx
s32 gDefeatedBattleState
Definition battle.c:15
s32 gCurrentBattleID
Definition battle.c:16
s32 gOverrideFlags
Definition main_loop.c:11
BackgroundHeader gBackgroundImage
ItemData gItemTable[]
Entity * TweesterTouchingPartner
Definition 7B440.c:5
PlayerStatus * gPlayerStatusPtr
s32 bPeachIdleAnims[]
Definition actors.c:122
s32 bMarioDefendAnims[]
Definition actors.c:76
s32 PartnerIDFromMenuIndex[12]
Definition 5B320.c:300
#define gCurrentLanguage
Definition variables.h:115
CollisionData gZoneCollisionData
Definition collision.c:36
GameStatus gGameStatus
Definition main_loop.c:21
s32 PrevPlayerDirection
Definition 7B440.c:7
CollisionStatus gCollisionStatus
Definition 7BB60.c:6
PartnerStatus gPartnerStatus
Definition partners.c:42
GameStatus * gGameStatusPtr
Definition main_loop.c:32
s32 NpcHitQueryColliderID
EvtScript ShakeCamX
Definition cam_api.c:10
struct Battle * gOverrideBattlePtr
Definition battle.c:18
f32 PlayerNormalPitch
Definition 7B440.c:10
WindowStyle gWindowStyles[]
Definition windows.c:25
PlayerSpinState gPlayerSpinState
Definition 7B440.c:11
s32 D_800F7B44
Definition 7E9D0.c:32
void(* TalkNotificationCallback)(void)
Definition 77480.c:35
Camera gCameras[4]
Definition cam_main.c:17
s32 PrevPlayerCamRelativeYaw
Definition 7E9D0.c:31
Gfx * gMainGfxPos
Definition cam_main.c:15
PlayerData gPlayerData
Definition 77480.c:40
u16 gMatrixListPos
Definition main_loop.c:45
u8 * gBackgroundTintModePtr
Definition model.c:105
SpriteShadingProfile * gSpriteShadingProfile
PartnerAnimations gPartnerAnimations[12]
Definition partners.c:343
BattleStatus gBattleStatus
Definition battle.c:11
void(* PulseStoneNotificationCallback)(void)
Definition 77480.c:34
f32 PlayerNormalYaw
Definition 7B440.c:9
u32 bMarioIdleAnims[]
Definition actors.c:53
PlayerStatus gPlayerStatus
Definition 77480.c:39
EvtScript EVS_NpcDefeat
Definition encounter.c:65
u32 gRandSeed
Definition 43F0.c:28
s32 gCurrentCameraID
Definition cam_math.c:4
CollisionData gCollisionData
Definition collision.c:35
void(* InteractNotificationCallback)(void)
Definition 77480.c:36
s32 gCurrentStageID
Definition battle.c:17
s32 gEncounterState
Definition encounter.c:174
s32 gBattleSubState
Definition battle.c:14
s32 gDefeatedBattleSubstate
Definition battle.c:13
b32 EncounterStateChanged
Definition encounter.c:24
MoveData gMoveTable[]
u16 gCurrentDoorSounds
Definition sfx.c:6
StatusBar gStatusBar
Definition inventory.c:17
s32 gCurrentDisplayContextIndex
Definition main_loop.c:47
HeapNode heap_battleHead
EvtScript ShakeCam1
Definition cam_api.c:3
void(* ISpyNotificationCallback)(void)
Definition 77480.c:33
Vec3s StandardActorHomePositions[]
Definition actors.c:188
s32 PlayerRunStateTime
Definition 7B440.c:8
Entity * TweesterTouchingPlayer
Definition 7B440.c:6
s32 gTimeFreezeMode
Definition main_loop.c:12
s32 gLastDrawBattleState
Definition battle.c:12
u16 gCurrentRoomDoorSounds
Definition sfx.c:7
Window gWindows[64]
Definition windows.c:23
DisplayContext * gDisplayContext
Definition cam_main.c:16
s16 gCurrentCamID
Definition cam_main.c:13
s32 gEncounterSubState
Definition encounter.c:175
HiddenPanelsData gCurrentHiddenPanels
Definition entity.c:36
s32 PeachDisguiseNpcIndex
Definition 7B440.c:4