finish object event rename

This commit is contained in:
garak committed 2019-12-17 15:05:23 -05:00
1 parent 36b2301fd2
commit 46a8b0fb29
27 files changed
+44 -55

No files matched your search

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
#ifndef GUARD_FIELD_MAP_OBJ_H
#define GUARD_FIELD_MAP_OBJ_H
#ifndef GUARD_EVENT_OBJECT_MOVEMENT_H
#define GUARD_EVENT_OBJECT_MOVEMENT_H
#include "global.h"
@@ -96,6 +96,8 @@ u8 ObjectEventCheckHeldMovementStatus(struct ObjectEvent *mapObject);
u8 sub_8063F84(u8 direction);
u8 GetTrainerFacingDirectionMovementType(u8 direction);
void CameraObjectSetFollowedObjectId(u8 spriteId);
void UnfreezeObjectEvents(void);
void sub_8069058(u8, u8);
// Exported data declarations
@@ -103,4 +105,4 @@ extern const struct SpriteTemplate *const gFieldEffectObjectTemplatePointers[];
extern const struct SpritePalette gUnknown_83A5348;
extern const struct SpriteTemplate * const gUnknown_83A0010[];
#endif //GUARD_FIELD_MAP_OBJ_H
#endif // GUARD_EVENT_OBJECT_MOVEMENT_H
-9
View File
@@ -1,9 +0,0 @@
#ifndef GUARD_FIELDMAPOBJHELP_H
#define GUARD_FIELDMAPOBJHELP_H
#include "global.h"
void UnfreezeObjectEvents(void);
void sub_8069058(u8, u8);
#endif
+2 -2
View File
@@ -1,7 +1,7 @@
#ifndef GUARD_GLOBAL_FIELDMAP_H
#define GUARD_GLOBAL_FIELDMAP_H
#define NUM_FIELD_OBJECTS 16
#define OBJECT_EVENTS_COUNT 16
enum
{
@@ -309,7 +309,7 @@ struct Camera
s32 y;
};
extern struct ObjectEvent gObjectEvents[NUM_FIELD_OBJECTS];
extern struct ObjectEvent gObjectEvents[OBJECT_EVENTS_COUNT];
extern u8 gSelectedObjectEvent;
extern struct MapHeader gMapHeader;
extern struct PlayerAvatar gPlayerAvatar;
+5 -5
View File
@@ -95,11 +95,11 @@ SECTIONS {
asm/field_camera.o(.text);
src/field_door.o(.text);
asm/field_player_avatar.o(.text);
asm/field_map_obj.o(.text);
asm/event_object_movement.o(.text);
asm/field_ground_effect.o(.text);
asm/map_obj_80688E4.o(.text);
asm/event_object_80688E4.o(.text);
asm/field_message_box.o(.text);
src/map_obj_lock.o(.text);
src/event_object_lock.o(.text);
src/text_window_graphics.o(.text);
src/script.o(.text);
src/scrcmd.o(.text);
@@ -412,9 +412,9 @@ SECTIONS {
src/metatile_behavior.o(.rodata);
src/field_door.o(.rodata);
data/field_player_avatar.o(.rodata);
data/field_map_obj.o(.rodata);
data/event_object_movement.o(.rodata);
data/field_ground_effect.o(.rodata);
data/map_obj_80688E4.o(.rodata);
data/event_object_80688E4.o(.rodata);
src/scrcmd.o(.rodata);
src/coord_event_weather.o(.rodata);
data/field_tasks.o(.rodata);
+2 -2
View File
@@ -13,7 +13,7 @@
#include "strings.h"
#include "string_util.h"
#include "event_data.h"
#include "map_obj_80688E4.h"
#include "event_object_80688E4.h"
#include "metatile_behavior.h"
#include "event_scripts.h"
#include "fldeff.h"
@@ -22,7 +22,7 @@
#include "field_player_avatar.h"
#include "field_screen_effect.h"
#include "field_message_box.h"
#include "field_map_obj.h"
#include "event_object_movement.h"
#include "vs_seeker.h"
#include "battle.h"
#include "battle_setup.h"
@@ -1,12 +1,11 @@
#include "global.h"
#include "task.h"
#include "field_player_avatar.h"
#include "field_map_obj.h"
#include "field_map_obj_helpers.h"
#include "event_object_movement.h"
#include "script_movement.h"
#include "map_obj_80688E4.h"
#include "event_object_80688E4.h"
#include "event_data.h"
#include "map_obj_lock.h"
#include "event_object_lock.h"
bool8 walkrun_is_standing_still(void)
{
+1 -1
View File
@@ -22,7 +22,7 @@
#include "text.h"
#include "window.h"
#include "string_util.h"
#include "field_map_obj.h"
#include "event_object_movement.h"
#include "menu_indicators.h"
#include "text_window.h"
#include "fame_checker.h"
+3 -4
View File
@@ -13,15 +13,14 @@
#include "metatile_behavior.h"
#include "quest_log.h"
#include "link.h"
#include "map_obj_80688E4.h"
#include "event_object_80688E4.h"
#include "sound.h"
#include "field_door.h"
#include "field_effect.h"
#include "field_screen_effect.h"
#include "field_map_obj.h"
#include "field_map_obj_helpers.h"
#include "event_object_movement.h"
#include "field_specials.h"
#include "map_obj_lock.h"
#include "event_object_lock.h"
#include "start_menu.h"
#include "constants/songs.h"
+1 -1
View File
@@ -19,7 +19,7 @@
#include "battle_tower.h"
#include "field_camera.h"
#include "field_effect.h"
#include "field_map_obj.h"
#include "event_object_movement.h"
#include "menu_indicators.h"
#include "random.h"
#include "mail_data.h"
+1 -1
View File
@@ -13,7 +13,7 @@
#include "palette.h"
#include "overworld.h"
#include "wild_encounter.h"
#include "field_map_obj.h"
#include "event_object_movement.h"
#include "constants/songs.h"
#include "constants/map_objects.h"
#include "constants/map_types.h"
+3 -3
View File
@@ -7,7 +7,7 @@
#include "event_data.h"
#include "field_effect.h"
#include "field_fadetransition.h"
#include "field_map_obj_helpers.h"
#include "event_object_movement.h"
#include "field_player_avatar.h"
#include "field_specials.h"
#include "field_weather.h"
@@ -19,8 +19,8 @@
#include "mail.h"
#include "main.h"
#include "malloc.h"
#include "map_obj_80688E4.h"
#include "map_obj_lock.h"
#include "event_object_80688E4.h"
#include "event_object_lock.h"
#include "metatile_behavior.h"
#include "new_menu_helpers.h"
#include "overworld.h"
+1 -1
View File
@@ -3,7 +3,7 @@
#include "new_menu_helpers.h"
#include "strings.h"
#include "event_scripts.h"
#include "map_obj_lock.h"
#include "event_object_lock.h"
#include "script.h"
#include "sound.h"
#include "event_data.h"
+2 -2
View File
@@ -178,7 +178,7 @@ void SaveObjectEvents(void)
{
int i;
for (i = 0; i < NUM_FIELD_OBJECTS; i++)
for (i = 0; i < OBJECT_EVENTS_COUNT; i++)
gSaveBlock1Ptr->objectEvents[i] = gObjectEvents[i];
}
@@ -186,7 +186,7 @@ void LoadObjectEvents(void)
{
int i;
for (i = 0; i < NUM_FIELD_OBJECTS; i++)
for (i = 0; i < OBJECT_EVENTS_COUNT; i++)
gObjectEvents[i] = gSaveBlock1Ptr->objectEvents[i];
}
+3 -3
View File
@@ -19,9 +19,9 @@
#include "overworld.h"
#include "field_fadetransition.h"
#include "field_weather.h"
#include "field_map_obj.h"
#include "map_obj_80688E4.h"
#include "map_obj_lock.h"
#include "event_object_movement.h"
#include "event_object_80688E4.h"
#include "event_object_lock.h"
#include "field_player_avatar.h"
#include "field_control_avatar.h"
#include "battle.h"
+1 -2
View File
@@ -3,8 +3,7 @@
#include "script.h"
#include "task.h"
#include "field_player_avatar.h"
#include "field_map_obj.h"
#include "field_map_obj_helpers.h"
#include "event_object_movement.h"
#include "field_effect.h"
#include "field_effect_helpers.h"
#include "quest_log.h"
+2 -3
View File
@@ -16,9 +16,8 @@
#include "field_player_avatar.h"
#include "sound.h"
#include "script_movement.h"
#include "field_map_obj.h"
#include "field_map_obj_helpers.h"
#include "map_obj_lock.h"
#include "event_object_movement.h"
#include "event_object_lock.h"
#include "field_message_box.h"
#include "new_menu_helpers.h"
#include "window.h"
+1 -1
View File
@@ -1,7 +1,7 @@
#include "global.h"
#include "task.h"
#include "sound.h"
#include "field_map_obj.h"
#include "event_object_movement.h"
#include "script.h"
#include "constants/songs.h"
+2 -2
View File
@@ -23,8 +23,8 @@
#include "field_fadetransition.h"
#include "field_player_avatar.h"
#include "new_menu_helpers.h"
#include "map_obj_80688E4.h"
#include "map_obj_lock.h"
#include "event_object_80688E4.h"
#include "event_object_lock.h"
#include "script.h"
#include "sound.h"
#include "quest_log.h"
+1 -1
View File
@@ -15,7 +15,7 @@
#include "item_menu.h"
#include "item.h"
#include "menu_indicators.h"
#include "field_map_obj.h"
#include "event_object_movement.h"
#include "random.h"
#include "text.h"
#include "constants/songs.h"
+5 -5
View File
@@ -3,13 +3,13 @@
#include "sound.h"
#include "task.h"
#include "malloc.h"
#include "field_map_obj.h"
#include "event_object_movement.h"
#include "new_menu_helpers.h"
#include "item_use.h"
#include "event_scripts.h"
#include "event_data.h"
#include "script.h"
#include "map_obj_lock.h"
#include "event_object_lock.h"
#include "field_specials.h"
#include "item_menu.h"
#include "field_effect.h"
@@ -17,10 +17,10 @@
#include "battle.h"
#include "battle_setup.h"
#include "random.h"
#include "field_map_obj.h"
#include "event_object_movement.h"
#include "field_player_avatar.h"
#include "map_obj_80688E4.h"
#include "map_obj_8097404.h"
#include "event_object_80688E4.h"
#include "event_object_8097404.h"
#include "unk_810c3a4.h"
#include "vs_seeker.h"
#include "constants/movement_commands.h"