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
};
41
class
way_planner_x
{
42
public
:
47
way_planner_x
(
player_x
pl);
52
void
set_build_types
(
way_desc_x
way);
58
bool
is_allowed_step
(
tile_x
from,
tile_x
to);
59
};
63
class
bridge_planner_x
{
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::way_planner_x
way_planner_x(player_x pl)
way_planner_x
Definition:
api_pathfinding.cc:41
simple_heap_x::node_x
Definition:
api_pathfinding.cc:33
tile_x
Definition:
api_tiles.cc:13
bridge_planner_x
Definition:
api_pathfinding.cc:63
way_planner_x::is_allowed_step
bool is_allowed_step(tile_x from, tile_x to)
simple_heap_x::insert
void insert(integer weight, integer value)
coord3d
Definition:
api_simple.cc:70
simple_heap_x::simple_heap_x
simple_heap_x()
simple_heap_x::clear
void clear()
Clears the heap.
simple_heap_x::pop
void pop()
simple_heap_x::len
integer len()
simple_heap_x::node_x::weight
int weight
heap is sorted with respect to weight
Definition:
api_pathfinding.cc:34
dir
Definition:
api_simple.cc:110
simple_heap_x
Definition:
api_pathfinding.cc:6
simple_heap_x::node_x::value
int value
the data to be stored
Definition:
api_pathfinding.cc:35
bridge_planner_x::find_end
static coord3d find_end(player_x pl, coord3d pos, dir dir, bridge_desc_x bridge, integer min_length)
bridge_desc_x
Definition:
api_obj_desc.cc:344
player_x
Definition:
api_player.cc:6
simple_heap_x::is_empty
bool is_empty()
way_planner_x::set_build_types
void set_build_types(way_desc_x way)
way_desc_x
Definition:
api_obj_desc.cc:313
Generated by
1.8.14