|
Pol
Rev 533
|
#include <wepntmpl.h>
Inheritance diagram for WeaponDesc:
Collaboration diagram for WeaponDesc:Public Types | |
| typedef EquipDesc | base |
Public Member Functions | |
| WeaponDesc (u32 objtype, ConfigElem &elem, const Package *pkg) | |
| WeaponDesc () | |
| unsigned short | get_random_damage () const |
| virtual void | PopulateStruct (BStruct *descriptor) const |
Public Attributes | |
| UACTION | anim |
| Dice | damage_dice |
| unsigned short | delay |
| ScriptDef | hit_script |
| unsigned short | hit_sound |
| bool | is_intrinsic |
| unsigned short | maxrange |
| unsigned short | minrange |
| unsigned short | miss_sound |
| UACTION | mounted_anim |
| const Attribute * | pAttr |
| bool | projectile |
| UACTION | projectile_action |
| unsigned short | projectile_anim |
| unsigned short | projectile_sound |
| unsigned short | projectile_type |
| unsigned short | speed |
| bool | two_handed |
Definition at line 25 of file wepntmpl.h.
| typedef EquipDesc WeaponDesc::base |
Reimplemented from EquipDesc.
Definition at line 28 of file wepntmpl.h.
| WeaponDesc::WeaponDesc | ( | u32 | objtype, |
| ConfigElem & | elem, | ||
| const Package * | pkg | ||
| ) |
Definition at line 104 of file weapon.cpp.
References damage_dice, delay, FindAttribute(), ConfigElem::has_prop(), Dice::load(), EquipDesc::maxhp, pAttr, projectile, projectile_anim, projectile_sound, projectile_type, ConfigElem::remove_string(), ConfigElem::remove_ushort(), speed, ConfigElem::throw_error(), and ConfigElem::warn().
Here is the call graph for this function:| unsigned short WeaponDesc::get_random_damage | ( | ) | const |
Definition at line 179 of file weapon.cpp.
References damage_dice, and Dice::roll().
Referenced by UWeapon::get_random_damage().
Here is the call graph for this function:
Here is the caller graph for this function:| void WeaponDesc::PopulateStruct | ( | BStruct * | descriptor | ) | const [virtual] |
Reimplemented from EquipDesc.
Definition at line 184 of file weapon.cpp.
References BStruct::addMember(), anim, damage_dice, delay, Dice::die_string(), hit_script, hit_sound, Dice::max_value(), maxrange, Dice::min_value(), minrange, miss_sound, mounted_anim, Attribute::name, pAttr, ItemDesc::pkg, EquipDesc::PopulateStruct(), projectile, projectile_anim, projectile_sound, projectile_type, ScriptDef::relativename(), speed, and two_handed.
Here is the call graph for this function:Definition at line 49 of file wepntmpl.h.
Referenced by UWeapon::anim(), and PopulateStruct().
Definition at line 42 of file wepntmpl.h.
Referenced by get_random_damage(), Character::max_weapon_damage(), Character::min_weapon_damage(), PopulateStruct(), and WeaponDesc().
| unsigned short WeaponDesc::delay |
Definition at line 38 of file wepntmpl.h.
Referenced by UWeapon::delay(), PopulateStruct(), and WeaponDesc().
Definition at line 40 of file wepntmpl.h.
Referenced by PopulateStruct(), and UWeapon::printProperties().
| unsigned short WeaponDesc::hit_sound |
Definition at line 51 of file wepntmpl.h.
Referenced by UWeapon::hit_sound(), and PopulateStruct().
Definition at line 54 of file wepntmpl.h.
Referenced by create_intrinsic_weapon(), UWeapon::is_intrinsic(), and load_intrinsic_weapons().
| unsigned short WeaponDesc::maxrange |
Definition at line 59 of file wepntmpl.h.
Referenced by UWeapon::in_range(), and PopulateStruct().
| unsigned short WeaponDesc::minrange |
Definition at line 58 of file wepntmpl.h.
Referenced by UWeapon::in_range(), and PopulateStruct().
| unsigned short WeaponDesc::miss_sound |
Definition at line 52 of file wepntmpl.h.
Referenced by UWeapon::miss_sound(), and PopulateStruct().
Definition at line 50 of file wepntmpl.h.
Referenced by UWeapon::mounted_anim(), and PopulateStruct().
| const Attribute* WeaponDesc::pAttr |
Definition at line 35 of file wepntmpl.h.
Referenced by UWeapon::attribute(), PopulateStruct(), and WeaponDesc().
Definition at line 44 of file wepntmpl.h.
Referenced by UWeapon::is_projectile(), PopulateStruct(), and WeaponDesc().
Definition at line 48 of file wepntmpl.h.
| unsigned short WeaponDesc::projectile_anim |
Definition at line 46 of file wepntmpl.h.
Referenced by PopulateStruct(), UWeapon::projectile_anim(), and WeaponDesc().
| unsigned short WeaponDesc::projectile_sound |
Definition at line 47 of file wepntmpl.h.
Referenced by PopulateStruct(), UWeapon::projectile_sound(), and WeaponDesc().
| unsigned short WeaponDesc::projectile_type |
Definition at line 45 of file wepntmpl.h.
Referenced by UWeapon::consume_projectile(), PopulateStruct(), and WeaponDesc().
| unsigned short WeaponDesc::speed |
Definition at line 37 of file wepntmpl.h.
Referenced by PopulateStruct(), UWeapon::speed(), and WeaponDesc().
Definition at line 56 of file wepntmpl.h.
Referenced by Character::equippable(), and PopulateStruct().