diff options
-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 |