Ejemplo n.º 1
0
        public Race CreateRace(IRaceRules raceRules, int startingTeamIndex)
        {
            Race newRace;

            newRace = new Race(raceRules, Arena, Teams, startingTeamIndex);

            return(newRace);
        }
Ejemplo n.º 2
0
        public Race(IRaceRules raceRules, Arena arena, List <Team> teams, int startingTeamIndex = 0)
        {
            RaceRules = raceRules;
            Arena     = arena;
            Teams     = teams;

            PodRacers = Teams.SelectMany(t => t.PodRacers).ToList();
            Units     = PodRacers.Select(p => (Unit)p).Concat(Arena.CheckPoints).ToList();

            InitRaceState();
            InitPodRacer(startingTeamIndex);
        }
Ejemplo n.º 3
0
 public PodRacerMechanics(IRaceRules raceRules)
 {
     this.raceRules = raceRules;
 }