This interface is implemented by the reward that changes the value of a property (either on a property from pcproperties or a generic property on any property class).
More...
Public Member Functions |
| virtual void | SetBoolParameter (const char *pbool)=0 |
| | Set the boolean value.
|
| virtual void | SetClassParameter (const char *ent_class)=0 |
| | Set the name of the entity class containing the property class on which this reward will work.
|
| virtual void | SetDiffParameter (const char *pdiff)=0 |
| | Set the diff.
|
| virtual void | SetEntityParameter (const char *entity)=0 |
| | Set the name of the entity containing the pcproperties property class on which this reward will work.
|
| virtual void | SetFloatParameter (const char *pfloat)=0 |
| | Set the float value.
|
| virtual void | SetLongParameter (const char *plong)=0 |
| | Set the long value.
|
| virtual void | SetPCParameter (const char *pc, const char *tag)=0 |
| | Set the name of the property class and tag.
|
| virtual void | SetPropertyParameter (const char *prop)=0 |
| | Set the name of the property.
|
| virtual void | SetStringParameter (const char *pstring)=0 |
| | Set the string value.
|
| virtual void | SetToggle ()=0 |
| | Set the toggle.
|
This interface is implemented by the reward that changes the value of a property (either on a property from pcproperties or a generic property on any property class).
You can query this interface from the reward factory if you want to manually control this factory as opposed to loading its definition from an XML document.
The predefined name of this reward type is 'cel.rewards.changeproperty'.
In XML, factories recognize the following attributes on the 'reward' node:
- entity: the name of the entity containing the pcproperties property class.
- class: the name of an entity class. If this is used instead of the entity parameter, the reward will apply to all entities in the given entity class.
- pc: the name of the property class. If this is not given then pcproperties is used.
- tag: used together with 'pc' to specify an optional tag.
- property: the name of the property.
- string: the new string value of the property.
- long: the new long value of the property.
- float: the new float value of the property.
- bool: the new bool value of the property.
- diff: this long or float value will be added to the property.
- toggle: toggle the boolean or long value.
Definition at line 192 of file rewards.h.