46 virtual bool undo(
int side);
A config object defines a single node in a WML file, with access to child nodes.
A single unit type that the player may recruit.
std::shared_ptr< const unit > unit_const_ptr
base class for classes that clear srhoud (move/recruit/recall)
recruit_action(const unit_const_ptr &recruited, const map_location &loc, const map_location &from)
virtual const char * get_type() const
static const char * get_type_impl()
map_location recruit_from
virtual void write(config &cfg) const
Writes this into the provided config.
virtual bool undo(int side)
Undoes this action.
virtual ~recruit_action()
Records information to be able to undo an action.
Encapsulates the map of the game.