This interface is implemented by the reward that sends an action to some entity or entity class property class with an optional tag.
More...
Public Member Functions |
| virtual void | AddParameter (celDataType type, csStringID id, const char *name, const char *value)=0 |
| | Add a parameter to send with the action.
|
| virtual void | SetClassParameter (const char *ent_class)=0 |
| | Set the name of the entity class on which this reward will work.
|
| virtual void | SetEntityParameter (const char *entity)=0 |
| | Set the name of the entity.
|
| virtual void | SetIDParameter (const char *id)=0 |
| | Set the action name.
|
| virtual void | SetPropertyClassParameter (const char *propertyclass)=0 |
| | Set the name of the property class.
|
| virtual void | SetTagParameter (const char *tag)=0 |
| | Set the tag for the propertyclass.
|
This interface is implemented by the reward that sends an action to some entity or entity class property class with an optional tag.
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.action'.
In XML, factories recognize the following attributes on the 'op' node:
- entity: the name of the entity to send the action to.
- 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.
- id: name of the action to activate.
- pc: the name of the property class to send the action to.
- tag: the tag of the property class to send the action to.
Definition at line 115 of file rewards.h.