4 * @brief プレイヤーから指定の座標がどの方角にあるかを返す /
5 * Convert an adjacent location to a direction.
10 DIRECTION coords_to_dir(POSITION y, POSITION x)
12 DIRECTION d[3][3] = { {7, 4, 1}, {8, 5, 2}, {9, 6, 3} };
17 if (ABS(dx) > 1 || ABS(dy) > 1) return (0);
19 return d[dx + 1][dy + 1];