Pol
Revision:cb584c9
|
#include <wepntmpl.h>
Public Types | |
typedef EquipDesc | base |
![]() | |
typedef Items::ItemDesc | base |
![]() | |
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 |
![]() | |
EquipDesc (u32 objtype, Clib::ConfigElem &elem, Type type, const Plib::Package *pkg) | |
EquipDesc () | |
virtual | ~EquipDesc ()=default |
![]() | |
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 () |
Additional Inherited Members | |
![]() | |
static ItemDesc * | create (Clib::ConfigElem &elem, const Plib::Package *pkg) |
Definition at line 25 of file wepntmpl.h.
Definition at line 28 of file wepntmpl.h.
Pol::Items::WeaponDesc::WeaponDesc | ( | u32 | objtype, |
Clib::ConfigElem & | elem, | ||
const Plib::Package * | pkg | ||
) |
Definition at line 88 of file weapon.cpp.
References damage_dice, delay, Pol::Mobile::Attribute::FindAttribute(), Pol::Clib::ConfigElem::has_prop(), Pol::Core::Dice::load(), Pol::Items::ItemDesc::maxhp, pAttr, projectile, projectile_anim, projectile_sound, projectile_type, Pol::Clib::ConfigElem::remove_string(), Pol::Clib::ConfigElem::remove_ushort(), speed, Pol::Clib::ConfigElem::throw_error(), and Pol::Clib::ConfigElem::warn().
Pol::Items::WeaponDesc::WeaponDesc | ( | ) |
Referenced by Pol::Items::create_intrinsic_weapon().
|
inlinevirtual |
Definition at line 31 of file wepntmpl.h.
References POL_OVERRIDE.
|
virtual |
Reimplemented from Pol::Core::EquipDesc.
Definition at line 202 of file weapon.cpp.
References Pol::Core::EquipDesc::estimatedSize(), Pol::Core::ScriptDef::estimatedSize(), and hit_script.
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().
|
virtual |
Reimplemented from Pol::Core::EquipDesc.
Definition at line 168 of file weapon.cpp.
References Pol::Bscript::BStruct::addMember(), anim, damage_dice, delay, Pol::Core::Dice::die_string(), hit_script, hit_sound, Pol::Core::Dice::max_value(), maxrange, Pol::Core::Dice::min_value(), minrange, miss_sound, mounted_anim, Pol::Mobile::Attribute::name, pAttr, Pol::Items::ItemDesc::pkg, Pol::Core::EquipDesc::PopulateStruct(), projectile, projectile_anim, projectile_sound, projectile_type, Pol::Core::ScriptDef::relativename(), speed, and two_handed.
Core::UACTION Pol::Items::WeaponDesc::anim |
Definition at line 51 of file wepntmpl.h.
Referenced by PopulateStruct().
Core::Dice Pol::Items::WeaponDesc::damage_dice |
Definition at line 44 of file wepntmpl.h.
Referenced by get_random_damage(), Pol::Mobile::Character::max_weapon_damage(), Pol::Mobile::Character::min_weapon_damage(), PopulateStruct(), and WeaponDesc().
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().