Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 // constructor
 public MpPursuer(MpWanderer w)
 {
     wanderer = w;
     Reset();
 }
Exemplo n.º 4
0
 // constructor
 public MpPursuer(MpWanderer w)
 {
     wanderer = w;
     Reset();
 }