A refinement of paths for use when calculating jamming. More...
#include <pathfind.hpp>
Public Member Functions | |
| jamming_path (const unit &jammer, const map_location &loc) | |
| Construct a list of jammed hexes for a unit. More... | |
| virtual | ~jamming_path () |
| Default destructor. More... | |
Public Member Functions inherited from pathfind::paths | |
| paths () | |
| paths (const unit &u, bool force_ignore_zocs, bool allow_teleport, const team &viewing_team, int additional_turns=0, bool see_all=false, bool ignore_units=false) | |
| Construct a list of paths for the specified unit. More... | |
| virtual | ~paths () |
| Virtual destructor (default processing). More... | |
Additional Inherited Members | |
Public Attributes inherited from pathfind::paths | |
| dest_vect | destinations |
A refinement of paths for use when calculating jamming.
Definition at line 123 of file pathfind.hpp.
| pathfind::jamming_path::jamming_path | ( | const unit & | jammer, |
| const map_location & | loc | ||
| ) |
Construct a list of jammed hexes for a unit.
Constructs a list of jamming paths for a unit.
This is used to construct a list of hexes that the indicated unit can jam. It differs from pathfinding in that it will only ever go out one turn.
| jammer | The unit doing the jamming. |
| loc | The location from which the jamming occurs (does not have to be the unit's location). |
Definition at line 641 of file pathfind.cpp.
References pathfind::paths::destinations, pathfind::find_routes(), movetype::get_jamming(), unit::get_state(), unit::jamming(), loc, unit::movement_type(), and unit::STATE_SLOWED.
|
virtual |
Default destructor.
Definition at line 654 of file pathfind.cpp.