Games Messages Sequence/en

De Goffiwiki
Aller à : navigation, rechercher


Examples of the messages sequence during a room game initialization

Radiocol

test1 to room: <started><player index='0'>test1</player></started>
test1 to room: <started><player index='0'>test1</player><player index='1'>test3</player></started>
test1 to room: <started><player index='0'>test1</player><player index='1'>test3</player><player index='2'>test2</player></started>
test2 to test1: <song_added album='xxx' length='234.96' artist='yyy' filename='01.ogg' title='01'/>
test1 to room: <preload album='xxx' sender='test2' artist='yyy' timestamp='1389258392.3' title='01' filename='01.ogg' length='234.96'/>
test3 to test1: <song_added album='xxx' length='264.586666667' artist='yyy' filename='02.ogg' title='02'/>
test1 to room: <no_upload/>
test1 to room: <preload album='xxx' sender='test3' artist='yyy' timestamp='1389258404.11' title='02' filename='02.ogg' length='264.586666667'/>
test1 to room: <play filename='0adf44b5-ca23-41b1-8e80-fd607aba706e.ogg'/>
test1 to room: <upload_ok/>
test1 to test1: <song_added album='xxx' length='20.0' artist='yyy' filename='03.ogg' title='03'/>
test1 to room: <no_upload/>
test1 to room: <preload album='xxx' sender='test1' artist='yyy' timestamp='1389258428.92' title='03' filename='03.ogg' length='20.0'/>

Tarot

