-
Notifications
You must be signed in to change notification settings - Fork 2
RoundCompleteMessage, GameOverMessage
mkoengeter edited this page Feb 11, 2014
·
4 revisions
The RoundCompleteMessage is being sent after all players made their choice. It contains information about the winner of the round and about the cards which were already chosen by the other players. The GameOverMessage is sent after the last round has ended, it substitutes the last RoundCompleteMessage. Both messages are broadcasted via the multiuser chat room (MUC).
Public message from game service to all players:
<message id="WCCf1-61" to="mobilisninecards_v1#[email protected]" type="groupchat"> <body> <RoundCompleteMessage xmlns="http://mobilis.inf.tu-dresden.de/apps/9cards"> <round>3</round> <winner>mobilisninecards_v1#[email protected]/Ute</winner> <playerInfo> <id>mobilisninecards_v1#[email protected]/Herbert</id> <score>2</score> <usedcards>8</usedcards> <usedcards>6</usedcards> <usedcards>9</usedcards> </playerinfo> <playerInfo> <id>mobilisninecards_v1#[email protected]/Ute</id> <score>1</score> <usedcards>9</usedcards> <usedcards>1</usedcards> <usedcards>3</usedcards> </playerinfo> </roundcompletemessage> </body> </message>
Public message from game service to all players:
<message id="WCCf1-120" to="mobilisninecards_v1#[email protected]" type="groupchat"> <body> <GameOverMessage xmlns="http://mobilis.inf.tu-dresden.de/apps/9cards"> <winner>mobilisninecards_v1#[email protected]/Ute</winner> <score>6</score> <playerInfo> <id>mobilisninecards_v1#[email protected]/Herbert</id> <score>3</score> <usedcards>8</usedcards> <usedcards>6</usedcards> <usedcards>9</usedcards> <usedcards>5</usedcards> <usedcards>4</usedcards> <usedcards>7</usedcards> <usedcards>3</usedcards> <usedcards>2</usedcards> <usedcards>1</usedcards> </playerinfo> <playerInfo> <id>mobilisninecards_v1#[email protected]/Ute</id> <score>6</score> <usedcards>9</usedcards> <usedcards>1</usedcards> <usedcards>3</usedcards> <usedcards>6</usedcards> <usedcards>5</usedcards> <usedcards>8</usedcards> <usedcards>2</usedcards> <usedcards>4</usedcards> <usedcards>7</usedcards> </playerinfo> </gameovermessage> </body> </message>