diff options
Diffstat (limited to 'src/scalevalapokalypsi/Model/Action.scala')
-rw-r--r-- | src/scalevalapokalypsi/Model/Action.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scalevalapokalypsi/Model/Action.scala b/src/scalevalapokalypsi/Model/Action.scala index 32f513d..e59d5f1 100644 --- a/src/scalevalapokalypsi/Model/Action.scala +++ b/src/scalevalapokalypsi/Model/Action.scala @@ -1,5 +1,7 @@ package scalevalapokalypsi.Model +import scalevalapokalypsi.Model.Entities.* + /** The class `Action` represents actions that a player may take in a text adventure game. * `Action` objects are constructed on the basis of textual commands and are, in effect, * parsers for such commands. An action object is immutable after creation. @@ -50,8 +52,6 @@ class Action(input: String): ) case other => None -// println(resOption) -// println(actor.location.getEntities) resOption.map(_(1)).filter(_.length > 0) .foreach(s => actor.location.getEntities.filter(_ != actor).foreach(_.observe(s)) |