Planeshift
|
Inventory prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
virtual bool | Check (psCharacter *character) |
Check if the specified item is in the player inventory/equipment. More... | |
virtual csPtr< psQuestPrereqOp > | Copy () |
Copy the prerequisite operator. More... | |
virtual csString | GetScriptOp () |
Convert the prerequisite operator to a xml string. More... | |
psQuestPrereqOpItem (const char *itemName, const char *categoryName, bool includeInventory, int amountMin, int amountMax, float qualityMin, float qualityMax) | |
maximum quality of the required item More... | |
virtual | ~psQuestPrereqOpItem () |
Destructor. More... | |
![]() | |
virtual csString | GetScript () |
Convert the prerequisite script to a xml string. More... | |
virtual | ~psQuestPrereqOp () |
Destructor for the prerequisite operator. More... | |
Protected Attributes | |
int | amountMax |
minimum amount of this sort of item More... | |
int | amountMin |
whether equiped or inventory is included in searches More... | |
csString | categoryName |
itemname of the item (if empty, category must be set) More... | |
bool | includeInventory |
category of the item (if empty, itemname must be set) More... | |
csString | itemName |
float | qualityMax |
minimum quality of the required item More... | |
float | qualityMin |
maximum amount of this sort of item More... | |
Inventory prerequisite operator.
The given item must be equiped or just in inventory (includes the first) for this prerequisite to be true.
Definition at line 656 of file psquestprereqops.h.
|
inline |
maximum quality of the required item
Construct an inventory operator.
itemName | The name of the base item we are searching for. |
categoryName | The name of the category. |
includeInventory | if true it will search either equipment and inventory else only inventory. |
amountMin | A minimum amount. |
amountMax | A maximum amount. |
qualityMin | A minimum quality. |
qualityMax | A maximum quality |
Definition at line 681 of file psquestprereqops.h.
|
inlinevirtual |
Destructor.
Definition at line 688 of file psquestprereqops.h.
|
virtual |
Check if the specified item is in the player inventory/equipment.
character | The character that are checking for a prerequisite |
Implements psQuestPrereqOp.
|
virtual |
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
Implements psQuestPrereqOp.
|
virtual |
Convert the prerequisite operator to a xml string.
Convert the operator into the xml string: <item inventory="true/false" name="baseitemname"/>
Implements psQuestPrereqOp.
|
protected |
minimum amount of this sort of item
Definition at line 663 of file psquestprereqops.h.
|
protected |
whether equiped or inventory is included in searches
Definition at line 662 of file psquestprereqops.h.
|
protected |
itemname of the item (if empty, category must be set)
Definition at line 660 of file psquestprereqops.h.
|
protected |
category of the item (if empty, itemname must be set)
Definition at line 661 of file psquestprereqops.h.
|
protected |
Definition at line 659 of file psquestprereqops.h.
|
protected |
minimum quality of the required item
Definition at line 665 of file psquestprereqops.h.
|
protected |
maximum amount of this sort of item
Definition at line 664 of file psquestprereqops.h.