#include <undo_recruit_action.hpp>
Public Member Functions | |
| recruit_action (const unit_const_ptr &recruited, const map_location &loc, const map_location &from) | |
| recruit_action (const config &cfg) | |
| virtual const char * | get_type () const |
| virtual | ~recruit_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 | |
| const unit_type & | u_type |
| map_location | recruit_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 27 of file undo_recruit_action.hpp.
| actions::undo::recruit_action::recruit_action | ( | const unit_const_ptr & | recruited, |
| const map_location & | loc, | ||
| const map_location & | from | ||
| ) |
Definition at line 34 of file undo_recruit_action.cpp.
| actions::undo::recruit_action::recruit_action | ( | const config & | cfg | ) |
Definition at line 53 of file undo_recruit_action.cpp.
|
inlinevirtual |
Definition at line 40 of file undo_recruit_action.hpp.
|
inlinevirtual |
Implements actions::undo_action.
Definition at line 38 of file undo_recruit_action.hpp.
References get_type_impl().
|
inlinestatic |
Definition at line 37 of file undo_recruit_action.hpp.
Referenced by get_type().
|
virtual |
Undoes this action.
Implements actions::undo_action.
Definition at line 78 of file undo_recruit_action.cpp.
References resources::controller, unit_type::cost(), team::decrement_action_bonus_count(), unit_map::end(), unit_map::erase(), unit_map::find(), resources::gameboard, game_display::get_singleton(), game_board::get_team(), actions::shroud_clearing_action::route, team::spend_gold(), play_controller::statistics(), unit::type(), statistics_t::un_recruit_unit(), and game_board::units().
|
virtual |
Writes this into the provided config.
Reimplemented from actions::undo_action.
Definition at line 64 of file undo_recruit_action.cpp.
References config::add_child(), cfg, config::mandatory_child(), unit_type::parent_id(), recruit_from, u_type, actions::shroud_clearing_action::write(), actions::undo_action::write(), and map_location::write().
| map_location actions::undo::recruit_action::recruit_from |
Definition at line 30 of file undo_recruit_action.hpp.
Referenced by write().
| const unit_type& actions::undo::recruit_action::u_type |
Definition at line 29 of file undo_recruit_action.hpp.
Referenced by write().