diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-08 15:23:03 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-08 15:23:40 +0100 |
commit | 2b73fe37b292c22dbc823fe9a225dd2826cdff1d (patch) | |
tree | d3592a351c11ddc2e2b7addfb16b2cb06ac6a0d8 /doc | |
parent | b7ae9e12637d4cc681b3c9007c733de862494b0d (diff) |
Added protocol flow chart.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/protocol_flow.dot | 48 |
1 files changed, 48 insertions, 0 deletions
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 |