예제 #1
0
        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);
        }
예제 #2
0
        public void Initialize(String XMLFile)
        {
            GameObjectFactory.The.loadXmlData(null);
            Monirator m = new Monirator();
            CommandRequester c = new CommandRequester();
            NetworkManager n = new NetworkManager();
            GameSimulator s = new MasterSimulator();

            GameController.Initialize(XMLFile, false, _frame, m,s,n,c);
            GameController.connectAsInputSource(c);
            GameController.connectAsInputSource(n);
        }
예제 #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);
        }