7 #include <boost/noncopyable.hpp>
8 #include <boost/ptr_container/ptr_vector.hpp>
9 #include <boost/optional.hpp>
34 typedef std::vector<map_location>
t_route;
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 becasue 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)
shroud_clearing_action(const unit_const_ptr u, const t_route::const_iterator &begin, const t_route::const_iterator &end, int village_owner, bool village_bonus)
void return_village()
Change village owner on undo.
std::vector< map_location > t_route
shroud_clearing_action(const config &cfg)
config & add_child(const std::string &key)
Encapsulates the map of the game.
clearer_info view_info
A record of the affected unit's ability to see.
t_route route
The hexes occupied by the affected unit during this action.
void write(config &cfg) const
Writes to a config.
int original_village_owner
The number of the side that preivously owned the village that the unit stepped on Note...
void write(config &cfg) const
A config object defines a single node in a WML file, with access to child nodes.
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.