Exemplo n.º 1
0
        public GameSession Initialization(string sessionName)
        {
            Logger.Info($"[{GetType().Name}]\t [Initialization]");

            _gameSession = ScenarioConvertor.LoadGameSession(sessionName);

            _gameSession.Commands = new List <Command>();

            return(_gameSession);
        }
Exemplo n.º 2
0
        public GameSession Initialization()
        {
            Logger.Info($"[{GetType().Name}]\t [Initialization]");
            _gameSession = ScenarioConvertor.LoadGameSession("Map_OneShip");
            //_gameSession = ScenarioConvertor.ToGameSession(ScenarioConvertor.GetSavedMap("Map_FirstBattle"));
            //_gameSession = ScenarioConvertor.ToGameSession(ScenarioConvertor.GetSavedMap("Map_005"));

            _gameSession.Commands = new List <Command>();

            turnCalculation          = new Timer();
            turnCalculation.Elapsed += ExecuteTurnCalculation;
            turnCalculation.Interval = 1000;
            turnCalculation.Enabled  = true;

            return(_gameSession);
        }