summaryrefslogtreecommitdiff
path: root/src/playerinfo.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-08-01 22:05:46 -0600
committerJared Adams <jaxad0127@gmail.com>2010-08-01 22:45:31 -0600
commitcec8045dcdad05d76141d4e27c8c9e72696ce7dc (patch)
tree0c7cded281b0ff01b2f0f0d74f44fc88e2622533 /src/playerinfo.h
parenta3e61c0e830c46b51c0d135962ad361c02b93243 (diff)
downloadmana-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.tar.gz
mana-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.tar.bz2
mana-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.tar.xz
mana-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.zip
Remove isActive methods from NPC dialogs and InventoryWindow
Uses counts in PlayerInfo instead. Reviewed-by: Chuck Miller
Diffstat (limited to 'src/playerinfo.h')
-rw-r--r--src/playerinfo.h42
1 files changed, 37 insertions, 5 deletions
diff --git a/src/playerinfo.h b/src/playerinfo.h
index fabce6ea..43e7da6e 100644
--- a/src/playerinfo.h
+++ b/src/playerinfo.h
@@ -149,7 +149,7 @@ namespace PlayerInfo
*/
void setStatExperience(int id, int have, int need, bool notify = true);
-// --- Inventory / Equipment --------------------------------------------------
+// --- Inventory / Equipment / Storage ----------------------------------------
/**
* Returns the player's inventory.
@@ -176,17 +176,49 @@ namespace PlayerInfo
*/
Item *getEquipment(unsigned int slot);
+ /**
+ * Returns the number of currently open storage windows.
+ */
+ int getStorageCount();
+
+ /**
+ * Sets the number of currently open storage windows.
+ */
+ void setStorageCount(int count);
+
+// -- NPC ---------------------------------------------------------------------
+
+ /**
+ * Returns the number of currently open NPC interaction windows.
+ */
+ int getNPCInteractionCount();
+
+ /**
+ * Sets the number of currently open NPC interaction windows.
+ */
+ void setNPCInteractionCount(int count);
+
+ /**
+ * Returns the number of currently open NPC post windows.
+ */
+ int getNPCPostCount();
+
+ /**
+ * Sets the number of currently open NPC post windows.
+ */
+ void setNPCPostCount(int count);
+
// -- Buy/Sell/Trade ----------------------------------------------------------
/**
- * Returns true if the player is involved in a buy, sell, or related
- * interaction, false otherwise.
+ * Returns the current buy, sell, or related interaction the player is
+ * involved in.
*/
BuySellState getBuySellState();
/**
- * Sets whether the player is currently involved in a buy, sell, or related
- * interaction.
+ * Sets which buy, sell, or related interaction the player is currently
+ * involved in.
*/
void setBuySellState(BuySellState buySellState);