Exemplo n.º 1
0
 public void Dispose()
 {
     _blueRobotFactory.Dispose();
     _blueRobotFactory = null;
     _redRobotFactory.Dispose();
     _redRobotFactory   = null;
     _NonToxicLocations = null;
     RadioMessages      = null;
     ToxicLocations     = null;
 }
Exemplo n.º 2
0
        public GameController(RobotFactory redRobotFactory, RobotFactory blueRobotFactory, int rndSeed)
        {
            _redRobotFactory  = redRobotFactory;
            _blueRobotFactory = blueRobotFactory;
            RedTeamName       = redRobotFactory.TeamName;
            BlueTeamName      = blueRobotFactory.TeamName;

            Rnd             = new Random(rndSeed);
            TimeoutsEnabled = true;
        }