aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/Server/constants.scala
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-17 13:45:44 +0200
committerJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-17 13:45:44 +0200
commit4de67b497e0e229fe4a42f66f833640b6e50fd5a (patch)
tree34fb5b0e776f7cd3adcb4556f4d6a7c8ad66de39 /src/main/scala/Server/constants.scala
parent8595e892abc0e0554f589ed2eb88c351a347fbd4 (diff)
downloadscalevalapokalypsi-4de67b497e0e229fe4a42f66f833640b6e50fd5a.tar.gz
scalevalapokalypsi-4de67b497e0e229fe4a42f66f833640b6e50fd5a.zip
Moved the project to an IDEA project & wrote part of README.txt
Diffstat (limited to 'src/main/scala/Server/constants.scala')
-rw-r--r--src/main/scala/Server/constants.scala19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/main/scala/Server/constants.scala b/src/main/scala/Server/constants.scala
deleted file mode 100644
index 083db4e..0000000
--- a/src/main/scala/Server/constants.scala
+++ /dev/null
@@ -1,19 +0,0 @@
-
-package o1game.constants
-
-val MAX_MSG_SIZE = 1024 // bytes
-val CRLF: Vector[Byte] = Vector(13.toByte, 10.toByte)
-val POLL_INTERVAL = 100 // millisec.
-val GAME_VERSION = "0.1.0"
-val TURN_INDICATOR = ">"
-val ACTION_BLOCKING_INDICATOR='.'
-val ACTION_NONBLOCKING_INDICATOR='+'
-
-val LIST_SEPARATOR=";"
-
-val PROTOCOL_VERSION_GOOD = "1"
-val PROTOCOL_VERSION_BAD = "0"
-//assert(PROTOCOL_VERSION_BAD.length <= PROTOCOL_VERSION_GOOD.length)
-
-enum ServerProtocolState:
- case WaitingForVersion, WaitingForClientName, WaitingForGameStart, InGame