Planeshift
psRewardDataSkill Class Reference

RewardDataSkill holds skill reward data. More...

#include <adminmanager.h>

Public Member Functions

virtual bool IsZero ()
 checks if the reward is zero. More...
 
 psRewardDataSkill (csString pskillName, int pskillDelta, int pskillCap, bool prelativeSkill)
 
- Public Member Functions inherited from psRewardData
 psRewardData (Reward_Type prewardType)
 Only initializes the rewardType. More...
 
virtual ~psRewardData ()
 Destructor. More...
 

Public Attributes

bool relativeSkill
 determines whether the value to adjust the skill is relative or not More...
 
unsigned int skillCap
 maximum value the skill should have More...
 
int skillDelta
 value to adjust the skill by/set it to More...
 
csString skillName
 name of the skill to adjust. More...
 
- Public Attributes inherited from psRewardData
Reward_Type rewardType
 stores the reward type /see Reward_Type More...
 

Additional Inherited Members

- Public Types inherited from psRewardData
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...
 

Detailed Description

RewardDataSkill holds skill reward data.

Definition at line 159 of file adminmanager.h.

Constructor & Destructor Documentation

psRewardDataSkill::psRewardDataSkill ( csString  pskillName,
int  pskillDelta,
int  pskillCap,
bool  prelativeSkill 
)

Member Function Documentation

virtual bool psRewardDataSkill::IsZero ( )
virtual

checks if the reward is zero.

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

Reimplemented from psRewardData.

Member Data Documentation

bool psRewardDataSkill::relativeSkill

determines whether the value to adjust the skill is relative or not

Definition at line 172 of file adminmanager.h.

unsigned int psRewardDataSkill::skillCap

maximum value the skill should have

Definition at line 168 of file adminmanager.h.

int psRewardDataSkill::skillDelta

value to adjust the skill by/set it to

Definition at line 167 of file adminmanager.h.

csString psRewardDataSkill::skillName

name of the skill to adjust.

may be "all" to adjust all skills. may be "copy" to set the values of the target

Definition at line 166 of file adminmanager.h.


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