OSDN Git Service

[Refactor] #37353 target_dir and pos_list構造体を定義。 / Define target_dir and pos_list...
authordeskull <deskull@users.sourceforge.jp>
Wed, 6 Mar 2019 05:04:32 +0000 (14:04 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Wed, 6 Mar 2019 05:04:32 +0000 (14:04 +0900)
src/geometry.h
src/variable.c

index 230a702..edae84c 100644 (file)
@@ -1,3 +1,19 @@
 #pragma once
 
 DIRECTION coords_to_dir(POSITION y, POSITION x);
+
+//!< 対象グリッドの一覧をまとめる構造体
+typedef struct
+{
+       POSITION_IDX n; //!< Array of grids for use by various functions (see grid.c")
+       POSITION y[TEMP_MAX];
+       POSITION x[TEMP_MAX];
+} pos_list;
+
+//!< ターゲット指定構造体
+typedef struct
+{
+       DIRECTION dir;
+       POSITION y;
+       POSITION x;
+} target_dir;
index dc54611..2590343 100644 (file)
@@ -212,7 +212,6 @@ POSITION temp_y[TEMP_MAX];
 POSITION temp_x[TEMP_MAX];
 
 
-
 /*
  * Number of active macros.
  */