Planeshift
Public Member Functions | Public Attributes

psRewardDataMoney Class Reference

RewardDataMoney holds money reward data. More...

#include <adminmanager.h>

List of all members.

Public Member Functions

virtual bool IsZero ()
 checks if the reward is zero
 psRewardDataMoney (csString pmoneyType, int pmoneyCount, bool prandom)
 creates a money reward.

Public Attributes

int moneyCount
 relativ amount of money to adjust by if this is 0, a random value is used
csString moneyType
 name of the money type to award (circles, hexas, ...)
bool random
 whether the amount should be randomized or fix

Detailed Description

RewardDataMoney holds money reward data.

Definition at line 204 of file adminmanager.h.


Constructor & Destructor Documentation

psRewardDataMoney::psRewardDataMoney ( csString  pmoneyType,
int  pmoneyCount,
bool  prandom 
)

creates a money reward.

Parameters:
pmoneyTypestring containing trias,hexas,octas, ...
pmoneyCountamount of the money
prandomwhether this should be randomized (true) or not (false)

Member Function Documentation

virtual bool psRewardDataMoney::IsZero ( ) [virtual]

checks if the reward is zero

Returns:
bool: true when reward is a zero gain, otherwise false checks if the reward is zero

Reimplemented from psRewardData.


Member Data Documentation

relativ amount of money to adjust by if this is 0, a random value is used

Definition at line 211 of file adminmanager.h.

name of the money type to award (circles, hexas, ...)

Definition at line 207 of file adminmanager.h.

whether the amount should be randomized or fix

Definition at line 212 of file adminmanager.h.


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