melee_attack Class Reference

#include <melee_attack.h>

Collaboration diagram for melee_attack:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 melee_attack (actor *attacker, actor *defender, bool allow_unarmed=true, int attack_num=-1)
bool attack ()
int calc_to_hit (bool random=true)
random_var player_calc_attack_delay ()

Static Public Member Functions

static void chaos_affect_actor (actor *victim)
static std::string anon_name (description_level_type desc, bool actor_invisible)
static std::string actor_name (const actor *a, description_level_type desc, bool actor_visible, bool actor_invisible)
static std::string pronoun (const actor *a, pronoun_type ptyp, bool actor_visible)
static std::string anon_pronoun (pronoun_type ptyp)

Public Attributes

actorattacker
actordefender
bool cancel_attack
bool did_hit
bool perceived_attack
bool obvious_effect
bool needs_message
bool attacker_visible
bool defender_visible
bool attacker_invisible
bool defender_invisible
bool unarmed_ok
int attack_number
int to_hit
int ev_margin
int damage_done
int special_damage
int aux_damage
bool stab_attempt
int stab_bonus
int min_delay
int final_attack_delay
int noise_factor
int extra_noise
item_defweapon
int damage_brand
int wpn_skill
int hands
bool hand_half_bonus
bool skip_chaos_message
artefact_properties_t art_props
unrandart_entryunrand_entry
std::string attack_verb
std::string verb_degree
std::string no_damage_message
std::string special_damage_message
std::string aux_attack
std::string aux_verb
beam_type special_damage_flavour
item_defshield
item_defdefender_shield
int player_body_armour_penalty
int player_shield_penalty
int player_armour_tohit_penalty
int player_shield_tohit_penalty
bool can_do_unarmed
bool apply_bleeding
int miscast_level
int miscast_type
actormiscast_target


Constructor & Destructor Documentation

melee_attack::melee_attack ( actor attacker,
actor defender,
bool  allow_unarmed = true,
int  attack_num = -1 
)


Member Function Documentation

bool melee_attack::attack (  ) 

Here is the call graph for this function:

int melee_attack::calc_to_hit ( bool  random = true  ) 

Here is the call graph for this function:

random_var melee_attack::player_calc_attack_delay (  ) 

Here is the call graph for this function:

void melee_attack::chaos_affect_actor ( actor victim  )  [static]

Here is the call graph for this function:

std::string melee_attack::anon_name ( description_level_type  desc,
bool  actor_invisible 
) [static]

std::string melee_attack::actor_name ( const actor a,
description_level_type  desc,
bool  actor_visible,
bool  actor_invisible 
) [static]

Here is the call graph for this function:

std::string melee_attack::pronoun ( const actor a,
pronoun_type  ptyp,
bool  actor_visible 
) [static]

Here is the call graph for this function:

std::string melee_attack::anon_pronoun ( pronoun_type  ptyp  )  [static]


Member Data Documentation


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

Generated on Thu Jan 13 13:36:43 2011 by  doxygen 1.5.6