CEL

Public API Reference

iTriggerFactory Struct Reference

A factory to create triggers. More...

#include <tools/triggers.h>

Inheritance diagram for iTriggerFactory:

List of all members.

Public Member Functions

virtual csPtr< iTriggerCreateTrigger (iQuest *q, iCelParameterBlock *params)=0
 Create a trigger.
virtual iTriggerTypeGetTriggerType () const =0
 Get the type for this trigger factory.
virtual bool Load (iDocumentNode *node)=0
 Load this factory from a document node.
virtual bool Save (iDocumentNode *node)=0
 Save this factory to a document node.

Detailed Description

A factory to create triggers.

Trigger factories are created by an iTriggerType instance.

Definition at line 111 of file triggers.h.


Member Function Documentation

virtual csPtr<iTrigger> iTriggerFactory::CreateTrigger ( iQuest q,
iCelParameterBlock params 
) [pure virtual]

Create a trigger.

Parameters:
params are the parameters with which this reward is instantiated.
virtual iTriggerType* iTriggerFactory::GetTriggerType (  )  const [pure virtual]

Get the type for this trigger factory.

virtual bool iTriggerFactory::Load ( iDocumentNode node  )  [pure virtual]

Load this factory from a document node.

Parameters:
node is the <fireon> node in a trigger description.
Returns:
false on error (reporter is used to report).
virtual bool iTriggerFactory::Save ( iDocumentNode node  )  [pure virtual]

Save this factory to a document node.

Parameters:
node is the <fireon> node in a trigger description.
Returns:
false on error (reporter is used to report).

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

Generated for CEL: Crystal Entity Layer 2.1 by doxygen 1.6.1