From 607b43a84d3bc8edffa05c722c7b8c3e6f72e964 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Thu, 21 Nov 2024 21:09:52 +0200 Subject: Wooooohooo time limits and correcter printing --- src/scalevalapokalypsi/constants/constants.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/scalevalapokalypsi/constants/constants.scala') 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 -- cgit v1.2.3