aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/Server/constants.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/Server/constants.scala')
-rw-r--r--src/main/scala/Server/constants.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/scala/Server/constants.scala b/src/main/scala/Server/constants.scala
index 4260a60..ddaab00 100644
--- a/src/main/scala/Server/constants.scala
+++ b/src/main/scala/Server/constants.scala
@@ -4,3 +4,10 @@ package o1game.constants
val MAX_MSG_SIZE = 1024 // bytes
val LF: Byte = 10
val POLL_INTERVAL = 100 // millisec.
+val GAME_VERSION = "0.1.0"
+
+val PROTOCOL_VERSION_GOOD = "version ok"
+val PROTOCOL_VERSION_BAD = "version bad"
+
+enum ServerProtocolState:
+ case WaitingForVersion, WaitingForClientName, WaitingForGameStart, InGame