The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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:
Inheritance graph

Public Types

typedef std::vector< map_locationt_route
 

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 t_route::const_iterator &begin, const t_route::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

t_route 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 becasue it took a village. More...
 

Detailed Description

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

Definition at line 13 of file shroud_clearing_action.hpp.

Member Typedef Documentation

Definition at line 34 of file shroud_clearing_action.hpp.

Constructor & Destructor Documentation

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

Definition at line 16 of file shroud_clearing_action.hpp.

References read_locations(), and route.

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

actions::shroud_clearing_action::shroud_clearing_action ( const unit_const_ptr  u,
const t_route::const_iterator &  begin,
const t_route::const_iterator &  end,
int  village_owner,
bool  village_bonus 
)
inline

Definition at line 36 of file shroud_clearing_action.hpp.

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

Definition at line 69 of file shroud_clearing_action.hpp.

Member Function Documentation

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

Member Data Documentation

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

Referenced by return_village(), and write().

t_route actions::shroud_clearing_action::route
bool actions::shroud_clearing_action::take_village_timebonus

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

Definition at line 54 of file shroud_clearing_action.hpp.

Referenced by return_village(), take_village(), and write().

clearer_info actions::shroud_clearing_action::view_info

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

Definition at line 49 of file shroud_clearing_action.hpp.


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