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