Object that helps the server (and rules engine) manage loaded maps, including the dynamics. More...
#include <map-manager.h>
Classes | |
struct | iterator_t |
Public Member Functions | |
virtual | ~MapManager (void) throw () |
virtual void | clear (void)=0 |
virtual void | requestLoad (IN const char *id)=0 |
virtual smart_ptr< MapDynamics > | getMap (IN const char *id)=0 |
virtual void | tickMaps (IN float seconds)=0 |
virtual void | getIterator (OUT iterator_t &i)=0 |
virtual bool | getNextMap (IO iterator_t &i, OUT smart_ptr< MapDynamics > &map)=0 |
Static Public Member Functions | |
static smart_ptr< MapManager > | create (IN smart_ptr< Datahash > ¶ms, IN smart_ptr< story::Story > &story) |
Object that helps the server (and rules engine) manage loaded maps, including the dynamics.
This map manager is used on the client and the server. So there is no dependency on specific rendering engines or input allowed, etc.
NOTE: (to implementers) these calls must be threadsafe!
Loading maps is *very* expensive and must be on separate threads without locking mutex's for a long time etc.
Definition at line 60 of file map-manager.h.