{"action":"created","comment":{"url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls/comments/41558674","id":41558674,"diff_hunk":"@@ -0,0 +1,44 @@\n+package spaceinvaders.spaceinvaders_framework;\n+/**\n+ * the second alien type is considered normal.\n+ * it has both normal health and medium speed for the bullets\n+ * \n+ * @author Group 23\n+ *\n+ */\n+public class AlienType2 extends Alien{\n+\n+    /**\n+     * the constructor of alien type 2.\n+     * \n+     * @param x\n+     * @param y\n+     * @param g\n+     */\n+    public AlienType2(double x, double y, Game g) {\n+        super(x, y, g);\n+        setSpritesheet(40, 225, 16, 16);\n+        setScore(20);\n+        setHealth(2);\n+    }\n+    \n+    /**\n+     * the method creates a new bullet on the position of the alien\n+     * and returns it. overrides the standard method because this bullet\n+     * moves faster and has a different sprite.\n+     *\n+     * @return Bullet newBullet\n+     */\n+    @Override\n+    public Bullet shoot() {\n+      final SpriteSheet spritesheet = new SpriteSheet(getGame().getSpriteSheet());\n+      final Bullet newBullet = new Bullet(getX() + 5, getY() + 2, spritesheet);\n+      Game.logfile.writeShoot(\"Alien\", getX(), getY());","path":"src/main/java/spaceinvaders/spaceinvaders_framework/AlienType2.java","position":36,"original_position":36,"commit_id":"4b4fb40ab421ff54e59943d6778b7d0eabdf3092","original_commit_id":"4b4fb40ab421ff54e59943d6778b7d0eabdf3092","user":{"login":"Jeroemaster","id":14061199,"avatar_url":"https://avatars.githubusercontent.com/u/14061199?v=3","gravatar_id":"","url":"https://api.github.com/users/Jeroemaster","html_url":"https://github.com/Jeroemaster","followers_url":"https://api.github.com/users/Jeroemaster/followers","following_url":"https://api.github.com/users/Jeroemaster/following{/other_user}","gists_url":"https://api.github.com/users/Jeroemaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeroemaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeroemaster/subscriptions","organizations_url":"https://api.github.com/users/Jeroemaster/orgs","repos_url":"https://api.github.com/users/Jeroemaster/repos","events_url":"https://api.github.com/users/Jeroemaster/events{/privacy}","received_events_url":"https://api.github.com/users/Jeroemaster/received_events","type":"User","site_admin":false},"body":"Maybe you can add the type of alien to the logfile.","created_at":"2015-10-08T19:41:41Z","updated_at":"2015-10-08T19:41:41Z","html_url":"https://github.com/Jeroemaster/SpaceInvaders/pull/35#discussion_r41558674","pull_request_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls/comments/41558674"},"html":{"href":"https://github.com/Jeroemaster/SpaceInvaders/pull/35#discussion_r41558674"},"pull_request":{"href":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls/35","id":47123137,"html_url":"https://github.com/Jeroemaster/SpaceInvaders/pull/35","diff_url":"https://github.com/Jeroemaster/SpaceInvaders/pull/35.diff","patch_url":"https://github.com/Jeroemaster/SpaceInvaders/pull/35.patch","issue_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/issues/35","number":35,"state":"open","locked":false,"title":"Combine aliens and shorten methods","user":{"login":"harveyvanveltom","id":9860494,"avatar_url":"https://avatars.githubusercontent.com/u/9860494?v=3","gravatar_id":"","url":"https://api.github.com/users/harveyvanveltom","html_url":"https://github.com/harveyvanveltom","followers_url":"https://api.github.com/users/harveyvanveltom/followers","following_url":"https://api.github.com/users/harveyvanveltom/following{/other_user}","gists_url":"https://api.github.com/users/harveyvanveltom/gists{/gist_id}","starred_url":"https://api.github.com/users/harveyvanveltom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harveyvanveltom/subscriptions","organizations_url":"https://api.github.com/users/harveyvanveltom/orgs","repos_url":"https://api.github.com/users/harveyvanveltom/repos","events_url":"https://api.github.com/users/harveyvanveltom/events{/privacy}","received_events_url":"https://api.github.com/users/harveyvanveltom/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-10-08T08:15:43Z","updated_at":"2015-10-08T19:41:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c427f5b8ac4d37c2063a0ab31c6449720c5b36d2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls/35/commits","review_comments_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls/35/comments","review_comment_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/issues/35/comments","statuses_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/statuses/4b4fb40ab421ff54e59943d6778b7d0eabdf3092","head":{"label":"Jeroemaster:combine-aliens-and-shorten-methods","ref":"combine-aliens-and-shorten-methods","sha":"4b4fb40ab421ff54e59943d6778b7d0eabdf3092","user":{"login":"Jeroemaster","id":14061199,"avatar_url":"https://avatars.githubusercontent.com/u/14061199?v=3","gravatar_id":"","url":"https://api.github.com/users/Jeroemaster","html_url":"https://github.com/Jeroemaster","followers_url":"https://api.github.com/users/Jeroemaster/followers","following_url":"https://api.github.com/users/Jeroemaster/following{/other_user}","gists_url":"https://api.github.com/users/Jeroemaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeroemaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeroemaster/subscriptions","organizations_url":"https://api.github.com/users/Jeroemaster/orgs","repos_url":"https://api.github.com/users/Jeroemaster/repos","events_url":"https://api.github.com/users/Jeroemaster/events{/privacy}","received_events_url":"https://api.github.com/users/Jeroemaster/received_events","type":"User","site_admin":false},"repo":{"id":41732632,"name":"SpaceInvaders","full_name":"Jeroemaster/SpaceInvaders","owner":{"login":"Jeroemaster","id":14061199,"avatar_url":"https://avatars.githubusercontent.com/u/14061199?v=3","gravatar_id":"","url":"https://api.github.com/users/Jeroemaster","html_url":"https://github.com/Jeroemaster","followers_url":"https://api.github.com/users/Jeroemaster/followers","following_url":"https://api.github.com/users/Jeroemaster/following{/other_user}","gists_url":"https://api.github.com/users/Jeroemaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeroemaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeroemaster/subscriptions","organizations_url":"https://api.github.com/users/Jeroemaster/orgs","repos_url":"https://api.github.com/users/Jeroemaster/repos","events_url":"https://api.github.com/users/Jeroemaster/events{/privacy}","received_events_url":"https://api.github.com/users/Jeroemaster/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jeroemaster/SpaceInvaders","description":"TI2206 - Group 23","fork":false,"url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders","forks_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/forks","keys_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/teams","hooks_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/hooks","issue_events_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/issues/events{/number}","events_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/events","assignees_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/assignees{/user}","branches_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/branches{/branch}","tags_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/tags","blobs_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/statuses/{sha}","languages_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/languages","stargazers_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/stargazers","contributors_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/contributors","subscribers_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/subscribers","subscription_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/subscription","commits_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/contents/{+path}","compare_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/merges","archive_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/downloads","issues_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/issues{/number}","pulls_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls{/number}","milestones_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/milestones{/number}","notifications_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/labels{/name}","releases_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/releases{/id}","created_at":"2015-09-01T10:37:30Z","updated_at":"2015-09-06T16:08:32Z","pushed_at":"2015-10-08T11:32:15Z","git_url":"git://github.com/Jeroemaster/SpaceInvaders.git","ssh_url":"git@github.com:Jeroemaster/SpaceInvaders.git","clone_url":"https://github.com/Jeroemaster/SpaceInvaders.git","svn_url":"https://github.com/Jeroemaster/SpaceInvaders","homepage":"","size":2732,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Jeroemaster:master","ref":"master","sha":"6a965ecdb365986afba4e130f3182567ae4a697f","user":{"login":"Jeroemaster","id":14061199,"avatar_url":"https://avatars.githubusercontent.com/u/14061199?v=3","gravatar_id":"","url":"https://api.github.com/users/Jeroemaster","html_url":"https://github.com/Jeroemaster","followers_url":"https://api.github.com/users/Jeroemaster/followers","following_url":"https://api.github.com/users/Jeroemaster/following{/other_user}","gists_url":"https://api.github.com/users/Jeroemaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeroemaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeroemaster/subscriptions","organizations_url":"https://api.github.com/users/Jeroemaster/orgs","repos_url":"https://api.github.com/users/Jeroemaster/repos","events_url":"https://api.github.com/users/Jeroemaster/events{/privacy}","received_events_url":"https://api.github.com/users/Jeroemaster/received_events","type":"User","site_admin":false},"repo":{"id":41732632,"name":"SpaceInvaders","full_name":"Jeroemaster/SpaceInvaders","owner":{"login":"Jeroemaster","id":14061199,"avatar_url":"https://avatars.githubusercontent.com/u/14061199?v=3","gravatar_id":"","url":"https://api.github.com/users/Jeroemaster","html_url":"https://github.com/Jeroemaster","followers_url":"https://api.github.com/users/Jeroemaster/followers","following_url":"https://api.github.com/users/Jeroemaster/following{/other_user}","gists_url":"https://api.github.com/users/Jeroemaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeroemaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeroemaster/subscriptions","organizations_url":"https://api.github.com/users/Jeroemaster/orgs","repos_url":"https://api.github.com/users/Jeroemaster/repos","events_url":"https://api.github.com/users/Jeroemaster/events{/privacy}","received_events_url":"https://api.github.com/users/Jeroemaster/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jeroemaster/SpaceInvaders","description":"TI2206 - Group 23","fork":false,"url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders","forks_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/forks","keys_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/teams","hooks_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/hooks","issue_events_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/issues/events{/number}","events_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/events","assignees_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/assignees{/user}","branches_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/branches{/branch}","tags_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/tags","blobs_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/statuses/{sha}","languages_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/languages","stargazers_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/stargazers","contributors_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/contributors","subscribers_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/subscribers","subscription_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/subscription","commits_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/contents/{+path}","compare_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/merges","archive_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/downloads","issues_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/issues{/number}","pulls_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls{/number}","milestones_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/milestones{/number}","notifications_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/labels{/name}","releases_url":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/releases{/id}","created_at":"2015-09-01T10:37:30Z","updated_at":"2015-09-06T16:08:32Z","pushed_at":"2015-10-08T11:32:15Z","git_url":"git://github.com/Jeroemaster/SpaceInvaders.git","ssh_url":"git@github.com:Jeroemaster/SpaceInvaders.git","clone_url":"https://github.com/Jeroemaster/SpaceInvaders.git","svn_url":"https://github.com/Jeroemaster/SpaceInvaders","homepage":"","size":2732,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls/35"},"html":{"href":"https://github.com/Jeroemaster/SpaceInvaders/pull/35"},"issue":{"href":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/issues/35"},"comments":{"href":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/Jeroemaster/SpaceInvaders/statuses/4b4fb40ab421ff54e59943d6778b7d0eabdf3092"}}}}