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

Public Member Functions | |
| unit_info (const map_location &loc, int weapon, unit_map &units) | |
| unit & | get_unit () |
| bool | valid () |
| std::string | dump () |
Public Attributes | |
| const map_location | loc_ |
| int | weapon_ |
| unit_map & | units_ |
| 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_ |
Structure holding unit info used in the attack action.
Definition at line 1230 of file actions.cpp.
| 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().

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


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


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


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().
| size_t attack::unit_info::id_ |
Definition at line 1235 of file actions.cpp.
Referenced by attack::fire_event(), get_unit(), unit_info(), attack::unit_killed(), and valid().
Definition at line 1232 of file actions.cpp.
Referenced by dump(), attack::fire_event(), get_unit(), attack::perform(), attack::perform_hit(), attack::refresh_bc(), unit_info(), attack::unit_killed(), and valid().
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().
| std::string attack::unit_info::weap_id_ |
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().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:11:37 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |