removed player states from main statemachine

This commit is contained in:
2021-03-14 08:55:47 +01:00
parent 0daa47f004
commit 14deef683b

View File

@@ -9,24 +9,12 @@ Trying to rebuild [https://github.com/foin137/werwolfonline.eu](https://github.c
@startuml(id=overview) @startuml(id=overview)
hide empty description hide empty description
state WaitingForPlayers <<fork>> state WaitingForPlayers
[*] --> WaitingForPlayers: Created [*] --> WaitingForPlayers: Created
WaitingForPlayers --> GameMaster: Creator
WaitingForPlayers --> Player: Player
GameMaster : Show the game id/link
WaitingForPlayers : Create game in Database
EditRules -> GameMaster: close Rules
GameMaster -> EditRules: edit rules
state WaitingForPlayersEnd <<join>>
Player --> WaitingForPlayersEnd: Ready Player --> WaitingForPlayersEnd: Ready
WaitingForPlayersEnd --> StartGame: Start && 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