The Battle for Wesnoth  1.19.5+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, int village_owner, bool village_bonus)
 
 shroud_clearing_action (const unit_const_ptr u, const route_t::const_iterator &begin, const route_t::const_iterator &end, int village_owner, bool village_bonus)
 
void return_village ()
 Change village owner on undo. More...
 
void take_village ()
 Change village owner on redo. More...
 
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...
 
int original_village_owner
 The number of the side that preivously owned the village that the unit stepped on Note, that recruit/recall actions can also take a village if the unit was recruits/recalled onto a village. More...
 
bool take_village_timebonus
 Whether this actions got a timebonus because it took a village. 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 45 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,
int  village_owner,
bool  village_bonus 
)
inline

Definition at line 36 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,
int  village_owner,
bool  village_bonus 
)
inline

Definition at line 47 of file shroud_clearing_action.hpp.

◆ ~shroud_clearing_action()

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

Definition at line 84 of file shroud_clearing_action.hpp.

Member Function Documentation

◆ return_village()

void actions::shroud_clearing_action::return_village ( )

◆ take_village()

void actions::shroud_clearing_action::take_village ( )

◆ write()

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

Member Data Documentation

◆ original_village_owner

int actions::shroud_clearing_action::original_village_owner

The number of the side that preivously owned the village that the unit stepped on Note, that recruit/recall actions can also take a village if the unit was recruits/recalled onto a village.

Definition at line 67 of file shroud_clearing_action.hpp.

Referenced by return_village(), and write().

◆ 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 60 of file shroud_clearing_action.hpp.

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

◆ take_village_timebonus

bool actions::shroud_clearing_action::take_village_timebonus

Whether this actions got a timebonus because it took a village.

Definition at line 69 of file shroud_clearing_action.hpp.

Referenced by return_village(), take_village(), 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 62 of file shroud_clearing_action.hpp.

Referenced by write().


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