|
| typedef Types::Tpf | Tpf |
| | the pathfinder class (derived from THIS class)
|
| typedef Types::TrackFollower | TrackFollower |
| typedef Types::NodeList | NodeList |
| | our node list
|
| typedef Types::VehicleType | VehicleType |
| | the type of vehicle
|
| typedef NodeList::Item | Node |
| | this will be our node type
|
| typedef Node::Key | Key |
| | key to hash tables
|
| using | PfFollowNodeFunc = void(Node &old_node) |
| | Called by YAPF to move from the given node to the next tile.
|
| using | PfCalcCostFunc = bool(Node &n, const TrackFollower *follower) |
| | Called by YAPF to calculate the cost from the origin to the given node.
|
| using | PfCalcEstimateFunc = bool(Node &n) |
| | Called by YAPF to calculate cost estimate.
|
| using | PfDetectDestinationFunc = bool(Node &n) |
| | Called by YAPF to detect if node ends in the desired destination.
|
| using | PfDetectDestinationTileFunc = bool(TileIndex tile, Trackdir td) |
| | Called by YAPF to detect if node ends in the desired destination.
|
| using | TransportTypeCharFunc = char() |
| | Return debug report character to identify the transportation type.
|
| typedef Types::Tpf | Tpf |
| | the pathfinder class (derived from THIS class).
|
| typedef Types::TrackFollower | TrackFollower |
| typedef Types::NodeList::Item | Node |
| | this will be our node type.
|
| typedef Node::Key | Key |
| | key to hash tables.
|
| typedef Types::Tpf | Tpf |
| | the pathfinder class (derived from THIS class)
|
| typedef Types::NodeList::Item | Node |
| | this will be our node type
|
| typedef Types::Tpf | Tpf |
| | the pathfinder class (derived from THIS class)
|
| typedef Types::NodeList::Item | Node |
| | this will be our node type
|
| typedef Node::Key | Key |
| | key to hash tables
|
| typedef Types::Tpf | Tpf |
| | the pathfinder class (derived from THIS class).
|
| typedef Types::TrackFollower | TrackFollower |
| typedef Types::NodeList::Item | Node |
| | this will be our node type.
|
| typedef Node::Key | Key |
| | key to hash tables.
|
| typedef Types::Tpf | Tpf |
| | the pathfinder class (derived from THIS class).
|
| typedef Types::TrackFollower | TrackFollower |
| typedef Types::NodeList::Item | Node |
| | this will be our node type.
|
| typedef Node::Key | Key |
| | key to hash tables.
|
| static bool | IsPreferredShipDirection (TileIndex tile, Trackdir td) |
| | Whether the provided direction is a preferred direction for a given tile.
|
| static Trackdir | GetRandomTrackdir (TrackdirBits trackdirs) |
| | Returns a random trackdir out of a set of trackdirs.
|
| static std::pair< TileIndex, Trackdir > | GetRandomFollowUpTileTrackdir (const Ship *v, TileIndex tile, Trackdir dir) |
| | Returns a random tile/trackdir that can be reached from the current tile/trackdir, or tile/INVALID_TRACK if none is available.
|
| static Trackdir | CreateRandomPath (const Ship *v, ShipPathCache &path_cache, int path_length) |
| | Creates a random path, avoids 90 degree turns.
|
| static Trackdir | ChooseShipTrack (const Ship *v, TileIndex tile, TrackdirBits forward_dirs, TrackdirBits reverse_dirs, bool &path_found, ShipPathCache &path_cache, Trackdir &best_origin_dir) |
| static bool | CheckShipReverse (const Ship *v, Trackdir *trackdir) |
| | Check whether a ship should reverse to reach its destination.
|
| NodeList | nodes |
| | node list multi-container
|
| int | num_steps = 0 |
| | this is there for debugging purposes (hope it doesn't hurt)
|
| Tpf & | Yapf () |
| | Access the inherited path finder.
|
| Tpf & | Yapf () |
| | Access the inherited path finder.
|
| Tpf & | Yapf () |
| | Access the inherited path finder.
|
| Tpf & | Yapf () |
| | Access the inherited path finder.
|
| Node * | best_dest_node = nullptr |
| | pointer to the destination node found at last round
|
| Node * | best_intermediate_node = nullptr |
| | here should be node closest to the destination if path not found
|
| const YAPFSettings * | settings |
| | current settings (_settings_game.yapf)
|
| int | max_search_nodes |
| | maximum number of nodes we are allowed to visit before we give up
|
| const VehicleType * | vehicle = nullptr |
| | vehicle that we are trying to drive
|
| int | stats_cost_calcs = 0 |
| | stats - how many node's costs were calculated
|
| int | stats_cache_hits = 0 |
| | stats - how many node's costs were reused from cache
|
| TileIndex | dest_tile |
| TrackdirBits | dest_trackdirs |
| StationID | dest_station |
| bool | has_intermediate_dest = false |
| TileIndex | intermediate_dest_tile |
| WaterRegionPatchDesc | intermediate_dest_region_patch |
| std::vector< WaterRegionDesc > | water_region_corridor |
Definition at line 434 of file yapf_ship.cpp.