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 Member Functions

 undo_action (const unit &u, const std::vector< gamemap::location > &rt, int sm, int timebonus=0, int orig=-1)
 undo_action (const unit &u, const gamemap::location &loc, const int pos)
bool is_recall () const
bool is_recruit () const

Public Attributes

std::vector< gamemap::locationroute
int starting_moves
int original_village_owner
gamemap::location recall_loc
int recall_pos
unit affected_unit
int countdown_time_bonus


Detailed Description

Records information to be able to undo a movement.

Definition at line 281 of file actions.hpp.


Constructor & Destructor Documentation

undo_action::undo_action ( const unit u,
const std::vector< gamemap::location > &  rt,
int  sm,
int  timebonus = 0,
int  orig = -1 
) [inline]

Definition at line 282 of file actions.hpp.

undo_action::undo_action ( const unit u,
const gamemap::location loc,
const int  pos 
) [inline]

Definition at line 294 of file actions.hpp.


Member Function Documentation

bool undo_action::is_recall (  )  const [inline]

Definition at line 311 of file actions.hpp.

References recall_pos.

Referenced by events::menu_handler::redo(), and events::menu_handler::undo().

bool undo_action::is_recruit (  )  const [inline]

Definition at line 312 of file actions.hpp.

References recall_pos, and RECRUIT_POS.

Referenced by events::menu_handler::redo(), and events::menu_handler::undo().


Member Data Documentation

Definition at line 304 of file actions.hpp.

Referenced by events::menu_handler::redo(), and events::menu_handler::undo().

Definition at line 305 of file actions.hpp.

Referenced by events::menu_handler::redo(), and events::menu_handler::undo().

Definition at line 306 of file actions.hpp.

Referenced by events::menu_handler::undo().

Definition at line 307 of file actions.hpp.

Referenced by events::menu_handler::redo(), and events::menu_handler::undo().

Definition at line 309 of file actions.hpp.

Referenced by events::menu_handler::redo().

Definition at line 310 of file actions.hpp.

Referenced by events::menu_handler::redo(), and events::menu_handler::undo().


The documentation for this struct was generated from the following file:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs