#include "angband.h"
#include "floor.h"
-#include "spells.h"
-
/*!
* キーパッドの方向を南から反時計回り順に列挙 / Global array for looping through the "keypad directions"
const POSITION ddy_ddd[9] =
{ 1, -1, 0, 0, 1, 1, -1, -1, 0 };
-
/*!
* キーパッドの円環状方向配列 / Circular keypad direction array
*/
return d;
}
+
/*!
* @brief プレイヤーから指定の座標がどの方角にあるかを返す /
* Convert an adjacent location to a direction.
}
-
/*!
* @brief 指定された座標をプレイヤーが視覚に収められるかを返す。 / Can the player "see" the given grid in detail?
* @param y y座標
return check_local_illumination(creature_ptr, y, x);
}
+
/*
* Calculate "incremental motion". Used by project() and shoot().
* Assumes that (*y,*x) lies on the path from (y1,x1) to (y2,x2).
/* We are calculating the next location */
dist++;
-
/* Calculate the total distance along each axis */
dy = (y2 < y1) ? (y1 - y2) : (y2 - y1);
dx = (x2 < x1) ? (x1 - x2) : (x2 - x1);
(*x) = (x2 < x1) ? (x1 - dist) : (x1 + dist);
}
}
-