OSDN Git Service

[Refactor] #37287 #37353 型の置換。 / Type replacement.
authorDeskull <deskull@users.sourceforge.jp>
Tue, 2 Oct 2018 12:12:52 +0000 (21:12 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Tue, 2 Oct 2018 12:12:52 +0000 (21:12 +0900)
src/grid.c
src/grid.h

index a77b73b..076a19d 100644 (file)
@@ -474,7 +474,7 @@ static bool possible_doorway(int y, int x)
 * @param x 設置を行いたいマスのX座標
 * @return なし
 */
-void try_door(int y, int x)
+void try_door(POSITION y, POSITION x)
 {
        /* Paranoia */
        if (!in_bounds(y, x)) return;
@@ -503,7 +503,7 @@ void try_door(int y, int x)
  * @param light 照明の有無
  * @return なし
  */
-void place_floor(int x1, int x2, int y1, int y2, bool light)
+void place_floor(POSITION x1, POSITION x2, POSITION y1, POSITION y2, bool light)
 {
        int x, y;
 
@@ -529,7 +529,7 @@ void place_floor(int x1, int x2, int y1, int y2, bool light)
  * @param light 照明の有無
  * @return なし
  */
-void place_room(int x1, int x2, int y1, int y2, bool light)
+void place_room(POSITION x1, POSITION x2, POSITION y1, POSITION y2, bool light)
 {
        int y, x;
 
index fb4f2fe..6b29d27 100644 (file)
@@ -271,9 +271,9 @@ extern void place_closed_door(POSITION y, POSITION x, int type);
 extern void add_door(POSITION x, POSITION y);
 extern void place_secret_door(POSITION y, POSITION x, int type);
 extern void place_locked_door(POSITION y, POSITION x);
-extern void try_door(int y, int x);
-extern void place_floor(int x1, int x2, int y1, int y2, bool light);
-extern void place_room(int x1, int x2, int y1, int y2, bool light);
+extern void try_door(POSITION y, POSITION x);
+extern void place_floor(POSITION x1, POSITION x2, POSITION y1, POSITION y2, bool light);
+extern void place_room(POSITION x1, POSITION x2, POSITION y1, POSITION y2, bool light);
 extern void vault_monsters(int y1, int x1, int num);
 extern void vault_objects(int y, int x, int num);
 extern void vault_trap_aux(int y, int x, int yd, int xd);