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

#include <sewerlevel.h>

Inheritance diagram for SewerLevel:
Collaboration diagram for SewerLevel:

Public Member Functions

virtual std::string tilesTex ()
 
virtual std::string waterTex ()
 
virtual std::string getClassName ()
 
- Public Member Functions inherited from RegularLevel
 RegularLevel ()
 
virtual ~RegularLevel ()
 
virtual int nMobs ()
 
virtual void storeInBundle (Bundle *bundle)
 
virtual void restoreFromBundle (Bundle *bundle)
 
Roomroom (int pos)
 
- Public Member Functions inherited from Level
 Level ()
 
virtual ~Level ()
 
void create ()
 
void clear ()
 
int pitCell ()
 
int randomRespawnCell ()
 
int adjustPos (int pos)
 
void reset ()
 
std::vector< bool > updateFieldOfView (Char *c)
 
int tunnelTile ()
 
int randomDestination ()
 
void mobPress (Mob *mob)
 
Heapdrop (Item *item, int cell)
 
void uproot (int pos)
 
Plantplant (Plant::Seed *seed, int pos)
 
void press (int cell, Char *ch)
 
void destroy (int pos)
 
String tileName (int tile)
 
String tileDesc (int tile)
 
void addVisuals (Scene *scene)
 

Protected Member Functions

virtual std::vector< bool > water ()
 
virtual std::vector< bool > grass ()
 
virtual void decorate ()
 
virtual void createMobs ()
 
virtual void createItems ()
 
- Protected Member Functions inherited from RegularLevel
virtual bool build ()
 
bool initRooms ()
 
void split (Rect rect)
 
void paint ()
 
void paintWater ()
 
void paintGrass ()
 
void placeTraps ()
 
void paintDoors (Room *r)
 
void assignRoomType ()
 
RoomrandomRoom (Room::Type type, int tries)
 
int randomDropCell ()
 
bool joinRooms (Room *r, Room *n)
 
int nTraps ()
 
std::vector< float > trapChances ()
 

Additional Inherited Members

- Public Types inherited from Level
enum  Feeling { NONE , CHASM , WATER , GRASS }
 
- Static Public Member Functions inherited from Level
static int distance (int a, int b)
 
static bool adjacent (int a, int b)
 
static void set (int cell, int terrain)
 
- Public Attributes inherited from RegularLevel
int secretDoors
 
- Public Attributes inherited from Level
std::vector< int > map
 
std::vector< bool > visited
 
std::vector< bool > mapped
 
int viewDistance
 
Feeling feeling
 
int entrance
 
int exit
 
HashSet< Mob * > mobs
 
HashMap< std::string, Blob * > blobs
 
HashMap< int, Heap * > heaps
 
HashMap< int, Plant * > plants
 
int color1
 
int color2
 
- Static Public Attributes inherited from Level
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
 
- Protected Attributes inherited from RegularLevel
std::list< Room::Typespecials
 
std::set< Room * > rooms
 
int minRoomSize
 
int maxRoomSize
 
RoomroomEntrance
 
RoomroomExit
 
- Static Protected Attributes inherited from Level
static const float TIME_TO_RESPAWN = 50
 
static bool pitRoomNeeded = false
 
static bool weakFloorCreated = false
 

Member Function Documentation

◆ createItems()

void SewerLevel::createItems ( )
protectedvirtual

Reimplemented from RegularLevel.

Here is the call graph for this function:

◆ createMobs()

void SewerLevel::createMobs ( )
protectedvirtual

Reimplemented from RegularLevel.

Here is the call graph for this function:

◆ decorate()

void SewerLevel::decorate ( )
protectedvirtual

Implements Level.

◆ getClassName()

virtual std::string SewerLevel::getClassName ( )
inlinevirtual

◆ grass()

std::vector< bool > SewerLevel::grass ( )
protectedvirtual

Implements RegularLevel.

◆ tilesTex()

std::string SewerLevel::tilesTex ( )
virtual

Reimplemented from Level.

◆ water()

std::vector< bool > SewerLevel::water ( )
protectedvirtual

Implements RegularLevel.

◆ waterTex()

std::string SewerLevel::waterTex ( )
virtual

Reimplemented from Level.


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