diff options
Diffstat (limited to 'src/item.cc')
-rw-r--r-- | src/item.cc | 4 |
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) { |