Pol
Revision:cb584c9
|
#include <armrtmpl.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 | |
ArmorDesc (u32 objtype, Clib::ConfigElem &elem, const Plib::Package *pkg, bool forceShield=false) | |
Since the constructor is doing some wrong guessing to tell when an armor is a shield, forceShield will force to consider it a shield. More... | |
virtual | ~ArmorDesc () |
virtual size_t | estimatedSize () const POL_OVERRIDE |
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 22 of file armrtmpl.h.
typedef EquipDesc Pol::Items::ArmorDesc::base |
Definition at line 26 of file armrtmpl.h.
Pol::Items::ArmorDesc::ArmorDesc | ( | u32 | objtype, |
Clib::ConfigElem & | elem, | ||
const Plib::Package * | pkg, | ||
bool | forceShield = false |
||
) |
Since the constructor is doing some wrong guessing to tell when an armor is a shield, forceShield will force to consider it a shield.
Definition at line 45 of file armor.cpp.
References Pol::Plib::Package::dir(), ERROR_PRINT, Pol::Items::ItemDesc::graphic, Pol::Core::Tile::layer, Pol::Core::LAYER_HAND1, Pol::Core::LAYER_HAND2, Pol::Mobile::layer_to_zone(), Pol::Items::ItemDesc::objtype, Pol::Clib::ConfigElem::remove_prop(), Pol::Plib::systemstate, Pol::Plib::SystemState::tile, Pol::Mobile::zone_name_to_zone(), and zones.
|
inlinevirtual |
Definition at line 29 of file armrtmpl.h.
References POL_OVERRIDE.
|
virtual |
Reimplemented from Pol::Core::EquipDesc.
Definition at line 117 of file armor.cpp.
References Pol::Core::EquipDesc::estimatedSize(), Pol::Core::ScriptDef::estimatedSize(), on_hit_script, and zones.
|
virtual |
Reimplemented from Pol::Core::EquipDesc.
Definition at line 101 of file armor.cpp.
References Pol::Bscript::BStruct::addMember(), ar, on_hit_script, Pol::Items::ItemDesc::pkg, Pol::Core::EquipDesc::PopulateStruct(), Pol::Core::ScriptDef::relativename(), Pol::Mobile::zone_to_zone_name(), and zones.
unsigned short Pol::Items::ArmorDesc::ar |
Definition at line 33 of file armrtmpl.h.
Referenced by PopulateStruct().
Core::ScriptDef Pol::Items::ArmorDesc::on_hit_script |
Definition at line 35 of file armrtmpl.h.
Referenced by estimatedSize(), and PopulateStruct().
std::set<unsigned short> Pol::Items::ArmorDesc::zones |
Definition at line 34 of file armrtmpl.h.
Referenced by ArmorDesc(), estimatedSize(), and PopulateStruct().