iOperationQuestTriggerFactory Struct Reference
This interface is implemented by the operation trigger, that allows to combine several triggers using a logical operation. More...
#include <tools/questmanager.h>

Public Member Functions | |
virtual csRefArray < iQuestTriggerFactory > & | GetTriggerFactories ()=0 |
Return the trigger factory list so that user can add new ones, remove them or clear the list. | |
virtual void | SetOperationParameter (const char *operation)=0 |
Set the operation this trigger will use to combine child triggers. |
Detailed Description
This interface is implemented by the operation trigger, that allows to combine several triggers using a logical operation.
You can query this interface from the trigger factory if you want to manually control this factory as opposed to loading its definition from an XML document.
The predefined name of this trigger type is 'cel.questtrigger.operation'.
In XML, factories recognize the following attributes on the 'fireon' node:
- operation: the logical operation to perform. Can be one of 'or', 'and', or 'xor', see below for a more detailed description.
Fireon node can also hold any number of child 'trigger' nodes, which are defined just as usual.
Operations:
- and: Trigger will fire when all the child triggers are true.
- or: Trigger will fire when at least one of the child triggers is true.
- xor: Trigger will fire when one and only one of the child triggers is true.
Definition at line 1254 of file questmanager.h.
Member Function Documentation
virtual csRefArray<iQuestTriggerFactory>& iOperationQuestTriggerFactory::GetTriggerFactories | ( | ) | [pure virtual] |
Return the trigger factory list so that user can add new ones, remove them or clear the list.
virtual void iOperationQuestTriggerFactory::SetOperationParameter | ( | const char * | operation | ) | [pure virtual] |
Set the operation this trigger will use to combine child triggers.
- Parameters:
-
operation is the name of the operation or a parameter (starts with '$'). Operation must be one of 'or', 'and', or 'xor'.
The documentation for this struct was generated from the following file:
- tools/questmanager.h
Generated for CEL: Crystal Entity Layer 1.4.1 by doxygen 1.7.1