World Class Reference

Object which holds and manages all maps and characters on the server, as well as timed events Only one of these should exist per server. More...

#include <eoserv.hpp>

Collaboration diagram for World:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 World (util::array< std::string, 5 > dbinfo, Config)
int GenerateCharacterID ()
int GeneratePlayerID ()
void Login (Character *)
void Logout (Character *)
void Msg (Character *from, std::string message)
void AdminMsg (Character *from, std::string message)
void AnnounceMsg (Character *from, std::string message)
void Reboot ()
void Reboot (int seconds, std::string reason)
void Kick (Character *from, Character *victim, bool announce=true)
void Ban (Character *from, Character *victim, double duration, bool announce=true)
CharacterGetCharacter (std::string name)

Public Attributes

Timer timer
EOServerserver
std::list< Character * > characters
std::list< Guild * > guilds
std::list< Party * > partys
std::list< NPC * > npcs
std::vector< Map * > maps
int last_character_id

Private Member Functions

 World ()


Detailed Description

Object which holds and manages all maps and characters on the server, as well as timed events Only one of these should exist per server.

Constructor & Destructor Documentation

World::World (  )  [private]

World::World ( util::array< std::string, 5 >  dbinfo,
Config   
)


Member Function Documentation

int World::GenerateCharacterID (  ) 

int World::GeneratePlayerID (  ) 

void World::Login ( Character  ) 

void World::Logout ( Character  ) 

void World::Msg ( Character from,
std::string  message 
)

void World::AdminMsg ( Character from,
std::string  message 
)

void World::AnnounceMsg ( Character from,
std::string  message 
)

void World::Reboot (  ) 

void World::Reboot ( int  seconds,
std::string  reason 
)

void World::Kick ( Character from,
Character victim,
bool  announce = true 
)

void World::Ban ( Character from,
Character victim,
double  duration,
bool  announce = true 
)

Character* World::GetCharacter ( std::string  name  ) 


Member Data Documentation

std::list<Guild *> World::guilds

std::list<Party *> World::partys

std::list<NPC *> World::npcs

std::vector<Map *> World::maps


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

Generated on Sun Apr 5 20:28:26 2009 for EOServ by  doxygen 1.5.7.1