summaryrefslogtreecommitdiff
path: root/doc/protocol_flow.dot
blob: f01286384c0daa5afa133041ef5f9fd970dc6458 (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
49
50
digraph G {
	node [shape = rect]
	
	Hello [color = red]
	Login [color = blue]
	LoginResponse [color = red]
	LobbyStatus [color = red]
	LobbyAction [color = blue]
	GameStart [color = red]
	GameResume [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 -> GameResume
	GameResume -> RoundState [constraint = false]
}