45 typedef std::vector<map_location>
route_t;
Class that stores the part of a unit's data that is needed for fog clearing.
base class for classes that clear srhoud (move/recruit/recall)
void read_locations(const config &cfg, std::vector< map_location > &locs)
Parse x,y keys of a config into a vector of locations.
void take_village()
Change village owner on redo.
Various functions implementing vision (through fog of war and shroud).
bool take_village_timebonus
Whether this actions got a timebonus because it took a village.
virtual ~shroud_clearing_action()
shroud_clearing_action(const unit_const_ptr u, const map_location &loc, int village_owner, bool village_bonus)
std::shared_ptr< const unit > unit_const_ptr
void return_village()
Change village owner on undo.
shroud_clearing_action(const config &cfg)
void write(config &cfg) const
Encapsulates the map of the game.
clearer_info view_info
A record of the affected unit's ability to see.
std::vector< map_location > route_t
void write(config &cfg) const
Writes to a config.
config & add_child(config_key_type key)
int original_village_owner
The number of the side that preivously owned the village that the unit stepped on Note...
route_t route
The hexes occupied by the affected unit during this action.
A config object defines a single node in a WML file, with access to child nodes.
shroud_clearing_action(const unit_const_ptr u, const route_t::const_iterator &begin, const route_t::const_iterator &end, int village_owner, bool village_bonus)
void write_locations(const std::vector< map_location > &locs, config &cfg)
Write a vector of locations into a config adding keys x=x1,x2,..,xn and y=y1,y2,..,yn.