From eeb83ca379e7f4ab1a86596b80e206df48371454 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Fri, 15 Nov 2024 16:45:09 +0200 Subject: Added observations for Players in model & implemented sending them to other clients --- src/main/scala/Model/Area.scala | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/scala/Model/Area.scala') diff --git a/src/main/scala/Model/Area.scala b/src/main/scala/Model/Area.scala index ae1c98e..5a8de2a 100644 --- a/src/main/scala/Model/Area.scala +++ b/src/main/scala/Model/Area.scala @@ -23,6 +23,7 @@ class Area(val name: String, var description: String): def getNeighborNames: Iterable[String] = this.neighbors.keys def getItemNames: Iterable[String] = this.items.keys def getEntityNames: Iterable[String] = this.entities.keys + def getEntities: Iterable[Entity] = this.entities.values /** Tells whether this area has a neighbor in the given direction. * -- cgit v1.2.3