code: public double getMovementCost(Pathfindable pathfindable, int tx, int ty)
      {
          return mapPath.getCost(pathfindable, tx, ty);
      }
docs: Get the cost to move through a given location.
  
  @param pathfindable The object that is being moved.
  @param tx The horizontal tile index.
  @param ty The vertical tile index.
  @return The cost of movement through the given tile.