#include <undo_recall_action.hpp>
Public Member Functions | |
| recall_action (const unit_const_ptr &recalled, const map_location &loc, const map_location &from) | |
| recall_action (const config &cfg) | |
| virtual const char * | get_type () const |
| virtual | ~recall_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 () |
Public Member Functions inherited from actions::shroud_clearing_action | |
| shroud_clearing_action (const config &cfg) | |
| shroud_clearing_action (const unit_const_ptr u, const map_location &loc) | |
| shroud_clearing_action (const unit_const_ptr u, const route_t::const_iterator &begin, const route_t::const_iterator &end) | |
| void | write (config &cfg) const |
| virtual | ~shroud_clearing_action () |
Static Public Member Functions | |
| static const char * | get_type_impl () |
Public Attributes | |
| std::string | id |
| map_location | recall_from |
Public Attributes inherited from actions::shroud_clearing_action | |
| route_t | route |
| The hexes occupied by the affected unit during this action. More... | |
| clearer_info | view_info |
| A record of the affected unit's ability to see. More... | |
Additional Inherited Members | |
Public Types inherited from actions::shroud_clearing_action | |
| typedef std::vector< map_location > | route_t |
Definition at line 23 of file undo_recall_action.hpp.
| actions::undo::recall_action::recall_action | ( | const unit_const_ptr & | recalled, |
| const map_location & | loc, | ||
| const map_location & | from | ||
| ) |
Definition at line 35 of file undo_recall_action.cpp.
| actions::undo::recall_action::recall_action | ( | const config & | cfg | ) |
Definition at line 43 of file undo_recall_action.cpp.
|
inlinevirtual |
Definition at line 36 of file undo_recall_action.hpp.
|
inlinevirtual |
Implements actions::undo_action.
Definition at line 34 of file undo_recall_action.hpp.
References get_type_impl().
|
inlinestatic |
Definition at line 33 of file undo_recall_action.hpp.
Referenced by get_type().
|
virtual |
Undoes this action.
Implements actions::undo_action.
Definition at line 66 of file undo_recall_action.cpp.
References recall_list_manager::add(), resources::controller, unit_map::end(), unit_map::erase(), unit_map::find(), resources::gameboard, unit_map::iterator_base< iter_types >::get_shared_ptr(), game_display::get_singleton(), game_board::get_team(), team::recall_cost(), team::recall_list(), actions::shroud_clearing_action::route, team::spend_gold(), play_controller::statistics(), statistics_t::un_recall_unit(), game_board::units(), and resources::whiteboard.
|
virtual |
Writes this into the provided config.
Reimplemented from actions::undo_action.
Definition at line 53 of file undo_recall_action.cpp.
References config::add_child(), cfg, id, recall_from, actions::shroud_clearing_action::write(), actions::undo_action::write(), and map_location::write().
| std::string actions::undo::recall_action::id |
Definition at line 25 of file undo_recall_action.hpp.
Referenced by write().
| map_location actions::undo::recall_action::recall_from |
Definition at line 26 of file undo_recall_action.hpp.
Referenced by write().