59 cfg[
"type"] = this->get_type();
62 virtual const char* get_type()
const = 0;
85 virtual bool undo(
int side) = 0;
94 void execute_undo_umc_wml();
96 static void read_event_vector(event_vector& vec,
const config& cfg,
const std::string& tag);
97 static void write_event_vector(
const event_vector& vec,
config& cfg,
const std::string& tag);
111 virtual const char*
get_type()
const {
return "dummy"; }
116 execute_undo_umc_wml();
virtual const char * get_type() const
virtual ~undo_action_base()
Various functions implementing vision (through fog of war and shroud).
undo_event(const config &cmds, const game_events::queued_event &ctx)
virtual bool undo(int)
Undoes this action.
Definitions for the interface to Wesnoth Markup Language (WML).
Records information to be able to undo an action.
event_vector umc_commands_undo
std::vector< undo_event > event_vector
actions wml (specified by wml) that should be executed when undoing this command. ...
void write(std::ostream &out, const configr_of &cfg, unsigned int level)
undo_dummy_action(const config &cfg)
Encapsulates the map of the game.
entry for player actions that do not need any special code to be performed when undoing such as right...
Define the game's event mechanism.
virtual void write(config &cfg) const
Writes this into the provided config.
virtual ~undo_dummy_action()
undo_action_base()
Default constructor.
A config object defines a single node in a WML file, with access to child nodes.
int unit_id_diff
the difference in the unit ids TODO: does it really make sense to allow undoing if the unit id counte...
actions that are undoable (this does not include update_shroud and auto_shroud)