{"action":"created","comment":{"url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls/comments/64781737","id":64781737,"diff_hunk":"@@ -0,0 +1,115 @@\n+package nl.tudelft.contextproject.util.webinterface;\r\n+\r\n+import nl.tudelft.contextproject.Main;\r\n+import nl.tudelft.contextproject.model.entities.Bomb;\r\n+import nl.tudelft.contextproject.model.entities.LandMine;\r\n+import nl.tudelft.contextproject.model.entities.Pitfall;\r\n+\r\n+/**\r\n+ * Utility to perform actions generated by the web client.\r\n+ */\r\n+public final class ActionUtil {\r\n+\r\n+\t/**\r\n+\t * Private constructor to avoid initialization.\r\n+\t */\r\n+\tprivate ActionUtil() {}\r\n+\r\n+\t/**\r\n+\t * Perform an action.\r\n+\t *\r\n+\t * @param action\r\n+\t * \t\tthe action to perform\r\n+\t * @param xCoord\r\n+\t * \t\tthe x coordinate to perform the action on\r\n+\t * @param yCoord\r\n+\t * \t\tthe y coordinate to perform the action on\r\n+\t */\r\n+\tpublic static void perform(String action, int xCoord, int yCoord) {\r\n+\t\tswitch (action) {\r\n+\t\t\tcase \"placebomb\":\r\n+\t\t\t\tplaceBomb(xCoord, yCoord);\r\n+\t\t\t\tbreak;\r\n+\t\t\tcase \"placepitfall\":\r\n+\t\t\t\tplacePitfall(xCoord, yCoord);\r\n+\t\t\t\tbreak;\r\n+\t\t\tcase \"placemine\":\r\n+\t\t\t\tplaceMine(xCoord, yCoord);\r\n+\t\t\t\tbreak;\r\n+\t\t\tcase \"spawnenemy\":\r\n+\t\t\t\tspawnEnemy(xCoord, yCoord);\r\n+\t\t\t\tbreak;\r\n+\t\t\tcase \"dropbait\":\r\n+\t\t\t\tdropBait(xCoord, yCoord);\r\n+\t\t\t\tbreak;\r\n+\t\t\tdefault:\r","path":"src/main/java/nl/tudelft/contextproject/util/webinterface/ActionUtil.java","position":45,"original_position":45,"commit_id":"567223648441043175c4e6efd2e4dd442bf79c68","original_commit_id":"567223648441043175c4e6efd2e4dd442bf79c68","user":{"login":"BCrlrd","id":9715308,"avatar_url":"https://avatars.githubusercontent.com/u/9715308?v=3","gravatar_id":"","url":"https://api.github.com/users/BCrlrd","html_url":"https://github.com/BCrlrd","followers_url":"https://api.github.com/users/BCrlrd/followers","following_url":"https://api.github.com/users/BCrlrd/following{/other_user}","gists_url":"https://api.github.com/users/BCrlrd/gists{/gist_id}","starred_url":"https://api.github.com/users/BCrlrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BCrlrd/subscriptions","organizations_url":"https://api.github.com/users/BCrlrd/orgs","repos_url":"https://api.github.com/users/BCrlrd/repos","events_url":"https://api.github.com/users/BCrlrd/events{/privacy}","received_events_url":"https://api.github.com/users/BCrlrd/received_events","type":"User","site_admin":false},"body":"This entire class isn't tested yet as most of the functionality isn't there yet. All tests will be written once all methods have been added.","created_at":"2016-05-26T16:59:15Z","updated_at":"2016-05-26T16:59:15Z","html_url":"https://github.com/Taeir/ContextProject-MIGI2/pull/263#discussion_r64781737","pull_request_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls/263","_links":{"self":{"href":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls/comments/64781737"},"html":{"href":"https://github.com/Taeir/ContextProject-MIGI2/pull/263#discussion_r64781737"},"pull_request":{"href":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls/263"}}},"pull_request":{"url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls/263","id":71569920,"html_url":"https://github.com/Taeir/ContextProject-MIGI2/pull/263","diff_url":"https://github.com/Taeir/ContextProject-MIGI2/pull/263.diff","patch_url":"https://github.com/Taeir/ContextProject-MIGI2/pull/263.patch","issue_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/issues/263","number":263,"state":"open","locked":false,"title":"Feature webinterface redo","user":{"login":"BCrlrd","id":9715308,"avatar_url":"https://avatars.githubusercontent.com/u/9715308?v=3","gravatar_id":"","url":"https://api.github.com/users/BCrlrd","html_url":"https://github.com/BCrlrd","followers_url":"https://api.github.com/users/BCrlrd/followers","following_url":"https://api.github.com/users/BCrlrd/following{/other_user}","gists_url":"https://api.github.com/users/BCrlrd/gists{/gist_id}","starred_url":"https://api.github.com/users/BCrlrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BCrlrd/subscriptions","organizations_url":"https://api.github.com/users/BCrlrd/orgs","repos_url":"https://api.github.com/users/BCrlrd/repos","events_url":"https://api.github.com/users/BCrlrd/events{/privacy}","received_events_url":"https://api.github.com/users/BCrlrd/received_events","type":"User","site_admin":false},"body":"Adds new actions to the webinterface.\r\nChanges the backend so we only send one request instead of 3.\r\nAdds the fullscreen API.\r\n\r\nCloses #204, Closes #206","created_at":"2016-05-26T14:55:10Z","updated_at":"2016-05-26T16:59:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a292ba3577870f53718464361e7bd701a57aeace","assignee":null,"milestone":{"url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/milestones/5","html_url":"https://github.com/Taeir/ContextProject-MIGI2/milestones/Sprint%20%235","labels_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/milestones/5/labels","id":1778527,"number":5,"title":"Sprint #5","description":"","creator":{"login":"Taeir","id":668952,"avatar_url":"https://avatars.githubusercontent.com/u/668952?v=3","gravatar_id":"","url":"https://api.github.com/users/Taeir","html_url":"https://github.com/Taeir","followers_url":"https://api.github.com/users/Taeir/followers","following_url":"https://api.github.com/users/Taeir/following{/other_user}","gists_url":"https://api.github.com/users/Taeir/gists{/gist_id}","starred_url":"https://api.github.com/users/Taeir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Taeir/subscriptions","organizations_url":"https://api.github.com/users/Taeir/orgs","repos_url":"https://api.github.com/users/Taeir/repos","events_url":"https://api.github.com/users/Taeir/events{/privacy}","received_events_url":"https://api.github.com/users/Taeir/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":13,"state":"open","created_at":"2016-05-20T10:48:03Z","updated_at":"2016-05-26T15:43:23Z","due_on":"2016-05-26T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls/263/commits","review_comments_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls/263/comments","review_comment_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/issues/263/comments","statuses_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/statuses/567223648441043175c4e6efd2e4dd442bf79c68","head":{"label":"Taeir:feature-webinterface-redo","ref":"feature-webinterface-redo","sha":"567223648441043175c4e6efd2e4dd442bf79c68","user":{"login":"Taeir","id":668952,"avatar_url":"https://avatars.githubusercontent.com/u/668952?v=3","gravatar_id":"","url":"https://api.github.com/users/Taeir","html_url":"https://github.com/Taeir","followers_url":"https://api.github.com/users/Taeir/followers","following_url":"https://api.github.com/users/Taeir/following{/other_user}","gists_url":"https://api.github.com/users/Taeir/gists{/gist_id}","starred_url":"https://api.github.com/users/Taeir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Taeir/subscriptions","organizations_url":"https://api.github.com/users/Taeir/orgs","repos_url":"https://api.github.com/users/Taeir/repos","events_url":"https://api.github.com/users/Taeir/events{/privacy}","received_events_url":"https://api.github.com/users/Taeir/received_events","type":"User","site_admin":false},"repo":{"id":56629638,"name":"ContextProject-MIGI2","full_name":"Taeir/ContextProject-MIGI2","owner":{"login":"Taeir","id":668952,"avatar_url":"https://avatars.githubusercontent.com/u/668952?v=3","gravatar_id":"","url":"https://api.github.com/users/Taeir","html_url":"https://github.com/Taeir","followers_url":"https://api.github.com/users/Taeir/followers","following_url":"https://api.github.com/users/Taeir/following{/other_user}","gists_url":"https://api.github.com/users/Taeir/gists{/gist_id}","starred_url":"https://api.github.com/users/Taeir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Taeir/subscriptions","organizations_url":"https://api.github.com/users/Taeir/orgs","repos_url":"https://api.github.com/users/Taeir/repos","events_url":"https://api.github.com/users/Taeir/events{/privacy}","received_events_url":"https://api.github.com/users/Taeir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Taeir/ContextProject-MIGI2","description":"VR Game","fork":false,"url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2","forks_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/forks","keys_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/teams","hooks_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/hooks","issue_events_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/issues/events{/number}","events_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/events","assignees_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/assignees{/user}","branches_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/branches{/branch}","tags_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/tags","blobs_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/statuses/{sha}","languages_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/languages","stargazers_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/stargazers","contributors_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/contributors","subscribers_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/subscribers","subscription_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/subscription","commits_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/contents/{+path}","compare_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/merges","archive_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/downloads","issues_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/issues{/number}","pulls_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls{/number}","milestones_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/milestones{/number}","notifications_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/labels{/name}","releases_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/releases{/id}","deployments_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/deployments","created_at":"2016-04-19T20:28:13Z","updated_at":"2016-05-20T12:23:26Z","pushed_at":"2016-05-26T16:51:19Z","git_url":"git://github.com/Taeir/ContextProject-MIGI2.git","ssh_url":"git@github.com:Taeir/ContextProject-MIGI2.git","clone_url":"https://github.com/Taeir/ContextProject-MIGI2.git","svn_url":"https://github.com/Taeir/ContextProject-MIGI2","homepage":"","size":32280,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":50,"forks":0,"open_issues":50,"watchers":0,"default_branch":"master"}},"base":{"label":"Taeir:dev-sprint5","ref":"dev-sprint5","sha":"22c311130fa947f091121dd97116d459b135bca7","user":{"login":"Taeir","id":668952,"avatar_url":"https://avatars.githubusercontent.com/u/668952?v=3","gravatar_id":"","url":"https://api.github.com/users/Taeir","html_url":"https://github.com/Taeir","followers_url":"https://api.github.com/users/Taeir/followers","following_url":"https://api.github.com/users/Taeir/following{/other_user}","gists_url":"https://api.github.com/users/Taeir/gists{/gist_id}","starred_url":"https://api.github.com/users/Taeir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Taeir/subscriptions","organizations_url":"https://api.github.com/users/Taeir/orgs","repos_url":"https://api.github.com/users/Taeir/repos","events_url":"https://api.github.com/users/Taeir/events{/privacy}","received_events_url":"https://api.github.com/users/Taeir/received_events","type":"User","site_admin":false},"repo":{"id":56629638,"name":"ContextProject-MIGI2","full_name":"Taeir/ContextProject-MIGI2","owner":{"login":"Taeir","id":668952,"avatar_url":"https://avatars.githubusercontent.com/u/668952?v=3","gravatar_id":"","url":"https://api.github.com/users/Taeir","html_url":"https://github.com/Taeir","followers_url":"https://api.github.com/users/Taeir/followers","following_url":"https://api.github.com/users/Taeir/following{/other_user}","gists_url":"https://api.github.com/users/Taeir/gists{/gist_id}","starred_url":"https://api.github.com/users/Taeir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Taeir/subscriptions","organizations_url":"https://api.github.com/users/Taeir/orgs","repos_url":"https://api.github.com/users/Taeir/repos","events_url":"https://api.github.com/users/Taeir/events{/privacy}","received_events_url":"https://api.github.com/users/Taeir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Taeir/ContextProject-MIGI2","description":"VR Game","fork":false,"url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2","forks_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/forks","keys_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/teams","hooks_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/hooks","issue_events_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/issues/events{/number}","events_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/events","assignees_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/assignees{/user}","branches_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/branches{/branch}","tags_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/tags","blobs_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/statuses/{sha}","languages_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/languages","stargazers_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/stargazers","contributors_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/contributors","subscribers_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/subscribers","subscription_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/subscription","commits_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/contents/{+path}","compare_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/merges","archive_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/downloads","issues_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/issues{/number}","pulls_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls{/number}","milestones_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/milestones{/number}","notifications_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/labels{/name}","releases_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/releases{/id}","deployments_url":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/deployments","created_at":"2016-04-19T20:28:13Z","updated_at":"2016-05-20T12:23:26Z","pushed_at":"2016-05-26T16:51:19Z","git_url":"git://github.com/Taeir/ContextProject-MIGI2.git","ssh_url":"git@github.com:Taeir/ContextProject-MIGI2.git","clone_url":"https://github.com/Taeir/ContextProject-MIGI2.git","svn_url":"https://github.com/Taeir/ContextProject-MIGI2","homepage":"","size":32280,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":50,"forks":0,"open_issues":50,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls/263"},"html":{"href":"https://github.com/Taeir/ContextProject-MIGI2/pull/263"},"issue":{"href":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/issues/263"},"comments":{"href":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/issues/263/comments"},"review_comments":{"href":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls/263/comments"},"review_comment":{"href":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/pulls/263/commits"},"statuses":{"href":"https://api.github.com/repos/Taeir/ContextProject-MIGI2/statuses/567223648441043175c4e6efd2e4dd442bf79c68"}}}}
{"actor":{"display_login":"BCrlrd"}}