test1 to room: <players><player index='0'>test1</player></players>
test1 to room: <players><player index='0'>test1</player><player index='1'>test2</player></players>
test1 to room: <players><player index='0'>test1</player><player index='1'>test2</player><player index='2'>test3</player></players>
test1 to room: <started><player index='0'>test1</player><player index='1'>test2</player><player index='2'>test3</player><player index='3'>test4</player></started>
test3 to test1: <player_ready xmlns='http://www.goffi.org/protocol/card_game' player='test3'/>
test2 to test1: <player_ready xmlns='http://www.goffi.org/protocol/card_game' player='test2'/>
test1 to test1: <player_ready xmlns='http://www.goffi.org/protocol/card_game' player='test1'/>
test4 to test1: <player_ready xmlns='http://www.goffi.org/protocol/card_game' player='test4'/>
test1 to test1: <hand><card value='5' suit='atout'/><card value='cavalier' suit='trefle'/><card value='7' suit='atout'/><card value='1' suit='pique'/><card value='1' suit='coeur'/><card value='2' suit='carreau'/><card value='8' suit='carreau'/><card value='4' suit='trefle'/><card value='15' suit='atout'/><card value='cavalier' suit='coeur'/><card value='16' suit='atout'/><card value='10' suit='coeur'/><card value='6' suit='atout'/><card value='dame' suit='carreau'/><card value='roi' suit='carreau'/><card value='10' suit='pique'/><card value='19' suit='atout'/><card value='8' suit='pique'/></hand>
test1 to test2: <hand><card value='3' suit='pique'/><card value='7' suit='coeur'/><card value='roi' suit='pique'/><card value='3' suit='carreau'/><card value='roi' suit='coeur'/><card value='3' suit='coeur'/><card value='7' suit='carreau'/><card value='8' suit='coeur'/><card value='10' suit='atout'/><card value='6' suit='trefle'/><card value='4' suit='coeur'/><card value='8' suit='trefle'/><card value='7' suit='trefle'/><card value='21' suit='atout'/><card value='12' suit='atout'/><card value='9' suit='carreau'/><card value='9' suit='atout'/><card value='20' suit='atout'/></hand>
test1 to test3: <hand><card value='2' suit='trefle'/><card value='1' suit='trefle'/><card value='dame' suit='trefle'/><card value='8' suit='atout'/><card value='4' suit='carreau'/><card value='1' suit='carreau'/><card value='9' suit='trefle'/><card value='4' suit='pique'/><card value='excuse' suit='atout'/><card value='5' suit='pique'/><card value='3' suit='atout'/><card value='1' suit='atout'/><card value='6' suit='pique'/><card value='dame' suit='pique'/><card value='10' suit='carreau'/><card value='6' suit='carreau'/><card value='9' suit='coeur'/><card value='cavalier' suit='carreau'/></hand>
test1 to test4: <hand><card value='dame' suit='coeur'/><card value='valet' suit='coeur'/><card value='2' suit='atout'/><card value='14' suit='atout'/><card value='13' suit='atout'/><card value='6' suit='coeur'/><card value='valet' suit='carreau'/><card value='cavalier' suit='pique'/><card value='4' suit='atout'/><card value='5' suit='carreau'/><card value='9' suit='pique'/><card value='7' suit='pique'/><card value='17' suit='atout'/><card value='valet' suit='trefle'/><card value='3' suit='trefle'/><card value='2' suit='pique'/><card value='10' suit='trefle'/><card value='5' suit='trefle'/></hand>
test1 to test2: <contrat><x xmlns='jabber:x:data' type='form'><title>contrat selection</title><field var='contrat' type='list-single'><option><value>Passe</value></option><option><value>Petite</value></option><option><value>Garde</value></option><option><value>Garde Sans</value></option><option><value>Garde Contre</value></option><required/></field></x></contrat>
test2 to test1: <contrat_choosed player='test2'>Passe</contrat_choosed>
test1 to test3: <contrat><x xmlns='jabber:x:data' type='form'><title>contrat selection</title><field var='contrat' type='list-single'><option><value>Passe</value></option><option><value>Petite</value></option><option><value>Garde</value></option><option><value>Garde Sans</value></option><option><value>Garde Contre</value></option><required/></field></x></contrat>
test3 to test1: <contrat_choosed player='test3'>Passe</contrat_choosed>
test1 to test4: <contrat><x xmlns='jabber:x:data' type='form'><title>contrat selection</title><field var='contrat' type='list-single'><option><value>Passe</value></option><option><value>Petite</value></option><option><value>Garde</value></option><option><value>Garde Sans</value></option><option><value>Garde Contre</value></option><required/></field></x></contrat>
test4 to test1: <contrat_choosed player='test4'>Garde</contrat_choosed>
test1 to test1: <contrat><x xmlns='jabber:x:data' type='form'><title>contrat selection</title><field var='contrat' type='list-single'><option><value>Passe</value></option><option><value>Petite</value></option><option><value>Garde</value></option><option><value>Garde Sans</value></option><option><value>Garde Contre</value></option><required/></field></x></contrat>
test1 to test1: <contrat_choosed player='test1'>Passe</contrat_choosed>
test1 to room: <chien attaquant='test4'><card value='2' suit='coeur'/><card value='roi' suit='trefle'/><card value='5' suit='coeur'/><card value='11' suit='atout'/><card value='18' suit='atout'/><card value='valet' suit='pique'/></chien>
test4 to test1: <cards_played player='test4'><card value='2' suit='pique'/><card value='7' suit='pique'/><card value='9' suit='pique'/><card value='valet' suit='pique'/><card value='cavalier' suit='pique'/><card value='2' suit='coeur'/></cards_played>
test1 to test2: <your_turn xmlns='http://www.goffi.org/protocol/card_game'/>
test2 to test1: <cards_played player='test2'><card value='7' suit='trefle'/></cards_played>
test1 to room: <cards_played xmlns='http://www.goffi.org/protocol/card_game' player='test2'><card value='7' suit='trefle'/></cards_played>
test1 to test3: <your_turn xmlns='http://www.goffi.org/protocol/card_game'/>
test3 to test1: <cards_played player='test3'><card value='9' suit='trefle'/></cards_played>
test1 to room: <cards_played xmlns='http://www.goffi.org/protocol/card_game' player='test3'><card value='9' suit='trefle'/></cards_played>
test1 to test4: <your_turn xmlns='http://www.goffi.org/protocol/card_game'/>
test4 to test1: <cards_played player='test4'><card value='valet' suit='trefle'/></cards_played>
test1 to room: <cards_played xmlns='http://www.goffi.org/protocol/card_game' player='test4'><card value='valet' suit='trefle'/></cards_played>
test1 to test1: <your_turn xmlns='http://www.goffi.org/protocol/card_game'/>
test1 to test1: <cards_played player='test1'><card value='cavalier' suit='trefle'/></cards_played>
test1 to room: <cards_played xmlns='http://www.goffi.org/protocol/card_game' player='test1'><card value='cavalier' suit='trefle'/></cards_played>
test1 to test1: <your_turn xmlns='http://www.goffi.org/protocol/card_game'/>