psSkillCacheItem item is one stat or skill in the skill cache.
More...
#include <skillcache.h>
|
unsigned short | getActualStat () const |
|
unsigned short | getCategory () const |
|
unsigned short | getKnowledge () const |
|
unsigned short | getKnowledgeCost () const |
|
unsigned int | getNameId () const |
|
unsigned short | getPractice () const |
|
unsigned short | getPracticeCost () const |
|
unsigned short | getRank () const |
|
int | getSkillId () const |
|
bool | isModified () const |
|
bool | isRemoved () const |
|
bool | isStat () const |
|
| psSkillCacheItem (psSkillCacheItem *item) |
| Constructs the cache item using values from another cache item. More...
|
|
| psSkillCacheItem (unsigned int nameId) |
| Constructs an empty cache item where nameId and skillId are both set to the nameId value. More...
|
|
| psSkillCacheItem (int skillId, unsigned int nameId, unsigned short R, unsigned short AS, unsigned short Y, unsigned short YC, unsigned short Z, unsigned short ZC, unsigned short CAT, bool stat=false) |
| Constructs the cache item with the given values. More...
|
|
void | read (MsgEntry *) |
| Reads the cache item from the message entry and sets the modified state to true. More...
|
|
void | setModified (bool modified) |
|
void | setRemoved (bool value) |
|
unsigned short | size () const |
| Calculates the number of bytes needed for the message entry. More...
|
|
void | update (unsigned short R, unsigned short AS, unsigned short Y, unsigned short YC, unsigned short Z, unsigned short ZC) |
| The update() function updates the cache item and sets the modified state if needed. More...
|
|
void | update (psSkillCacheItem *item) |
| Updates the cache item with values form another cache item. More...
|
|
void | write (MsgEntry *) |
| Writes the cache item to the message entry and changes the modified state to false. More...
|
|
| ~psSkillCacheItem () |
|
psSkillCacheItem item is one stat or skill in the skill cache.
Definition at line 37 of file skillcache.h.
Operations with this skill item:
Enumerator |
---|
UPDATE_OR_ADD |
The item is updated or added.
|
REMOVE |
The item should be removed from the list.
|
Definition at line 44 of file skillcache.h.
Constructs the cache item using values from another cache item.
psSkillCacheItem::psSkillCacheItem |
( |
unsigned int |
nameId | ) |
|
Constructs an empty cache item where nameId and skillId are both set to the nameId value.
This constructor is used on the client side and is followed be the read() function that reads the rest of values from the message entry.
Constructs the cache item with the given values.
This constructor is used on the server side.
psSkillCacheItem::~psSkillCacheItem |
( |
| ) |
|
unsigned short psSkillCacheItem::getActualStat |
( |
| ) |
const |
|
inline |
unsigned short psSkillCacheItem::getCategory |
( |
| ) |
const |
|
inline |
unsigned short psSkillCacheItem::getKnowledge |
( |
| ) |
const |
|
inline |
unsigned short psSkillCacheItem::getKnowledgeCost |
( |
| ) |
const |
|
inline |
unsigned short psSkillCacheItem::getPractice |
( |
| ) |
const |
|
inline |
unsigned short psSkillCacheItem::getPracticeCost |
( |
| ) |
const |
|
inline |
unsigned short psSkillCacheItem::getRank |
( |
| ) |
const |
|
inline |
int psSkillCacheItem::getSkillId |
( |
| ) |
const |
|
inline |
bool psSkillCacheItem::isModified |
( |
| ) |
const |
|
inline |
bool psSkillCacheItem::isRemoved |
( |
| ) |
const |
|
inline |
bool psSkillCacheItem::isStat |
( |
| ) |
const |
|
inline |
void psSkillCacheItem::read |
( |
MsgEntry * |
| ) |
|
Reads the cache item from the message entry and sets the modified state to true.
void psSkillCacheItem::setModified |
( |
bool |
modified | ) |
|
|
inline |
void psSkillCacheItem::setRemoved |
( |
bool |
value | ) |
|
|
inline |
unsigned short psSkillCacheItem::size |
( |
| ) |
const |
Calculates the number of bytes needed for the message entry.
The update() function updates the cache item and sets the modified state if needed.
Updates the cache item with values form another cache item.
void psSkillCacheItem::write |
( |
MsgEntry * |
| ) |
|
Writes the cache item to the message entry and changes the modified state to false.
The documentation for this class was generated from the following file: