#include <state.hpp>
Definition at line 51 of file state.hpp.
Public Member Functions | |
| ~State () | |
| void | update () |
| Updates game state (contains core server logic). | |
| MapComposite * | getMap (int map) |
| Gets a composite map. | |
| void | insert (Thing *) |
| Inserts an object on the map. | |
| void | remove (Thing *) |
| Removes an object from the map. | |
| void | enqueueEvent (Object *, DelayedEvent const &) |
| Enqueues an event. | |
| void | sayAround (Object *, std::string text) |
| Says something around an object. | |
Private Types | |
| typedef std::map< int, MapComposite * > | Maps |
| typedef std::map< Object *, DelayedEvent > | DelayedEvents |
Private Member Functions | |
| void | updateMap (MapComposite *) |
| Updates object states on the map. | |
| void | informPlayer (MapComposite *, Character *) |
| Informs a player of what happened around the character. | |
| MapComposite * | loadMap (int mapId) |
| Loads map into game world. | |
Private Attributes | |
| Maps | maps |
| List of maps. | |
| DelayedEvents | delayedEvents |
| List of delayed events. | |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Enqueues an event. It will be executed at end of update. |
|
|
Gets a composite map.
|
|
||||||||||||
|
Informs a player of what happened around the character.
|
|
|
Inserts an object on the map.
|
|
|
Loads map into game world.
|
|
|
Removes an object from the map.
|
|
||||||||||||
|
Says something around an object.
|
|
|
Updates game state (contains core server logic).
|
|
|
Updates object states on the map.
|
|
|
List of delayed events.
|
|
|
List of maps.
|
1.3.9.1