aboutsummaryrefslogtreecommitdiff
path: root/src/item.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2023-11-21 16:26:34 -0500
committerYour Name <you@example.com>2023-11-21 16:26:34 -0500
commit0d32e0d3342ef2455014c8e1164977c816763317 (patch)
tree0e0a445332accf0eda8f23fe586f614844bee463 /src/item.cc
parent5678a600b7d1ec4e79724258dfefe45a49258ea3 (diff)
downloaddmtool-0d32e0d3342ef2455014c8e1164977c816763317.tar.gz
dmtool-0d32e0d3342ef2455014c8e1164977c816763317.tar.bz2
dmtool-0d32e0d3342ef2455014c8e1164977c816763317.zip
Added rudimentary item creation
Diffstat (limited to 'src/item.cc')
-rw-r--r--src/item.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/item.cc b/src/item.cc
index 24498db..cf55d4a 100644
--- a/src/item.cc
+++ b/src/item.cc
@@ -35,8 +35,12 @@ namespace entry {
int Item::getCost() const {return data->cost;}
+ void Item::setCost(int cost) {data->cost = cost;}
+
double Item::getWeight() const {return data->weight;}
+ void Item::setWeight(double weight) {data->weight = weight;}
+
string Item::getCostWeightText() const {
stringstream text;
if(getCost() >= 0) {