Exemplo n.º 1
0
 public void RefreshTime()
 {
     _gameTime++;
     _gameTable.IncreaseGameTime();
     if (TimeRefreshed != null)
     {
         TimeRefreshed(this, new RobotRunEventArgs(_gameTime, false));
     }
     if (_gameTime % 10 == 0)
     {
         FindNewDirection();
     }
     if (!Move())
     {
         FindNewDirection();
         Move();
     }
     RefreshTable();
     CheckWon();
 }