Planeshift
|
RewardDataMoney holds money reward data. More...
#include <adminmanager.h>
Public Member Functions | |
virtual bool | IsZero () |
checks if the reward is zero More... | |
psRewardDataMoney (csString pmoneyType, int pmoneyCount, bool prandom) | |
creates a money reward. More... | |
![]() | |
psRewardData (Reward_Type prewardType) | |
Only initializes the rewardType. More... | |
virtual | ~psRewardData () |
Destructor. More... | |
Public Attributes | |
int | moneyCount |
relativ amount of money to adjust by if this is 0, a random value is used More... | |
csString | moneyType |
name of the money type to award (circles, hexas, ...) More... | |
bool | random |
whether the amount should be randomized or fix More... | |
![]() | |
Reward_Type | rewardType |
stores the reward type /see Reward_Type More... | |
Additional Inherited Members | |
![]() | |
enum | Reward_Type { REWARD_EXPERIENCE, REWARD_FACTION, REWARD_SKILL, REWARD_MONEY, REWARD_ITEM, REWARD_PRACTICE } |
The different types of rewards that can be assigned. More... | |
RewardDataMoney holds money reward data.
Definition at line 204 of file adminmanager.h.
psRewardDataMoney::psRewardDataMoney | ( | csString | pmoneyType, |
int | pmoneyCount, | ||
bool | prandom | ||
) |
creates a money reward.
pmoneyType | string containing trias,hexas,octas, ... |
pmoneyCount | amount of the money |
prandom | whether this should be randomized (true) or not (false) |
|
virtual |
checks if the reward is zero
Reimplemented from psRewardData.
int psRewardDataMoney::moneyCount |
relativ amount of money to adjust by if this is 0, a random value is used
Definition at line 211 of file adminmanager.h.
csString psRewardDataMoney::moneyType |
name of the money type to award (circles, hexas, ...)
Definition at line 207 of file adminmanager.h.
bool psRewardDataMoney::random |
whether the amount should be randomized or fix
Definition at line 212 of file adminmanager.h.