Planeshift
psMerchantInfo Class Reference

This class retrieves the merchant categories for an NPC. More...

#include <psmerchantinfo.h>

Public Member Functions

psItemCategoryFindCategory (int id)
 
psItemCategoryFindCategory (const csString &name)
 
bool Load (PID pid)
 Loads the merchant categories for one NPC. More...
 

Public Attributes

csArray< psItemCategory * > categories
 

Detailed Description

This class retrieves the merchant categories for an NPC.

A character is defined to be a merchant if there are merchant item categories for the character.

Definition at line 59 of file psmerchantinfo.h.

Member Function Documentation

psItemCategory* psMerchantInfo::FindCategory ( int  id)
psItemCategory* psMerchantInfo::FindCategory ( const csString &  name)
bool psMerchantInfo::Load ( PID  pid)

Loads the merchant categories for one NPC.

Parameters
pidThe characterid to check.
Returns
Return true if the character is a merchant.

Member Data Documentation

csArray<psItemCategory*> psMerchantInfo::categories

Definition at line 73 of file psmerchantinfo.h.


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