The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
actions::undo::move_action Struct Reference

#include <undo_move_action.hpp>

Inheritance diagram for actions::undo::move_action:

Public Member Functions

 move_action (const unit_const_ptr &moved, const std::vector< map_location >::const_iterator &begin, const std::vector< map_location >::const_iterator &end, int sm, const map_location::direction dir)
 
 move_action (const config &cfg)
 
virtual const char * get_type () const
 
virtual ~move_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

int starting_moves
 
map_location::direction starting_dir
 
map_location goto_hex
 
- 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_locationroute_t
 

Detailed Description

Definition at line 23 of file undo_move_action.hpp.

Constructor & Destructor Documentation

◆ move_action() [1/2]

actions::undo::move_action::move_action ( const unit_const_ptr moved,
const std::vector< map_location >::const_iterator &  begin,
const std::vector< map_location >::const_iterator &  end,
int  sm,
const map_location::direction  dir 
)

Definition at line 32 of file undo_move_action.cpp.

References moved.

◆ move_action() [2/2]

actions::undo::move_action::move_action ( const config cfg)
inline

Definition at line 34 of file undo_move_action.hpp.

◆ ~move_action()

virtual actions::undo::move_action::~move_action ( )
inlinevirtual

Definition at line 48 of file undo_move_action.hpp.

Member Function Documentation

◆ get_type()

virtual const char* actions::undo::move_action::get_type ( ) const
inlinevirtual

Implements actions::undo_action.

Definition at line 46 of file undo_move_action.hpp.

References get_type_impl().

◆ get_type_impl()

static const char* actions::undo::move_action::get_type_impl ( )
inlinestatic

Definition at line 45 of file undo_move_action.hpp.

Referenced by get_type().

◆ undo()

bool actions::undo::move_action::undo ( int  side)
virtual

◆ write()

void actions::undo::move_action::write ( config cfg) const
virtual

Member Data Documentation

◆ goto_hex

map_location actions::undo::move_action::goto_hex

Definition at line 27 of file undo_move_action.hpp.

Referenced by undo(), and write().

◆ starting_dir

map_location::direction actions::undo::move_action::starting_dir

Definition at line 26 of file undo_move_action.hpp.

Referenced by undo(), and write().

◆ starting_moves

int actions::undo::move_action::starting_moves

Definition at line 25 of file undo_move_action.hpp.

Referenced by undo(), and write().


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