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);
        }
Beispiel #2
0
        public void Initialize(String XMLFile)
        {
            CommandRequester c = new CommandRequester();
            GameSimulator s = new GameSimulator();
            replayer = new ReplayReader(XMLFile);

            GameController.Initialize(XMLFile, false, _frame, null, s, null, c);
            GameController.connectAsInputSource(replayer);
        }
Beispiel #3
0
        public void Initialize(String XMLFile)
        {
            Monirator m = new Monirator();
            CommandRequester c = new CommandRequester();
            NetworkManager n = new NetworkManager();
            GameSimulator s = new GameSimulator();

            GameController.Initialize(XMLFile, false, _frame, m,s,n,c);
            GameController.connectAsInputSource(n);
        }