Pol  Revision:cb584c9
Pol::Mobile::Attribute Class Reference

#include <attribute.h>

Public Member Functions

 Attribute (const Plib::Package *pkg, Clib::ConfigElem &elem)
 
 Attribute (const std::string &name)
 
 ~Attribute ()
 
size_t estimateSize () const
 

Static Public Member Functions

static AttributeFindAttribute (const std::string &str)
 
static AttributeFindAttribute (unsigned attrid)
 

Public Attributes

std::vector< std::string > aliases
 
unsigned attrid
 
unsigned short default_cap
 
unsigned delay_seconds
 
bool disable_core_checks
 
Core::ExportedFunctiongetintrinsicmod_func
 
std::string name
 
Attributenext
 
const Plib::Packagepkg
 
Core::ScriptDef script_
 
bool unhides
 

Detailed Description

Definition at line 31 of file attribute.h.

Constructor & Destructor Documentation

Pol::Mobile::Attribute::Attribute ( const Plib::Package pkg,
Clib::ConfigElem elem 
)
Pol::Mobile::Attribute::Attribute ( const std::string &  name)
explicit
Pol::Mobile::Attribute::~Attribute ( )

Definition at line 63 of file attribute.cpp.

References getintrinsicmod_func.

Member Function Documentation

size_t Pol::Mobile::Attribute::estimateSize ( ) const

Definition at line 69 of file attribute.cpp.

References aliases, Attribute(), Pol::Core::ScriptDef::estimatedSize(), name, and script_.

Attribute * Pol::Mobile::Attribute::FindAttribute ( unsigned  attrid)
static

Definition at line 31 of file attribute.cpp.

References Pol::Core::gamestate.

Member Data Documentation

std::vector<std::string> Pol::Mobile::Attribute::aliases

Definition at line 43 of file attribute.h.

Referenced by Attribute(), and estimateSize().

unsigned short Pol::Mobile::Attribute::default_cap
unsigned Pol::Mobile::Attribute::delay_seconds
bool Pol::Mobile::Attribute::disable_core_checks
Core::ExportedFunction* Pol::Mobile::Attribute::getintrinsicmod_func
const Plib::Package* Pol::Mobile::Attribute::pkg

Definition at line 39 of file attribute.h.

Referenced by Pol::Mobile::load_attribute_entry().

bool Pol::Mobile::Attribute::unhides

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