From 2b73fe37b292c22dbc823fe9a225dd2826cdff1d Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Mon, 8 Nov 2010 15:23:03 +0100 Subject: Added protocol flow chart. --- doc/protocol_flow.dot | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 doc/protocol_flow.dot (limited to 'doc') diff --git a/doc/protocol_flow.dot b/doc/protocol_flow.dot new file mode 100644 index 0000000..dce9e93 --- /dev/null +++ b/doc/protocol_flow.dot @@ -0,0 +1,48 @@ +digraph G { + node [shape = rect] + + Hello [color = red] + Login [color = blue] + LoginResponse [color = red] + LobbyStatus [color = red] + LobbyAction [color = blue] + GameStart [color = red] + Ready [color = blue] + RoundStart [color = red] + RoundState [color = red] + RoundAction [color = blue] + RoundEnd [color = red] + GameEnd [color = red] + + Hello -> Login + Login -> LoginResponse + + LoginResponse -> Login + LoginResponse -> LobbyStatus + + LobbyStatus -> LobbyStatus + LobbyStatus -> LobbyAction + LobbyAction -> LobbyAction + LobbyAction -> LobbyStatus + + LobbyStatus -> GameStart + LobbyAction -> GameStart + + GameStart -> Ready + Ready -> RoundStart + + RoundStart -> RoundState + + RoundState -> RoundState + RoundState -> RoundAction + RoundAction -> RoundState + + RoundState -> RoundEnd + + RoundEnd -> Ready + RoundEnd -> GameEnd + + GameEnd -> LobbyStatus + + LoginResponse -> GameStart [color = green, style = dashed, constraint = false] +} \ No newline at end of file -- cgit v1.2.3