#include "core/player-redraw-types.h"
#include "core/stuff-handler.h"
#include "core/window-redrawer.h"
-#include "floor/floor-object.h"
+#include "floor/cave.h"
#include "floor/floor.h"
+#include "floor/floor-object.h"
#include "game-option/disturbance-options.h"
#include "game-option/text-display-options.h"
#include "grid/grid.h"
#include "autopick/autopick.h"
#include "flavor/flavor-describer.h"
#include "flavor/object-flavor-types.h"
+#include "floor/cave.h"
#include "floor/floor-object.h"
-#include "floor/floor.h"
#include "monster-floor/monster-summon.h"
#include "monster-floor/place-monster-types.h"
#include "monster/monster-info.h"
{
return have_flag(f_info[floor_ptr->grid_array[y][x].feat].flags, f_idx);
}
+
+/*
+ * Determine if a "legal" grid is within "los" of the player
+ */
+bool player_has_los_bold(player_type *player_ptr, POSITION y, POSITION x)
+{
+ return ((player_ptr->current_floor_ptr->grid_array[y][x].info & CAVE_VIEW) != 0) || player_ptr->phase_out;
+}
bool in_bounds2(floor_type *floor_ptr, POSITION y, POSITION x);
bool in_bounds2u(floor_type *floor_ptr, POSITION y, POSITION x);
bool cave_have_flag_bold(floor_type *floor_ptr, POSITION y, POSITION x, feature_flag_type f_idx);
+bool player_has_los_bold(player_type *player_ptr, POSITION y, POSITION x);
(((C)->info & (CAVE_VIEW)) != 0)
/*
- * Determine if a "legal" grid is within "los" of the player
- *
- * Note the use of comparison to zero to force a "boolean" result
- */
-#define player_has_los_bold(C,Y,X) \
- ((((C)->current_floor_ptr->grid_array[Y][X].info & (CAVE_VIEW)) != 0) || (C)->phase_out)
-
-
-/*
* Determine if a "feature" is "permanent wall"
*/
#define permanent_wall(F) \
#include "floor/geometry.h"
+#include "floor/cave.h"
#include "floor/floor.h"
#include "game-option/text-display-options.h"
#include "grid/feature.h"
#include "core/window-redrawer.h"
#include "effect/effect-characteristics.h"
#include "effect/spells-effect-util.h"
+#include "floor/cave.h"
#include "floor/floor.h"
#include "game-option/disturbance-options.h"
#include "game-option/input-options.h"
#include "monster-floor/monster-object.h"
#include "flavor/flavor-describer.h"
#include "floor/floor-object.h"
-#include "floor/floor.h"
+#include "floor/cave.h"
#include "grid/grid.h"
#include "monster-race/monster-race.h"
#include "monster-race/race-flags-resistance.h"
#include "monster-floor/monster-runaway.h"
#include "core/disturbance.h"
#include "dungeon/quest.h"
+#include "floor/cave.h"
#include "floor/floor.h"
#include "grid/grid.h"
#include "monster-race/monster-race.h"
#include "core/window-redrawer.h"
#include "dungeon/dungeon-flag-types.h"
#include "dungeon/dungeon.h"
+#include "floor/cave.h"
#include "floor/floor.h"
#include "game-option/birth-options.h"
#include "game-option/play-record-options.h"
#include "core/window-redrawer.h"
#include "dungeon/dungeon-flag-types.h"
#include "dungeon/dungeon.h"
+#include "floor/cave.h"
#include "floor/floor.h"
#include "game-option/birth-options.h"
#include "game-option/disturbance-options.h"
#include "mspell-learn-checker.h"
-#include "floor/floor.h"
+#include "floor/cave.h"
#include "grid/grid.h"
#include "system/floor-type-definition.h"
#include "world/world.h"
#include "core/stuff-handler.h"
#include "core/window-redrawer.h"
#include "effect/effect-characteristics.h"
+#include "floor/cave.h"
#include "floor/floor.h"
#include "game-option/birth-options.h"
#include "grid/grid.h"
#include "core/player-redraw-types.h"
#include "dungeon/dungeon.h"
#include "dungeon/quest.h"
+#include "floor/cave.h"
#include "floor/floor-save.h"
#include "floor/floor-town.h"
#include "floor/floor.h"