summaryrefslogtreecommitdiff
path: root/doc/protocol_flow.dot
blob: dce9e9365f5b1f300233209a7f13dea1918a5e1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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]
}