aboutsummaryrefslogtreecommitdiff
path: root/src/scalevalapokalypsi/Model/Item.scala
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-17 14:19:58 +0200
committerJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-17 14:20:27 +0200
commit5060c66738898913ca880d83b0fdcd5be2e0b59d (patch)
treebd4ecd70ebb8cc0342bd0a29c91c5b27fed38fb6 /src/scalevalapokalypsi/Model/Item.scala
parent4de67b497e0e229fe4a42f66f833640b6e50fd5a (diff)
downloadscalevalapokalypsi-5060c66738898913ca880d83b0fdcd5be2e0b59d.tar.gz
scalevalapokalypsi-5060c66738898913ca880d83b0fdcd5be2e0b59d.zip
Small style fixes (mostly shortening comment lines written by others...)
Diffstat (limited to 'src/scalevalapokalypsi/Model/Item.scala')
-rw-r--r--src/scalevalapokalypsi/Model/Item.scala12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/scalevalapokalypsi/Model/Item.scala b/src/scalevalapokalypsi/Model/Item.scala
index 7979480..c1ebaa1 100644
--- a/src/scalevalapokalypsi/Model/Item.scala
+++ b/src/scalevalapokalypsi/Model/Item.scala
@@ -2,15 +2,13 @@ package scalevalapokalypsi.Model
import scala.annotation.targetName
-/** The class `Item` represents items in a text adventure game. Each item has a name
- * and a longer description. (In later versions of the adventure game, items may
- * have other features as well.)
- *
- * N.B. It is assumed, but not enforced by this class, that items have unique names.
- * That is, no two items in a game world have the same name.
+/** The class `Item` represents items in a text adventure game. Each item has a
+ * name and a longer description. (In later versions of the adventure game,
+ * items may have other features as well.)
*
* @param name the item’s name
- * @param description the item’s description */
+ * @param description the item’s description
+ */
class Item(val name: String, val description: String):
/** Returns a short textual representation of the item (its name, that is). */