public Missile(double x, double y, double velocity, double heading, MissileProgram program) { this.x = x; this.y = y; this.velocity = velocity; this.heading = heading; this.bearing = heading; dX = Math.Sin(heading) * velocity; dY = Math.Cos(heading) * velocity; this.program = program; this.target = this; }
public void setTarget(Missile target) { this.target = target; }
public virtual void execute(Missile missile) { // do nothing by default }
public int priority(Missile missile) { return _priority; }
public bool eligible(Missile missile) { return eligibility.getValue(missile); }