Planeshift
psRewardData Class Reference

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

#include <adminmanager.h>

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 More...
 
 psRewardData (Reward_Type prewardType)
 Only initializes the rewardType. More...
 
virtual ~psRewardData ()
 Destructor. More...
 

Public Attributes

Reward_Type rewardType
 stores the reward type /see Reward_Type More...
 

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 psRewardDataItem, psRewardDataMoney, psRewardDataPractice, psRewardDataSkill, psRewardDataFaction, and psRewardDataExperience.

Member Data Documentation

Reward_Type psRewardData::rewardType

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: