示例#1
0
 public void StartGame()
 {
     _tileTracker = new TileTracker(_board.Size.x, _board.Size.y);
     _scoreTracker.Refresh();
     _gameTimer.StartTimer(GameOver);
     _moleSpawner.StartSpawner(null, null, _scoreTracker.AddScore);
 }
示例#2
0
        public string RouteSaver()
        {
            timer.StartTimer();
            Info   flightInfo = Info.Instance;
            string lon        = client["get /position/longitude-deg\r\n"];
            string lat        = client["get /position/latitude-deg\r\n"];

            if (timer.isRunning)
            {
                string throttle = client["get /controls/engines/current-engine/throttle\r\n"];
                string rudder   = client["get /controls/flight/rudder\r\n"];
                flightInfo.WriteToFile(lon, lat, throttle, rudder);
            }
            List <string> param = new List <string>();

            param.Add(lon);
            param.Add(lat);
            return(toXML(param));
        }
示例#3
0
 public void StartGame()
 {
     TimeTracker.StartTimer(ProjectManager.Instance);
 }