Hello All,
Someone mentioned a problem with RFTS the other day that you
have to manually figure out the current turn type based on knowing the
rules.
This is probably not a major issue with RFTS, but I was
thinking other game rules may have different turn types that can't be
figured out based on simple arithmetic, or with rules not known to the
client (or just random!).
Anyway I was thinking that it would be fairly simple to add two
fields to fix the problem.
Hence my attached patch to the documentation.
Otherwise, we could add a new "turn id" message, but that seems
overkill. The turn name obviously needs to be defined by the ruleset.
Thoughts...
I can commit if people are happy with it, although I need to
send mithro a new ssh key first ;-)
Regards,
nash>From e6b95a27b798d316636c67dc4ce24c8c3387f43c Mon Sep 17 00:00:00 2001
From: Brett Nash <[EMAIL PROTECTED]>
Date: Wed, 9 Jul 2008 18:34:19 +1000
Subject: [PATCH] Add a turn and turnname field to the time remaining field.
---
protocol/protocol.xml | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/protocol/protocol.xml b/protocol/protocol.xml
index 7d95780..94b5296 100644
--- a/protocol/protocol.xml
+++ b/protocol/protocol.xml
@@ -1735,6 +1735,17 @@
<value id="0x5" name="EndOfTurnStarted">End of turn started.</value>
</values>
</enumeration>
+ <integer type="unsigned" size="32">
+ <name>turn</name>
+ <longname>Current Turn</longname>
+ <description>The current turn.</description>
+ </integer>
+ <string>
+ <name>turnname</name>
+ <longname>Turn Name</longname>
+ <description>The name of the current turn. May be
+ empty.</description>
+ </string>
</structure>
<note>
If the value is 0 then the end of turn has just started.
--
1.5.6
_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel