![]() |
Public API Reference |
This interface is implemented by the reward that destroys an entity. More...
#include <tools/rewards.h>
Public Member Functions | |
| 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. | |
This interface is implemented by the reward that destroys an entity.
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.destroyentity'.
In XML, factories recognize the following attribute on the 'op' node:
| virtual void iDestroyEntityRewardFactory::SetClassParameter | ( | const char * | ent_class | ) | [pure virtual] |
Set the name of the entity class on which this reward will work.
| ent_class | is the name of the class or a parameter (starts with '$'). |
| virtual void iDestroyEntityRewardFactory::SetEntityParameter | ( | const char * | entity | ) | [pure virtual] |
Set the name of the entity.
| entity | is the name of the entity or a parameter (starts with '$'). |