From 0d32e0d3342ef2455014c8e1164977c816763317 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 21 Nov 2023 16:26:34 -0500 Subject: Added rudimentary item creation --- src/item.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/item.cc') 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) { -- cgit v1.2.3