Pol  Rev 533
WeaponDesc Class Reference

#include <wepntmpl.h>

+ Inheritance diagram for WeaponDesc:
+ Collaboration diagram for WeaponDesc:

List of all members.

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 AttributepAttr
bool projectile
UACTION projectile_action
unsigned short projectile_anim
unsigned short projectile_sound
unsigned short projectile_type
unsigned short speed
bool two_handed

Detailed Description

Definition at line 25 of file wepntmpl.h.


Member Typedef Documentation

Reimplemented from EquipDesc.

Definition at line 28 of file wepntmpl.h.


Constructor & Destructor Documentation


Member Function Documentation

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:


Member Data Documentation

Definition at line 49 of file wepntmpl.h.

Referenced by UWeapon::anim(), and PopulateStruct().

unsigned short WeaponDesc::delay

Definition at line 38 of file wepntmpl.h.

Referenced by UWeapon::delay(), PopulateStruct(), and WeaponDesc().

unsigned short WeaponDesc::hit_sound

Definition at line 51 of file wepntmpl.h.

Referenced by UWeapon::hit_sound(), and PopulateStruct().

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

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.

Definition at line 46 of file wepntmpl.h.

Referenced by PopulateStruct(), UWeapon::projectile_anim(), and WeaponDesc().

Definition at line 47 of file wepntmpl.h.

Referenced by PopulateStruct(), UWeapon::projectile_sound(), and WeaponDesc().

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


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