20 #ifndef PS_SKILL_CACHE_H 21 #define PS_SKILL_CACHE_H 23 #include <csutil/list.h> 24 #include <csutil/csstring.h> 85 void update(
unsigned short R,
100 unsigned short size()
const;
117 void setRemoved(
bool value) {removed = value; modified =
true; }
123 unsigned short getRank()
const {
return rank; }
138 unsigned short actualStat;
139 unsigned short knowledge;
140 unsigned short practice;
141 unsigned short knowledgeCost;
142 unsigned short practiceCost;
143 unsigned short category;
217 void setProgressionPoints(
unsigned int points);
220 void setNew(
bool value) { newList = value; }
221 bool isNew()
const {
return newList; }
226 unsigned short size()
const;
231 unsigned short count()
const;
250 csString ToString()
const;
253 csList<psSkillCacheItem *> skillCache;
256 unsigned int progressionPoints;
void write(MsgEntry *)
Writes the cache item to the message entry and changes the modified state to false.
Oper
Operations with this skill item:
psSkillCacheItem item is one stat or skill in the skill cache.
unsigned short getRank() const
The structure of 1 queue entry (pointer to a message)
psSkillCacheIter iterBegin()
unsigned short getPracticeCost() const
unsigned int getProgressionPoints() const
The psSkillCache class implements the skill cache both on the server and on the client.
The item is updated or added.
The item should be removed from the list.
void setModified(bool modified)
unsigned short getCategory() const
unsigned short getKnowledge() const
csList< psSkillCacheItem * >::Iterator psSkillCacheIter
Skill cache iterator.
unsigned short getPractice() const
void setRemoved(bool value)
unsigned short getKnowledgeCost() const
unsigned short size() const
Calculates the number of bytes needed for the message entry.
psSkillCacheItem(psSkillCacheItem *item)
Constructs the cache item using values from another cache item.
void read(MsgEntry *)
Reads the cache item from the message entry and sets the modified state to true.
unsigned short getActualStat() const
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.
unsigned int getNameId() const