From 975a899f682456e2fa8bd5162c849e88fdfdcbfc Mon Sep 17 00:00:00 2001 From: Hourier Date: Sat, 4 Sep 2021 17:19:37 +0900 Subject: [PATCH] [Refactor] #1447 Replaced 'typedef struct turn_flags turn_flags;' to 'struct turn_flags;' --- src/monster-attack/monster-attack-processor.h | 2 +- src/monster-floor/monster-move.h | 2 +- src/monster-floor/monster-object.h | 2 +- src/monster-floor/monster-runaway.h | 2 +- src/monster/monster-update.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/monster-attack/monster-attack-processor.h b/src/monster-attack/monster-attack-processor.h index febe5d631..f455bb06c 100644 --- a/src/monster-attack/monster-attack-processor.h +++ b/src/monster-attack/monster-attack-processor.h @@ -4,6 +4,6 @@ struct grid_type;; struct player_type; -typedef struct turn_flags turn_flags; +struct turn_flags; void exe_monster_attack_to_player(player_type *target_ptr, turn_flags *turn_flags_ptr, MONSTER_IDX m_idx, POSITION ny, POSITION nx); bool process_monster_attack_to_monster(player_type *target_ptr, turn_flags *turn_flags_ptr, MONSTER_IDX m_idx, grid_type *g_ptr, bool can_cross); diff --git a/src/monster-floor/monster-move.h b/src/monster-floor/monster-move.h index c4473ee3e..f92f94463 100644 --- a/src/monster-floor/monster-move.h +++ b/src/monster-floor/monster-move.h @@ -4,7 +4,7 @@ struct monster_type; struct player_type; -typedef struct turn_flags turn_flags; +struct turn_flags; bool process_monster_movement(player_type *target_ptr, turn_flags *turn_flags_ptr, MONSTER_IDX m_idx, DIRECTION *mm, POSITION oy, POSITION ox, int *count); void process_speak_sound(player_type *target_ptr, MONSTER_IDX m_idx, POSITION oy, POSITION ox, bool aware); void set_target(monster_type *m_ptr, POSITION y, POSITION x); diff --git a/src/monster-floor/monster-object.h b/src/monster-floor/monster-object.h index c08aac930..00b0a971e 100644 --- a/src/monster-floor/monster-object.h +++ b/src/monster-floor/monster-object.h @@ -4,6 +4,6 @@ struct monster_type; struct player_type; -typedef struct turn_flags turn_flags; +struct turn_flags; void update_object_by_monster_movement(player_type *target_ptr, turn_flags *turn_flags_ptr, MONSTER_IDX m_idx, POSITION ny, POSITION nx); void monster_drop_carried_objects(player_type *player_ptr, monster_type *m_ptr); diff --git a/src/monster-floor/monster-runaway.h b/src/monster-floor/monster-runaway.h index 92173b1bd..2ef29d5f1 100644 --- a/src/monster-floor/monster-runaway.h +++ b/src/monster-floor/monster-runaway.h @@ -3,5 +3,5 @@ #include "system/angband.h" struct player_type; -typedef struct turn_flags turn_flags; +struct turn_flags; bool runaway_monster(player_type *target_ptr, turn_flags *turn_flags_ptr, MONSTER_IDX m_idx); diff --git a/src/monster/monster-update.h b/src/monster/monster-update.h index 9fdfa9e82..f1d97860b 100644 --- a/src/monster/monster-update.h +++ b/src/monster/monster-update.h @@ -6,7 +6,7 @@ struct monster_race; struct monster_type; typedef struct old_race_flags old_race_flags; struct player_type; -typedef struct turn_flags turn_flags; +struct turn_flags; bool update_riding_monster(player_type *target_ptr, turn_flags *turn_flags_ptr, MONSTER_IDX m_idx, POSITION oy, POSITION ox, POSITION ny, POSITION nx); void update_player_type(player_type *target_ptr, turn_flags *turn_flags_ptr, monster_race *r_ptr); void update_monster_race_flags(player_type *target_ptr, turn_flags *turn_flags_ptr, monster_type *m_ptr); -- 2.11.0