Esempio n. 1
0
        public Racer(RacerId rID, int ship_Number, RacerType racer_Type)
        {
            shipNumber           = ship_Number;
            racerType            = racer_Type;
            racerID              = rID;
            raceTiming           = new RaceTiming(this);
            shipDrawing          = new ShipDrawing(new Func <Matrix>(() => Matrix.Identity), new Func <Vector3>(() => Vector3.Zero), this);
            beatQueue            = new BeatQueue(this);
            racerPoints          = new RacerPoints();
            visualizationSystems = new ParticleSystemManager();
            globalSystems        = new ParticleSystemManager();
            //setColour(1);//Set to red
            //Hum = SoundManager.getEngineHum();
            //if (this.GetType() == typeof(RacerHuman))
            //{
            //    Hum.Play();
            //}
            constructRaceVariables();

            if (racerType == RacerType.AI)
            {
                constructRandomShip(shipNumber);
            }

            //Setup effect to render the ConvexHull of physicsBody with transparency
            //SetupHullRenderer();
        }
Esempio n. 2
0
 public RacerHuman(RacerId rID, int shipNumber, RacerType racer_Type, int viewportIndex, Boolean hasPhysics)
     : base(rID, shipNumber, racer_Type)
 {
     cameraIndex = viewportIndex;
     localCamera = new CameraWrapper(this);
 }