diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-15 16:45:09 +0200 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-15 16:45:09 +0200 |
commit | eeb83ca379e7f4ab1a86596b80e206df48371454 (patch) | |
tree | 0f595308b7ba9077650e8a368b94ba75c5683c71 /src/main/scala/Model/Area.scala | |
parent | ea18a265a22ffc4c3f6ec3ca9d2f542552da9705 (diff) | |
download | scalevalapokalypsi-eeb83ca379e7f4ab1a86596b80e206df48371454.tar.gz scalevalapokalypsi-eeb83ca379e7f4ab1a86596b80e206df48371454.zip |
Added observations for Players in model & implemented sending them to other clients
Diffstat (limited to 'src/main/scala/Model/Area.scala')
-rw-r--r-- | src/main/scala/Model/Area.scala | 1 |
1 files changed, 1 insertions, 0 deletions
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. * |