Skip to content

Commit

Permalink
Docs(sequence_diagrams): Renamed Server to Client to fit language in …
Browse files Browse the repository at this point in the history
…other docs
  • Loading branch information
Petzys committed Mar 18, 2024
1 parent c81a78d commit 9403574
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 70 deletions.
16 changes: 8 additions & 8 deletions docs/sequence_diagrams/create_profile.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
title Create Player Profile

actor Player
database System
database Client

Player->System: Click Profile Button
System->Player: Show Profile Creation Prompt
Player->System: Set Name
Player->System: Set Color
Player->System: Click Create Profile Button
System->System: Save Profile on Disk
System->Player: Show Profile
Player->Client: Click Profile Button
Client->Player: Show Profile Creation Prompt
Player->Client: Set Name
Player->Client: Set Color
Player->Client: Click Create Profile Button
Client->Client: Save Profile on Disk
Client->Player: Show Profile

@enduml
12 changes: 6 additions & 6 deletions docs/sequence_diagrams/delete_profile.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title Delete Player Profile

actor Player
database System
database Client

Player->System: Click Profile Button
System->Player: Show Profile
Player->System: Click Delete Profile Button
System->System: Delete Profile from Disk
System->Player: Show Profile Creation Prompt
Player->Client: Click Profile Button
Client->Player: Show Profile
Player->Client: Click Delete Profile Button
Client->Client: Delete Profile from Disk
Client->Player: Show Profile Creation Prompt

@enduml
18 changes: 9 additions & 9 deletions docs/sequence_diagrams/edit_profile.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
title Edit Player Profile

actor Player
database System
database Client

Player->System: Click Profile Button
System->Player: Show Profile
Player->System: Click Edit Profile Button
Player->System: Change Name
Player->System: Change Color
Player->System: Click Edit Profile Button
System->System: Save Profile on Disk
System->Player: Show Profile
Player->Client: Click Profile Button
Client->Player: Show Profile
Player->Client: Click Edit Profile Button
Player->Client: Change Name
Player->Client: Change Color
Player->Client: Click Edit Profile Button
Client->Client: Save Profile on Disk
Client->Player: Show Profile

@enduml
16 changes: 8 additions & 8 deletions docs/sequence_diagrams/host_game.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
title Host Game

actor Player as p
database System
database Client

p->System: Click Multiplayer Button
System->p: Display Multiplayer Menu
p->System: Click Create a new online game Button
System->System: Host Server locally
System->p: Display Multiplayer Lobby
System->Network: Send advertisements
System->System: Wait for other players to join
p->Client: Click Multiplayer Button
Client->p: Display Multiplayer Menu
p->Client: Click Create a new online game Button
Client->Client: Host Server locally
Client->p: Display Multiplayer Lobby
Client->Network: Send advertisements
Client->Client: Wait for other players to join

@enduml
24 changes: 12 additions & 12 deletions docs/sequence_diagrams/join_game.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
title Join Game

actor Player as p
database System
database Client
database Server as s

p->System: Click Multiplayer Button
System->p: Display Multiplayer Menu
p->System: Click Join by address Button
System->p: Show IP-Address Input field
p->System: Enter IP-Address
p->System: Click Connect Button
System->s: Join Lobby
s->System: Send Server information
System->p: Display Game Lobby
p->System: Click Ready Button
System->s: Get Ready
p->Client: Click Multiplayer Button
Client->p: Display Multiplayer Menu
p->Client: Click Join by address Button
Client->p: Show IP-Address Input field
p->Client: Enter IP-Address
p->Client: Click Connect Button
Client->s: Join Lobby
s->Client: Send Server information
Client->p: Display Game Lobby
p->Client: Click Ready Button
Client->s: Get Ready
s->s: Wait for other Player to get ready

@enduml
10 changes: 5 additions & 5 deletions docs/sequence_diagrams/leave_game.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
title Leave Game

actor Player as p
database System
database Client
database Server as s
actor Player2 as p2

p->System: Click Menu Button
System->s: Player disconnected
System->s: Close connection
System->p: Show Main Menu
p->Client: Click Menu Button
Client->s: Player disconnected
Client->s: Close connection
Client->p: Show Main Menu
s->p2: You have won
s->p2: Close Connection
s->s: Terminate
Expand Down
26 changes: 13 additions & 13 deletions docs/sequence_diagrams/play_vs_ai.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
title Play versus AI

actor Player as p
database System
database Client
actor AI as a

p->System: Click Singleplayer Button
System->p: Display AI Difficulty Selection
p->System: Select AI Difficulty by clicking Strong or Weak AI Button
System->System: Host Server locally
System->p: Display Game Lobby
System->a: Create AI
a->System: Connect to Server
a->System: Get Ready
System->p: Show AI is ready
p->System: Click Ready Button
p->System: Click Start Game Button
System->p: Show Playfield
p->Client: Click Singleplayer Button
Client->p: Display AI Difficulty Selection
p->Client: Select AI Difficulty by clicking Strong or Weak AI Button
Client->Client: Host Server locally
Client->p: Display Game Lobby
Client->a: Create AI
a->Client: Connect to Server
a->Client: Get Ready
Client->p: Show AI is ready
p->Client: Click Ready Button
p->Client: Click Start Game Button
Client->p: Show Playfield

@enduml
12 changes: 6 additions & 6 deletions docs/sequence_diagrams/send_chat.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
title Send Chat Message

actor Player as p
database System
database Client
database Server as s
actor Player2 as p2

p->System: Click on the message entry box
p->Client: Click on the message entry box
p->p: Enter message
p->System: Click Send Button
System->s: Send chat message
p->Client: Click Send Button
Client->s: Send chat message
s->p2: Send chat message
s-> System: Send chat message
System->p: Display chat message
s-> Client: Send chat message
Client->p: Display chat message

@enduml
6 changes: 3 additions & 3 deletions docs/sequence_diagrams/view_profile.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title View Player Profile

actor Player
database System
database Client

Player->System: Click Profile Button
System->Player: Show Profile
Player->Client: Click Profile Button
Client->Player: Show Profile

@enduml

0 comments on commit 9403574

Please sign in to comment.