Records information to be able to undo a movement. More...
#include <actions.hpp>

Public Types | |
| enum | ACTION_TYPE { NONE, RECRUIT, RECALL, DISMISS } |
Public Member Functions | |
| undo_action (const unit &u, const std::vector< map_location > &rt, int sm, int timebonus=0, int orig=-1, const map_location::DIRECTION dir=map_location::NDIRECTIONS) | |
| undo_action (const unit &u, const map_location &loc, const map_location &from, const ACTION_TYPE action_type=NONE) | |
| bool | is_dismiss () const |
| bool | is_recall () const |
| bool | is_recruit () const |
Public Attributes | |
| std::vector< map_location > | route |
| int | starting_moves |
| int | original_village_owner |
| map_location | recall_loc |
| map_location | recall_from |
| ACTION_TYPE | type |
| unit | affected_unit |
| int | countdown_time_bonus |
| map_location::DIRECTION | starting_dir |
Records information to be able to undo a movement.
Definition at line 351 of file actions.hpp.
Definition at line 352 of file actions.hpp.
| undo_action::undo_action | ( | const unit & | u, | |
| const std::vector< map_location > & | rt, | |||
| int | sm, | |||
| int | timebonus = 0, |
|||
| int | orig = -1, |
|||
| const map_location::DIRECTION | dir = map_location::NDIRECTIONS | |||
| ) | [inline] |
Definition at line 354 of file actions.hpp.
| undo_action::undo_action | ( | const unit & | u, | |
| const map_location & | loc, | |||
| const map_location & | from, | |||
| const ACTION_TYPE | action_type = NONE | |||
| ) | [inline] |
Definition at line 369 of file actions.hpp.
| bool undo_action::is_dismiss | ( | ) | const [inline] |
Definition at line 392 of file actions.hpp.
References type.
Referenced by events::menu_handler::redo(), and events::menu_handler::undo().

| bool undo_action::is_recall | ( | ) | const [inline] |
Definition at line 393 of file actions.hpp.
References type.
Referenced by events::menu_handler::redo(), and events::menu_handler::undo().

| bool undo_action::is_recruit | ( | ) | const [inline] |
Definition at line 394 of file actions.hpp.
References type.
Referenced by events::menu_handler::redo(), and events::menu_handler::undo().

Definition at line 388 of file actions.hpp.
Referenced by events::menu_handler::redo(), and events::menu_handler::undo().
Definition at line 389 of file actions.hpp.
Referenced by events::menu_handler::redo(), and events::menu_handler::undo().
Definition at line 384 of file actions.hpp.
Referenced by events::menu_handler::undo().
Definition at line 386 of file actions.hpp.
Referenced by events::menu_handler::redo().
Definition at line 385 of file actions.hpp.
Referenced by events::menu_handler::redo(), and events::menu_handler::undo().
| std::vector<map_location> undo_action::route |
Definition at line 382 of file actions.hpp.
Referenced by events::menu_handler::redo(), and events::menu_handler::undo().
Definition at line 390 of file actions.hpp.
Referenced by events::menu_handler::undo().
Definition at line 383 of file actions.hpp.
Referenced by events::menu_handler::redo(), and events::menu_handler::undo().
Definition at line 387 of file actions.hpp.
Referenced by is_dismiss(), is_recall(), and is_recruit().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:14:56 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |