OSDN Git Service

[Refactor] #40577 Separated door.c/h from floor.c/h
[hengband/hengband.git] / src / floor / floor.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 extern floor_type floor_info;
6
7 /*
8  * Convert a "grid" (G) into a "location" (Y)
9  */
10 #define GRID_Y(G) \
11         ((int)((G) / 256U))
12
13 /*
14  * Convert a "grid" (G) into a "location" (X)
15  */
16 #define GRID_X(G) \
17         ((int)((G) % 256U))
18
19 void update_smell(floor_type *floor_ptr, player_type *subject_ptr);
20 void forget_flow(floor_type *floor_ptr);
21 void place_random_stairs(player_type *player_ptr, POSITION y, POSITION x);
22 bool los(player_type *player_ptr, POSITION y1, POSITION x1, POSITION y2, POSITION x2);
23 int get_max_range(player_type *creature_ptr);
24 bool projectable(player_type *player_ptr, POSITION y1, POSITION x1, POSITION y2, POSITION x2);
25 void vault_monsters(player_type *player_ptr, POSITION y1, POSITION x1, int num);
26 bool cave_valid_bold(floor_type *floor_ptr, POSITION y, POSITION x);
27 void cave_set_feat(player_type *player_ptr, POSITION y, POSITION x, FEAT_IDX feat);
28 void place_random_door(player_type *player_ptr, POSITION y, POSITION x, bool room);
29 void place_closed_door(player_type *player_ptr, POSITION y, POSITION x, int type);
30 void wipe_o_list(floor_type *floor_ptr);
31 bool get_is_floor(floor_type *floor_ptr, POSITION x, POSITION y);
32 FEAT_IDX conv_dungeon_feat(floor_type *floor_ptr, FEAT_IDX newfeat);
33 void vault_objects(player_type *player_ptr, POSITION y, POSITION x, int num);
34 void set_floor(player_type *player_ptr, POSITION x, POSITION y);
35 void place_object(player_type *owner_ptr, POSITION y, POSITION x, BIT_FLAGS mode);
36 void place_gold(player_type *player_ptr, POSITION y, POSITION x);
37 void delete_monster(player_type *player_ptr, POSITION y, POSITION x);
38 void compact_objects(player_type *owner_ptr, int size);
39 void vault_traps(player_type *player_ptr, POSITION y, POSITION x, POSITION yd, POSITION xd, int num);
40 void scatter(player_type *player_ptr, POSITION *yp, POSITION *xp, POSITION y, POSITION x, POSITION d, BIT_FLAGS mode);