Public Types | Public Member Functions | Public Attributes

undo_action Struct Reference

Records information to be able to undo a movement. More...

#include <actions.hpp>

Collaboration diagram for undo_action:
Collaboration graph
[legend]

List of all members.

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_locationroute
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

Detailed Description

Records information to be able to undo a movement.

Definition at line 351 of file actions.hpp.


Member Enumeration Documentation

Enumerator:
NONE 
RECRUIT 
RECALL 
DISMISS 

Definition at line 352 of file actions.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


Member Data Documentation

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().

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().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:14:56 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs