Pol  Revision:cb584c9
Pol::Items::WeaponDesc Class Reference

#include <wepntmpl.h>

+ Inheritance diagram for Pol::Items::WeaponDesc:

Public Types

typedef EquipDesc base
 
- Public Types inherited from Pol::Core::EquipDesc
typedef Items::ItemDesc base
 
- Public Types inherited from Pol::Items::ItemDesc
enum  Movable : u8 { UNMOVABLE, MOVABLE, DEFAULT }
 
enum  Type {
  ITEMDESC, CONTAINERDESC, DOORDESC, WEAPONDESC,
  ARMORDESC, BOATDESC, HOUSEDESC, SPELLBOOKDESC,
  SPELLSCROLLDESC, MAPDESC
}
 

Public Member Functions

 WeaponDesc (u32 objtype, Clib::ConfigElem &elem, const Plib::Package *pkg)
 
 WeaponDesc ()
 
virtual ~WeaponDesc ()
 
virtual size_t estimatedSize () const POL_OVERRIDE
 
unsigned short get_random_damage () const
 
virtual void PopulateStruct (Bscript::BStruct *descriptor) const POL_OVERRIDE
 
- Public Member Functions inherited from Pol::Core::EquipDesc
 EquipDesc (u32 objtype, Clib::ConfigElem &elem, Type type, const Plib::Package *pkg)
 
 EquipDesc ()
 
virtual ~EquipDesc ()=default
 
- Public Member Functions inherited from Pol::Items::ItemDesc
 ItemDesc (u32 objtype, Clib::ConfigElem &elem, Type type, const Plib::Package *pkg)
 
 ItemDesc (Type type)
 
virtual ~ItemDesc ()
 
bool default_movable () const
 
std::string objtype_description () const
 
void unload_scripts ()
 

Public Attributes

Core::UACTION anim
 
Core::Dice damage_dice
 
unsigned short delay
 
Core::ScriptDef hit_script
 
unsigned short hit_sound
 
unsigned short maxrange
 
unsigned short minrange
 
unsigned short miss_sound
 
Core::UACTION mounted_anim
 
const Mobile::AttributepAttr
 
bool projectile
 
Core::UACTION projectile_action
 
unsigned short projectile_anim
 
unsigned short projectile_sound
 
unsigned short projectile_type
 
unsigned short speed
 
bool two_handed
 
- Public Attributes inherited from Pol::Core::EquipDesc
bool is_intrinsic
 
bool is_pc_intrinsic
 
- Public Attributes inherited from Pol::Items::ItemDesc
unsigned short base_str_req
 
bool blocks_casting_if_in_hand
 
bool can_use_while_frozen
 
bool can_use_while_paralyzed
 
u16 color
 
Core::ScriptDef control_script
 
Core::ScriptDef create_script
 
unsigned decay_time
 
bool decays_on_multis
 
boost_utils::object_name_flystring desc
 
Core::ScriptDef destroy_script
 
unsigned short doubleclick_range
 
Core::ElementDamages element_damage
 
Core::Resistances element_resist
 
boost_utils::script_name_flystring equip_script
 
u8 facing
 
bool ghosts_can_use
 
u16 graphic
 
std::set< std::string > ignore_cprops
 
bool insured
 
bool invisible
 
bool lockable
 
unsigned short maxhp
 
Core::ExportScriptmethod_script
 
enum Pol::Items::ItemDesc::Movable movable
 
unsigned short multiid
 
bool newbie
 
bool no_drop
 
u32 objtype
 
std::string objtypename
 
Core::ScriptDef on_use_script
 
const Plib::Packagepkg
 
Core::PropertyList props
 
double quality
 
bool requires_attention
 
Core::Dice resist_dice
 
std::vector< ResourceComponentresources
 
bool save_on_exit
 
unsigned short stack_limit
 
std::string tooltip
 
Type type
 
boost_utils::script_name_flystring unequip_script
 
bool use_requires_los
 
unsigned int vendor_buys_for
 
unsigned int vendor_sells_for
 
Core::ScriptDef walk_on_script
 
int weightdiv
 
int weightmult
 

Additional Inherited Members

- Static Public Member Functions inherited from Pol::Items::ItemDesc
static ItemDesccreate (Clib::ConfigElem &elem, const Plib::Package *pkg)
 

Detailed Description

Definition at line 25 of file wepntmpl.h.

Member Typedef Documentation

Definition at line 28 of file wepntmpl.h.

Constructor & Destructor Documentation

Pol::Items::WeaponDesc::WeaponDesc ( )
virtual Pol::Items::WeaponDesc::~WeaponDesc ( )
inlinevirtual

Definition at line 31 of file wepntmpl.h.

References POL_OVERRIDE.

Member Function Documentation

size_t Pol::Items::WeaponDesc::estimatedSize ( ) const
virtual
unsigned short Pol::Items::WeaponDesc::get_random_damage ( ) const

Definition at line 163 of file weapon.cpp.

References damage_dice, and Pol::Core::Dice::roll().

Member Data Documentation

Core::UACTION Pol::Items::WeaponDesc::anim

Definition at line 51 of file wepntmpl.h.

Referenced by PopulateStruct().

unsigned short Pol::Items::WeaponDesc::delay

Definition at line 40 of file wepntmpl.h.

Referenced by PopulateStruct(), and WeaponDesc().

Core::ScriptDef Pol::Items::WeaponDesc::hit_script

Definition at line 42 of file wepntmpl.h.

Referenced by estimatedSize(), and PopulateStruct().

unsigned short Pol::Items::WeaponDesc::hit_sound

Definition at line 53 of file wepntmpl.h.

Referenced by PopulateStruct().

unsigned short Pol::Items::WeaponDesc::maxrange

Definition at line 59 of file wepntmpl.h.

Referenced by PopulateStruct().

unsigned short Pol::Items::WeaponDesc::minrange

Definition at line 58 of file wepntmpl.h.

Referenced by PopulateStruct().

unsigned short Pol::Items::WeaponDesc::miss_sound

Definition at line 54 of file wepntmpl.h.

Referenced by PopulateStruct().

Core::UACTION Pol::Items::WeaponDesc::mounted_anim

Definition at line 52 of file wepntmpl.h.

Referenced by PopulateStruct().

const Mobile::Attribute* Pol::Items::WeaponDesc::pAttr

Definition at line 37 of file wepntmpl.h.

Referenced by PopulateStruct(), and WeaponDesc().

bool Pol::Items::WeaponDesc::projectile

Definition at line 46 of file wepntmpl.h.

Referenced by PopulateStruct(), and WeaponDesc().

Core::UACTION Pol::Items::WeaponDesc::projectile_action

Definition at line 50 of file wepntmpl.h.

unsigned short Pol::Items::WeaponDesc::projectile_anim

Definition at line 48 of file wepntmpl.h.

Referenced by PopulateStruct(), and WeaponDesc().

unsigned short Pol::Items::WeaponDesc::projectile_sound

Definition at line 49 of file wepntmpl.h.

Referenced by PopulateStruct(), and WeaponDesc().

unsigned short Pol::Items::WeaponDesc::projectile_type

Definition at line 47 of file wepntmpl.h.

Referenced by PopulateStruct(), and WeaponDesc().

unsigned short Pol::Items::WeaponDesc::speed

Definition at line 39 of file wepntmpl.h.

Referenced by PopulateStruct(), and WeaponDesc().

bool Pol::Items::WeaponDesc::two_handed

Definition at line 56 of file wepntmpl.h.

Referenced by Pol::Mobile::Character::equippable(), and PopulateStruct().


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