From b11c02e8f1f4dea09847da999c2acb2f96df8a58 Mon Sep 17 00:00:00 2001 From: Aleksi Heikkila Date: Sat, 23 Nov 2024 21:48:32 +0200 Subject: Inventory, pickup loppuun, drop loppuun --- src/scalevalapokalypsi/Model/Item.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/scalevalapokalypsi/Model/Item.scala') diff --git a/src/scalevalapokalypsi/Model/Item.scala b/src/scalevalapokalypsi/Model/Item.scala index c1ebaa1..cccb489 100644 --- a/src/scalevalapokalypsi/Model/Item.scala +++ b/src/scalevalapokalypsi/Model/Item.scala @@ -9,10 +9,12 @@ import scala.annotation.targetName * @param name the item’s name * @param description the item’s description */ -class Item(val name: String, val description: String): +class Item(val name: String, val description: String, val weight: Int): /** Returns a short textual representation of the item (its name, that is). */ override def toString = this.name + + end Item -- cgit v1.2.3