split diagram

This commit is contained in:
2021-03-12 07:00:08 +01:00
parent c6e8cc7d29
commit 65fa2e2dab

View File

@@ -6,22 +6,44 @@ Trying to rebuild [https://github.com/foin137/werwolfonline.eu](https://github.c
## Phases of the game ## Phases of the game
```plantuml ```plantuml
@startuml @startuml(id=overview)
state WaitingForPlayers <<fork>>
[*] --> WaitingForPlayers: Created [*] --> WaitingForPlayers: Created
WaitingForPlayers : Show the game id/link WaitingForPlayers --> GameMaster: Creator
WaitingForPlayers : Create game in Database WaitingForPlayers --> Player: Player
WaitingForPlayers : Allow setting of rules
WaitingForPlayers --> StartGame: len(Players)>=len(special roles) && start && num_werewolfes > 1 GameMaster : Show the game id/link
WaitingForPlayers --> WaitingForPlayers: start && (len(Players)<len(special roles) || num_werewolfes < 1) WaitingForPlayers : Create game in Database
EditRules -> GameMaster: close Rules
GameMaster -> EditRules: edit rules
state WaitingForPlayersEnd <<join>>
Player --> WaitingForPlayersEnd: Ready
GameMaster --> GameMaster: start &&\nlen(Players)>=len(special roles) &&\nnum_werewolfes > 1
GameMaster --> WaitingForPlayersEnd: start &&\n(len(Players)<len(special roles) ||\n num_werewolfes < 1)
WaitingForPlayersEnd --> StartGame
StartGame : Assign Player Roles StartGame : Assign Player Roles
StartGame : Show Introduction StartGame : Show Introduction
state GameHasCupin <<choice>> state GameHasCupin <<choice>>
state NightPhaseCupin <<fork>> state NightPhaseCupin <<fork>>
StartGame --> GameHasCupin : all ready
GameHasCupin --> NightPhaseCupin: Game has Cupin
GameHasCupin --> NightPhaseMain: no Cupin StartGame --> MainPhase : all ready
state MainPhase {
!include https://gitea.d1v3.de/matthias/pywerewolf/raw/branch/master/README.md!DayAndNight
}
@enduml
```
```plantuml
@startuml(id=DayAndNight)
state NightPhaseCupin <<fork>>
[*] --> NightPhaseCupin: Game has Cupin
[*] --> NightPhaseMain: no Cupin
NightPhaseMain : Werewolfes awake & select (vote) their victim NightPhaseMain : Werewolfes awake & select (vote) their victim
NightPhaseMain : Seer/Spy/Protector/ParanormalInvestigator awaken & access feat NightPhaseMain : Seer/Spy/Protector/ParanormalInvestigator awaken & access feat
NightPhaseMain : sleep & confirm NightPhaseMain : sleep & confirm