{"action":"created","comment":{"url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls/comments/41641051","id":41641051,"diff_hunk":"@@ -27,14 +27,7 @@\n     public Enemy(float xPosition, float yPosition) {\n         super(new Rectangle(xPosition, yPosition, BubbleBobble.SPRITE_SIZE, BubbleBobble.SPRITE_SIZE));\n \n-        //Generates random integer between 1 and 2.\n-        int random = 1 + (int) (Math.random() * ((2 - 1) + 1));\n-        assert (random == 1 || random == 2);\n-        if (random == 1) {\n-            setDirection(Direction.RIGHT);\n-        } else {\n-            setDirection(Direction.LEFT);\n-        }\n+","path":"core/src/main/java/sem/group15/bubblebobble/core/objects/Enemy.java","position":12,"original_position":12,"commit_id":"589206576b72af68b1815f780511ea0a7abb6742","original_commit_id":"589206576b72af68b1815f780511ea0a7abb6742","user":{"login":"DaanVermunt","id":5969412,"avatar_url":"https://avatars.githubusercontent.com/u/5969412?v=3","gravatar_id":"","url":"https://api.github.com/users/DaanVermunt","html_url":"https://github.com/DaanVermunt","followers_url":"https://api.github.com/users/DaanVermunt/followers","following_url":"https://api.github.com/users/DaanVermunt/following{/other_user}","gists_url":"https://api.github.com/users/DaanVermunt/gists{/gist_id}","starred_url":"https://api.github.com/users/DaanVermunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaanVermunt/subscriptions","organizations_url":"https://api.github.com/users/DaanVermunt/orgs","repos_url":"https://api.github.com/users/DaanVermunt/repos","events_url":"https://api.github.com/users/DaanVermunt/events{/privacy}","received_events_url":"https://api.github.com/users/DaanVermunt/received_events","type":"User","site_admin":false},"body":"Why did you delete this part?","created_at":"2015-10-09T15:12:11Z","updated_at":"2015-10-09T15:12:11Z","html_url":"https://github.com/arjovanramshorst/bubble-bobble-sem/pull/48#discussion_r41641051","pull_request_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls/comments/41641051"},"html":{"href":"https://github.com/arjovanramshorst/bubble-bobble-sem/pull/48#discussion_r41641051"},"pull_request":{"href":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls/48","id":47281233,"html_url":"https://github.com/arjovanramshorst/bubble-bobble-sem/pull/48","diff_url":"https://github.com/arjovanramshorst/bubble-bobble-sem/pull/48.diff","patch_url":"https://github.com/arjovanramshorst/bubble-bobble-sem/pull/48.patch","issue_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/issues/48","number":48,"state":"open","locked":false,"title":"Factory pattern implemented for Enemy Creation","user":{"login":"arjovanramshorst","id":2796541,"avatar_url":"https://avatars.githubusercontent.com/u/2796541?v=3","gravatar_id":"","url":"https://api.github.com/users/arjovanramshorst","html_url":"https://github.com/arjovanramshorst","followers_url":"https://api.github.com/users/arjovanramshorst/followers","following_url":"https://api.github.com/users/arjovanramshorst/following{/other_user}","gists_url":"https://api.github.com/users/arjovanramshorst/gists{/gist_id}","starred_url":"https://api.github.com/users/arjovanramshorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjovanramshorst/subscriptions","organizations_url":"https://api.github.com/users/arjovanramshorst/orgs","repos_url":"https://api.github.com/users/arjovanramshorst/repos","events_url":"https://api.github.com/users/arjovanramshorst/events{/privacy}","received_events_url":"https://api.github.com/users/arjovanramshorst/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-09T14:54:09Z","updated_at":"2015-10-09T15:12:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5049f5dfc266f1c44f6af3251ca34e1c401cca5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls/48/commits","review_comments_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls/48/comments","review_comment_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/issues/48/comments","statuses_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/statuses/589206576b72af68b1815f780511ea0a7abb6742","head":{"label":"arjovanramshorst:factory","ref":"factory","sha":"589206576b72af68b1815f780511ea0a7abb6742","user":{"login":"arjovanramshorst","id":2796541,"avatar_url":"https://avatars.githubusercontent.com/u/2796541?v=3","gravatar_id":"","url":"https://api.github.com/users/arjovanramshorst","html_url":"https://github.com/arjovanramshorst","followers_url":"https://api.github.com/users/arjovanramshorst/followers","following_url":"https://api.github.com/users/arjovanramshorst/following{/other_user}","gists_url":"https://api.github.com/users/arjovanramshorst/gists{/gist_id}","starred_url":"https://api.github.com/users/arjovanramshorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjovanramshorst/subscriptions","organizations_url":"https://api.github.com/users/arjovanramshorst/orgs","repos_url":"https://api.github.com/users/arjovanramshorst/repos","events_url":"https://api.github.com/users/arjovanramshorst/events{/privacy}","received_events_url":"https://api.github.com/users/arjovanramshorst/received_events","type":"User","site_admin":false},"repo":{"id":41792238,"name":"bubble-bobble-sem","full_name":"arjovanramshorst/bubble-bobble-sem","owner":{"login":"arjovanramshorst","id":2796541,"avatar_url":"https://avatars.githubusercontent.com/u/2796541?v=3","gravatar_id":"","url":"https://api.github.com/users/arjovanramshorst","html_url":"https://github.com/arjovanramshorst","followers_url":"https://api.github.com/users/arjovanramshorst/followers","following_url":"https://api.github.com/users/arjovanramshorst/following{/other_user}","gists_url":"https://api.github.com/users/arjovanramshorst/gists{/gist_id}","starred_url":"https://api.github.com/users/arjovanramshorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjovanramshorst/subscriptions","organizations_url":"https://api.github.com/users/arjovanramshorst/orgs","repos_url":"https://api.github.com/users/arjovanramshorst/repos","events_url":"https://api.github.com/users/arjovanramshorst/events{/privacy}","received_events_url":"https://api.github.com/users/arjovanramshorst/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arjovanramshorst/bubble-bobble-sem","description":"Bubble Bobble game for SEM group 15","fork":false,"url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem","forks_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/forks","keys_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/teams","hooks_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/hooks","issue_events_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/issues/events{/number}","events_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/events","assignees_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/assignees{/user}","branches_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/branches{/branch}","tags_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/tags","blobs_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/git/refs{/sha}","trees_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/statuses/{sha}","languages_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/languages","stargazers_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/stargazers","contributors_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/contributors","subscribers_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/subscribers","subscription_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/subscription","commits_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/commits{/sha}","git_commits_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/git/commits{/sha}","comments_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/comments{/number}","issue_comment_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/issues/comments{/number}","contents_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/contents/{+path}","compare_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/merges","archive_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/downloads","issues_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/issues{/number}","pulls_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls{/number}","milestones_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/milestones{/number}","notifications_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/labels{/name}","releases_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/releases{/id}","created_at":"2015-09-02T09:25:02Z","updated_at":"2015-10-07T14:18:06Z","pushed_at":"2015-10-09T15:10:52Z","git_url":"git://github.com/arjovanramshorst/bubble-bobble-sem.git","ssh_url":"git@github.com:arjovanramshorst/bubble-bobble-sem.git","clone_url":"https://github.com/arjovanramshorst/bubble-bobble-sem.git","svn_url":"https://github.com/arjovanramshorst/bubble-bobble-sem","homepage":null,"size":2292,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"arjovanramshorst:master","ref":"master","sha":"27daaee4255ea430deb5d53b8343bbb43cb48b9f","user":{"login":"arjovanramshorst","id":2796541,"avatar_url":"https://avatars.githubusercontent.com/u/2796541?v=3","gravatar_id":"","url":"https://api.github.com/users/arjovanramshorst","html_url":"https://github.com/arjovanramshorst","followers_url":"https://api.github.com/users/arjovanramshorst/followers","following_url":"https://api.github.com/users/arjovanramshorst/following{/other_user}","gists_url":"https://api.github.com/users/arjovanramshorst/gists{/gist_id}","starred_url":"https://api.github.com/users/arjovanramshorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjovanramshorst/subscriptions","organizations_url":"https://api.github.com/users/arjovanramshorst/orgs","repos_url":"https://api.github.com/users/arjovanramshorst/repos","events_url":"https://api.github.com/users/arjovanramshorst/events{/privacy}","received_events_url":"https://api.github.com/users/arjovanramshorst/received_events","type":"User","site_admin":false},"repo":{"id":41792238,"name":"bubble-bobble-sem","full_name":"arjovanramshorst/bubble-bobble-sem","owner":{"login":"arjovanramshorst","id":2796541,"avatar_url":"https://avatars.githubusercontent.com/u/2796541?v=3","gravatar_id":"","url":"https://api.github.com/users/arjovanramshorst","html_url":"https://github.com/arjovanramshorst","followers_url":"https://api.github.com/users/arjovanramshorst/followers","following_url":"https://api.github.com/users/arjovanramshorst/following{/other_user}","gists_url":"https://api.github.com/users/arjovanramshorst/gists{/gist_id}","starred_url":"https://api.github.com/users/arjovanramshorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjovanramshorst/subscriptions","organizations_url":"https://api.github.com/users/arjovanramshorst/orgs","repos_url":"https://api.github.com/users/arjovanramshorst/repos","events_url":"https://api.github.com/users/arjovanramshorst/events{/privacy}","received_events_url":"https://api.github.com/users/arjovanramshorst/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arjovanramshorst/bubble-bobble-sem","description":"Bubble Bobble game for SEM group 15","fork":false,"url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem","forks_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/forks","keys_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/teams","hooks_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/hooks","issue_events_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/issues/events{/number}","events_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/events","assignees_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/assignees{/user}","branches_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/branches{/branch}","tags_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/tags","blobs_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/git/refs{/sha}","trees_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/statuses/{sha}","languages_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/languages","stargazers_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/stargazers","contributors_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/contributors","subscribers_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/subscribers","subscription_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/subscription","commits_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/commits{/sha}","git_commits_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/git/commits{/sha}","comments_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/comments{/number}","issue_comment_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/issues/comments{/number}","contents_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/contents/{+path}","compare_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/merges","archive_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/downloads","issues_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/issues{/number}","pulls_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls{/number}","milestones_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/milestones{/number}","notifications_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/labels{/name}","releases_url":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/releases{/id}","created_at":"2015-09-02T09:25:02Z","updated_at":"2015-10-07T14:18:06Z","pushed_at":"2015-10-09T15:10:52Z","git_url":"git://github.com/arjovanramshorst/bubble-bobble-sem.git","ssh_url":"git@github.com:arjovanramshorst/bubble-bobble-sem.git","clone_url":"https://github.com/arjovanramshorst/bubble-bobble-sem.git","svn_url":"https://github.com/arjovanramshorst/bubble-bobble-sem","homepage":null,"size":2292,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls/48"},"html":{"href":"https://github.com/arjovanramshorst/bubble-bobble-sem/pull/48"},"issue":{"href":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/issues/48"},"comments":{"href":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/arjovanramshorst/bubble-bobble-sem/statuses/589206576b72af68b1815f780511ea0a7abb6742"}}}}