![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
A constraint that restricts the search to tiles known by the player. More...
#include <path_finder.h>
Inheritance diagram for freeciv::tile_known_constraint:
Collaboration diagram for freeciv::tile_known_constraint:Public Member Functions | |
| tile_known_constraint (const player *player) | |
| Constructor. More... | |
| ~tile_known_constraint ()=default | |
| Destructor. More... | |
| bool | is_allowed (const path::step &step) const override |
| Whether a step should be used in the search. More... | |
Public Member Functions inherited from freeciv::step_constraint | |
| virtual | ~step_constraint ()=default |
| Destructor. More... | |
Private Attributes | |
| const player * | m_player |
A constraint that restricts the search to tiles known by the player.
Definition at line 274 of file path_finder.h.
|
inlineexplicit |
Constructor.
Definition at line 277 of file path_finder.h.
|
default |
Destructor.
|
overridevirtual |
Whether a step should be used in the search.
Steps are checked before any turn change calculation is performed.
Implements freeciv::step_constraint.
Definition at line 897 of file path_finder.cpp.
|
private |
Definition at line 285 of file path_finder.h.
Referenced by is_allowed().