100 void setAttribute(
int id,
int value,
bool notify =
true);
112 void setStatBase(
int id,
int value,
bool notify =
true);
122 void setStatMod(
int id,
int value,
bool notify =
true);
Represents one or more instances of a certain item type.
A database like namespace which holds global info about the localplayer.
int getStatBase(int id)
Returns the base value of the given stat.
Inventory * getInventory()
Returns the player's inventory.
int getStatEffective(int id)
Returns the current effective value of the given stat.
int getStorageCount()
Returns the number of currently open storage windows.
void setStatLevel(int id, int value, bool notify=true)
Changes the level of the given stat.
void setBackend(const PlayerInfoBackend &backend)
Changes the internal PlayerInfoBackend reference;.
const std::map< int, Ability > & getAbilityStatus()
Returns the status all abilities.
void setBuySellState(BuySellState buySellState)
Sets which buy, sell, or related interaction the player is currently involved in.
void setNPCInteractionCount(int count)
Sets the number of currently open NPC interaction windows.
Equipment * getEquipment()
Returns the player's equipment.
void logic()
Does necessary updates every tick.
bool isTalking()
Returns true if the player is involved in a NPC interaction, false otherwise.
void setNPCPostCount(int count)
Sets the number of currently open NPC post windows.
void init()
Initializes some internals.
void setStatExperience(int id, int have, int need, bool notify)
Changes the experience of the given stat.
void setAbilityStatus(int id, int current, int max, int recharge)
Changes the status of the given ability.
void setStatBase(int id, int value, bool notify)
Changes the base value of the given stat.
BuySellState getBuySellState()
Returns the current buy, sell, or related interaction the player is involved in.
void setAttribute(int id, int value, bool notify)
Changes the value of the given attribute.
void clearInventory()
Clears the player's inventory and equipment.
void clearAbilityStatus(int id)
Removes the status for the given ability.
int getNPCPostCount()
Returns the number of currently open NPC post windows.
int getAttribute(int id)
Returns the value of the given attribute.
void setStorageCount(int count)
Sets the number of currently open storage windows.
int getStatMod(int id)
Returns the modifier for the given stat.
void setInventoryItem(int index, int id, int amount)
Changes the inventory item at the given slot.
std::pair< int, int > getStatExperience(int id)
Returns the experience of the given stat.
void setStatMod(int id, int value, bool notify)
Changes the modifier for the given stat.
int getNPCInteractionCount()
Returns the number of currently open NPC interaction windows.
Attribute
Standard attributes for players.
Ability information storage structure.
Backend for core player information.
std::map< int, Stat > mStats
std::map< int, int > mAttributes
Stat information storage structure.