aboutsummaryrefslogtreecommitdiff
path: root/src/scalevalapokalypsi/Model/Entities
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-17 14:31:45 +0200
committerJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-17 14:31:45 +0200
commita6b0330c845d4edad87c7059bac56e194a276c6f (patch)
tree912a897b01a9eec59c552752e053255cf2a041ff /src/scalevalapokalypsi/Model/Entities
parent5060c66738898913ca880d83b0fdcd5be2e0b59d (diff)
downloadscalevalapokalypsi-a6b0330c845d4edad87c7059bac56e194a276c6f.tar.gz
scalevalapokalypsi-a6b0330c845d4edad87c7059bac56e194a276c6f.zip
UTF-8 support & fixed hard coded 'Alice'
Diffstat (limited to 'src/scalevalapokalypsi/Model/Entities')
-rw-r--r--src/scalevalapokalypsi/Model/Entities/Entity.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scalevalapokalypsi/Model/Entities/Entity.scala b/src/scalevalapokalypsi/Model/Entities/Entity.scala
index ff5b320..b90a61a 100644
--- a/src/scalevalapokalypsi/Model/Entities/Entity.scala
+++ b/src/scalevalapokalypsi/Model/Entities/Entity.scala
@@ -61,7 +61,7 @@ class Entity(val name: String, initialLocation: Area):
)
def sayTo(entity: Entity, message: String): (String, String) =
- entity.observe(s"Alice: \"$message\"")
+ entity.observe(s"${this.name}: \"$message\"")
(s"You say so to ${entity.name}.", "")
def say(message: String): (String, String) =