public override void Open() { // create the wanderer, saving a pointer to it wanderer = new MpWanderer(); allMP.Add(wanderer); // create the specified number of pursuers, save pointers to them const int pursuerCount = 30; for (int i = 0; i < pursuerCount; i++) allMP.Add(new MpPursuer(wanderer)); //pBegin = allMP.begin() + 1; // iterator pointing to first pursuer //pEnd = allMP.end(); // iterator pointing to last pursuer // initialize camera Demo.SelectedVehicle = wanderer; Demo.Camera.Mode = Camera.CameraMode.StraightDown; Demo.Camera.FixedDistanceDistance = Demo.CameraTargetDistance; Demo.Camera.FixedDistanceVerticalOffset = Demo.Camera2dElevation; }
public override void Open() { // create the wanderer, saving a pointer to it wanderer = new MpWanderer(); allMP.Add(wanderer); // create the specified number of pursuers, save pointers to them const int pursuerCount = 30; for (int i = 0; i < pursuerCount; i++) { allMP.Add(new MpPursuer(wanderer)); } //pBegin = allMP.begin() + 1; // iterator pointing to first pursuer //pEnd = allMP.end(); // iterator pointing to last pursuer // initialize camera Demo.SelectedVehicle = wanderer; Demo.Camera.Mode = Camera.CameraMode.StraightDown; Demo.Camera.FixedDistanceDistance = Demo.CameraTargetDistance; Demo.Camera.FixedDistanceVerticalOffset = Demo.Camera2dElevation; }
// constructor public MpPursuer(MpWanderer w) { wanderer = w; Reset(); }