src/yapf/yapf_ship.cpp
branchnoai
changeset 9625 3301b1b3889c
parent 9624 b71483f2330f
child 9629 66dde6412125
equal deleted inserted replaced
9624:b71483f2330f 9625:3301b1b3889c
    24 	/** Called by YAPF to move from the given node to the next tile. For each
    24 	/** Called by YAPF to move from the given node to the next tile. For each
    25 	 *  reachable trackdir on the new tile creates new node, initializes it
    25 	 *  reachable trackdir on the new tile creates new node, initializes it
    26 	 *  and adds it to the open list by calling Yapf().AddNewNode(n) */
    26 	 *  and adds it to the open list by calling Yapf().AddNewNode(n) */
    27 	inline void PfFollowNode(Node& old_node)
    27 	inline void PfFollowNode(Node& old_node)
    28 	{
    28 	{
    29 		TrackFollower F;
    29 		TrackFollower F(Yapf().GetVehicle());
    30 		if (F.Follow(old_node.m_key.m_tile, old_node.m_key.m_td))
    30 		if (F.Follow(old_node.m_key.m_tile, old_node.m_key.m_td))
    31 			Yapf().AddMultipleNodes(&old_node, F);
    31 			Yapf().AddMultipleNodes(&old_node, F);
    32 	}
    32 	}
    33 
    33 
    34 	/// return debug report character to identify the transportation type
    34 	/// return debug report character to identify the transportation type