Example #1
0
 //protected SteeringVehicle steering; // changed this from Steering to SteeringVehicle
 protected void Start()
 {
     // don't do base start
     steeringCalculate = new SteeringCalculateWeightedSum(); // create one or the other
     steering = new SteeringVehicle(this, steeringCalculate);
 }
Example #2
0
    /*
     * protected void Start()
     * {
     *      // don't do base start
     *      steeringCalculate = new SteeringCalculateWeightedSum(); // create one or the other
     * steering = new SteeringPerson(this, steeringCalculate);
     * }*/

    public void Setup()
    {
        steeringCalculate = new SteeringCalculateWeightedSum();         // create one or the other
        steering          = new Steering(this, steeringCalculate);
    }
Example #3
0
 /*
 protected void Start()
 {
     // don't do base start
     steeringCalculate = new SteeringCalculateWeightedSum(); // create one or the other
     steering = new SteeringPerson(this, steeringCalculate);
 }*/
 public void Setup()
 {
     steeringCalculate = new SteeringCalculateWeightedSum(); // create one or the other
     steering = new Steering(this, steeringCalculate);
 }
Example #4
0
    //protected SteeringVehicle steering; // changed this from Steering to SteeringVehicle

    protected void Start()
    {
        // don't do base start
        steeringCalculate = new SteeringCalculateWeightedSum();         // create one or the other
        steering          = new SteeringVehicle(this, steeringCalculate);
    }