Pol  Revision:cb584c9
Pol::Items::ContainerDesc Class Reference

#include <itemdesc.h>

+ Inheritance diagram for Pol::Items::ContainerDesc:

Public Member Functions

 ContainerDesc (u32 objtype, Clib::ConfigElem &elem, const Plib::Package *pkg)
 
virtual ~ContainerDesc ()
 
virtual size_t estimatedSize () const POL_OVERRIDE
 
virtual void PopulateStruct (Bscript::BStruct *descriptor) const POL_OVERRIDE
 
- 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::ScriptDef can_insert_script
 
Core::ScriptDef can_remove_script
 
u16 gump
 
u16 max_items
 
u8 max_slots
 
u16 max_weight
 
u16 maxx
 
u16 maxy
 
u16 minx
 
u16 miny
 
bool no_drop_exception
 
Core::ScriptDef on_insert_script
 
Core::ScriptDef on_remove_script
 
- 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
 

Private Types

typedef ItemDesc base
 

Additional Inherited Members

- 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
}
 
- Static Public Member Functions inherited from Pol::Items::ItemDesc
static ItemDesccreate (Clib::ConfigElem &elem, const Plib::Package *pkg)
 

Detailed Description

Definition at line 148 of file itemdesc.h.

Member Typedef Documentation

Definition at line 150 of file itemdesc.h.

Constructor & Destructor Documentation

Pol::Items::ContainerDesc::ContainerDesc ( u32  objtype,
Clib::ConfigElem elem,
const Plib::Package pkg 
)

Definition at line 713 of file itemdesc.cpp.

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

Definition at line 155 of file itemdesc.h.

References POL_OVERRIDE.

Member Function Documentation

size_t Pol::Items::ContainerDesc::estimatedSize ( ) const
virtual

Member Data Documentation

Core::ScriptDef Pol::Items::ContainerDesc::can_insert_script
Core::ScriptDef Pol::Items::ContainerDesc::can_remove_script
u16 Pol::Items::ContainerDesc::gump

Definition at line 160 of file itemdesc.h.

Referenced by Pol::Core::UContainer::gump(), and PopulateStruct().

u16 Pol::Items::ContainerDesc::max_items

Definition at line 165 of file itemdesc.h.

Referenced by Pol::Core::UContainer::max_items(), and PopulateStruct().

u8 Pol::Items::ContainerDesc::max_slots

Definition at line 167 of file itemdesc.h.

Referenced by Pol::Core::UContainer::max_slots(), and PopulateStruct().

u16 Pol::Items::ContainerDesc::max_weight

Definition at line 164 of file itemdesc.h.

Referenced by Pol::Core::UContainer::max_weight(), and PopulateStruct().

u16 Pol::Items::ContainerDesc::maxx

Definition at line 161 of file itemdesc.h.

Referenced by Pol::Core::UContainer::get_random_location(), and PopulateStruct().

u16 Pol::Items::ContainerDesc::maxy
u16 Pol::Items::ContainerDesc::minx
u16 Pol::Items::ContainerDesc::miny
bool Pol::Items::ContainerDesc::no_drop_exception

Definition at line 169 of file itemdesc.h.

Referenced by Pol::Core::UContainer::default_no_drop_exception(), and PopulateStruct().

Core::ScriptDef Pol::Items::ContainerDesc::on_insert_script
Core::ScriptDef Pol::Items::ContainerDesc::on_remove_script

Definition at line 174 of file itemdesc.h.

Referenced by estimatedSize(), Pol::Core::UContainer::on_remove(), and PopulateStruct().


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