Simutrans-Squirrel-API
api_pathfinding.cc
Go to the documentation of this file.
1 
6 class simple_heap_x {
7 public:
11  simple_heap_x();
13  void clear();
15  integer len();
17  bool is_empty();
23  void insert(integer weight, integer value);
29  void pop();
33  class node_x {
34  int weight;
35  int value;
36  }
37 };
42 public:
52  void set_build_types(way_desc_x way);
58  bool is_allowed_step(tile_x from, tile_x to);
59 };
64 public:
74  static coord3d find_end(player_x pl, coord3d pos, dir dir, bridge_desc_x bridge, integer min_length);
75 };
way_planner_x(player_x pl)
bool is_allowed_step(tile_x from, tile_x to)
void insert(integer weight, integer value)
void clear()
Clears the heap.
integer len()
int weight
heap is sorted with respect to weight
int value
the data to be stored
static coord3d find_end(player_x pl, coord3d pos, dir dir, bridge_desc_x bridge, integer min_length)
void set_build_types(way_desc_x way)