public Game(MapGenerationOption mapGeneration)
        {
            Id = _MAXID++;

            Turn      = 0;
            Running   = false;
            Waiting   = true;
            _gameLoop = new HighFrequencyTimer(60, this.Update);
            GenerateMap(mapGeneration);

            gameQuit = DateTime.UtcNow.AddMilliseconds(MAX_WAIT);
            UpdateTimeInfo(DateTime.UtcNow.AddMilliseconds(START_DELAY));
        }
        public Game()
        {
            if (Random == null)
            {
                Random = new Random();
            }

            Id = _MAXID++;

            Turn      = 0;
            Running   = false;
            _gameLoop = new HighFrequencyTimer(60, this.Update);
            GenerateMap();

            UpdateTimeInfo(DateTime.UtcNow);
        }
Exemplo n.º 3
0
        public Game()
        {
            if (Random == null)
            {
                Random = new Random();
            }

            Id = _MAXID++;

            Turn = 0;
            Running = false;
            _gameLoop = new HighFrequencyTimer(60, this.Update);
            GenerateMap();

            UpdateTimeInfo(DateTime.UtcNow);
        }