/// <summary> /// Copy constructor. /// </summary> public EnemyData(EnemyData cloneMe) { Time = cloneMe.Time; Name = cloneMe.Name; BearingRadians = cloneMe.BearingRadians; Distance = cloneMe.Distance; Energy = cloneMe.Energy; Position = new Point2D(cloneMe.Position); Velocity = cloneMe.Velocity; Acceleration = cloneMe.Acceleration; HeadingRadians = cloneMe.HeadingRadians; TurnRateRadians = cloneMe.TurnRateRadians; //Added by Clement VelocityVector = new Vector2D(cloneMe.VelocityVector); HeadingVector = new Vector2D(cloneMe.HeadingVector); }
public TurretStateScan(ref RoboData rData, ref EnemyData eData) { this.rData = rData; this.eData = eData; }
public TurretSaveEnergy(ref RoboData rData, ref EnemyData eData) { this.eData = eData; this.rData = rData; }
public SteeringBehavior(ref EnemyData eData, Vedole_Joroiv_TheAntSmasher robo) { this.robo = robo; this.eData = eData; oldEnemyHeading = eData.Heading; }