{"action":"created","comment":{"url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/comments/42514283","id":42514283,"diff_hunk":"@@ -343,10 +336,8 @@ private static void prepareRenderer() {\n   private static void renderStatic() {\n     staticContext.clearRect(0, 0, Constants.GUIX, Constants.GUIY);\n \n-    for (Platform current : currentGame.getCurrentLevel().getPlatforms()) {\n-      staticContext.drawImage(new Image(sprites.get(\"wall-1\").getPath()),\n-          current.getPosition().getX(), current.getPosition().getY());\n-    }\n+    ArrayList<LevelElement> staticElements = currentGame.getCurrentLevel().getStaticElements();\n+    renderLevelElements(staticElements, staticContext);","path":"src/main/java/nl/tudelft/scrumbledore/userinterface/GameDisplay.java","position":86,"original_position":86,"commit_id":"1854a88dba8eb5601a93702c486cd4e033c24203","original_commit_id":"f3168e312133be26037ab2cf73fa3f5257b807b9","user":{"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},"body":"In light of readability I think this is nicer.","created_at":"2015-10-20T15:52:48Z","updated_at":"2015-10-20T15:52:48Z","html_url":"https://github.com/dalderliesten/Scrumbledore/pull/229#discussion_r42514283","pull_request_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/229","_links":{"self":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/comments/42514283"},"html":{"href":"https://github.com/dalderliesten/Scrumbledore/pull/229#discussion_r42514283"},"pull_request":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/229"}}},"pull_request":{"url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/229","id":48203600,"html_url":"https://github.com/dalderliesten/Scrumbledore/pull/229","diff_url":"https://github.com/dalderliesten/Scrumbledore/pull/229.diff","patch_url":"https://github.com/dalderliesten/Scrumbledore/pull/229.patch","issue_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues/229","number":229,"state":"open","locked":false,"title":"Level Elements uniformly rendered","user":{"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},"body":"Level Elements now all have their own method for getting the sprites that\r\nare to be drawn at the element's position. The GameDisplay can now\r\ntreat all Level Elements uniformly, conforming better to the Liskov\r\nsubstitution principle. There is still the distinction between drawing static and\r\ndynamic elements, but these mechanisms use a shared method for rendering\r\nLevel Elements.\r\n\r\n<organisation","created_at":"2015-10-20T13:54:17Z","updated_at":"2015-10-20T15:52:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4bcc29d90cbba39f68a2bbf3b4b90705e433bd5","assignee":{"login":"NielsWarnars","id":9715363,"avatar_url":"https://avatars.githubusercontent.com/u/9715363?v=3","gravatar_id":"","url":"https://api.github.com/users/NielsWarnars","html_url":"https://github.com/NielsWarnars","followers_url":"https://api.github.com/users/NielsWarnars/followers","following_url":"https://api.github.com/users/NielsWarnars/following{/other_user}","gists_url":"https://api.github.com/users/NielsWarnars/gists{/gist_id}","starred_url":"https://api.github.com/users/NielsWarnars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NielsWarnars/subscriptions","organizations_url":"https://api.github.com/users/NielsWarnars/orgs","repos_url":"https://api.github.com/users/NielsWarnars/repos","events_url":"https://api.github.com/users/NielsWarnars/events{/privacy}","received_events_url":"https://api.github.com/users/NielsWarnars/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dalderliesten/Scrumbledore/milestones/6","html_url":"https://github.com/dalderliesten/Scrumbledore/milestones/Sprint%205","labels_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/milestones/6/labels","id":1353794,"number":6,"title":"Sprint 5","description":"","creator":{"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},"open_issues":10,"closed_issues":6,"state":"open","created_at":"2015-10-13T18:41:01Z","updated_at":"2015-10-20T13:54:17Z","due_on":"2015-10-22T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/229/commits","review_comments_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/229/comments","review_comment_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues/229/comments","statuses_url":"https://api.github.com/repos/dalderliesten/Scrumbledore/statuses/1854a88dba8eb5601a93702c486cd4e033c24203","head":{"label":"dalderliesten:level-element-sprites","ref":"level-element-sprites","sha":"1854a88dba8eb5601a93702c486cd4e033c24203","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-20T15:51:25Z","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":5452,"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":11,"forks":0,"open_issues":11,"watchers":4,"default_branch":"master"}},"base":{"label":"dalderliesten:release","ref":"release","sha":"8ad1ecaf84f43d85d06bb97a40a7fd9c994c89d7","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-20T15:51:25Z","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":5452,"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":11,"forks":0,"open_issues":11,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/229"},"html":{"href":"https://github.com/dalderliesten/Scrumbledore/pull/229"},"issue":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues/229"},"comments":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/issues/229/comments"},"review_comments":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/229/comments"},"review_comment":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/pulls/229/commits"},"statuses":{"href":"https://api.github.com/repos/dalderliesten/Scrumbledore/statuses/1854a88dba8eb5601a93702c486cd4e033c24203"}}}}