#include "core/disturbance.h"
#include "core/player-update-types.h"
#include "core/stuff-handler.h"
-#include "floor/cave.h"
#include "floor/floor.h"
#include "floor/pattern-walk.h"
#include "game-option/input-options.h"
bool cave_have_flag_grid(grid_type *grid_ptr, int feature_flags) { return have_flag(f_info[grid_ptr->feat].flags, feature_flags); }
/*
- * Determine if a "feature" is "permanent wall"
- */
-bool permanent_wall(feature_type *f_ptr) { return have_flag(f_ptr->flags, FF_WALL) && have_flag(f_ptr->flags, FF_PERMANENT); }
-
-/*
* Determine if a "legal" grid is a "clean" floor grid
* Determine if terrain-change spells are allowed in a grid.
*
*/
bool cave_clean_bold(floor_type *floor_ptr, POSITION y, POSITION x)
{
- return cave_have_flag_bold(floor_ptr, y, x, FF_FLOOR) && ((floor_ptr->grid_array[y][x].info & CAVE_OBJECT) == 0) && (floor_ptr->grid_array[y][x].o_idx == 0);
+ return cave_have_flag_bold(floor_ptr, y, x, FF_FLOOR) && ((floor_ptr->grid_array[y][x].info & CAVE_OBJECT) == 0)
+ && (floor_ptr->grid_array[y][x].o_idx == 0);
}
#include "system/angband.h"
typedef enum feature_flag_type feature_flag_type;
-typedef struct feature_type feature_type;
typedef struct grid_type grid_type;
bool in_bounds(floor_type *floor_ptr, POSITION y, POSITION x);
bool in_bounds2(floor_type *floor_ptr, POSITION y, POSITION x);
bool feat_supports_los(FEAT_IDX f_idx);
bool cave_los_grid(grid_type *grid_ptr);
bool cave_have_flag_grid(grid_type *grid_ptr, int feature_flags);
-bool permanent_wall(feature_type *f_ptr);
bool cave_clean_bold(floor_type *floor_ptr, POSITION y, POSITION x);
* Not using graphical tiles for this feature?
*/
bool is_ascii_graphics(char x) { return (x & 0x80) == 0; }
+
+/*
+ * Determine if a "feature" is "permanent wall"
+ */
+bool permanent_wall(feature_type *f_ptr) { return have_flag(f_ptr->flags, FF_WALL) && have_flag(f_ptr->flags, FF_PERMANENT); }
bool is_trap(player_type *player_ptr, FEAT_IDX feat);
void apply_default_feat_lighting(TERM_COLOR *f_attr, SYMBOL_CODE *f_char);
bool is_ascii_graphics(char x);
+bool permanent_wall(feature_type *f_ptr);