Skip to content

Commit

Permalink
finished creation of sequence diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
Timm Weber committed Mar 17, 2024
1 parent 873fb01 commit 5550b2c
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/secuence_diagrams/edit_profile.puml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@startuml
title Create Player Profile
title Edit Player Profile

actor Player
database System
Expand Down
15 changes: 15 additions & 0 deletions docs/secuence_diagrams/host_game.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@startuml
title Host Game

actor Player as p
database System

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

@enduml
21 changes: 21 additions & 0 deletions docs/secuence_diagrams/join_game.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@startuml
title Join Game

actor Player as p
database System
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
s->s: Wait for other Player to get ready

@enduml
17 changes: 17 additions & 0 deletions docs/secuence_diagrams/leave_game.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@startuml
title Leave Game

actor Player as p
database System
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
s->p2: You have won
s->p2: Close Connection
s->s: Terminate

@enduml
3 changes: 0 additions & 3 deletions docs/secuence_diagrams/play_vs_ai.puml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@ System->p: Show AI is ready
p->System: Click Ready Button
p->System: Click Start Game Button
System->p: Show Playfield
p->p: Play Game
System->System: Process Game
a->a: Play Game

@enduml
17 changes: 17 additions & 0 deletions docs/secuence_diagrams/send_chat.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@startuml
title Send Chat Message

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

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

@enduml

0 comments on commit 5550b2c

Please sign in to comment.