#include <undo_dismiss_action.hpp>
Public Member Functions | |
dismiss_action (const unit_const_ptr &dismissed) | |
dismiss_action (const config &cfg) | |
virtual const char * | get_type () const |
virtual | ~dismiss_action () |
virtual void | write (config &cfg) const |
Writes this into the provided config. More... | |
virtual bool | undo (int side) |
Undoes this action. More... | |
Public Member Functions inherited from actions::undo_action | |
undo_action () | |
virtual | ~undo_action () |
Static Public Member Functions | |
static const char * | get_type_impl () |
Public Attributes | |
unit_ptr | dismissed_unit |
Definition at line 21 of file undo_dismiss_action.hpp.
|
explicit |
Definition at line 23 of file undo_dismiss_action.cpp.
|
explicit |
Definition at line 29 of file undo_dismiss_action.cpp.
|
inlinevirtual |
Definition at line 31 of file undo_dismiss_action.hpp.
|
inlinevirtual |
Implements actions::undo_action.
Definition at line 29 of file undo_dismiss_action.hpp.
References get_type_impl().
|
inlinestatic |
Definition at line 28 of file undo_dismiss_action.hpp.
Referenced by get_type().
|
virtual |
Undoes this action.
Implements actions::undo_action.
Definition at line 48 of file undo_dismiss_action.cpp.
References recall_list_manager::add(), dismissed_unit, resources::gameboard, game_board::get_team(), and team::recall_list().
|
virtual |
Writes this into the provided config.
Reimplemented from actions::undo_action.
Definition at line 38 of file undo_dismiss_action.cpp.
References config::add_child(), dismissed_unit, and actions::undo_action::write().
unit_ptr actions::undo::dismiss_action::dismissed_unit |
Definition at line 23 of file undo_dismiss_action.hpp.