Esempio n. 1
0
        public clsInput input; // input for wordl actions like scroll in and out

        public clsRoadWorld(long tilesWide, float tileSize) : base(tileSize)
        {
            this.input = new clsInput(); // input devices
            loadTiles(tilesWide);
            loadObjects(tilesWide);
            loadActors();
        }
Esempio n. 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);
        }
Esempio n. 3
0
 public clsDriverHuman(clsWorld world, clsCar car, clsInput input) : base(world, car)
 {
     // could have an input that is network at some point
     this.car   = car;
     this.input = input;
 }