aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/Server/Character.scala
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-07 01:17:58 +0200
committerJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-07 01:17:58 +0200
commitfdaec6534eb7ee902c75be3e4b732b6970abd859 (patch)
treef323d11dc1a33a93ee44417a58df62ef5f9ad98a /src/main/scala/Server/Character.scala
parent12cbf4d451d1002b8872b0028acbe6bd886ca9bd (diff)
downloadscalevalapokalypsi-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.scala4
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