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(); }
/***************************************** * 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); }
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; }