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)
|
@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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user