Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
game.h
Go to the documentation of this file.
1 #ifndef _GAME_H_
2 #define _GAME_H_
3 
4 #include "memory.h"
5 struct DemoInput
6 { // TODO: see if timer matches with s8
7  /*0x00*/ u8 timer; // until next input: if this value
8  // is 0 proceeding on the demo input, it
9  // means the demo is over.
10  /*0x01*/ s8 rawStickX;
11  /*0x02*/ s8 rawStickY;
12  /*0x03*/ u8 button;
13 };
14 
15 extern struct Controller gControllers[3];
16 extern OSContStatus gControllerStatuses[4];
17 extern OSContPad gControllerPads[4];
18 extern OSMesgQueue gGameVblankQueue;
19 extern OSMesgQueue D_80339CB8;
20 extern OSMesg D_80339CD0;
21 extern OSMesg D_80339CD4;
22 extern struct VblankHandler gGameVblankHandler;
23 extern u32 gFrameBuffers[3];
24 extern u32 zBufferPtr;
25 extern void *D_80339CF0;
26 extern void *D_80339CF4;
27 extern struct SPTask *gGfxSPTask;
28 extern Gfx *gDisplayListHead;
29 extern u8 *gGfxPoolEnd;
30 extern struct GfxPool *gGfxPool;
31 extern u8 gControllerBits;
32 extern s8 gEepromProbe;
33 
34 extern void (*D_8032C6A0)(void);
35 extern struct Controller *gPlayer1Controller;
36 extern struct Controller *gPlayer2Controller;
37 extern struct Controller *gPlayer3Controller;
38 extern struct DemoInput *gCurrDemoInput;
39 extern u16 gDemoInputListID;
40 extern struct DemoInput gRecordedDemoInput;
41 
42 extern void init_controllers(void);
43 extern void setup_game_memory(void);
44 extern void thread5_game_loop(void *);
45 extern u16 func_802495B0(u32);
46 
47 // this area is the demo input + the header. when the demo is loaded in, there is a header the size
48 // of a single word next to the input list. this word is the current ID count.
49 extern struct MarioAnimation D_80339D10;
50 extern struct MarioAnimation gDemo; // gDemo
51 
52 extern u8 gZBuffer[];
53 extern u8 gMarioAnims[];
54 extern u8 gDemoInputs[];
55 extern u8 D_10000000[];
56 
57 #endif
void thread5_game_loop(void *)
u32 gFrameBuffers[3]
Definition: game.c:29
u8 * gGfxPoolEnd
Definition: game.c:35
void setup_game_memory(void)
Definition: game.c:264
signed char s8
Definition: ultratypes.h:11
struct MarioAnimation D_80339D10
Definition: game.c:40
unsigned short int u16
Definition: ultratypes.h:14
u8 timer
Definition: game.h:7
struct VblankHandler gGameVblankHandler
Definition: game.c:28
u8 gControllerBits
Definition: game.c:37
Definition: gbi_old.h:59
s8 gEepromProbe
Definition: game.c:38
OSMesg D_80339CD4
Definition: game.c:27
Definition: types.h:47
u32 zBufferPtr
Definition: game.c:30
Definition: game.h:5
OSContStatus gControllerStatuses[4]
Definition: game.c:22
void * D_80339CF0
Definition: game.c:31
OSMesg D_80339CD0
Definition: game.c:26
void * D_80339CF4
Definition: game.c:32
u8 gDemoInputs[]
Definition: types.h:39
Gfx * gDisplayListHead
Definition: game.c:34
struct MarioAnimation gDemo
Definition: game.c:41
u8 gMarioAnims[]
u16 func_802495B0(u32)
Definition: types.h:9
Definition: types.h:230
struct Controller * gPlayer1Controller
Definition: game.c:45
struct Controller * gPlayer3Controller
Definition: game.c:48
struct Controller gControllers[3]
Definition: game.c:21
s8 rawStickY
Definition: game.h:11
void(* D_8032C6A0)(void)
Definition: game.c:44
void init_controllers(void)
Definition: game.c:233
struct SPTask * gGfxSPTask
Definition: game.c:33
unsigned char u8
Definition: ultratypes.h:12
OSMesgQueue D_80339CB8
Definition: game.c:25
struct GfxPool * gGfxPool
Definition: game.c:36
OSContPad gControllerPads[4]
Definition: game.c:23
u8 button
Definition: game.h:12
Definition: display.h:8
struct Controller * gPlayer2Controller
Definition: game.c:46
u8 D_10000000[]
u16 gDemoInputListID
Definition: game.c:50
struct DemoInput gRecordedDemoInput
Definition: game.c:51
one operand is a pointer to an object or incomplete type and the other is a pointer to a qualified or unqualified version of void
Definition: err.english.cc:848
struct DemoInput * gCurrDemoInput
Definition: game.c:49
unsigned int u32
Definition: ultratypes.h:16
s8 rawStickX
Definition: game.h:10
OSMesgQueue gGameVblankQueue
Definition: game.c:24
u8 gZBuffer[]