The Battle for Wesnoth  1.19.7+dev
undo_update_shroud_action.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2017 - 2024
3  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
16 
17 #include "play_controller.hpp"
18 #include "resources.hpp" // for screen, teams, units, etc
19 #include "synced_context.hpp" // for set_scontext_synced
20 #include "team.hpp" // for team
21 
22 namespace actions::undo
23 {
24 /**
25  * Writes this into the provided config.
26  */
28 {
29  undo_action::write(cfg);
30  cfg["active"] = active;
31 }
32 
34 {
36  return true;
37 }
38 
40 
41 }
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:172
void set_auto_shroud_updates(bool value)
Definition: team.hpp:325
play_controller * controller
Definition: resources.cpp:21
virtual void write(config &cfg) const
Writes this into the provided config.
virtual bool undo(int)
Undoes this action.
virtual void write(config &cfg) const
Writes this into the provided config.
Definition: undo_action.hpp:91