path-info.js
// Remove the first step on this path and return the WorldPosition
Remove the first step on this path and return the WorldPosition
Remove the first step on this path and return the WorldPosition
shift() {
		--this.length;
		if (this.swamps[0] === 0) {
			this.swamps.shift();
		}
		if (this.roads[0] === 0) {
			this.roads.shift();
		}
		this.swamps = this.swamps.map(function(swamp) {
			return swamp - 1;
		});
		this.roads = this.roads.map(function(road) {
			return road - 1;
		});
		return this.path.shift();
	}
shift ( ) { -- this . length ; if ( this . swamps [ 0 ] === 0 ) { this . swamps . shift ( ) ; } if ( this . roads [ 0 ] === 0 ) { this . roads . shift ( ) ; } this . swamps = this . swamps . map ( function ( swamp ) { return swamp - 1 ; } ) ; this . roads = this . roads . map ( function ( road ) { return road - 1 ; } ) ; return this . path . shift ( ) ; }
Remove the first step on this path and return the WorldPosition
Remove the first step on this path and return the WorldPosition