{"action":"created","issue":{"url":"https://api.github.com/repos/ProjectWarbot/Warbot/issues/35","labels_url":"https://api.github.com/repos/ProjectWarbot/Warbot/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/ProjectWarbot/Warbot/issues/35/comments","events_url":"https://api.github.com/repos/ProjectWarbot/Warbot/issues/35/events","html_url":"https://github.com/ProjectWarbot/Warbot/issues/35","id":121293838,"number":35,"title":"Messages en trop ou en moins","user":{"login":"DocThomus","id":4174468,"avatar_url":"https://avatars.githubusercontent.com/u/4174468?v=3","gravatar_id":"","url":"https://api.github.com/users/DocThomus","html_url":"https://github.com/DocThomus","followers_url":"https://api.github.com/users/DocThomus/followers","following_url":"https://api.github.com/users/DocThomus/following{/other_user}","gists_url":"https://api.github.com/users/DocThomus/gists{/gist_id}","starred_url":"https://api.github.com/users/DocThomus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DocThomus/subscriptions","organizations_url":"https://api.github.com/users/DocThomus/orgs","repos_url":"https://api.github.com/users/DocThomus/repos","events_url":"https://api.github.com/users/DocThomus/events{/privacy}","received_events_url":"https://api.github.com/users/DocThomus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ProjectWarbot/Warbot/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-09T17:08:18Z","updated_at":"2015-12-11T09:10:20Z","closed_at":null,"body":"Voici un petit bout de code en java, c'est l'action d'une base : \r\n\r\n        String idMessagesRecus = \"\";\r\n    \t\r\n    \tthis.broadcastMessageToAgentType(WarAgentType.WarBase, \"test\", \"\");\r\n    \t\r\n    \tList<WarMessage> boiteAuxLettres = getMessages();\r\n    \t\r\n    \tfor (WarMessage message : boiteAuxLettres) {\r\n    \t\tif(message.getMessage() == \"test\") {\r\n    \t\t\tidMessagesRecus += message.getSenderID() + \";\";\r\n    \t\t}\r\n    \t}\r\n    \t\r\n    \tthis.setDebugString(\"\" + idMessagesRecus);\r\n    \t\r\n        return WarBase.ACTION_IDLE;\r\n\r\n\r\nQuand on ne sélectionne qu'une seule base au démarrage, 0 message sont reçus. Normal vu qu'aucune autre base ne lui en envoie.\r\n\r\nMaintenant, démarrez une nouvelle partie avec 2 bases dans chaque camp, et là, la magie opère. Chaque base reçoit 0,1, ou même 2 messages. Et dans ce dernier cas, l'autre base ne reçoit rien, et le message est doublé.\r\n\r\nC'est magique."},"comment":{"url":"https://api.github.com/repos/ProjectWarbot/Warbot/issues/comments/163881941","html_url":"https://github.com/ProjectWarbot/Warbot/issues/35#issuecomment-163881941","issue_url":"https://api.github.com/repos/ProjectWarbot/Warbot/issues/35","id":163881941,"user":{"login":"DocThomus","id":4174468,"avatar_url":"https://avatars.githubusercontent.com/u/4174468?v=3","gravatar_id":"","url":"https://api.github.com/users/DocThomus","html_url":"https://github.com/DocThomus","followers_url":"https://api.github.com/users/DocThomus/followers","following_url":"https://api.github.com/users/DocThomus/following{/other_user}","gists_url":"https://api.github.com/users/DocThomus/gists{/gist_id}","starred_url":"https://api.github.com/users/DocThomus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DocThomus/subscriptions","organizations_url":"https://api.github.com/users/DocThomus/orgs","repos_url":"https://api.github.com/users/DocThomus/repos","events_url":"https://api.github.com/users/DocThomus/events{/privacy}","received_events_url":"https://api.github.com/users/DocThomus/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T09:10:20Z","updated_at":"2015-12-11T09:10:20Z","body":"Même erreur pour broadcastMessageToAll(...)."}}