From: deskull Date: Wed, 6 Mar 2019 05:04:32 +0000 (+0900) Subject: [Refactor] #37353 target_dir and pos_list構造体を定義。 / Define target_dir and pos_list... X-Git-Tag: vmacos2.2.1-7a~571 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c7b1b7e863610a287fb27e7e9c1884dffafe8a14;p=hengbandforosx%2Fhengbandosx.git [Refactor] #37353 target_dir and pos_list構造体を定義。 / Define target_dir and pos_list structure. --- diff --git a/src/geometry.h b/src/geometry.h index 230a7024c..edae84c84 100644 --- a/src/geometry.h +++ b/src/geometry.h @@ -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; diff --git a/src/variable.c b/src/variable.c index dc5461134..259034365 100644 --- a/src/variable.c +++ b/src/variable.c @@ -212,7 +212,6 @@ POSITION temp_y[TEMP_MAX]; POSITION temp_x[TEMP_MAX]; - /* * Number of active macros. */