diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-07 01:17:58 +0200 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-07 01:17:58 +0200 |
commit | fdaec6534eb7ee902c75be3e4b732b6970abd859 (patch) | |
tree | f323d11dc1a33a93ee44417a58df62ef5f9ad98a /src/main/scala/Server/Character.scala | |
parent | 12cbf4d451d1002b8872b0028acbe6bd886ca9bd (diff) | |
download | scalevalapokalypsi-fdaec6534eb7ee902c75be3e4b732b6970abd859.tar.gz scalevalapokalypsi-fdaec6534eb7ee902c75be3e4b732b6970abd859.zip |
Made the server work with the adventure model
* The model was imported from the wrong version, so that needs to be fixed.
* The client side doesn't work at all right now. Use netcat for testing.
* There are inconveniences and bugs in the model (eg. it lists the player among entities)
* Players can just see each other, not interact in any way
But it's a good base.
Diffstat (limited to 'src/main/scala/Server/Character.scala')
-rw-r--r-- | src/main/scala/Server/Character.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/Server/Character.scala b/src/main/scala/Server/Character.scala index 082f152..174b7b0 100644 --- a/src/main/scala/Server/Character.scala +++ b/src/main/scala/Server/Character.scala @@ -2,6 +2,6 @@ package o1game.Server import scala.collection.mutable.Buffer -class GameCharacter(val name: String, initialItems: Iterable[String]): - private val items: Buffer[String] = Buffer.from(items) // TODO: Item class +class GameCharacter(val name: String): + private val items: Buffer[String] = Buffer.empty // TODO: Item class // TODO: A lot of other things too |