Esempio n. 1
0
 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);
 }
Esempio n. 3
0
 public WaypointHeuristic(GameState initialState, PlayerId pId)
     : base(pId)
 {
     //            this.initialState = initialState;
     pas = new PlatformAStar (initialState.Platforms);
 }