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

include/world.h File Reference


Detailed Description

Global game state.

Definition in file world.h.

Go to the source code of this file.

Data Structures

struct  tile
 A tile on the map. More...

struct  world
 The current game state. More...


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 NUM_FOUNTAIN_TYPES   7
#define MAPSIZE_X   (w->mapsize_x)
#define MAPSIZE_Y   (w->mapsize_y)


Define Documentation

#define MAPSIZE_X   (w->mapsize_x)
 

Definition at line 53 of file world.h.

Referenced by addrandommonst(), base_coat(), bigmap_postpass(), calc_light(), cave_pass(), compress_tiles(), connection_fill(), count_adjacent_tiles(), draw_all_tiles(), illuminate(), initialize(), load_level(), make_connections(), make_noise(), monstcanmove(), place_corridors(), place_doors(), place_hole(), place_items(), place_monster(), place_player_on_map(), place_player_randomly(), place_room(), replace(), save_level(), tile_is_passable(), and tile_is_transparent().

#define MAPSIZE_Y   (w->mapsize_y)
 

Definition at line 54 of file world.h.

Referenced by addrandommonst(), base_coat(), calc_light(), cave_pass(), compress_tiles(), connection_fill(), count_adjacent_tiles(), draw_all_tiles(), illuminate(), initialize(), load_level(), make_connections(), make_noise(), monstcanmove(), place_corridors(), place_doors(), place_hole(), place_items(), place_monster(), place_player_on_map(), place_player_randomly(), place_room(), replace(), save_level(), tile_is_passable(), and tile_is_transparent().

#define NUM_FOUNTAIN_TYPES   7
 

Definition at line 47 of file world.h.

Referenced by place_fountain().


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