Browse Source

documentation cleanup: items

pull/2758/head
BC Ko 5 years ago committed by Anders Jenbo
parent
commit
589abe65d1
  1. 7
      Source/items.cpp
  2. 10
      Source/items.h

7
Source/items.cpp

@ -3084,10 +3084,6 @@ int GetGoldCursor(int value)
return ICURS_GOLD_MEDIUM;
}
/**
* @brief Update the gold cursor on the given gold item
* @param h The item to update
*/
void SetPlrHandGoldCurs(Item &gold)
{
gold._iCurs = GetGoldCursor(gold._ivalue);
@ -4947,9 +4943,6 @@ void Item::SetNewAnimation(bool showAnimation)
}
}
/**
* @brief Resets item get records.
*/
void initItemGetRecords()
{
memset(itemrecord, 0, sizeof(itemrecord));

10
Source/items.h

@ -415,11 +415,17 @@ void CalcPlrItemVals(Player &player, bool Loadgfx);
void CalcPlrInv(Player &player, bool Loadgfx);
void SetPlrHandItem(Item &item, int itemData);
void GetPlrHandSeed(Item *h);
/**
* @brief Set a new unique seed value on the given item
*/
void SetGoldSeed(Player &player, Item &gold);
int GetGoldCursor(int value);
/**
* @brief Update the gold cursor on the given gold item
* @param h The item to update
*/
void SetPlrHandGoldCurs(Item &gold);
void CreatePlrItems(int playerId);
bool ItemSpaceOk(Point position);
@ -471,6 +477,10 @@ void CreateMagicWeapon(Point position, int imisc, int icurs, bool sendmsg, bool
bool GetItemRecord(int nSeed, uint16_t wCI, int nIndex);
void SetItemRecord(int nSeed, uint16_t wCI, int nIndex);
void PutItemRecord(int nSeed, uint16_t wCI, int nIndex);
/**
* @brief Resets item get records.
*/
void initItemGetRecords();
#ifdef _DEBUG

Loading…
Cancel
Save