![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <path_finding.h>
Collaboration diagram for PFPath:Public Member Functions | |
| PFPath ()=default | |
| PFPath (int size) | |
| MEMBER FUNCTIONS FOR THE CLASS Pf_Class. More... | |
| PFPath (const PFPath &obj)=default | |
| PFPath (PFPath &&obj)=default | |
| PFPath (const struct pf_parameter *param) | |
| Create a path with start tile of a parameter. More... | |
| int | length () const |
| virtual | ~PFPath () |
| bool | empty () const |
| bool | advance (struct tile *ptile) |
| Remove the part of a path leading up to a given tile. More... | |
| pf_position & | operator[] (int i) |
| const pf_position & | operator[] (int i) const |
| PFPath & | operator= (PFPath &&other)=default |
Private Attributes | |
| std::vector< pf_position > | positions |
Definition at line 312 of file path_finding.h.
|
default |
| PFPath::PFPath | ( | int | size | ) |
MEMBER FUNCTIONS FOR THE CLASS Pf_Class.
Definition at line 3243 of file path_finding.cpp.
|
default |
|
default |
| PFPath::PFPath | ( | const struct pf_parameter * | param | ) |
Create a path with start tile of a parameter.
Definition at line 3247 of file path_finding.cpp.
|
virtual |
Definition at line 3254 of file path_finding.cpp.
| bool PFPath::advance | ( | struct tile * | ptile | ) |
Remove the part of a path leading up to a given tile.
If given tile is on the path more than once then the first occurrence will be the one used. If tile is not on the path at all, returns FALSE and path is not changed at all.
Definition at line 3266 of file path_finding.cpp.
| bool PFPath::empty | ( | ) | const |
Definition at line 3256 of file path_finding.cpp.
Referenced by auto_settler_findwork(), auto_settler_setup_work(), dai_auto_settler_run(), dai_diplomat_bribe_nearby(), dai_find_boat_for_unit(), dai_manage_airunit(), dai_military_attack(), dai_military_rampage(), explorer_goto(), find_rampage_target(), find_something_to_kill(), make_path_orders(), operator<<(), pf_map_path(), and settler_evaluate_city_requests().
| int PFPath::length | ( | ) | const |
Definition at line 3258 of file path_finding.cpp.
Referenced by adv_unit_execute_path(), advance(), dai_log_path(), dai_unit_move_or_attack(), make_path_orders(), operator<<(), pf_map_path(), and send_path_orders().
| pf_position & PFPath::operator[] | ( | int | i | ) |
Definition at line 3285 of file path_finding.cpp.
| const pf_position & PFPath::operator[] | ( | int | i | ) | const |
Definition at line 3296 of file path_finding.cpp.
|
private |
Definition at line 313 of file path_finding.h.
Referenced by advance(), empty(), length(), operator[](), PFPath(), and ~PFPath().