20 const map_location& from,
int orig_village_owner,
bool time_bonus)
23 , u_type(recruited->
type())
33 virtual const char*
get_type()
const {
return "recruit"; }
40 virtual bool undo(
int side);
42 virtual bool redo(
int side);
base class for classes that clear srhoud (move/recruit/recall)
virtual bool undo(int side)
Undoes this action.
virtual const char * get_type() const
GLuint GLuint GLsizei GLenum type
virtual ~recruit_action()
recruit_action(const unit_const_ptr recruited, const map_location &loc, const map_location &from, int orig_village_owner, bool time_bonus)
virtual void write(config &cfg) const
Writes this into the provided config.
Encapsulates the map of the game.
virtual bool redo(int side)
Redoes this action.
map_location recruit_from
recruit_action(const config &cfg, const unit_type &type, const map_location &from)
A config object defines a single node in a WML file, with access to child nodes.
actions that are undoable (this does not include update_shroud and auto_shroud)