My Project
 
Loading...
Searching...
No Matches
Terrain Class Reference

#include <terrain.h>

Collaboration diagram for Terrain:

Public Member Functions

 Terrain ()
 

Static Public Member Functions

static void init ()
 
static int discover (int terr)
 

Static Public Attributes

static const int CHASM = 0
 
static const int EMPTY = 1
 
static const int GRASS = 2
 
static const int EMPTY_WELL = 3
 
static const int WALL = 4
 
static const int DOOR = 5
 
static const int OPEN_DOOR = 6
 
static const int ENTRANCE = 7
 
static const int EXIT = 8
 
static const int EMBERS = 9
 
static const int LOCKED_DOOR = 10
 
static const int PEDESTAL = 11
 
static const int WALL_DECO = 12
 
static const int BARRICADE = 13
 
static const int EMPTY_SP = 14
 
static const int HIGH_GRASS = 15
 
static const int EMPTY_DECO = 24
 
static const int LOCKED_EXIT = 25
 
static const int UNLOCKED_EXIT = 26
 
static const int SIGN = 29
 
static const int WELL = 34
 
static const int STATUE = 35
 
static const int STATUE_SP = 36
 
static const int BOOKSHELF = 41
 
static const int ALCHEMY = 42
 
static const int CHASM_FLOOR = 43
 
static const int CHASM_FLOOR_SP = 44
 
static const int CHASM_WALL = 45
 
static const int CHASM_WATER = 46
 
static const int SECRET_DOOR = 16
 
static const int TOXIC_TRAP = 17
 
static const int SECRET_TOXIC_TRAP = 18
 
static const int FIRE_TRAP = 19
 
static const int SECRET_FIRE_TRAP = 20
 
static const int PARALYTIC_TRAP = 21
 
static const int SECRET_PARALYTIC_TRAP = 22
 
static const int INACTIVE_TRAP = 23
 
static const int POISON_TRAP = 27
 
static const int SECRET_POISON_TRAP = 28
 
static const int ALARM_TRAP = 30
 
static const int SECRET_ALARM_TRAP = 31
 
static const int LIGHTNING_TRAP = 32
 
static const int SECRET_LIGHTNING_TRAP = 33
 
static const int GRIPPING_TRAP = 37
 
static const int SECRET_GRIPPING_TRAP = 38
 
static const int SUMMONING_TRAP = 39
 
static const int SECRET_SUMMONING_TRAP = 40
 
static const int WATER_TILES = 48
 
static const int WATER = 63
 
static const int PASSABLE = 0x01
 
static const int LOS_BLOCKING = 0x02
 
static const int FLAMABLE = 0x04
 
static const int SECRET = 0x08
 
static const int SOLID = 0x10
 
static const int AVOID = 0x20
 
static const int LIQUID = 0x40
 
static const int PIT = 0x80
 
static const int UNSTITCHABLE = 0x100
 
static int flags [256] = {0}
 
static Terrain inst
 

Constructor & Destructor Documentation

◆ Terrain()

Terrain::Terrain ( )
inline
Here is the call graph for this function:

Member Function Documentation

◆ discover()

static int Terrain::discover ( int terr)
inlinestatic
Here is the caller graph for this function:

◆ init()

static void Terrain::init ( )
inlinestatic
Here is the caller graph for this function:

Member Data Documentation

◆ ALARM_TRAP

const int Terrain::ALARM_TRAP = 30
static

◆ ALCHEMY

const int Terrain::ALCHEMY = 42
static

◆ AVOID

const int Terrain::AVOID = 0x20
static

◆ BARRICADE

const int Terrain::BARRICADE = 13
static

◆ BOOKSHELF

const int Terrain::BOOKSHELF = 41
static

◆ CHASM

const int Terrain::CHASM = 0
static

◆ CHASM_FLOOR

const int Terrain::CHASM_FLOOR = 43
static

◆ CHASM_FLOOR_SP

const int Terrain::CHASM_FLOOR_SP = 44
static

◆ CHASM_WALL

const int Terrain::CHASM_WALL = 45
static

◆ CHASM_WATER

const int Terrain::CHASM_WATER = 46
static

◆ DOOR

const int Terrain::DOOR = 5
static

◆ EMBERS

