Simutrans-Squirrel-API
Static Public Member Functions | List of all members
bridge_planner_x Class Reference

Static Public Member Functions

static coord3d find_end (player_x pl, coord3d pos, dir dir, bridge_desc_x bridge, integer min_length)
 

Detailed Description

Class with helper methods for bridge planning.

Definition at line 63 of file api_pathfinding.cc.

Member Function Documentation

◆ find_end()

static coord3d bridge_planner_x::find_end ( player_x  pl,
coord3d  pos,
dir  dir,
bridge_desc_x  bridge,
integer  min_length 
)
static

Find suitable end tile for bridge starting at pos going into direction dir.

Parameters
plwho wants to build a bridge
posstart tile for bridge
dirdirection
bridgebridge descriptor
min_lengthbridge should have this minimal length
Returns
coordinate of end tile or an invalid coordinate

The documentation for this class was generated from the following file: