15 #include "../clib/dirlist.h" 16 #include "../clib/logfacility.h" 17 #include "../clib/passert.h" 18 #include "../clib/strutil.h" 19 #include "../clib/timer.h" 20 #include "../plib/systemstate.h" 31 int realm_counter = 0;
35 std::string realm_name = dl.
name();
36 if ( realm_name[0] ==
'.' )
42 POLLOG_INFO <<
"Loading Realm " << realm_name <<
".\n";
52 if ( realm_name ==
"britannia" )
58 if ( realm_counter > 0 )
68 if ( realm->name() ==
name )
78 if ( realm->name() ==
name )
94 std::vector<Realms::Realm*>::iterator itr;
97 if ( ( *itr )->name() ==
name )
bool defined_realm(const std::string &name)
void on_delete_realm(Realms::Realm *realm)
void remove_realm(const std::string &name)
std::string decint(unsigned short v)
const std::string name() const
#define passert_r(exp, reason)
std::vector< Realms::Realm * > Realms
unsigned int shadowrealm_count
Realms::Realm * find_realm(const std::string &name)
std::map< int, Realms::Realm * > shadowrealms_by_id
void add_realm(const std::string &name, Realms::Realm *base)
unsigned int baserealm_count
Realms::Realm * main_realm