const int Terrain::EMBERS = 9
static

◆ EMPTY

const int Terrain::EMPTY = 1
static

◆ EMPTY_DECO

const int Terrain::EMPTY_DECO = 24
static

◆ EMPTY_SP

const int Terrain::EMPTY_SP = 14
static

◆ EMPTY_WELL

const int Terrain::EMPTY_WELL = 3
static

◆ ENTRANCE

const int Terrain::ENTRANCE = 7
static

◆ EXIT

const int Terrain::EXIT = 8
static

◆ FIRE_TRAP

const int Terrain::FIRE_TRAP = 19
static

◆ flags

int Terrain::flags = {0}
static

◆ FLAMABLE

const int Terrain::FLAMABLE = 0x04
static

◆ GRASS

const int Terrain::GRASS = 2
static

◆ GRIPPING_TRAP

const int Terrain::GRIPPING_TRAP = 37
static

◆ HIGH_GRASS

const int Terrain::HIGH_GRASS = 15
static

◆ INACTIVE_TRAP

const int Terrain::INACTIVE_TRAP = 23
static

◆ inst

Terrain Terrain::inst
static

◆ LIGHTNING_TRAP

const int Terrain::LIGHTNING_TRAP = 32
static

◆ LIQUID

const int Terrain::LIQUID = 0x40
static

◆ LOCKED_DOOR

const int Terrain::LOCKED_DOOR = 10
static

◆ LOCKED_EXIT

const int Terrain::LOCKED_EXIT = 25
static

◆ LOS_BLOCKING

const int Terrain::LOS_BLOCKING = 0x02
static

◆ OPEN_DOOR

const int Terrain::OPEN_DOOR = 6
static

◆ PARALYTIC_TRAP

const int Terrain::PARALYTIC_TRAP = 21
static

◆ PASSABLE

const int Terrain::PASSABLE = 0x01
static

◆ PEDESTAL

const int Terrain::PEDESTAL = 11
static

◆ PIT

const int Terrain::PIT = 0x80
static

◆ POISON_TRAP

const int Terrain::POISON_TRAP = 27
static

◆ SECRET

const int Terrain::SECRET = 0x08
static

◆ SECRET_ALARM_TRAP

const int Terrain::SECRET_ALARM_TRAP = 31
static

◆ SECRET_DOOR

const int Terrain::SECRET_DOOR = 16
static

◆ SECRET_FIRE_TRAP

const int Terrain::SECRET_FIRE_TRAP = 20
static

◆ SECRET_GRIPPING_TRAP

const int Terrain::SECRET_GRIPPING_TRAP = 38
static

◆ SECRET_LIGHTNING_TRAP

const int Terrain::SECRET_LIGHTNING_TRAP = 33
static

◆ SECRET_PARALYTIC_TRAP

const int Terrain::SECRET_PARALYTIC_TRAP = 22
static

◆ SECRET_POISON_TRAP

const int Terrain::SECRET_POISON_TRAP = 28
static

◆ SECRET_SUMMONING_TRAP

const int Terrain::SECRET_SUMMONING_TRAP = 40
static

◆ SECRET_TOXIC_TRAP

const int Terrain::SECRET_TOXIC_TRAP = 18
static

◆ SIGN

const int Terrain::SIGN = 29
static

◆ SOLID

const int Terrain::SOLID = 0x10
static

◆ STATUE

const int Terrain::STATUE = 35
static

◆ STATUE_SP

const int Terrain::STATUE_SP = 36
static

◆ SUMMONING_TRAP

const int Terrain::SUMMONING_TRAP = 39
static

◆ TOXIC_TRAP

const int Terrain::TOXIC_TRAP = 17
static

◆ UNLOCKED_EXIT

const int Terrain::UNLOCKED_EXIT = 26
static

◆ UNSTITCHABLE

const int Terrain::UNSTITCHABLE = 0x100
static

◆ WALL

const int Terrain::WALL = 4
static

◆ WALL_DECO

const int Terrain::WALL_DECO = 12
static

◆ WATER

const int Terrain::WATER = 63
static

◆ WATER_TILES

const int Terrain::WATER_TILES = 48
static

◆ WELL

const int Terrain::WELL = 34
static

The documentation for this class was generated from the following files: