Exemplo n.º 1
0
 public GameWorld(Map map)
 {
     gameMap = map;
     playersOnline = new Dictionary<string, Player>();
     creaturesOnline = new Dictionary<uint, Creature>();
     eventHandler = new EventHandler();
     eventHandler.World = this;
     eventHandler.Start();
     lockThis = new Object();
     chatSystem = new ChatSystem(map, playersOnline);
     pathFinder = new PathFinder(map);
     movingSystem = new MovingSystem(map, this);
     spellSystem = new SpellSystem(map);
 }
Exemplo n.º 2
0
 public GameWorld(Map map)
 {
     gameMap            = map;
     playersOnline      = new Dictionary <string, Player>();
     creaturesOnline    = new Dictionary <uint, Creature>();
     eventHandler       = new EventHandler();
     eventHandler.World = this;
     eventHandler.Start();
     lockThis     = new Object();
     chatSystem   = new ChatSystem(map, playersOnline);
     pathFinder   = new PathFinder(map);
     movingSystem = new MovingSystem(map, this);
     spellSystem  = new SpellSystem(map);
 }