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

#include <dungeon.h>

Collaboration diagram for Dungeon:

Static Public Member Functions

static Bundle * gameBundle (const std::string &fileName)
 
static std::string gameFile (const HeroClass &cl)
 
static void preview (GamesInProgress::Info &info, Bundle *bundle)
 
static void init ()
 
static bool isChallenged (int mask)
 
static LevelnewLevel ()
 
static void loadGame (HeroClass cl)
 
static void loadGame (const std::string &fileName)
 
static void loadGame (const std::string &fileName, bool fullLoad)
 
static void resetLevel ()
 
static void saveLevel ()
 
static LevelloadLevel (HeroClass cl)
 
static void switchLevel (Level *level, int pos)
 
static void observe ()
 
static bool shopOnLevel ()
 
static bool bossLevel ()
 
static bool bossLevel (int depth)
 
static int findPath (Char *ch, int from, int to, std::vector< bool > &pass, std::vector< bool > &visible)
 
static int flee (Char *ch, int cur, int from, std::vector< bool > &pass, std::vector< bool > &visible)
 
static void fail (const std::string &desc)
 
static void win (const String &desc)
 
static void deleteGame (HeroClass cl, boolean deleteLevels)
 
static void saveAll ()
 

Static Public Attributes

static int potionOfStrength
 
static int scrollsOfUpgrade
 
static int scrollsOfEnchantment
 
static bool dewVial
 
static int challenges
 
static Herohero = NULL
 
static Levellevel
 
static int depth = 0
 
static int gold = 0
 
static std::string resultDescription
 
static DroppedItemsType droppedItems
 
static bool nightMode
 
static std::vector< bool > visible
 
static std::set< int > chapters
 

Member Function Documentation

◆ bossLevel() [1/2]

bool Dungeon::bossLevel ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ bossLevel() [2/2]

static bool Dungeon::bossLevel ( int depth)
inlinestatic

◆ deleteGame()

void Dungeon::deleteGame ( HeroClass cl,
boolean deleteLevels )
static

◆ fail()

void Dungeon::fail ( const std::string & desc)
static
Here is the caller graph for this function:

◆ findPath()

int Dungeon::findPath ( Char * ch,
int from,
int to,
std::vector< bool > & pass,
std::vector< bool > & visible )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flee()

int Dungeon::flee ( Char * ch,
int cur,
int from,
std::vector< bool > & pass,
std::vector< bool > & visible )
static
Here is the caller graph for this function:

◆ gameBundle()

Bundle * Dungeon::gameBundle ( const std::string & fileName)
static
Here is the caller graph for this function:

◆ gameFile()

std::string Dungeon::gameFile ( const HeroClass & cl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

void Dungeon::init ( )
static
Here is the call graph for this function:

◆ isChallenged()

bool Dungeon::isChallenged ( int mask)
static
Here is the caller graph for this function:

◆ loadGame() [1/3]

void Dungeon::loadGame ( const std::string & fileName)
static
Here is the call graph for this function:

◆ loadGame() [2/3]

void Dungeon::loadGame ( const std::string & fileName,
bool fullLoad )
static
Here is the call graph for this function:

◆ loadGame() [3/3]

void Dungeon::loadGame ( HeroClass cl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadLevel()

Level * Dungeon::loadLevel ( HeroClass cl)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ newLevel()

Level * Dungeon::newLevel ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ observe()

void Dungeon::observe ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ preview()

void Dungeon::preview ( GamesInProgress::Info & info,
Bundle * bundle )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetLevel()

void Dungeon::resetLevel ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveAll()

void Dungeon::saveAll ( )
static
Here is the call graph for this function:

◆ saveLevel()

void Dungeon::saveLevel ( )
static
Here is the caller graph for this function:

◆ shopOnLevel()

static bool Dungeon::shopOnLevel ( )
inlinestatic
Here is the caller graph for this function:

◆ switchLevel()

void Dungeon::switchLevel ( Level * level,
int pos )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win()

void Dungeon::win ( const String & desc)
static
Here is the call graph for this function:

Member Data Documentation

◆ challenges

int Dungeon::challenges
static

◆ chapters

std::set< int > Dungeon::chapters
static

◆ depth

int Dungeon::depth = 0
static

◆ dewVial

bool Dungeon::dewVial
static

◆ droppedItems

DroppedItemsType Dungeon::droppedItems
static

◆ gold

int Dungeon::gold = 0
static

◆ hero

Hero * Dungeon::hero = NULL
static

◆ level

Level * Dungeon::level
static

◆ nightMode

bool Dungeon::nightMode
static

◆ potionOfStrength

int Dungeon::potionOfStrength
static

◆ resultDescription

std::string Dungeon::resultDescription
static

◆ scrollsOfEnchantment

int Dungeon::scrollsOfEnchantment
static

◆ scrollsOfUpgrade

int Dungeon::scrollsOfUpgrade
static

◆ visible

std::vector< bool > Dungeon::visible
static

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