![]() |
Public API Reference |
A factory to create rewards. More...
#include <tools/rewards.h>
Public Member Functions | |
| virtual csPtr< iReward > | CreateReward (const celParams ¶ms)=0 |
| Create a reward. | |
| virtual bool | Load (iDocumentNode *node)=0 |
| Load this factory from a document node. | |
A factory to create rewards.
Reward factories are created by an iRewardType instance.
| virtual csPtr<iReward> iRewardFactory::CreateReward | ( | const celParams & | params | ) | [pure virtual] |
Create a reward.
| quest | is the quest for which we are creating this reward. |
| params | are the parameters with which this reward is instantiated. |
| virtual bool iRewardFactory::Load | ( | iDocumentNode * | node | ) | [pure virtual] |
Load this factory from a document node.
| node | is the <reward> node in a trigger description. |