示例#1
0
 public void Dispose()
 {
     _blueRobotFactory.Dispose();
     _blueRobotFactory = null;
     _redRobotFactory.Dispose();
     _redRobotFactory   = null;
     _NonToxicLocations = null;
     RadioMessages      = null;
     ToxicLocations     = null;
 }
示例#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;
        }