{"action":"created","comment":{"url":"https://api.github.com/repos/timjon/group4/pulls/comments/150763775","pull_request_review_id":76359887,"id":150763775,"diff_hunk":"@@ -0,0 +1,144 @@\n+package visuals;\n+\n+import javafx.scene.canvas.GraphicsContext;\n+import javafx.scene.image.Image;\n+import javafx.scene.paint.Color;\n+\n+/**\n+ * An ActorClass wrapper modelled after DiagramClass.\n+ * @author Pontus Laestadius\n+ * collaborator Kosara Golemshinska\n+ * @version 1.0\n+ */\n+public class ActorClass implements Renderable {\n+\n+\tprivate Coordinates coordinates; // The coordinates of the object.\n+    private int size; // Size of the Object.\n+    private String name; // The class name.\n+\n+    // The images retrieved.\n+    private static Image king1 = new Image(\"resources/king_cape_up.png\");\n+    private static Image king2 = new Image(\"resources/king_cape_down.png\");\n+\n+    private static Image platform = new Image(\"resources/platform_default.png\");\n+    private static Image connector = new Image(\"resources/connector_default.png\");\n+    private static Image pillar = new Image(\"resources/pillar_default.png\");\n+\n+    // Animations\n+\n+    // The 2 states of the king/actor.\n+    private Image[] kingStates = {king1, king2};\n+    // Index used to write the animation state.\n+    private double kingAnimIndex = 0.0;\n+\n+    /**\n+     * @param name the class name.\n+     */\n+    ActorClass(String name) {\n+       this.name = name;\n+   }\n+\n+    /**\n+     * Places the ActorClass with specific coordinates and size.\n+     * @param coordinates the position of the ActorClass.\n+     * @param size the size for the ActorClass and it's graphics.\n+     */\n+    public void place(Coordinates coordinates, int size) {\n+        this.coordinates = coordinates;\n+        this.size = size;\n+    }\n+\n+    /**\n+     * @return the given name and not the class name of this ActorClass.\n+     */\n+    public String getName() {\n+        String[] s = name.split(\":\");\n+        return s[1];\n+    }\n+\n+    /**\n+     * From: Renderable\n+     * Handles animation processing.\n+     */\n+    public void update() {\n+        kingAnimIndex += 0.25;\n+        if (kingAnimIndex >= kingStates.length)\n+        \tkingAnimIndex = 0;\n+    }\n+\n+    /**\n+     * From: Renderable\n+     * @return nothing, as it's not in use.\n+     */\n+    public String format() {\n+        return null;\n+    }\n+\n+    /**\n+     * @return the ActorClass coordinates\n+     */\n+    public Coordinates getCoordinates() {\n+        return coordinates;\n+    }\n+\n+    /**\n+     * Renders the ActorClass on the canvas\n+     * @param gc GraphicalContext for a canvas.\n+     */\n+    public void render(GraphicsContext gc) {","path":"Application/src/visuals/ActorClass.java","position":88,"original_position":88,"commit_id":"3c1f09326375c06b2b37b01875b6e3d9f56c6c31","original_commit_id":"3c1f09326375c06b2b37b01875b6e3d9f56c6c31","user":{"login":"Rashadse","id":22791443,"avatar_url":"https://avatars3.githubusercontent.com/u/22791443?v=4","gravatar_id":"","url":"https://api.github.com/users/Rashadse","html_url":"https://github.com/Rashadse","followers_url":"https://api.github.com/users/Rashadse/followers","following_url":"https://api.github.com/users/Rashadse/following{/other_user}","gists_url":"https://api.github.com/users/Rashadse/gists{/gist_id}","starred_url":"https://api.github.com/users/Rashadse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rashadse/subscriptions","organizations_url":"https://api.github.com/users/Rashadse/orgs","repos_url":"https://api.github.com/users/Rashadse/repos","events_url":"https://api.github.com/users/Rashadse/events{/privacy}","received_events_url":"https://api.github.com/users/Rashadse/received_events","type":"User","site_admin":false},"body":"shouldn't there be an @Override tag annotation here?","created_at":"2017-11-14T08:26:47Z","updated_at":"2017-11-14T08:26:48Z","html_url":"https://github.com/timjon/group4/pull/27#discussion_r150763775","pull_request_url":"https://api.github.com/repos/timjon/group4/pulls/27","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/timjon/group4/pulls/comments/150763775"},"html":{"href":"https://github.com/timjon/group4/pull/27#discussion_r150763775"},"pull_request":{"href":"https://api.github.com/repos/timjon/group4/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/timjon/group4/pulls/27","id":152435881,"html_url":"https://github.com/timjon/group4/pull/27","diff_url":"https://github.com/timjon/group4/pull/27.diff","patch_url":"https://github.com/timjon/group4/pull/27.patch","issue_url":"https://api.github.com/repos/timjon/group4/issues/27","number":27,"state":"open","locked":false,"title":"21 actor","user":{"login":"gusgolko","id":25433557,"avatar_url":"https://avatars1.githubusercontent.com/u/25433557?v=4","gravatar_id":"","url":"https://api.github.com/users/gusgolko","html_url":"https://github.com/gusgolko","followers_url":"https://api.github.com/users/gusgolko/followers","following_url":"https://api.github.com/users/gusgolko/following{/other_user}","gists_url":"https://api.github.com/users/gusgolko/gists{/gist_id}","starred_url":"https://api.github.com/users/gusgolko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gusgolko/subscriptions","organizations_url":"https://api.github.com/users/gusgolko/orgs","repos_url":"https://api.github.com/users/gusgolko/repos","events_url":"https://api.github.com/users/gusgolko/events{/privacy}","received_events_url":"https://api.github.com/users/gusgolko/received_events","type":"User","site_admin":false},"body":"Added Actor Class. All classes are in the same ArrayList and the graphics to use are chosen based on the position of the class in the ArrayList. Checked for resizing, playback and multiple tabs compatibility.","created_at":"2017-11-14T08:01:56Z","updated_at":"2017-11-14T08:26:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6cce7e8d0bc07773ee3b5d4734be4376de6dd258","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/timjon/group4/pulls/27/commits","review_comments_url":"https://api.github.com/repos/timjon/group4/pulls/27/comments","review_comment_url":"https://api.github.com/repos/timjon/group4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/timjon/group4/issues/27/comments","statuses_url":"https://api.github.com/repos/timjon/group4/statuses/3c1f09326375c06b2b37b01875b6e3d9f56c6c31","head":{"label":"timjon:21-Actor","ref":"21-Actor","sha":"3c1f09326375c06b2b37b01875b6e3d9f56c6c31","user":{"login":"timjon","id":25152409,"avatar_url":"https://avatars3.githubusercontent.com/u/25152409?v=4","gravatar_id":"","url":"https://api.github.com/users/timjon","html_url":"https://github.com/timjon","followers_url":"https://api.github.com/users/timjon/followers","following_url":"https://api.github.com/users/timjon/following{/other_user}","gists_url":"https://api.github.com/users/timjon/gists{/gist_id}","starred_url":"https://api.github.com/users/timjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timjon/subscriptions","organizations_url":"https://api.github.com/users/timjon/orgs","repos_url":"https://api.github.com/users/timjon/repos","events_url":"https://api.github.com/users/timjon/events{/privacy}","received_events_url":"https://api.github.com/users/timjon/received_events","type":"User","site_admin":false},"repo":{"id":103508174,"name":"group4","full_name":"timjon/group4","owner":{"login":"timjon","id":25152409,"avatar_url":"https://avatars3.githubusercontent.com/u/25152409?v=4","gravatar_id":"","url":"https://api.github.com/users/timjon","html_url":"https://github.com/timjon","followers_url":"https://api.github.com/users/timjon/followers","following_url":"https://api.github.com/users/timjon/following{/other_user}","gists_url":"https://api.github.com/users/timjon/gists{/gist_id}","starred_url":"https://api.github.com/users/timjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timjon/subscriptions","organizations_url":"https://api.github.com/users/timjon/orgs","repos_url":"https://api.github.com/users/timjon/repos","events_url":"https://api.github.com/users/timjon/events{/privacy}","received_events_url":"https://api.github.com/users/timjon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timjon/group4","description":null,"fork":false,"url":"https://api.github.com/repos/timjon/group4","forks_url":"https://api.github.com/repos/timjon/group4/forks","keys_url":"https://api.github.com/repos/timjon/group4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timjon/group4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timjon/group4/teams","hooks_url":"https://api.github.com/repos/timjon/group4/hooks","issue_events_url":"https://api.github.com/repos/timjon/group4/issues/events{/number}","events_url":"https://api.github.com/repos/timjon/group4/events","assignees_url":"https://api.github.com/repos/timjon/group4/assignees{/user}","branches_url":"https://api.github.com/repos/timjon/group4/branches{/branch}","tags_url":"https://api.github.com/repos/timjon/group4/tags","blobs_url":"https://api.github.com/repos/timjon/group4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timjon/group4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timjon/group4/git/refs{/sha}","trees_url":"https://api.github.com/repos/timjon/group4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timjon/group4/statuses/{sha}","languages_url":"https://api.github.com/repos/timjon/group4/languages","stargazers_url":"https://api.github.com/repos/timjon/group4/stargazers","contributors_url":"https://api.github.com/repos/timjon/group4/contributors","subscribers_url":"https://api.github.com/repos/timjon/group4/subscribers","subscription_url":"https://api.github.com/repos/timjon/group4/subscription","commits_url":"https://api.github.com/repos/timjon/group4/commits{/sha}","git_commits_url":"https://api.github.com/repos/timjon/group4/git/commits{/sha}","comments_url":"https://api.github.com/repos/timjon/group4/comments{/number}","issue_comment_url":"https://api.github.com/repos/timjon/group4/issues/comments{/number}","contents_url":"https://api.github.com/repos/timjon/group4/contents/{+path}","compare_url":"https://api.github.com/repos/timjon/group4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timjon/group4/merges","archive_url":"https://api.github.com/repos/timjon/group4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timjon/group4/downloads","issues_url":"https://api.github.com/repos/timjon/group4/issues{/number}","pulls_url":"https://api.github.com/repos/timjon/group4/pulls{/number}","milestones_url":"https://api.github.com/repos/timjon/group4/milestones{/number}","notifications_url":"https://api.github.com/repos/timjon/group4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timjon/group4/labels{/name}","releases_url":"https://api.github.com/repos/timjon/group4/releases{/id}","deployments_url":"https://api.github.com/repos/timjon/group4/deployments","created_at":"2017-09-14T08:38:54Z","updated_at":"2017-11-13T20:59:54Z","pushed_at":"2017-11-14T08:01:57Z","git_url":"git://github.com/timjon/group4.git","ssh_url":"git@github.com:timjon/group4.git","clone_url":"https://github.com/timjon/group4.git","svn_url":"https://github.com/timjon/group4","homepage":null,"size":1118,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":5,"default_branch":"master"}},"base":{"label":"timjon:develop","ref":"develop","sha":"e2a40f3f336172126e1da68792ce042bf340aad4","user":{"login":"timjon","id":25152409,"avatar_url":"https://avatars3.githubusercontent.com/u/25152409?v=4","gravatar_id":"","url":"https://api.github.com/users/timjon","html_url":"https://github.com/timjon","followers_url":"https://api.github.com/users/timjon/followers","following_url":"https://api.github.com/users/timjon/following{/other_user}","gists_url":"https://api.github.com/users/timjon/gists{/gist_id}","starred_url":"https://api.github.com/users/timjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timjon/subscriptions","organizations_url":"https://api.github.com/users/timjon/orgs","repos_url":"https://api.github.com/users/timjon/repos","events_url":"https://api.github.com/users/timjon/events{/privacy}","received_events_url":"https://api.github.com/users/timjon/received_events","type":"User","site_admin":false},"repo":{"id":103508174,"name":"group4","full_name":"timjon/group4","owner":{"login":"timjon","id":25152409,"avatar_url":"https://avatars3.githubusercontent.com/u/25152409?v=4","gravatar_id":"","url":"https://api.github.com/users/timjon","html_url":"https://github.com/timjon","followers_url":"https://api.github.com/users/timjon/followers","following_url":"https://api.github.com/users/timjon/following{/other_user}","gists_url":"https://api.github.com/users/timjon/gists{/gist_id}","starred_url":"https://api.github.com/users/timjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timjon/subscriptions","organizations_url":"https://api.github.com/users/timjon/orgs","repos_url":"https://api.github.com/users/timjon/repos","events_url":"https://api.github.com/users/timjon/events{/privacy}","received_events_url":"https://api.github.com/users/timjon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timjon/group4","description":null,"fork":false,"url":"https://api.github.com/repos/timjon/group4","forks_url":"https://api.github.com/repos/timjon/group4/forks","keys_url":"https://api.github.com/repos/timjon/group4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timjon/group4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timjon/group4/teams","hooks_url":"https://api.github.com/repos/timjon/group4/hooks","issue_events_url":"https://api.github.com/repos/timjon/group4/issues/events{/number}","events_url":"https://api.github.com/repos/timjon/group4/events","assignees_url":"https://api.github.com/repos/timjon/group4/assignees{/user}","branches_url":"https://api.github.com/repos/timjon/group4/branches{/branch}","tags_url":"https://api.github.com/repos/timjon/group4/tags","blobs_url":"https://api.github.com/repos/timjon/group4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timjon/group4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timjon/group4/git/refs{/sha}","trees_url":"https://api.github.com/repos/timjon/group4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timjon/group4/statuses/{sha}","languages_url":"https://api.github.com/repos/timjon/group4/languages","stargazers_url":"https://api.github.com/repos/timjon/group4/stargazers","contributors_url":"https://api.github.com/repos/timjon/group4/contributors","subscribers_url":"https://api.github.com/repos/timjon/group4/subscribers","subscription_url":"https://api.github.com/repos/timjon/group4/subscription","commits_url":"https://api.github.com/repos/timjon/group4/commits{/sha}","git_commits_url":"https://api.github.com/repos/timjon/group4/git/commits{/sha}","comments_url":"https://api.github.com/repos/timjon/group4/comments{/number}","issue_comment_url":"https://api.github.com/repos/timjon/group4/issues/comments{/number}","contents_url":"https://api.github.com/repos/timjon/group4/contents/{+path}","compare_url":"https://api.github.com/repos/timjon/group4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timjon/group4/merges","archive_url":"https://api.github.com/repos/timjon/group4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timjon/group4/downloads","issues_url":"https://api.github.com/repos/timjon/group4/issues{/number}","pulls_url":"https://api.github.com/repos/timjon/group4/pulls{/number}","milestones_url":"https://api.github.com/repos/timjon/group4/milestones{/number}","notifications_url":"https://api.github.com/repos/timjon/group4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timjon/group4/labels{/name}","releases_url":"https://api.github.com/repos/timjon/group4/releases{/id}","deployments_url":"https://api.github.com/repos/timjon/group4/deployments","created_at":"2017-09-14T08:38:54Z","updated_at":"2017-11-13T20:59:54Z","pushed_at":"2017-11-14T08:01:57Z","git_url":"git://github.com/timjon/group4.git","ssh_url":"git@github.com:timjon/group4.git","clone_url":"https://github.com/timjon/group4.git","svn_url":"https://github.com/timjon/group4","homepage":null,"size":1118,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/timjon/group4/pulls/27"},"html":{"href":"https://github.com/timjon/group4/pull/27"},"issue":{"href":"https://api.github.com/repos/timjon/group4/issues/27"},"comments":{"href":"https://api.github.com/repos/timjon/group4/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/timjon/group4/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/timjon/group4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/timjon/group4/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/timjon/group4/statuses/3c1f09326375c06b2b37b01875b6e3d9f56c6c31"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Rashadse"}}