Planeshift
|
This class holds the master list of all trade transformatations possible in the game. More...
#include <pstrade.h>
Public Member Functions | |
uint32 | GetId () const |
uint32 | GetItemId () const |
int | GetItemQty () const |
float | GetItemQualityPenaltyPercent () const |
uint32 | GetPatternId () const |
uint32 | GetProcessId () const |
uint32 | GetResultId () const |
int | GetResultQty () const |
int | GetTransformationCacheFlag () |
Cache flag is used for garbage collection. More... | |
int | GetTransPoints () const |
bool | Load (iResultRow &row) |
psTradeTransformations () | |
psTradeTransformations (uint32 rId, int rQty, uint32 iId, int iQty, char *tPoints) | |
void | SetItemId (uint32 newItemId) |
void | SetItemQty (int newItemQty) |
~psTradeTransformations () | |
iScriptableVar implementation | |
Functions that implement the iScriptableVar interface. | |
const char * | ToString () |
Returns the name of the current transform. More... | |
double | CalcFunction (MathEnvironment *env, const char *functionName, const double *params) |
Does nothing right now just returns 0 for anything passed. More... | |
double | GetProperty (MathEnvironment *env, const char *ptr) |
Returns the requested variable stored in this transform. More... | |
![]() | |
virtual | ~iScriptableVar () |
Protected Attributes | |
uint32 | id |
uint32 | itemId |
int | itemQty |
uint32 | patternId |
float | penaltyPct |
uint32 | processId |
uint32 | resultId |
int | resultQty |
MathExpression * | transPoints |
This class holds the master list of all trade transformatations possible in the game.
This class is read only since it is cached and shared by multiple users.
psTradeTransformations::psTradeTransformations | ( | ) |
psTradeTransformations::psTradeTransformations | ( | uint32 | rId, |
int | rQty, | ||
uint32 | iId, | ||
int | iQty, | ||
char * | tPoints | ||
) |
psTradeTransformations::~psTradeTransformations | ( | ) |
|
virtual |
Does nothing right now just returns 0 for anything passed.
Implements iScriptableVar.
|
inline |
|
inline |
|
inline |
|
virtual |
Returns the requested variable stored in this transform.
env | The MathEnviroment. |
ptr | A pointer to a char array stating the requested variable. |
Implements iScriptableVar.
|
inline |
|
inline |
|
inline |
bool psTradeTransformations::Load | ( | iResultRow & | row | ) |
|
inline |
|
inline |
|
virtual |
Returns the name of the current transform.
Implements iScriptableVar.
|
protected |