{"action":"created","comment":{"url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/comments/41977575","id":41977575,"diff_hunk":"@@ -0,0 +1,95 @@\n+package nl.tudelft.scrumbledore.keybinding;\n+\n+import java.util.HashMap;\n+import java.util.Map;\n+\n+import javafx.scene.input.KeyCode;\n+import nl.tudelft.scrumbledore.Constants;\n+import nl.tudelft.scrumbledore.level.PlayerAction;\n+\n+/**\n+ * Represents a Keybinding in the form of a key value pair.\n+ * \n+ * @author Jeroen Meijer\n+ */\n+public class Keybinding {\n+  private Map<KeyCode, PlayerAction> keyMap;\n+  private Map<PlayerAction, KeyCode> actionMap;","path":"src/main/java/nl/tudelft/scrumbledore/keybinding/Keybinding.java","position":17,"original_position":17,"commit_id":"c25d11104fd7fa253c47300d0440bee4958599ea","original_commit_id":"c25d11104fd7fa253c47300d0440bee4958599ea","user":{"login":"jmeijer8","id":9715370,"avatar_url":"https://avatars.githubusercontent.com/u/9715370?v=3","gravatar_id":"","url":"https://api.github.com/users/jmeijer8","html_url":"https://github.com/jmeijer8","followers_url":"https://api.github.com/users/jmeijer8/followers","following_url":"https://api.github.com/users/jmeijer8/following{/other_user}","gists_url":"https://api.github.com/users/jmeijer8/gists{/gist_id}","starred_url":"https://api.github.com/users/jmeijer8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmeijer8/subscriptions","organizations_url":"https://api.github.com/users/jmeijer8/orgs","repos_url":"https://api.github.com/users/jmeijer8/repos","events_url":"https://api.github.com/users/jmeijer8/events{/privacy}","received_events_url":"https://api.github.com/users/jmeijer8/received_events","type":"User","site_admin":false},"body":"This is to make the key action pair unique and to be able to get an action by a key and a key by an action.","created_at":"2015-10-14T10:29:12Z","updated_at":"2015-10-14T10:29:12Z","html_url":"https://github.com/dalderliesten/Scrumbledore/pull/199#discussion_r41977575","pull_request_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/199","_links":{"self":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/comments/41977575"},"html":{"href":"https://github.com/dalderliesten/Scrumbledore/pull/199#discussion_r41977575"},"pull_request":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/199"}}},"pull_request":{"url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/199","id":47574700,"html_url":"https://github.com/dalderliesten/Scrumbledore/pull/199","diff_url":"https://github.com/dalderliesten/Scrumbledore/pull/199.diff","patch_url":"https://github.com/dalderliesten/Scrumbledore/pull/199.patch","issue_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues/199","number":199,"state":"open","locked":false,"title":"Custom keybinding","user":{"login":"jmeijer8","id":9715370,"avatar_url":"https://avatars.githubusercontent.com/u/9715370?v=3","gravatar_id":"","url":"https://api.github.com/users/jmeijer8","html_url":"https://github.com/jmeijer8","followers_url":"https://api.github.com/users/jmeijer8/followers","following_url":"https://api.github.com/users/jmeijer8/following{/other_user}","gists_url":"https://api.github.com/users/jmeijer8/gists{/gist_id}","starred_url":"https://api.github.com/users/jmeijer8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmeijer8/subscriptions","organizations_url":"https://api.github.com/users/jmeijer8/orgs","repos_url":"https://api.github.com/users/jmeijer8/repos","events_url":"https://api.github.com/users/jmeijer8/events{/privacy}","received_events_url":"https://api.github.com/users/jmeijer8/received_events","type":"User","site_admin":false},"body":"Version 1.0 of the new custom keybinding. <feature","created_at":"2015-10-13T19:06:13Z","updated_at":"2015-10-14T10:29:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e57bdc6c5c90b717a56fcc09cc8c85e44260bd1f","assignee":{"login":"FlorisXll","id":9715282,"avatar_url":"https://avatars.githubusercontent.com/u/9715282?v=3","gravatar_id":"","url":"https://api.github.com/users/FlorisXll","html_url":"https://github.com/FlorisXll","followers_url":"https://api.github.com/users/FlorisXll/followers","following_url":"https://api.github.com/users/FlorisXll/following{/other_user}","gists_url":"https://api.github.com/users/FlorisXll/gists{/gist_id}","starred_url":"https://api.github.com/users/FlorisXll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlorisXll/subscriptions","organizations_url":"https://api.github.com/users/FlorisXll/orgs","repos_url":"https://api.github.com/users/FlorisXll/repos","events_url":"https://api.github.com/users/FlorisXll/events{/privacy}","received_events_url":"https://api.github.com/users/FlorisXll/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dalderliesten/Scrumbledore/milestones/4","html_url":"https://github.com/dalderliesten/Scrumbledore/milestones/Sprint%204","labels_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/milestones/4/labels","id":1346350,"number":4,"title":"Sprint 4","description":"","creator":{"login":"jessetilro","id":4137711,"avatar_url":"https://avatars.githubusercontent.com/u/4137711?v=3","gravatar_id":"","url":"https://api.github.com/users/jessetilro","html_url":"https://github.com/jessetilro","followers_url":"https://api.github.com/users/jessetilro/followers","following_url":"https://api.github.com/users/jessetilro/following{/other_user}","gists_url":"https://api.github.com/users/jessetilro/gists{/gist_id}","starred_url":"https://api.github.com/users/jessetilro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessetilro/subscriptions","organizations_url":"https://api.github.com/users/jessetilro/orgs","repos_url":"https://api.github.com/users/jessetilro/repos","events_url":"https://api.github.com/users/jessetilro/events{/privacy}","received_events_url":"https://api.github.com/users/jessetilro/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":7,"state":"open","created_at":"2015-10-09T11:10:50Z","updated_at":"2015-10-14T09:38:41Z","due_on":"2015-10-15T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/199/commits","review_comments_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/199/comments","review_comment_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues/199/comments","statuses_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/statuses/c25d11104fd7fa253c47300d0440bee4958599ea","head":{"label":"dalderliesten:custom-keybinding","ref":"custom-keybinding","sha":"c25d11104fd7fa253c47300d0440bee4958599ea","user":{"login":"dalderliesten","id":9768494,"avatar_url":"https://avatars.githubusercontent.com/u/9768494?v=3","gravatar_id":"","url":"https://api.github.com/users/dalderliesten","html_url":"https://github.com/dalderliesten","followers_url":"https://api.github.com/users/dalderliesten/followers","following_url":"https://api.github.com/users/dalderliesten/following{/other_user}","gists_url":"https://api.github.com/users/dalderliesten/gists{/gist_id}","starred_url":"https://api.github.com/users/dalderliesten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalderliesten/subscriptions","organizations_url":"https://api.github.com/users/dalderliesten/orgs","repos_url":"https://api.github.com/users/dalderliesten/repos","events_url":"https://api.github.com/users/dalderliesten/events{/privacy}","received_events_url":"https://api.github.com/users/dalderliesten/received_events","type":"User","site_admin":false},"repo":{"id":41685322,"name":"Scrumbledore","full_name":"dalderliesten/Scrumbledore","owner":{"login":"dalderliesten","id":9768494,"avatar_url":"https://avatars.githubusercontent.com/u/9768494?v=3","gravatar_id":"","url":"https://api.github.com/users/dalderliesten","html_url":"https://github.com/dalderliesten","followers_url":"https://api.github.com/users/dalderliesten/followers","following_url":"https://api.github.com/users/dalderliesten/following{/other_user}","gists_url":"https://api.github.com/users/dalderliesten/gists{/gist_id}","starred_url":"https://api.github.com/users/dalderliesten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalderliesten/subscriptions","organizations_url":"https://api.github.com/users/dalderliesten/orgs","repos_url":"https://api.github.com/users/dalderliesten/repos","events_url":"https://api.github.com/users/dalderliesten/events{/privacy}","received_events_url":"https://api.github.com/users/dalderliesten/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dalderliesten/Scrumbledore","description":"Repository for project group 12 at the TU Delft.","fork":false,"url":"https://api.github.com/repos/dalderliesten/Scrumbledore","forks_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/forks","keys_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/teams","hooks_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/hooks","issue_events_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues/events{/number}","events_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/events","assignees_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/assignees{/user}","branches_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/branches{/branch}","tags_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/tags","blobs_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/git/refs{/sha}","trees_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/statuses/{sha}","languages_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/languages","stargazers_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/stargazers","contributors_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/contributors","subscribers_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/subscribers","subscription_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/subscription","commits_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/commits{/sha}","git_commits_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/git/commits{/sha}","comments_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/comments{/number}","issue_comment_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues/comments{/number}","contents_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/contents/{+path}","compare_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/merges","archive_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/downloads","issues_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues{/number}","pulls_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls{/number}","milestones_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/milestones{/number}","notifications_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/labels{/name}","releases_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/releases{/id}","created_at":"2015-08-31T15:55:51Z","updated_at":"2015-10-07T14:18:13Z","pushed_at":"2015-10-14T09:38:43Z","git_url":"git://github.com/dalderliesten/Scrumbledore.git","ssh_url":"git@github.com:dalderliesten/Scrumbledore.git","clone_url":"https://github.com/dalderliesten/Scrumbledore.git","svn_url":"https://github.com/dalderliesten/Scrumbledore","homepage":null,"size":4620,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":4,"default_branch":"master"}},"base":{"label":"dalderliesten:release","ref":"release","sha":"3ec934a9763547db21eb69d72de0457cc815e966","user":{"login":"dalderliesten","id":9768494,"avatar_url":"https://avatars.githubusercontent.com/u/9768494?v=3","gravatar_id":"","url":"https://api.github.com/users/dalderliesten","html_url":"https://github.com/dalderliesten","followers_url":"https://api.github.com/users/dalderliesten/followers","following_url":"https://api.github.com/users/dalderliesten/following{/other_user}","gists_url":"https://api.github.com/users/dalderliesten/gists{/gist_id}","starred_url":"https://api.github.com/users/dalderliesten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalderliesten/subscriptions","organizations_url":"https://api.github.com/users/dalderliesten/orgs","repos_url":"https://api.github.com/users/dalderliesten/repos","events_url":"https://api.github.com/users/dalderliesten/events{/privacy}","received_events_url":"https://api.github.com/users/dalderliesten/received_events","type":"User","site_admin":false},"repo":{"id":41685322,"name":"Scrumbledore","full_name":"dalderliesten/Scrumbledore","owner":{"login":"dalderliesten","id":9768494,"avatar_url":"https://avatars.githubusercontent.com/u/9768494?v=3","gravatar_id":"","url":"https://api.github.com/users/dalderliesten","html_url":"https://github.com/dalderliesten","followers_url":"https://api.github.com/users/dalderliesten/followers","following_url":"https://api.github.com/users/dalderliesten/following{/other_user}","gists_url":"https://api.github.com/users/dalderliesten/gists{/gist_id}","starred_url":"https://api.github.com/users/dalderliesten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalderliesten/subscriptions","organizations_url":"https://api.github.com/users/dalderliesten/orgs","repos_url":"https://api.github.com/users/dalderliesten/repos","events_url":"https://api.github.com/users/dalderliesten/events{/privacy}","received_events_url":"https://api.github.com/users/dalderliesten/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dalderliesten/Scrumbledore","description":"Repository for project group 12 at the TU Delft.","fork":false,"url":"https://api.github.com/repos/dalderliesten/Scrumbledore","forks_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/forks","keys_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/teams","hooks_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/hooks","issue_events_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues/events{/number}","events_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/events","assignees_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/assignees{/user}","branches_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/branches{/branch}","tags_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/tags","blobs_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/git/refs{/sha}","trees_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/statuses/{sha}","languages_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/languages","stargazers_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/stargazers","contributors_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/contributors","subscribers_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/subscribers","subscription_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/subscription","commits_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/commits{/sha}","git_commits_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/git/commits{/sha}","comments_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/comments{/number}","issue_comment_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues/comments{/number}","contents_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/contents/{+path}","compare_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/merges","archive_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/downloads","issues_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues{/number}","pulls_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls{/number}","milestones_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/milestones{/number}","notifications_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/labels{/name}","releases_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/releases{/id}","created_at":"2015-08-31T15:55:51Z","updated_at":"2015-10-07T14:18:13Z","pushed_at":"2015-10-14T09:38:43Z","git_url":"git://github.com/dalderliesten/Scrumbledore.git","ssh_url":"git@github.com:dalderliesten/Scrumbledore.git","clone_url":"https://github.com/dalderliesten/Scrumbledore.git","svn_url":"https://github.com/dalderliesten/Scrumbledore","homepage":null,"size":4620,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/199"},"html":{"href":"https://github.com/dalderliesten/Scrumbledore/pull/199"},"issue":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues/199"},"comments":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues/199/comments"},"review_comments":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/199/comments"},"review_comment":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/199/commits"},"statuses":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/statuses/c25d11104fd7fa253c47300d0440bee4958599ea"}}}}