1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-29 00:06:33 +00:00

[includes] Explicit global.h includes for z_player (#2235)

This commit is contained in:
Dragorn421 2024-09-27 06:35:40 +02:00 committed by GitHub
parent bc8945eb3a
commit ca70ba14a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 45 additions and 28 deletions

View file

@ -5,6 +5,7 @@
*/
#include "z_bg_heavy_block.h"
#include "global.h"
#include "assets/objects/object_heavy_object/object_heavy_object.h"
#include "quake.h"
#include "terminal.h"

View file

@ -2,11 +2,11 @@
#define Z_BG_HEAVY_BLOCK_H
#include "ultra64.h"
#include "global.h"
#include "z64actor.h"
struct BgHeavyBlock;
typedef void (*BgHeavyBlockActionFunc)(struct BgHeavyBlock*, PlayState*);
typedef void (*BgHeavyBlockActionFunc)(struct BgHeavyBlock*, struct PlayState*);
typedef struct BgHeavyBlock {
/* 0x0000 */ DynaPolyActor dyna;

View file

@ -1,4 +1,5 @@
#include "z_demo_kankyo.h"
#include "global.h"
#include "versions.h"
#include "z64cutscene_commands.h"
#include "assets/objects/gameplay_keep/gameplay_keep.h"

View file

@ -2,11 +2,11 @@
#define Z_DEMO_KANKYO_H
#include "ultra64.h"
#include "global.h"
#include "z64actor.h"
struct DemoKankyo;
typedef void (*DemoKankyoActionFunc)(struct DemoKankyo*, PlayState*);
typedef void (*DemoKankyoActionFunc)(struct DemoKankyo*, struct PlayState*);
typedef enum DemoKankyoType {
/* 0x00 */ DEMOKANKYO_BLUE_RAIN,

View file

@ -5,6 +5,7 @@
*/
#include "z_elf_msg.h"
#include "global.h"
#include "terminal.h"
#include "overlays/actors/ovl_En_Elf/z_en_elf.h"

View file

@ -2,11 +2,11 @@
#define Z_ELF_MSG_H
#include "ultra64.h"
#include "global.h"
#include "z64actor.h"
struct ElfMsg;
typedef void (*ElfMsgActionFunc)(struct ElfMsg*, PlayState*);
typedef void (*ElfMsgActionFunc)(struct ElfMsg*, struct PlayState*);
typedef struct ElfMsg {
/* 0x0000 */ Actor actor;

View file

@ -5,6 +5,7 @@
*/
#include "z_en_arrow.h"
#include "global.h"
#include "assets/objects/gameplay_keep/gameplay_keep.h"
#define FLAGS (ACTOR_FLAG_4 | ACTOR_FLAG_5)

View file

@ -2,11 +2,12 @@
#define Z_EN_ARROW_H
#include "ultra64.h"
#include "global.h"
#include "z64actor.h"
#include "z64player.h"
struct EnArrow;
typedef void (*EnArrowActionFunc)(struct EnArrow*, PlayState*);
typedef void (*EnArrowActionFunc)(struct EnArrow*, struct PlayState*);
typedef struct EnArrow {
/* 0x0000 */ Actor actor;

View file

@ -5,6 +5,7 @@
*/
#include "z_en_boom.h"
#include "global.h"
#include "assets/objects/gameplay_keep/gameplay_keep.h"
#define FLAGS (ACTOR_FLAG_4 | ACTOR_FLAG_5)

View file

@ -2,11 +2,12 @@
#define Z_EN_BOOM_H
#include "ultra64.h"
#include "global.h"
#include "z64actor.h"
#include "z64player.h"
struct EnBoom;
typedef void (*EnBoomActionFunc)(struct EnBoom*, PlayState*);
typedef void (*EnBoomActionFunc)(struct EnBoom*, struct PlayState*);
typedef struct EnBoom {
/* 0x0000 */ Actor actor;

View file

@ -1,4 +1,5 @@
#include "z_en_box.h"
#include "global.h"
#include "overlays/actors/ovl_Demo_Kankyo/z_demo_kankyo.h"
#include "assets/objects/object_box/object_box.h"

View file

@ -2,14 +2,14 @@
#define Z_EN_BOX_H
#include "ultra64.h"
#include "global.h"
#include "z64actor.h"
#define ENBOX_TREASURE_FLAG_UNK_MIN 20
#define ENBOX_TREASURE_FLAG_UNK_MAX 32
struct EnBox;
typedef void (*EnBoxActionFunc)(struct EnBox*, PlayState*);
typedef void (*EnBoxActionFunc)(struct EnBox*, struct PlayState*);
typedef enum EnBoxType {
/*

View file

@ -5,6 +5,7 @@
*/
#include "z_en_door.h"
#include "global.h"
#include "assets/objects/gameplay_keep/gameplay_keep.h"
#include "assets/objects/gameplay_field_keep/gameplay_field_keep.h"
#include "assets/objects/object_hidan_objects/object_hidan_objects.h"

View file

@ -2,7 +2,7 @@
#define Z_EN_DOOR_H
#include "ultra64.h"
#include "global.h"
#include "z64actor.h"
/**
* Actor Parameters
@ -46,7 +46,7 @@ typedef enum EnDoorType {
struct EnDoor;
typedef void (*EnDoorActionFunc)(struct EnDoor*, PlayState*);
typedef void (*EnDoorActionFunc)(struct EnDoor*, struct PlayState*);
typedef struct EnDoor {
/* 0x0000 */ DOOR_ACTOR_BASE;

View file

@ -5,6 +5,7 @@
*/
#include "z_en_elf.h"
#include "global.h"
#include "assets/objects/gameplay_keep/gameplay_keep.h"
#define FLAGS (ACTOR_FLAG_4 | ACTOR_FLAG_5 | ACTOR_FLAG_25)

View file

@ -2,13 +2,14 @@
#define Z_EN_ELF_H
#include "ultra64.h"
#include "global.h"
#include "z64actor.h"
#include "z64light.h"
#include "overlays/actors/ovl_Elf_Msg/z_elf_msg.h"
struct EnElf;
typedef void (*EnElfActionFunc)(struct EnElf*, PlayState*);
typedef void (*EnElfUnkFunc)(struct EnElf*, PlayState*);
typedef void (*EnElfActionFunc)(struct EnElf*, struct PlayState*);
typedef void (*EnElfUnkFunc)(struct EnElf*, struct PlayState*);
typedef struct EnElf {
/* 0x0000 */ Actor actor;

View file

@ -5,6 +5,7 @@
*/
#include "z_en_fish.h"
#include "global.h"
#include "assets/objects/gameplay_keep/gameplay_keep.h"
#include "terminal.h"

View file

@ -2,11 +2,11 @@
#define Z_EN_FISH_H
#include "ultra64.h"
#include "global.h"
#include "z64actor.h"
struct EnFish;
typedef void (*EnFishActionFunc)(struct EnFish*, PlayState*);
typedef void (*EnFishActionFunc)(struct EnFish*, struct PlayState*);
typedef struct EnFish {
/* 0x0000 */ Actor actor;

View file

@ -5,6 +5,7 @@
*/
#include "z_en_horse.h"
#include "global.h"
#include "versions.h"
#include "overlays/actors/ovl_En_In/z_en_in.h"
#include "assets/objects/object_horse/object_horse.h"

View file

@ -2,7 +2,8 @@
#define Z_EN_HORSE_H
#include "ultra64.h"
#include "global.h"
#include "z64actor.h"
#include "z64skin.h"
typedef enum EnHorseAction {
/* 0 */ ENHORSE_ACT_FROZEN,
@ -89,7 +90,7 @@ typedef enum HorseType {
/* 1 */ HORSE_HNI
} HorseType;
typedef void (*EnHorsePostdrawFunc)(struct EnHorse*, PlayState*);
typedef void (*EnHorsePostdrawFunc)(struct EnHorse*, struct PlayState*);
typedef struct EnHorse {
/* 0x0000 */ Actor actor;

View file

@ -5,6 +5,7 @@
*/
#include "z_en_insect.h"
#include "global.h"
#include "terminal.h"
#include "assets/objects/gameplay_keep/gameplay_keep.h"

View file

@ -2,12 +2,12 @@
#define Z_EN_INSECT_H
#include "ultra64.h"
#include "global.h"
#include "z64actor.h"
#include "overlays/actors/ovl_Obj_Makekinsuta/z_obj_makekinsuta.h"
struct EnInsect;
typedef void (*EnInsectActionFunc)(struct EnInsect*, PlayState*);
typedef void (*EnInsectActionFunc)(struct EnInsect*, struct PlayState*);
#define INSECT_FLAG_0 (1 << 0)
#define INSECT_FLAG_1 (1 << 1)

View file

@ -5,6 +5,7 @@
*/
#include "z_obj_makekinsuta.h"
#include "global.h"
#include "terminal.h"
#define FLAGS ACTOR_FLAG_4

View file

@ -2,11 +2,11 @@
#define Z_OBJ_MAKEKINSUTA_H
#include "ultra64.h"
#include "global.h"
#include "z64actor.h"
struct ObjMakekinsuta;
typedef void (*ObjMakekinsutaActionFunc)(struct ObjMakekinsuta*, PlayState*);
typedef void (*ObjMakekinsutaActionFunc)(struct ObjMakekinsuta*, struct PlayState*);
typedef struct ObjMakekinsuta {
/* 0x000 */ Actor actor;

View file

@ -11,7 +11,6 @@
#include "overlays/actors/ovl_Bg_Heavy_Block/z_bg_heavy_block.h"
#include "overlays/actors/ovl_Demo_Kankyo/z_demo_kankyo.h"
#include "overlays/actors/ovl_Door_Shutter/z_door_shutter.h"
#include "overlays/actors/ovl_En_Boom/z_en_boom.h"
#include "overlays/actors/ovl_En_Arrow/z_en_arrow.h"
#include "overlays/actors/ovl_En_Box/z_en_box.h"

View file

@ -2,7 +2,9 @@
#define Z_EFF_SS_FHGFLASH_H
#include "ultra64.h"
#include "global.h"
#include "z64math.h"
struct Actor;
typedef struct EffectSsFhgFlashInitParams {
/* 0x00 */ Vec3f pos;
@ -10,7 +12,7 @@ typedef struct EffectSsFhgFlashInitParams {
/* 0x18 */ Vec3f accel;
/* 0x24 */ s16 scale;
/* 0x26 */ u8 param;
/* 0x28 */ Actor* actor;
/* 0x28 */ struct Actor* actor;
/* 0x2C */ u8 type;
} EffectSsFhgFlashInitParams; // size = 0x30