CEL

Public API Reference

iDestroyEntityRewardFactory Struct Reference

This interface is implemented by the reward that destroys an entity. More...

#include <tools/rewards.h>

Inheritance diagram for iDestroyEntityRewardFactory:

List of all members.

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.

Detailed Description

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:

Definition at line 425 of file rewards.h.


Member Function Documentation

virtual void iDestroyEntityRewardFactory::SetClassParameter ( const char *  ent_class  )  [pure virtual]

Set the name of the entity class on which this reward will work.

Parameters:
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.

Parameters:
entity is the name of the entity or a parameter (starts with '$').

The documentation for this struct was generated from the following file:

Generated for CEL: Crystal Entity Layer 2.1 by doxygen 1.6.1