aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/Model
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/Model')
-rw-r--r--src/main/scala/Model/Area.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/scala/Model/Area.scala b/src/main/scala/Model/Area.scala
index f5b5289..ae1c98e 100644
--- a/src/main/scala/Model/Area.scala
+++ b/src/main/scala/Model/Area.scala
@@ -20,6 +20,10 @@ class Area(val name: String, var description: String):
def neighbor(direction: String): Option[Area] =
this.neighbors.get(direction)
+ def getNeighborNames: Iterable[String] = this.neighbors.keys
+ def getItemNames: Iterable[String] = this.items.keys
+ def getEntityNames: Iterable[String] = this.entities.keys
+
/** Tells whether this area has a neighbor in the given direction.
*
* @param direction the direction to check