public PodRacer(Team owner, int number, IPilot pilot, Vector position, double heading, IPodRacerPhysics podRacerPhysics) : base(position, podRacerPhysics.POD_RACER_RADIUS) { Owner = owner; Number = number; Pilot = pilot; PureMass = 1; Position = position; Heading = heading; PodRacerPhysics = podRacerPhysics; }
public PodRacer CreatePodRacer(Team team, int number, IPilot pilot, Vector position, double heading, IPodRacerPhysics podRacerPhysics) { PodRacer newPodRacer; newPodRacer = new PodRacer(team, number, pilot, position, heading, podRacerPhysics); team.PodRacers.Add(newPodRacer); pilot.PodRacer = newPodRacer; PodRacers.Add(newPodRacer); return(newPodRacer); }