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

base class for classes that clear srhoud (move/recruit/recall) More...

#include <shroud_clearing_action.hpp>

Inheritance diagram for actions::shroud_clearing_action:

Public Types

typedef std::vector< map_locationroute_t
 

Public Member Functions

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

Public Attributes

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

Detailed Description

base class for classes that clear srhoud (move/recruit/recall)

Definition at line 24 of file shroud_clearing_action.hpp.

Member Typedef Documentation

◆ route_t

Definition at line 41 of file shroud_clearing_action.hpp.

Constructor & Destructor Documentation

◆ shroud_clearing_action() [1/3]

actions::shroud_clearing_action::shroud_clearing_action ( const config cfg)
inline

Definition at line 27 of file shroud_clearing_action.hpp.

References read_locations(), and route.

◆ shroud_clearing_action() [2/3]

actions::shroud_clearing_action::shroud_clearing_action ( const unit_const_ptr  u,
const map_location loc 
)
inline

Definition at line 34 of file shroud_clearing_action.hpp.

◆ shroud_clearing_action() [3/3]

actions::shroud_clearing_action::shroud_clearing_action ( const unit_const_ptr  u,
const route_t::const_iterator &  begin,
const route_t::const_iterator &  end 
)
inline

Definition at line 43 of file shroud_clearing_action.hpp.

◆ ~shroud_clearing_action()

virtual actions::shroud_clearing_action::~shroud_clearing_action ( )
inlinevirtual

Definition at line 64 of file shroud_clearing_action.hpp.

Member Function Documentation

◆ write()

void actions::shroud_clearing_action::write ( config cfg) const
inline

Member Data Documentation

◆ route

route_t actions::shroud_clearing_action::route

The hexes occupied by the affected unit during this action.

For recruits and recalls this only contains one hex.

Definition at line 54 of file shroud_clearing_action.hpp.

Referenced by shroud_clearing_action(), actions::undo::move_action::undo(), actions::undo::recall_action::undo(), actions::undo::recruit_action::undo(), and write().

◆ view_info

clearer_info actions::shroud_clearing_action::view_info

A record of the affected unit's ability to see.

Definition at line 56 of file shroud_clearing_action.hpp.

Referenced by write().


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