OSDN Git Service

[Refactor] #2738 struct floor_type をclass FloorType に変えた
[hengbandforosx/hengbandosx.git] / src / action / travel-execution.h
index 0a000ef..e38d07b 100644 (file)
@@ -1,18 +1,24 @@
 #pragma once
+/*!
+ * @file travel-execution.h
+ * @brief トラベル移動処理ヘッダ
+ */
 
-#include "system/angband.h"
 #include "floor/floor-base-definitions.h"
+#include "system/angband.h"
 
- /*  A structure type for travel command  */
-typedef struct travel_type {
+/*  A structure type for travel command  */
+struct travel_type {
     int run; /* Remaining grid number */
     int cost[MAX_HGT][MAX_WID];
     POSITION x; /* Target X */
     POSITION y; /* Target Y */
     DIRECTION dir; /* Running direction */
-} travel_type;
+};
 
 extern travel_type travel;
 
-void travel_step(player_type *creature_ptr);
-void forget_travel_flow(floor_type *floor_ptr);
+class FloorType;
+class PlayerType;
+void travel_step(PlayerType *player_ptr);
+void forget_travel_flow(FloorType *floor_ptr);