#include <level.h>
|
| static int | distance (int a, int b) |
| |
| static bool | adjacent (int a, int b) |
| |
| static void | set (int cell, int terrain) |
| |
|
| static const int | WIDTH = 32 |
| |
| static const int | HEIGHT = 32 |
| |
| static const int | LENGTH = WIDTH * HEIGHT |
| |
| static const int | NEIGHBOURS4 [] = { -Level::WIDTH, +1, +Level::WIDTH, -1 } |
| |
| static const int | NEIGHBOURS8 [] = { +1, -1, +Level::WIDTH, -Level::WIDTH, +1 + Level::WIDTH, +1 - Level::WIDTH, -1 + Level::WIDTH, -1 - Level::WIDTH } |
| |
| static const int | NEIGHBOURS9 [] = { 0, +1, -1, +Level::WIDTH, -Level::WIDTH, +1 + Level::WIDTH, +1 - Level::WIDTH, -1 + Level::WIDTH, -1 - Level::WIDTH } |
| |
| static bool | resizingNeeded |
| |
| static int | loadedMapSize |
| |
| static std::vector< bool > | fieldOfView |
| |
| static std::vector< bool > | passable |
| |
| static std::vector< bool > | losBlocking |
| |
| static std::vector< bool > | flamable |
| |
| static std::vector< bool > | secret |
| |
| static std::vector< bool > | solid |
| |
| static std::vector< bool > | avoid |
| |
| static std::vector< bool > | water |
| |
| static std::vector< bool > | pit |
| |
| static std::vector< bool > | discoverable |
| |
◆ Feeling
| Enumerator |
|---|
| NONE | |
| CHASM | |
| WATER | |
| GRASS | |
◆ Level()
◆ ~Level()
◆ addVisuals()
| void Level::addVisuals |
( |
Scene * | scene | ) |
|
◆ adjacent()
| bool Level::adjacent |
( |
int | a, |
|
|
int | b ) |
|
static |
◆ adjustPos()
| int Level::adjustPos |
( |
int | pos | ) |
|
◆ build()
| virtual bool Level::build |
( |
| ) |
|
|
protectedpure virtual |
◆ clear()
◆ create()
◆ createItems()
| virtual void Level::createItems |
( |
| ) |
|
|
protectedpure virtual |
◆ createMobs()
| virtual void Level::createMobs |
( |
| ) |
|
|
protectedpure virtual |
◆ decorate()
| virtual void Level::decorate |
( |
| ) |
|
|
protectedpure virtual |
◆ destroy()
| void Level::destroy |
( |
int | pos | ) |
|
◆ distance()
| int Level::distance |
( |
int | a, |
|
|
int | b ) |
|
static |
◆ drop()
| Heap * Level::drop |
( |
Item * | item, |
|
|
int | cell ) |
◆ mobPress()
| void Level::mobPress |
( |
Mob * | mob | ) |
|
◆ nMobs()
| virtual int Level::nMobs |
( |
| ) |
|
|
inlinevirtual |
◆ pitCell()
◆ plant()
◆ press()
| void Level::press |
( |
int | cell, |
|
|
Char * | ch ) |
◆ randomDestination()
| int Level::randomDestination |
( |
| ) |
|
◆ randomRespawnCell()
| int Level::randomRespawnCell |
( |
| ) |
|
◆ reset()
◆ set()
| void Level::set |
( |
int | cell, |
|
|
int | terrain ) |
|
static |
◆ tileDesc()
| String Level::tileDesc |
( |
int | tile | ) |
|
◆ tileName()
| String Level::tileName |
( |
int | tile | ) |
|
◆ tilesTex()
| virtual std::string Level::tilesTex |
( |
| ) |
|
|
inlinevirtual |
◆ tunnelTile()
| int Level::tunnelTile |
( |
| ) |
|
◆ updateFieldOfView()
| std::vector< bool > Level::updateFieldOfView |
( |
Char * | c | ) |
|
◆ uproot()
| void Level::uproot |
( |
int | pos | ) |
|
◆ waterTex()
| virtual std::string Level::waterTex |
( |
| ) |
|
|
inlinevirtual |
◆ avoid
| std::vector< bool > Level::avoid |
|
static |
◆ blobs
◆ color1
◆ color2
◆ discoverable
| std::vector< bool > Level::discoverable |
|
static |
◆ entrance
◆ exit
◆ feeling
◆ fieldOfView
| std::vector< bool > Level::fieldOfView |
|
static |
◆ flamable
| std::vector< bool > Level::flamable |
|
static |
◆ heaps
◆ HEIGHT
| const int Level::HEIGHT = 32 |
|
static |
◆ LENGTH
◆ loadedMapSize
◆ losBlocking
| std::vector< bool > Level::losBlocking |
|
static |
◆ map
| std::vector<int> Level::map |
◆ mapped
| std::vector<bool> Level::mapped |
◆ mobs
◆ NEIGHBOURS4
◆ NEIGHBOURS8
◆ NEIGHBOURS9
◆ passable
| std::vector< bool > Level::passable |
|
static |
◆ pit
| std::vector< bool > Level::pit |
|
static |
◆ pitRoomNeeded
| bool Level::pitRoomNeeded = false |
|
staticprotected |
◆ plants
◆ resizingNeeded
| bool Level::resizingNeeded |
|
static |
◆ secret
| std::vector< bool > Level::secret |
|
static |
◆ solid
| std::vector< bool > Level::solid |
|
static |
◆ TIME_TO_RESPAWN
| const float Level::TIME_TO_RESPAWN = 50 |
|
staticprotected |
◆ viewDistance
◆ visited
| std::vector<bool> Level::visited |
◆ water
| std::vector< bool > Level::water |
|
static |
◆ weakFloorCreated
| bool Level::weakFloorCreated = false |
|
staticprotected |
◆ WIDTH
| const int Level::WIDTH = 32 |
|
static |
The documentation for this class was generated from the following files: