{"action":"created","comment":{"url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/comments/85122277","pull_request_review_id":5855334,"id":85122277,"diff_hunk":"@@ -11,11 +13,12 @@ import java.util.concurrent.{BlockingQueue, LinkedBlockingQueue}\n class GameThread(scoreThread: ScoreThread, teamIDs: List[Int]) extends Runnable {\n   val MillisecondsPerTick = 16\n \n+  final val actionQueue = new LinkedBlockingQueue[ActionQueryWithId]()\n+  final val actionMap = new HashMap[Int, HashMap[Int, List[Action]]]()","path":"game/src/main/scala/io/aigar/game/GameThread.scala","position":16,"original_position":16,"commit_id":"a06f909f724930e398a0b2c22a47df1883f5198b","original_commit_id":"a06f909f724930e398a0b2c22a47df1883f5198b","user":{"login":"DrPandemic","id":3250155,"avatar_url":"https://avatars.githubusercontent.com/u/3250155?v=3","gravatar_id":"","url":"https://api.github.com/users/DrPandemic","html_url":"https://github.com/DrPandemic","followers_url":"https://api.github.com/users/DrPandemic/followers","following_url":"https://api.github.com/users/DrPandemic/following{/other_user}","gists_url":"https://api.github.com/users/DrPandemic/gists{/gist_id}","starred_url":"https://api.github.com/users/DrPandemic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrPandemic/subscriptions","organizations_url":"https://api.github.com/users/DrPandemic/orgs","repos_url":"https://api.github.com/users/DrPandemic/repos","events_url":"https://api.github.com/users/DrPandemic/events{/privacy}","received_events_url":"https://api.github.com/users/DrPandemic/received_events","type":"User","site_admin":false},"body":"Ill do both","created_at":"2016-10-26T13:32:56Z","updated_at":"2016-10-26T13:32:56Z","html_url":"https://github.com/DrPandemic/aigar.io/pull/185#discussion_r85122277","pull_request_url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/185","_links":{"self":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/comments/85122277"},"html":{"href":"https://github.com/DrPandemic/aigar.io/pull/185#discussion_r85122277"},"pull_request":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/185"}}},"pull_request":{"url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/185","id":90920222,"html_url":"https://github.com/DrPandemic/aigar.io/pull/185","diff_url":"https://github.com/DrPandemic/aigar.io/pull/185.diff","patch_url":"https://github.com/DrPandemic/aigar.io/pull/185.patch","issue_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues/185","number":185,"state":"open","locked":false,"title":"Dispatch actions","user":{"login":"DrPandemic","id":3250155,"avatar_url":"https://avatars.githubusercontent.com/u/3250155?v=3","gravatar_id":"","url":"https://api.github.com/users/DrPandemic","html_url":"https://github.com/DrPandemic","followers_url":"https://api.github.com/users/DrPandemic/followers","following_url":"https://api.github.com/users/DrPandemic/following{/other_user}","gists_url":"https://api.github.com/users/DrPandemic/gists{/gist_id}","starred_url":"https://api.github.com/users/DrPandemic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrPandemic/subscriptions","organizations_url":"https://api.github.com/users/DrPandemic/orgs","repos_url":"https://api.github.com/users/DrPandemic/repos","events_url":"https://api.github.com/users/DrPandemic/events{/privacy}","received_events_url":"https://api.github.com/users/DrPandemic/received_events","type":"User","site_admin":false},"body":"Part of https://github.com/DrPandemic/aigar.io/issues/133\r\n\r\nChanged the signature of `ActionQueryWithId`. I removed the `team_secret` from there. The game thread doesn't need it.\r\n\r\nI added `Map` to hold the action to be used. I'll do another PR that will pass those actions to the games to let them consume the actions. This PR will also apply new `target` to cells.","created_at":"2016-10-26T01:12:05Z","updated_at":"2016-10-26T13:32:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25a7dfe75e405d4d49c0854b1c60f032c5201fd7","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/DrPandemic/aigar.io/milestones/2","html_url":"https://github.com/DrPandemic/aigar.io/milestones/Multiplayer%20Game","labels_url":"https://api.github.com/repos/DrPandemic/aigar.io/milestones/2/labels","id":2072894,"number":2,"title":"Multiplayer Game","description":"Show multiple players on the screen\r\nManage multiple players in the backend\r\nManage the leaderboard on both front and backend","creator":{"login":"MicLamb","id":6540007,"avatar_url":"https://avatars.githubusercontent.com/u/6540007?v=3","gravatar_id":"","url":"https://api.github.com/users/MicLamb","html_url":"https://github.com/MicLamb","followers_url":"https://api.github.com/users/MicLamb/followers","following_url":"https://api.github.com/users/MicLamb/following{/other_user}","gists_url":"https://api.github.com/users/MicLamb/gists{/gist_id}","starred_url":"https://api.github.com/users/MicLamb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MicLamb/subscriptions","organizations_url":"https://api.github.com/users/MicLamb/orgs","repos_url":"https://api.github.com/users/MicLamb/repos","events_url":"https://api.github.com/users/MicLamb/events{/privacy}","received_events_url":"https://api.github.com/users/MicLamb/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":9,"state":"open","created_at":"2016-10-16T20:47:02Z","updated_at":"2016-10-26T01:12:06Z","due_on":"2016-11-11T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/185/commits","review_comments_url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/185/comments","review_comment_url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues/185/comments","statuses_url":"https://api.github.com/repos/DrPandemic/aigar.io/statuses/a06f909f724930e398a0b2c22a47df1883f5198b","head":{"label":"DrPandemic:dispatch-actions","ref":"dispatch-actions","sha":"a06f909f724930e398a0b2c22a47df1883f5198b","user":{"login":"DrPandemic","id":3250155,"avatar_url":"https://avatars.githubusercontent.com/u/3250155?v=3","gravatar_id":"","url":"https://api.github.com/users/DrPandemic","html_url":"https://github.com/DrPandemic","followers_url":"https://api.github.com/users/DrPandemic/followers","following_url":"https://api.github.com/users/DrPandemic/following{/other_user}","gists_url":"https://api.github.com/users/DrPandemic/gists{/gist_id}","starred_url":"https://api.github.com/users/DrPandemic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrPandemic/subscriptions","organizations_url":"https://api.github.com/users/DrPandemic/orgs","repos_url":"https://api.github.com/users/DrPandemic/repos","events_url":"https://api.github.com/users/DrPandemic/events{/privacy}","received_events_url":"https://api.github.com/users/DrPandemic/received_events","type":"User","site_admin":false},"repo":{"id":68840511,"name":"aigar.io","full_name":"DrPandemic/aigar.io","owner":{"login":"DrPandemic","id":3250155,"avatar_url":"https://avatars.githubusercontent.com/u/3250155?v=3","gravatar_id":"","url":"https://api.github.com/users/DrPandemic","html_url":"https://github.com/DrPandemic","followers_url":"https://api.github.com/users/DrPandemic/followers","following_url":"https://api.github.com/users/DrPandemic/following{/other_user}","gists_url":"https://api.github.com/users/DrPandemic/gists{/gist_id}","starred_url":"https://api.github.com/users/DrPandemic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrPandemic/subscriptions","organizations_url":"https://api.github.com/users/DrPandemic/orgs","repos_url":"https://api.github.com/users/DrPandemic/repos","events_url":"https://api.github.com/users/DrPandemic/events{/privacy}","received_events_url":"https://api.github.com/users/DrPandemic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DrPandemic/aigar.io","description":null,"fork":false,"url":"https://api.github.com/repos/DrPandemic/aigar.io","forks_url":"https://api.github.com/repos/DrPandemic/aigar.io/forks","keys_url":"https://api.github.com/repos/DrPandemic/aigar.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DrPandemic/aigar.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DrPandemic/aigar.io/teams","hooks_url":"https://api.github.com/repos/DrPandemic/aigar.io/hooks","issue_events_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues/events{/number}","events_url":"https://api.github.com/repos/DrPandemic/aigar.io/events","assignees_url":"https://api.github.com/repos/DrPandemic/aigar.io/assignees{/user}","branches_url":"https://api.github.com/repos/DrPandemic/aigar.io/branches{/branch}","tags_url":"https://api.github.com/repos/DrPandemic/aigar.io/tags","blobs_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DrPandemic/aigar.io/statuses/{sha}","languages_url":"https://api.github.com/repos/DrPandemic/aigar.io/languages","stargazers_url":"https://api.github.com/repos/DrPandemic/aigar.io/stargazers","contributors_url":"https://api.github.com/repos/DrPandemic/aigar.io/contributors","subscribers_url":"https://api.github.com/repos/DrPandemic/aigar.io/subscribers","subscription_url":"https://api.github.com/repos/DrPandemic/aigar.io/subscription","commits_url":"https://api.github.com/repos/DrPandemic/aigar.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/DrPandemic/aigar.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/DrPandemic/aigar.io/contents/{+path}","compare_url":"https://api.github.com/repos/DrPandemic/aigar.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DrPandemic/aigar.io/merges","archive_url":"https://api.github.com/repos/DrPandemic/aigar.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DrPandemic/aigar.io/downloads","issues_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues{/number}","pulls_url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls{/number}","milestones_url":"https://api.github.com/repos/DrPandemic/aigar.io/milestones{/number}","notifications_url":"https://api.github.com/repos/DrPandemic/aigar.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DrPandemic/aigar.io/labels{/name}","releases_url":"https://api.github.com/repos/DrPandemic/aigar.io/releases{/id}","deployments_url":"https://api.github.com/repos/DrPandemic/aigar.io/deployments","created_at":"2016-09-21T17:18:41Z","updated_at":"2016-10-22T06:44:00Z","pushed_at":"2016-10-26T13:32:56Z","git_url":"git://github.com/DrPandemic/aigar.io.git","ssh_url":"git@github.com:DrPandemic/aigar.io.git","clone_url":"https://github.com/DrPandemic/aigar.io.git","svn_url":"https://github.com/DrPandemic/aigar.io","homepage":null,"size":2939,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":30,"forks":0,"open_issues":30,"watchers":1,"default_branch":"master"}},"base":{"label":"DrPandemic:master","ref":"master","sha":"d1a6fd99fa88160f215bd2edbf3b4e2f09a5460d","user":{"login":"DrPandemic","id":3250155,"avatar_url":"https://avatars.githubusercontent.com/u/3250155?v=3","gravatar_id":"","url":"https://api.github.com/users/DrPandemic","html_url":"https://github.com/DrPandemic","followers_url":"https://api.github.com/users/DrPandemic/followers","following_url":"https://api.github.com/users/DrPandemic/following{/other_user}","gists_url":"https://api.github.com/users/DrPandemic/gists{/gist_id}","starred_url":"https://api.github.com/users/DrPandemic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrPandemic/subscriptions","organizations_url":"https://api.github.com/users/DrPandemic/orgs","repos_url":"https://api.github.com/users/DrPandemic/repos","events_url":"https://api.github.com/users/DrPandemic/events{/privacy}","received_events_url":"https://api.github.com/users/DrPandemic/received_events","type":"User","site_admin":false},"repo":{"id":68840511,"name":"aigar.io","full_name":"DrPandemic/aigar.io","owner":{"login":"DrPandemic","id":3250155,"avatar_url":"https://avatars.githubusercontent.com/u/3250155?v=3","gravatar_id":"","url":"https://api.github.com/users/DrPandemic","html_url":"https://github.com/DrPandemic","followers_url":"https://api.github.com/users/DrPandemic/followers","following_url":"https://api.github.com/users/DrPandemic/following{/other_user}","gists_url":"https://api.github.com/users/DrPandemic/gists{/gist_id}","starred_url":"https://api.github.com/users/DrPandemic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrPandemic/subscriptions","organizations_url":"https://api.github.com/users/DrPandemic/orgs","repos_url":"https://api.github.com/users/DrPandemic/repos","events_url":"https://api.github.com/users/DrPandemic/events{/privacy}","received_events_url":"https://api.github.com/users/DrPandemic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DrPandemic/aigar.io","description":null,"fork":false,"url":"https://api.github.com/repos/DrPandemic/aigar.io","forks_url":"https://api.github.com/repos/DrPandemic/aigar.io/forks","keys_url":"https://api.github.com/repos/DrPandemic/aigar.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DrPandemic/aigar.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DrPandemic/aigar.io/teams","hooks_url":"https://api.github.com/repos/DrPandemic/aigar.io/hooks","issue_events_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues/events{/number}","events_url":"https://api.github.com/repos/DrPandemic/aigar.io/events","assignees_url":"https://api.github.com/repos/DrPandemic/aigar.io/assignees{/user}","branches_url":"https://api.github.com/repos/DrPandemic/aigar.io/branches{/branch}","tags_url":"https://api.github.com/repos/DrPandemic/aigar.io/tags","blobs_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DrPandemic/aigar.io/statuses/{sha}","languages_url":"https://api.github.com/repos/DrPandemic/aigar.io/languages","stargazers_url":"https://api.github.com/repos/DrPandemic/aigar.io/stargazers","contributors_url":"https://api.github.com/repos/DrPandemic/aigar.io/contributors","subscribers_url":"https://api.github.com/repos/DrPandemic/aigar.io/subscribers","subscription_url":"https://api.github.com/repos/DrPandemic/aigar.io/subscription","commits_url":"https://api.github.com/repos/DrPandemic/aigar.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/DrPandemic/aigar.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/DrPandemic/aigar.io/contents/{+path}","compare_url":"https://api.github.com/repos/DrPandemic/aigar.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DrPandemic/aigar.io/merges","archive_url":"https://api.github.com/repos/DrPandemic/aigar.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DrPandemic/aigar.io/downloads","issues_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues{/number}","pulls_url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls{/number}","milestones_url":"https://api.github.com/repos/DrPandemic/aigar.io/milestones{/number}","notifications_url":"https://api.github.com/repos/DrPandemic/aigar.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DrPandemic/aigar.io/labels{/name}","releases_url":"https://api.github.com/repos/DrPandemic/aigar.io/releases{/id}","deployments_url":"https://api.github.com/repos/DrPandemic/aigar.io/deployments","created_at":"2016-09-21T17:18:41Z","updated_at":"2016-10-22T06:44:00Z","pushed_at":"2016-10-26T13:32:56Z","git_url":"git://github.com/DrPandemic/aigar.io.git","ssh_url":"git@github.com:DrPandemic/aigar.io.git","clone_url":"https://github.com/DrPandemic/aigar.io.git","svn_url":"https://github.com/DrPandemic/aigar.io","homepage":null,"size":2939,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":30,"forks":0,"open_issues":30,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/185"},"html":{"href":"https://github.com/DrPandemic/aigar.io/pull/185"},"issue":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/issues/185"},"comments":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/issues/185/comments"},"review_comments":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/185/comments"},"review_comment":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/185/commits"},"statuses":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/statuses/a06f909f724930e398a0b2c22a47df1883f5198b"}}}}
{"actor":{"display_login":"DrPandemic"}}