public static float PlayerDistance(PlatformAStar pas, GameState state, PlayerId pId, GameObject target) { return Vector2.Distance (state.Player(pId).SurfaceCenter, target.Target) + PlatformPathDistance (pas.PlatformPath (state.Player (pId), state.Goal), target); }
public SubPlatformPathFinder(List<Platform> platforms) { pas = new PlatformAStar (platforms); }
public WaypointHeuristic(GameState initialState, PlayerId pId) : base(pId) { // this.initialState = initialState; pas = new PlatformAStar (initialState.Platforms); }