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. | |
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. | |
double | CalcFunction (MathEnvironment *env, const char *functionName, const double *params) |
Does nothing right now just returns 0 for anything passed. | |
double | GetProperty (MathEnvironment *env, const char *ptr) |
Returns the requested variable stored in this transform. | |
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 | ( | ) |
double psTradeTransformations::CalcFunction | ( | MathEnvironment * | env, |
const char * | functionName, | ||
const double * | params | ||
) | [virtual] |
Does nothing right now just returns 0 for anything passed.
Implements iScriptableVar.
uint32 psTradeTransformations::GetItemId | ( | ) | const [inline] |
float psTradeTransformations::GetItemQualityPenaltyPercent | ( | ) | const [inline] |
uint32 psTradeTransformations::GetPatternId | ( | ) | const [inline] |
uint32 psTradeTransformations::GetProcessId | ( | ) | const [inline] |
double psTradeTransformations::GetProperty | ( | MathEnvironment * | env, |
const char * | ptr | ||
) | [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.
uint32 psTradeTransformations::GetResultId | ( | ) | const [inline] |
int psTradeTransformations::GetResultQty | ( | ) | const [inline] |
int psTradeTransformations::GetTransformationCacheFlag | ( | ) | [inline] |
int psTradeTransformations::GetTransPoints | ( | ) | const [inline] |
bool psTradeTransformations::Load | ( | iResultRow & | row | ) |
void psTradeTransformations::SetItemId | ( | uint32 | newItemId | ) | [inline] |
void psTradeTransformations::SetItemQty | ( | int | newItemQty | ) | [inline] |
const char* psTradeTransformations::ToString | ( | ) | [virtual] |
Returns the name of the current transform.
Implements iScriptableVar.
uint32 psTradeTransformations::id [protected] |
uint32 psTradeTransformations::itemId [protected] |
int psTradeTransformations::itemQty [protected] |
uint32 psTradeTransformations::patternId [protected] |
float psTradeTransformations::penaltyPct [protected] |
uint32 psTradeTransformations::processId [protected] |
uint32 psTradeTransformations::resultId [protected] |
int psTradeTransformations::resultQty [protected] |
MathExpression* psTradeTransformations::transPoints [protected] |