00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _TMW_SERVER_STATE_
00023 #define _TMW_SERVER_STATE_
00024
00025 #include <string>
00026
00027 class MapComposite;
00028 class Thing;
00029 class Actor;
00030 class Character;
00031
00032 namespace GameState
00033 {
00037 void update(int worldTime);
00038
00044 bool insert(Thing *)
00045 # ifdef __GNUC__
00046 __attribute__((warn_unused_result))
00047 # endif
00048 ;
00049
00056 bool insertSafe(Thing *);
00057
00063 void remove(Thing *);
00064
00070 void warp(Character *, MapComposite *, int x, int y);
00071
00076 void enqueueInsert(Actor *);
00077
00083 void enqueueRemove(Actor *);
00084
00089 void enqueueWarp(Character *, MapComposite *, int x, int y);
00090
00095 void sayTo(Actor *destination, Actor *source, const std::string &text);
00096
00100 void sayAround(Actor *, const std::string &text);
00101
00105 void sayToAll(const std::string &text);
00106
00107 }
00108
00109 #endif