level_id Class Reference

#include <externs.h>

List of all members.

Public Member Functions

 level_id ()
 level_id (branch_type br, int dep, level_area_type ltype=LEVEL_DUNGEON)
 level_id (const level_id &ot)
 level_id (level_area_type ltype)
unsigned short packed_place () const
std::string describe (bool long_name=false, bool with_number=true) const
void clear ()
int absdepth () const
int dungeon_absdepth () const
bool is_valid () const
const level_idoperator= (const level_id &id)
bool operator== (const level_id &id) const
bool operator!= (const level_id &id) const
bool operator< (const level_id &id) const
bool operator== (const branch_type _branch) const
bool operator!= (const branch_type _branch) const
void save (writer &) const
void load (reader &)

Static Public Member Functions

static level_id current ()
static level_id get_next_level_id (const coord_def &pos)
static level_id parse_level_id (const std::string &s) throw (std::string)
static level_id from_packed_place (const unsigned short place)

Public Attributes

branch_type branch
int depth
level_area_type level_type


Constructor & Destructor Documentation

level_id::level_id (  )  [inline]

level_id::level_id ( branch_type  br,
int  dep,
level_area_type  ltype = LEVEL_DUNGEON 
) [inline]

level_id::level_id ( const level_id ot  )  [inline]

level_id::level_id ( level_area_type  ltype  )  [inline]


Member Function Documentation

level_id level_id::current (  )  [static]

Here is the call graph for this function:

level_id level_id::get_next_level_id ( const coord_def pos  )  [static]

Here is the call graph for this function:

level_id level_id::parse_level_id ( const std::string s  )  throw (std::string) [static]

Here is the call graph for this function:

level_id level_id::from_packed_place ( const unsigned short  place  )  [static]

Here is the call graph for this function:

unsigned short level_id::packed_place (  )  const

Here is the call graph for this function:

std::string level_id::describe ( bool  long_name = false,
bool  with_number = true 
) const

Here is the call graph for this function:

void level_id::clear (  )  [inline]

int level_id::absdepth (  )  const

Here is the call graph for this function:

int level_id::dungeon_absdepth (  )  const

Here is the call graph for this function:

bool level_id::is_valid (  )  const [inline]

const level_id& level_id::operator= ( const level_id id  )  [inline]

bool level_id::operator== ( const level_id id  )  const [inline]

bool level_id::operator!= ( const level_id id  )  const [inline]

Here is the call graph for this function:

bool level_id::operator< ( const level_id id  )  const [inline]

bool level_id::operator== ( const branch_type  _branch  )  const [inline]

bool level_id::operator!= ( const branch_type  _branch  )  const [inline]

Here is the call graph for this function:

void level_id::save ( writer outf  )  const

Here is the call graph for this function:

void level_id::load ( reader inf  ) 

Here is the call graph for this function:


Member Data Documentation


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

Generated on Thu Jan 13 13:34:52 2011 by  doxygen 1.5.6