예제 #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();
        }
예제 #2
0
파일: Racer.cs 프로젝트: Jamedjo/BeatShift
        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();
        }
예제 #3
0
 private void constructRaceVariables()
 {
     // Racing related variables
     raceTiming   = new RaceTiming(this);
     isRespawning = false;
 }
예제 #4
0
파일: Racer.cs 프로젝트: Jamedjo/BeatShift
 private void constructRaceVariables()
 {
     // Racing related variables
     raceTiming = new RaceTiming(this);
     isRespawning = false;
 }