Public Member Functions | Public Attributes

attack::unit_info Struct Reference

Structure holding unit info used in the attack action. More...

Collaboration diagram for attack::unit_info:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 unit_info (const map_location &loc, int weapon, unit_map &units)
unitget_unit ()
bool valid ()
std::string dump ()

Public Attributes

const map_location loc_
int weapon_
unit_mapunits_
size_t id_
 unit.underlying_id()
std::string weap_id_
int orig_attacks_
int n_attacks_
 Number of attacks left.
int cth_
int damage_
int xp_

Detailed Description

Structure holding unit info used in the attack action.

Definition at line 1230 of file actions.cpp.


Constructor & Destructor Documentation

attack::unit_info::unit_info ( const map_location loc,
int  weapon,
unit_map units 
)

Definition at line 1374 of file actions.cpp.

References unit_map::find(), id_, loc_, units_, and unit_map::iterator_base< iter_types >::valid().

Here is the call graph for this function:


Member Function Documentation

std::string attack::unit_info::dump (  ) 

Definition at line 1404 of file actions.cpp.

References get_unit(), loc_, unit::type_id(), map_location::x, and map_location::y.

Referenced by attack::perform_hit().

Here is the call graph for this function:

Here is the caller graph for this function:

unit & attack::unit_info::get_unit (  ) 

Definition at line 1391 of file actions.cpp.

References unit_map::find(), id_, loc_, units_, and unit_map::iterator_base< iter_types >::valid().

Referenced by dump(), attack::fire_event(), attack::perform(), attack::perform_hit(), attack::refresh_bc(), and attack::unit_killed().

Here is the call graph for this function:

Here is the caller graph for this function:

bool attack::unit_info::valid (  ) 

Definition at line 1398 of file actions.cpp.

References unit_map::find(), id_, loc_, units_, and unit_map::iterator_base< iter_types >::valid().

Referenced by attack::fire_event(), attack::perform(), attack::refresh_bc(), and attack::unit_killed().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 1239 of file actions.cpp.

Referenced by attack::perform_hit(), and attack::refresh_bc().

Definition at line 1240 of file actions.cpp.

Referenced by attack::perform_hit(), and attack::refresh_bc().

Number of attacks left.

Definition at line 1238 of file actions.cpp.

Referenced by attack::perform(), and attack::perform_hit().

Definition at line 1237 of file actions.cpp.

Referenced by attack::perform().

Definition at line 1234 of file actions.cpp.

Referenced by get_unit(), unit_info(), and valid().

Definition at line 1236 of file actions.cpp.

Referenced by attack::perform(), and attack::refresh_bc().

Definition at line 1233 of file actions.cpp.

Referenced by attack::perform(), and attack::refresh_bc().

Definition at line 1241 of file actions.cpp.

Referenced by attack::perform(), and attack::unit_killed().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:11:37 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs