Planeshift
Public Types | Public Member Functions | Public Attributes

psRewardData Class Reference

Reward Data is an abstract structure for all kinds of rewards. More...

#include <adminmanager.h>

List of all members.

Public Types

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...

Public Member Functions

virtual bool IsZero ()
 checks if the reward is zero returns bool: true when reward is a zero gain, otherwise false
 psRewardData (Reward_Type prewardType)
 Only initializes the rewardType.
virtual ~psRewardData ()
 Destructor.

Public Attributes

Reward_Type rewardType
 stores the reward type /see Reward_Type

Detailed Description

Reward Data is an abstract structure for all kinds of rewards.

Definition at line 89 of file adminmanager.h.


Member Enumeration Documentation

The different types of rewards that can be assigned.

Enumerator:
REWARD_EXPERIENCE 

experience

REWARD_FACTION 

faction points

REWARD_SKILL 

skill points

REWARD_MONEY 

trias, octas, ...

REWARD_ITEM 

an item

REWARD_PRACTICE 

skill practice

Definition at line 93 of file adminmanager.h.


Constructor & Destructor Documentation

psRewardData::psRewardData ( Reward_Type  prewardType)

Only initializes the rewardType.

virtual psRewardData::~psRewardData ( ) [virtual]

Destructor.


Member Function Documentation

virtual bool psRewardData::IsZero ( ) [virtual]

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

Reimplemented in psRewardDataExperience, psRewardDataFaction, psRewardDataSkill, psRewardDataPractice, psRewardDataMoney, and psRewardDataItem.


Member Data Documentation

stores the reward type /see Reward_Type

Definition at line 103 of file adminmanager.h.


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