diff options
author | Aleksi Heikkila <aleksi.e.heikkila@aalto.fi> | 2024-11-23 21:48:32 +0200 |
---|---|---|
committer | Aleksi Heikkila <aleksi.e.heikkila@aalto.fi> | 2024-11-23 21:48:32 +0200 |
commit | b11c02e8f1f4dea09847da999c2acb2f96df8a58 (patch) | |
tree | 9ded38857c98ec74a5917202afe0605ddf0310b3 /src/scalevalapokalypsi/Model/Item.scala | |
parent | fe2543627bcec1ea0f7a429bede20ca293458ba9 (diff) | |
download | scalevalapokalypsi-b11c02e8f1f4dea09847da999c2acb2f96df8a58.tar.gz scalevalapokalypsi-b11c02e8f1f4dea09847da999c2acb2f96df8a58.zip |
Inventory, pickup loppuun, drop loppuun
Diffstat (limited to 'src/scalevalapokalypsi/Model/Item.scala')
-rw-r--r-- | src/scalevalapokalypsi/Model/Item.scala | 4 |
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 |