iPcCharacteristics Struct Reference
This is a characteristics property class. More...
#include <propclass/chars.h>
Public Member Functions | |
virtual void | AddToInventory (iPcInventory *inv)=0 |
Indicate that this object is added to some inventory. | |
virtual bool | ClearAll ()=0 |
Clear all properties. | |
virtual bool | ClearCharacteristic (const char *name)=0 |
Clear a characteristic. | |
virtual void | Dump ()=0 |
Debug dump information. | |
virtual float | GetCharacteristic (const char *name) const =0 |
Get characteristic property. | |
virtual float | GetInheritedCharacteristic (const char *name) const =0 |
Get inherited characteristic property. | |
virtual float | GetLocalCharacteristic (const char *name) const =0 |
Get local characteristic property. | |
virtual bool | HasCharacteristic (const char *name) const =0 |
Returns true if a property is present. | |
virtual void | MarkDirty (const char *charName)=0 |
Mark this characteristic as dirty for all inventories this entity is in. | |
virtual void | RemoveFromInventory (iPcInventory *inv)=0 |
Indicate that this object is removed from some inventory. | |
virtual bool | SetCharacteristic (const char *name, float value)=0 |
Set characteristic property. | |
virtual bool | SetInheritedCharacteristic (const char *name, float factor, float add)=0 |
Indicate how this characteristic is inherited if this object contains an inventory. | |
virtual bool | TestConstraints (const char *charName)=0 |
Test constraints for this characteristic for all inventories this entity is in. |
Detailed Description
This is a characteristics property class.This property class supports the following properties (add prefix 'cel.property.' to get the ID of the property:
- <name> (float, read/write): the specific characteristic.
Definition at line 38 of file chars.h.
Member Function Documentation
|
Indicate that this object is added to some inventory. This method is meant to be called ONLY by iPcInventory implementations! |
|
Clear all properties. This function can fail if clearing a property causes a violation of parent inventories. In that case part of the properties may be cleared already. |
|
Clear a characteristic. This can fail if the object is currently in an inventory which requires strict presence of this characteristic. |
|
Debug dump information.
|
|
Get characteristic property. This includes inherited characteristics. |
|
Get inherited characteristic property. This ignores local characteristic value. |
|
Get local characteristic property. This ignores inherited characteristics. |
|
Returns true if a property is present.
|
|
Mark this characteristic as dirty for all inventories this entity is in. If 'charName' == 0 then all characteristics will be marked dirty. |
|
Indicate that this object is removed from some inventory. This method is meant to be called ONLY by iPcInventory implementations! |
|
Set characteristic property. Returns false if this is impossible because the entity is currently in an inventory that does not allow this value. |
|
Indicate how this characteristic is inherited if this object contains an inventory. The default is to ignore contents of inventory for a characteristic ('factor' and 'add' equal to 0). The value of this characteristic of the inventory will be multiplied with 'factor' and added to 'add'. This function can fail if the new properties cause the current contents to fail. |
|
Test constraints for this characteristic for all inventories this entity is in. If 'charName' == 0 then all characteristics will be tested. |
The documentation for this struct was generated from the following file:
- propclass/chars.h
Generated for CEL: Crystal Entity Layer by doxygen 1.4.6