コード例 #1
0
        /*****************************************
        *       Instance Objects in the world
        *****************************************/
        public clsDriverHuman spawnCarLocalHuman(clsWorld world, Vector2 worldLocation, Vector2 direction, Vector2 velocity)
        {
            clsCar         car   = createCar(worldLocation, direction, velocity); // spanw car
            clsDriverHuman human = createDriverHuman(world, car, this.input);     // create human for the car

            return(human);
        }
コード例 #2
0
        /*****************************************
        *       Instance Game Intelegence hooks
        *****************************************/
        public clsDriverHuman createDriverHuman(clsWorld world, clsCar car, clsInput input)
        {
            clsDriverHuman human = new clsDriverHuman(world, car, input); // assign human to it

            actors.Add((intActor)human);
            return(human);
        }