SpaceNLasers
MenuGod messages

Messages sent between the gamemaster and a menugod instance. More...

Messages sent between the gamemaster and a menugod instance.

Capabilities of this GameMaster

1 "capabilities": {
2  "gamemodes":["domination"],
3  "durations":[90.0, 120.0]
4 }

Start a game

duration is an index for the capabilities::durations array
1 "gamestart": {
2  "players": [
3  {"name":"Player1","color":"00FF00"},
4  {"name":"Player2","color":"FF0000"}
5  ],
6  "game": {"mode":"domination","duration":0}
7 }

Continuous information about current game state

1 "gameinfo":{
2  "scores":{
3  "score": {"type":"int","values":[200,182]},
4  "area": {"type":"bar","values":[0.3,0.25]}
5  },
6  "consoleoutput":{"blablabla"}
7 }

Abort a game

Warning
any menugod->gamemaster communication aborts!
1 "abort":0

The game is over. Use last \ref gamestart data as score

1 "gameover":0

protocol or state machine error

1 "error":"error text"