public void Initialize(String XMLFile, bool isHost, Frame_Game frame, Monirator m, GameSimulator s, NetworkManager n, CommandRequester r)
        {
            TileMap map = new TileMap();
            RuleBook rulebook = new RuleBook();
            rulebook.LoadXMLData(XMLFile);

            monirator = m;
            simulator = s;
            NetworkController = n;
            CmdRequester = r;

            simulator.Initialize(map);
            monirator.Initialize(map, rulebook);
            HostSession = isHost;

            frame.AddUnitEvent +=new EventHandler(CmdRequester.AddButtonHandler);
        }
Example #2
0
 /// <summary>
 /// Initialize TileMap
 /// </summary>
 /// <param name="map">TileMap to select from</param>
 public static void Initialize(TileMap map)
 {
     _map = map;
 }
Example #3
0
 /// <summary>
 /// Initialize RuleBook and CommandEvaluator;
 /// </summary>
 /// <param name="map"></param>
 /// <param name="rules"></param>
 public void Initialize(TileMap map, RuleBook rules)
 {
     _cmdEval.Initialize(map);
     _rulebook = rules;
 }