-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGUIDiagram.puml
81 lines (67 loc) · 1.71 KB
/
GUIDiagram.puml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
@startuml s
class ClientMainGUI {
- client: Client
- gameScreen: GameScreen
- lobbyScreen: LobbyScreen
- loginScreen: LoginScreen
}
class GameScreen {
- gameScreenCallbacksHandler: GameScreenCallbacksHandler
- moveButton: Button
- boardPane: BoardPane
+ drawBoard()
}
class LobbyScreen {
- lobbyScreenCallbacksHandler: LobbyScreenCallbacksHandler
- startGameButton: Button
- leaveLobbyButton: Button
- changePlayerCount: Button
- playerCount: Label
}
class LoginScreen {
- loginScreenCallbacksHandler: LoginScreenCallbacksHandler
- loginButton: Button
- usernameField: TextField
- addressField: TextField
- portField: TextField
}
class BoardPane {
- boardDrawingTool: BoardDrawingTool
- nodeRepresentations: List<NodeRepresentation>
+ drawBoard()
}
class BoardDrawingTool {
- nodeRepresentation: NodeRepresentation
}
class NodeRepresentation {
- node: Node
- pos: Coordinate
- radius: int
- color: Color
}
class GameScreenCallbacksHandler {
- onMoveMade()
- onTurnChange()
}
class LobbyScreenCallbacksHandler {
- onStartGame()
- onLeaveLobby()
- onChangePlayerCount()
}
class LoginScreenCallbacksHandler {
- onLogin()
}
ClientMainGUI --> GameScreen
ClientMainGUI --> LobbyScreen
ClientMainGUI --> LoginScreen
ClientMainGUI --> GameScreenCallbacksHandler
GameScreen --> GameScreenCallbacksHandler
ClientMainGUI --> LobbyScreenCallbacksHandler
LobbyScreen --> LobbyScreenCallbacksHandler
ClientMainGUI --> LoginScreenCallbacksHandler
LoginScreen --> LoginScreenCallbacksHandler
GameScreen --> BoardPane
BoardPane --> BoardDrawingTool
BoardPane --> NodeRepresentation
BoardDrawingTool --> NodeRepresentation
@enduml