#include <actions.hpp>


Public Types | |
| enum | tresult { E_EMPTY_ATTACKER = 1001, E_EMPTY_DEFENDER = 1002, E_INCAPACITATED_ATTACKER = 1003, E_INCAPACITATED_DEFENDER = 1004, E_NOT_OWN_ATTACKER = 1005, E_NOT_ENEMY_DEFENDER = 1006, E_NO_ATTACKS_LEFT = 1007, E_WRONG_ATTACKER_WEAPON = 1008, E_UNABLE_TO_CHOOSE_ATTACKER_WEAPON = 1009, E_ATTACKER_AND_DEFENDER_NOT_ADJACENT = 1010 } |
Public Member Functions | |
| attack_result (side_number side, const map_location &attacker_loc, const map_location &defender_loc, int attacker_weapon, double aggression) | |
| virtual std::string | do_describe () const |
Protected Member Functions | |
| virtual void | do_check_before () |
| virtual void | do_check_after () |
| virtual void | do_execute () |
| virtual void | do_init_for_execution () |
Private Attributes | |
| const map_location & | attacker_loc_ |
| const map_location & | defender_loc_ |
| int | attacker_weapon_ |
| double | aggression_ |
Definition at line 126 of file actions.hpp.
Reimplemented from ai::action_result.
Definition at line 134 of file actions.hpp.
| ai::attack_result::attack_result | ( | side_number | side, | |
| const map_location & | attacker_loc, | |||
| const map_location & | defender_loc, | |||
| int | attacker_weapon, | |||
| double | aggression | |||
| ) |
Definition at line 176 of file actions.cpp.
| void ai::attack_result::do_check_after | ( | ) | [protected, virtual] |
Implements ai::action_result.
Definition at line 247 of file actions.cpp.
| void ai::attack_result::do_check_before | ( | ) | [protected, virtual] |
Implements ai::action_result.
Definition at line 181 of file actions.cpp.
| std::string ai::attack_result::do_describe | ( | ) | const [virtual] |
Implements ai::action_result.
Definition at line 252 of file actions.cpp.
Referenced by operator<<().

| void ai::attack_result::do_execute | ( | ) | [protected, virtual] |
Implements ai::action_result.
Definition at line 266 of file actions.cpp.
| void ai::attack_result::do_init_for_execution | ( | ) | [protected, virtual] |
Implements ai::action_result.
Definition at line 323 of file actions.cpp.
double ai::attack_result::aggression_ [private] |
Definition at line 157 of file actions.hpp.
const map_location& ai::attack_result::attacker_loc_ [private] |
Definition at line 154 of file actions.hpp.
int ai::attack_result::attacker_weapon_ [private] |
Definition at line 156 of file actions.hpp.
const map_location& ai::attack_result::defender_loc_ [private] |
Definition at line 155 of file actions.hpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:20 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |