aboutsummaryrefslogtreecommitdiff
path: root/src/scalevalapokalypsi/constants
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-21 21:09:52 +0200
committerJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-21 21:09:52 +0200
commit607b43a84d3bc8edffa05c722c7b8c3e6f72e964 (patch)
tree8503eeb4822f11ca1f0f86ef17283aacb9a7a6e2 /src/scalevalapokalypsi/constants
parentfe2543627bcec1ea0f7a429bede20ca293458ba9 (diff)
downloadscalevalapokalypsi-607b43a84d3bc8edffa05c722c7b8c3e6f72e964.tar.gz
scalevalapokalypsi-607b43a84d3bc8edffa05c722c7b8c3e6f72e964.zip
Wooooohooo time limits and correcter printing
Diffstat (limited to 'src/scalevalapokalypsi/constants')
-rw-r--r--src/scalevalapokalypsi/constants/constants.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scalevalapokalypsi/constants/constants.scala b/src/scalevalapokalypsi/constants/constants.scala
index cb08962..7d4e1a6 100644
--- a/src/scalevalapokalypsi/constants/constants.scala
+++ b/src/scalevalapokalypsi/constants/constants.scala
@@ -9,12 +9,13 @@ val TURN_INDICATOR = ">"
val SING_INDICATOR = "~"
val ACTION_BLOCKING_INDICATOR='.'
val ACTION_NONBLOCKING_INDICATOR='+'
+val INITIAL_CONN_TIMEOUT = 5000 // millisec.
val LIST_SEPARATOR=";"
val PROTOCOL_VERSION_GOOD = "1"
val PROTOCOL_VERSION_BAD = "0"
-//assert(PROTOCOL_VERSION_BAD.length <= PROTOCOL_VERSION_GOOD.length)
+// assert(PROTOCOL_VERSION_BAD.length <= PROTOCOL_VERSION_GOOD.length)
enum ServerProtocolState:
case WaitingForVersion, WaitingForClientName, WaitingForGameStart, InGame