UNPKG

bp-prism-game

Version:
34 lines (33 loc) 1.09 kB
import { IAsset } from '../interface/asset.interface'; import { AlienPathEnum } from '../enum/alien-path.enum'; import * as i0 from "@angular/core"; /** * The path service */ export declare class PathService { /** * Finds the shortest path for an alien from the spawn location * To the base * * @param startCoordinates the Starting Coordinating */ findShortestPath(startCoordinates: IAsset, gameboard: AlienPathEnum[][]): IAsset[]; /** * Checks the location status */ private locationStatus; /** * Explore around the current location * @param currentLocation The current location * @param direction the direction to explore */ private exploreInDirection; /** * Get the Alien Drop Ship Path * @param startPosition The starting position * @param endPosition The ending position */ getAlienDropShipPath(startPosition: IAsset, endPosition: IAsset): IAsset[]; static ɵfac: i0.ɵɵFactoryDeclaration<PathService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<PathService>; }