removed player states from main statemachine
This commit is contained in:
16
README.md
16
README.md
@@ -9,24 +9,12 @@ Trying to rebuild [https://github.com/foin137/werwolfonline.eu](https://github.c
|
||||
@startuml(id=overview)
|
||||
hide empty description
|
||||
|
||||
state WaitingForPlayers <<fork>>
|
||||
state WaitingForPlayers
|
||||
[*] --> 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
|
||||
|
||||
|
||||
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
|
||||
WaitingForPlayersEnd --> StartGame: Start && ready
|
||||
StartGame : Assign Player Roles
|
||||
StartGame : Show Introduction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user