aboutsummaryrefslogtreecommitdiff
path: root/src/scalevalapokalypsi/Model/Item.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/scalevalapokalypsi/Model/Item.scala')
-rw-r--r--src/scalevalapokalypsi/Model/Item.scala4
1 files changed, 3 insertions, 1 deletions
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