Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-09-20 16:30:45 +0000
committerStijn Buys <ingar@osirion.org>2010-09-20 16:30:45 +0000
commite40f70a3af1142e6c0c89c6ea2ee47b996495661 (patch)
treeba70a909b5066ad0e07e2f4eb8bc98684e4598e6 /src/core/inventory.h
parente8f7c4a06fce9e41fb23ffc42a566501a78210cb (diff)
corrected trading inconsistencies, improved trade window, initial slider widget
Diffstat (limited to 'src/core/inventory.h')
-rw-r--r--src/core/inventory.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/inventory.h b/src/core/inventory.h
index 805d943..7aaf299 100644
--- a/src/core/inventory.h
+++ b/src/core/inventory.h
@@ -66,13 +66,21 @@ public:
}
/**
- * @brief return the availableinventory capacity, in cubic meters
+ * @brief return the available inventory capacity, in cubic meters
*/
inline const float capacity_available() const {
return inventory_capacity - inventory_capacity_used;
}
/**
+ * @brief returns the number of units of an item that can be stored in this inventory
+ * @param credits number of player credits, limits the amount
+ * @param price price of a single unit
+ * @param volume volume of a single unit
+ */
+ const long max_amount(const long credits, const long price, const float volume) const;
+
+ /**
* @brief search the inventory for a specific item type
*/
Item *find(const Info *info) const;