#include <mapdef.h>
Public Member Functions | |
level_range (const raw_range &range) | |
level_range (branch_type br=BRANCH_MAIN_DUNGEON, int s=-1, int d=-1) | |
void | set (int s, int d=-1) |
void | set (const std::string &branch, int s, int d) throw (std::string) |
void | reset () |
bool | matches (const level_id &) const |
bool | matches (int depth) const |
void | write (writer &) const |
void | read (reader &) |
bool | valid () const |
int | span () const |
std::string | describe () const |
std::string | str_depth_range () const |
bool | operator== (const level_range &lr) const |
operator raw_range () const | |
operator std::string () const | |
Static Public Member Functions | |
static level_range | parse (std::string lr) throw (std::string) |
Public Attributes | |
level_area_type | level_type |
branch_type | branch |
int | shallowest |
int | deepest |
bool | deny |
level_range::level_range | ( | const raw_range & | range | ) |
level_range::level_range | ( | branch_type | br = BRANCH_MAIN_DUNGEON , |
|
int | s = -1 , |
|||
int | d = -1 | |||
) |
void level_range::set | ( | int | s, | |
int | d = -1 | |||
) |
void level_range::set | ( | const std::string & | branch, | |
int | s, | |||
int | d | |||
) | throw (std::string) |
void level_range::reset | ( | ) |
bool level_range::matches | ( | const level_id & | lid | ) | const |
bool level_range::matches | ( | int | depth | ) | const |
void level_range::write | ( | writer & | outf | ) | const |
void level_range::read | ( | reader & | inf | ) |
bool level_range::valid | ( | ) | const |
int level_range::span | ( | ) | const |
level_range level_range::parse | ( | std::string | lr | ) | throw (std::string) [static] |
std::string level_range::describe | ( | ) | const |
std::string level_range::str_depth_range | ( | ) | const |
bool level_range::operator== | ( | const level_range & | lr | ) | const |
level_range::operator raw_range | ( | ) | const |
level_range::operator std::string | ( | ) | const [inline] |
bool level_range::deny |