Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

Tile flags


Detailed Description

Possible values for tile::flags. These can be combined either with + (plus) or | (bitwise or).


Defines

#define TFLAG_EXPLORED   1
 Tile has been seen at some point.

#define TFLAG_HIDETRAP   2
 Tile should be represented as floor, even though it's something else.

#define TFLAG_OCCUPIED   4
 Tile has something standing on it (player or monster).

#define TFLAG_LIT   8
 Tile is within the range of the player's light and vision.

#define TFLAG_INTRINSIC_LIGHT   16
 Tile is lit when in view even if the player has no light.

#define TFLAG_MUTABLE   32
 (During map generation) Tile may be changed by the map generator

#define TFLAG_TEMP   64
 (During map generation) Temporary flag which may be used for anything

#define TFLAG_ITEM   128
 Tile has an item on it.


Define Documentation

#define TFLAG_EXPLORED   1
 

Tile has been seen at some point.

Definition at line 30 of file world.h.

Referenced by calc_light_tile(), draw_tile(), plr_moveto(), and UI_TF_DrawEffect().

#define TFLAG_HIDETRAP   2
 

Tile should be represented as floor, even though it's something else.

Definition at line 32 of file world.h.

Referenced by draw_tile(), and plr_search().

#define TFLAG_INTRINSIC_LIGHT   16
 

Tile is lit when in view even if the player has no light.

Definition at line 38 of file world.h.

Referenced by base_coat(), calc_light_tile(), illuminate(), and light_room().

#define TFLAG_ITEM   128
 

Tile has an item on it.

Definition at line 44 of file world.h.

Referenced by count_items(), draw_tile(), pickup(), place_item(), place_items(), and top_item().

#define TFLAG_LIT   8
 

Tile is within the range of the player's light and vision.

Definition at line 36 of file world.h.

Referenced by calc_light_tile(), compress_tiles(), draw_tile(), monst_detect_player(), player_can_see(), plr_moveto(), and UI_TF_DrawEffect().

#define TFLAG_MUTABLE   32
 

(During map generation) Tile may be changed by the map generator

Definition at line 40 of file world.h.

Referenced by base_coat(), cave_pass(), make_noise(), place_doors(), place_hole(), and place_room().

#define TFLAG_OCCUPIED   4
 

Tile has something standing on it (player or monster).

Definition at line 34 of file world.h.

Referenced by addrandommonst(), draw_tile(), follow_connection(), force_follow_connection(), monst_remove(), monstbytile(), monstcanmove(), monstmoveto(), place_monster(), place_player_on_map(), place_player_randomly(), plr_moveto(), plr_walk(), tile_is_occupied(), and trace_path().

#define TFLAG_TEMP   64
 

(During map generation) Temporary flag which may be used for anything

Definition at line 42 of file world.h.

Referenced by connection_fill().


Generated on Thu May 20 13:12:15 2004 for CalcRogue by doxygen 1.3.6