#include <regularlevel.h>
|
| enum | Feeling { NONE
, CHASM
, WATER
, GRASS
} |
| |
| 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 |
| |
| static const float | TIME_TO_RESPAWN = 50 |
| |
| static bool | pitRoomNeeded = false |
| |
| static bool | weakFloorCreated = false |
| |
◆ RegularLevel()
| RegularLevel::RegularLevel |
( |
| ) |
|
◆ ~RegularLevel()
| RegularLevel::~RegularLevel |
( |
| ) |
|
|
virtual |
◆ assignRoomType()
| void RegularLevel::assignRoomType |
( |
| ) |
|
|
protected |
◆ build()
| bool RegularLevel::build |
( |
| ) |
|
|
protectedvirtual |
◆ createItems()
| void RegularLevel::createItems |
( |
| ) |
|
|
protectedvirtual |
◆ createMobs()
| void RegularLevel::createMobs |
( |
| ) |
|
|
protectedvirtual |
◆ grass()
| virtual std::vector< bool > RegularLevel::grass |
( |
| ) |
|
|
protectedpure virtual |
◆ initRooms()
| bool RegularLevel::initRooms |
( |
| ) |
|
|
protected |
◆ joinRooms()
| bool RegularLevel::joinRooms |
( |
Room * | r, |
|
|
Room * | n ) |
|
protected |
◆ nMobs()
| int RegularLevel::nMobs |
( |
| ) |
|
|
virtual |
Reimplemented from Level.
◆ nTraps()
| int RegularLevel::nTraps |
( |
| ) |
|
|
protected |
◆ paint()
| void RegularLevel::paint |
( |
| ) |
|
|
protected |
◆ paintDoors()
| void RegularLevel::paintDoors |
( |
Room * | r | ) |
|
|
protected |
◆ paintGrass()
| void RegularLevel::paintGrass |
( |
| ) |
|
|
protected |
◆ paintWater()
| void RegularLevel::paintWater |
( |
| ) |
|
|
protected |
◆ placeTraps()
| void RegularLevel::placeTraps |
( |
| ) |
|
|
protected |
◆ randomDropCell()
| int RegularLevel::randomDropCell |
( |
| ) |
|
|
protected |
◆ randomRoom()
◆ restoreFromBundle()
| void RegularLevel::restoreFromBundle |
( |
Bundle * | bundle | ) |
|
|
virtual |
◆ room()
| Room * RegularLevel::room |
( |
int | pos | ) |
|
◆ split()
| void RegularLevel::split |
( |
Rect | rect | ) |
|
|
protected |
◆ storeInBundle()
| void RegularLevel::storeInBundle |
( |
Bundle * | bundle | ) |
|
|
virtual |
◆ trapChances()
| std::vector< float > RegularLevel::trapChances |
( |
| ) |
|
|
protected |
◆ water()
| virtual std::vector< bool > RegularLevel::water |
( |
| ) |
|
|
protectedpure virtual |
◆ maxRoomSize
| int RegularLevel::maxRoomSize |
|
protected |
◆ minRoomSize
| int RegularLevel::minRoomSize |
|
protected |
◆ roomEntrance
| Room* RegularLevel::roomEntrance |
|
protected |
◆ roomExit
| Room* RegularLevel::roomExit |
|
protected |
◆ rooms
| std::set<Room*> RegularLevel::rooms |
|
protected |
◆ secretDoors
| int RegularLevel::secretDoors |
◆ specials
The documentation for this class was generated from the following files: