{"action":"created","comment":{"url":"https://api.github.com/repos/gdxn96/swarm-wars/pulls/comments/42165231","id":42165231,"diff_hunk":"@@ -0,0 +1,47 @@\n+#pragma once\n+\n+#ifndef CHARACTER_H\n+#define CHARACTER_H\n+\n+#include \"SFML/Graphics.hpp\" \n+#include \"SFML/OpenGL.hpp\" \n+\n+using namespace sf;\n+\n+\n+\n+class Character\n+{\n+private:\n+\t//Character\n+\tbool m_move;\n+\tVector2f m_centre;\n+\tVector2f m_pos;\n+\tfloat m_radius;\n+\tfloat m_speed;\n+\tfloat m_angle;\n+\tCircleShape m_shape;\n+\n+\t//Target\n+\tVector2f m_targetPos; \n+\tfloat m_targetRadius;\n+\tfloat m_targetAngle;\n+\tCircleShape m_target;\n+\n+public:\n+\tCharacter();\n+\tCharacter(float, float, Color, Color, Vector2f);\n+\tvoid update();\n+\tvoid draw(RenderWindow&);\n+\tvoid resetAngles();\n+\tfloat findAngleBetween();\n+\n+\t// Get methods\n+\n+\t// Set methods\n+\tvoid setTargetAngle(float, float);\n+\tvoid setMove(bool);","path":"Spikes/movement/Character.h","position":43,"original_position":43,"commit_id":"4c711fe1431ea84b967f691266984a57a9e2685a","original_commit_id":"4c711fe1431ea84b967f691266984a57a9e2685a","user":{"login":"gdxn96","id":12607360,"avatar_url":"https://avatars.githubusercontent.com/u/12607360?v=3","gravatar_id":"","url":"https://api.github.com/users/gdxn96","html_url":"https://github.com/gdxn96","followers_url":"https://api.github.com/users/gdxn96/followers","following_url":"https://api.github.com/users/gdxn96/following{/other_user}","gists_url":"https://api.github.com/users/gdxn96/gists{/gist_id}","starred_url":"https://api.github.com/users/gdxn96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdxn96/subscriptions","organizations_url":"https://api.github.com/users/gdxn96/orgs","repos_url":"https://api.github.com/users/gdxn96/repos","events_url":"https://api.github.com/users/gdxn96/events{/privacy}","received_events_url":"https://api.github.com/users/gdxn96/received_events","type":"User","site_admin":false},"body":"these are grand","created_at":"2015-10-15T18:55:36Z","updated_at":"2015-10-15T18:55:36Z","html_url":"https://github.com/gdxn96/swarm-wars/pull/5#discussion_r42165231","pull_request_url":"https://api.github.com/repos/gdxn96/swarm-wars/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/gdxn96/swarm-wars/pulls/comments/42165231"},"html":{"href":"https://github.com/gdxn96/swarm-wars/pull/5#discussion_r42165231"},"pull_request":{"href":"https://api.github.com/repos/gdxn96/swarm-wars/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/gdxn96/swarm-wars/pulls/5","id":47704837,"html_url":"https://github.com/gdxn96/swarm-wars/pull/5","diff_url":"https://github.com/gdxn96/swarm-wars/pull/5.diff","patch_url":"https://github.com/gdxn96/swarm-wars/pull/5.patch","issue_url":"https://api.github.com/repos/gdxn96/swarm-wars/issues/5","number":5,"state":"open","locked":false,"title":"Movement","user":{"login":"gdxn96","id":12607360,"avatar_url":"https://avatars.githubusercontent.com/u/12607360?v=3","gravatar_id":"","url":"https://api.github.com/users/gdxn96","html_url":"https://github.com/gdxn96","followers_url":"https://api.github.com/users/gdxn96/followers","following_url":"https://api.github.com/users/gdxn96/following{/other_user}","gists_url":"https://api.github.com/users/gdxn96/gists{/gist_id}","starred_url":"https://api.github.com/users/gdxn96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdxn96/subscriptions","organizations_url":"https://api.github.com/users/gdxn96/orgs","repos_url":"https://api.github.com/users/gdxn96/repos","events_url":"https://api.github.com/users/gdxn96/events{/privacy}","received_events_url":"https://api.github.com/users/gdxn96/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-14T19:39:03Z","updated_at":"2015-10-15T18:55:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae1a346b9f614872894e099b0d090ecebddb73a9","assignee":{"login":"gdxn96","id":12607360,"avatar_url":"https://avatars.githubusercontent.com/u/12607360?v=3","gravatar_id":"","url":"https://api.github.com/users/gdxn96","html_url":"https://github.com/gdxn96","followers_url":"https://api.github.com/users/gdxn96/followers","following_url":"https://api.github.com/users/gdxn96/following{/other_user}","gists_url":"https://api.github.com/users/gdxn96/gists{/gist_id}","starred_url":"https://api.github.com/users/gdxn96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdxn96/subscriptions","organizations_url":"https://api.github.com/users/gdxn96/orgs","repos_url":"https://api.github.com/users/gdxn96/repos","events_url":"https://api.github.com/users/gdxn96/events{/privacy}","received_events_url":"https://api.github.com/users/gdxn96/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/gdxn96/swarm-wars/pulls/5/commits","review_comments_url":"https://api.github.com/repos/gdxn96/swarm-wars/pulls/5/comments","review_comment_url":"https://api.github.com/repos/gdxn96/swarm-wars/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gdxn96/swarm-wars/issues/5/comments","statuses_url":"https://api.github.com/repos/gdxn96/swarm-wars/statuses/4c711fe1431ea84b967f691266984a57a9e2685a","head":{"label":"gdxn96:movement","ref":"movement","sha":"4c711fe1431ea84b967f691266984a57a9e2685a","user":{"login":"gdxn96","id":12607360,"avatar_url":"https://avatars.githubusercontent.com/u/12607360?v=3","gravatar_id":"","url":"https://api.github.com/users/gdxn96","html_url":"https://github.com/gdxn96","followers_url":"https://api.github.com/users/gdxn96/followers","following_url":"https://api.github.com/users/gdxn96/following{/other_user}","gists_url":"https://api.github.com/users/gdxn96/gists{/gist_id}","starred_url":"https://api.github.com/users/gdxn96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdxn96/subscriptions","organizations_url":"https://api.github.com/users/gdxn96/orgs","repos_url":"https://api.github.com/users/gdxn96/repos","events_url":"https://api.github.com/users/gdxn96/events{/privacy}","received_events_url":"https://api.github.com/users/gdxn96/received_events","type":"User","site_admin":false},"repo":{"id":43497649,"name":"swarm-wars","full_name":"gdxn96/swarm-wars","owner":{"login":"gdxn96","id":12607360,"avatar_url":"https://avatars.githubusercontent.com/u/12607360?v=3","gravatar_id":"","url":"https://api.github.com/users/gdxn96","html_url":"https://github.com/gdxn96","followers_url":"https://api.github.com/users/gdxn96/followers","following_url":"https://api.github.com/users/gdxn96/following{/other_user}","gists_url":"https://api.github.com/users/gdxn96/gists{/gist_id}","starred_url":"https://api.github.com/users/gdxn96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdxn96/subscriptions","organizations_url":"https://api.github.com/users/gdxn96/orgs","repos_url":"https://api.github.com/users/gdxn96/repos","events_url":"https://api.github.com/users/gdxn96/events{/privacy}","received_events_url":"https://api.github.com/users/gdxn96/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gdxn96/swarm-wars","description":"","fork":false,"url":"https://api.github.com/repos/gdxn96/swarm-wars","forks_url":"https://api.github.com/repos/gdxn96/swarm-wars/forks","keys_url":"https://api.github.com/repos/gdxn96/swarm-wars/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gdxn96/swarm-wars/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gdxn96/swarm-wars/teams","hooks_url":"https://api.github.com/repos/gdxn96/swarm-wars/hooks","issue_events_url":"https://api.github.com/repos/gdxn96/swarm-wars/issues/events{/number}","events_url":"https://api.github.com/repos/gdxn96/swarm-wars/events","assignees_url":"https://api.github.com/repos/gdxn96/swarm-wars/assignees{/user}","branches_url":"https://api.github.com/repos/gdxn96/swarm-wars/branches{/branch}","tags_url":"https://api.github.com/repos/gdxn96/swarm-wars/tags","blobs_url":"https://api.github.com/repos/gdxn96/swarm-wars/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gdxn96/swarm-wars/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gdxn96/swarm-wars/git/refs{/sha}","trees_url":"https://api.github.com/repos/gdxn96/swarm-wars/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gdxn96/swarm-wars/statuses/{sha}","languages_url":"https://api.github.com/repos/gdxn96/swarm-wars/languages","stargazers_url":"https://api.github.com/repos/gdxn96/swarm-wars/stargazers","contributors_url":"https://api.github.com/repos/gdxn96/swarm-wars/contributors","subscribers_url":"https://api.github.com/repos/gdxn96/swarm-wars/subscribers","subscription_url":"https://api.github.com/repos/gdxn96/swarm-wars/subscription","commits_url":"https://api.github.com/repos/gdxn96/swarm-wars/commits{/sha}","git_commits_url":"https://api.github.com/repos/gdxn96/swarm-wars/git/commits{/sha}","comments_url":"https://api.github.com/repos/gdxn96/swarm-wars/comments{/number}","issue_comment_url":"https://api.github.com/repos/gdxn96/swarm-wars/issues/comments{/number}","contents_url":"https://api.github.com/repos/gdxn96/swarm-wars/contents/{+path}","compare_url":"https://api.github.com/repos/gdxn96/swarm-wars/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gdxn96/swarm-wars/merges","archive_url":"https://api.github.com/repos/gdxn96/swarm-wars/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gdxn96/swarm-wars/downloads","issues_url":"https://api.github.com/repos/gdxn96/swarm-wars/issues{/number}","pulls_url":"https://api.github.com/repos/gdxn96/swarm-wars/pulls{/number}","milestones_url":"https://api.github.com/repos/gdxn96/swarm-wars/milestones{/number}","notifications_url":"https://api.github.com/repos/gdxn96/swarm-wars/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gdxn96/swarm-wars/labels{/name}","releases_url":"https://api.github.com/repos/gdxn96/swarm-wars/releases{/id}","created_at":"2015-10-01T13:22:24Z","updated_at":"2015-10-01T14:05:33Z","pushed_at":"2015-10-15T18:02:41Z","git_url":"git://github.com/gdxn96/swarm-wars.git","ssh_url":"git@github.com:gdxn96/swarm-wars.git","clone_url":"https://github.com/gdxn96/swarm-wars.git","svn_url":"https://github.com/gdxn96/swarm-wars","homepage":null,"size":17796,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"gdxn96:master","ref":"master","sha":"913055e0eee3f15d22e8b421a4ce47adfa27bfd4","user":{"login":"gdxn96","id":12607360,"avatar_url":"https://avatars.githubusercontent.com/u/12607360?v=3","gravatar_id":"","url":"https://api.github.com/users/gdxn96","html_url":"https://github.com/gdxn96","followers_url":"https://api.github.com/users/gdxn96/followers","following_url":"https://api.github.com/users/gdxn96/following{/other_user}","gists_url":"https://api.github.com/users/gdxn96/gists{/gist_id}","starred_url":"https://api.github.com/users/gdxn96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdxn96/subscriptions","organizations_url":"https://api.github.com/users/gdxn96/orgs","repos_url":"https://api.github.com/users/gdxn96/repos","events_url":"https://api.github.com/users/gdxn96/events{/privacy}","received_events_url":"https://api.github.com/users/gdxn96/received_events","type":"User","site_admin":false},"repo":{"id":43497649,"name":"swarm-wars","full_name":"gdxn96/swarm-wars","owner":{"login":"gdxn96","id":12607360,"avatar_url":"https://avatars.githubusercontent.com/u/12607360?v=3","gravatar_id":"","url":"https://api.github.com/users/gdxn96","html_url":"https://github.com/gdxn96","followers_url":"https://api.github.com/users/gdxn96/followers","following_url":"https://api.github.com/users/gdxn96/following{/other_user}","gists_url":"https://api.github.com/users/gdxn96/gists{/gist_id}","starred_url":"https://api.github.com/users/gdxn96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdxn96/subscriptions","organizations_url":"https://api.github.com/users/gdxn96/orgs","repos_url":"https://api.github.com/users/gdxn96/repos","events_url":"https://api.github.com/users/gdxn96/events{/privacy}","received_events_url":"https://api.github.com/users/gdxn96/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gdxn96/swarm-wars","description":"","fork":false,"url":"https://api.github.com/repos/gdxn96/swarm-wars","forks_url":"https://api.github.com/repos/gdxn96/swarm-wars/forks","keys_url":"https://api.github.com/repos/gdxn96/swarm-wars/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gdxn96/swarm-wars/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gdxn96/swarm-wars/teams","hooks_url":"https://api.github.com/repos/gdxn96/swarm-wars/hooks","issue_events_url":"https://api.github.com/repos/gdxn96/swarm-wars/issues/events{/number}","events_url":"https://api.github.com/repos/gdxn96/swarm-wars/events","assignees_url":"https://api.github.com/repos/gdxn96/swarm-wars/assignees{/user}","branches_url":"https://api.github.com/repos/gdxn96/swarm-wars/branches{/branch}","tags_url":"https://api.github.com/repos/gdxn96/swarm-wars/tags","blobs_url":"https://api.github.com/repos/gdxn96/swarm-wars/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gdxn96/swarm-wars/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gdxn96/swarm-wars/git/refs{/sha}","trees_url":"https://api.github.com/repos/gdxn96/swarm-wars/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gdxn96/swarm-wars/statuses/{sha}","languages_url":"https://api.github.com/repos/gdxn96/swarm-wars/languages","stargazers_url":"https://api.github.com/repos/gdxn96/swarm-wars/stargazers","contributors_url":"https://api.github.com/repos/gdxn96/swarm-wars/contributors","subscribers_url":"https://api.github.com/repos/gdxn96/swarm-wars/subscribers","subscription_url":"https://api.github.com/repos/gdxn96/swarm-wars/subscription","commits_url":"https://api.github.com/repos/gdxn96/swarm-wars/commits{/sha}","git_commits_url":"https://api.github.com/repos/gdxn96/swarm-wars/git/commits{/sha}","comments_url":"https://api.github.com/repos/gdxn96/swarm-wars/comments{/number}","issue_comment_url":"https://api.github.com/repos/gdxn96/swarm-wars/issues/comments{/number}","contents_url":"https://api.github.com/repos/gdxn96/swarm-wars/contents/{+path}","compare_url":"https://api.github.com/repos/gdxn96/swarm-wars/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gdxn96/swarm-wars/merges","archive_url":"https://api.github.com/repos/gdxn96/swarm-wars/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gdxn96/swarm-wars/downloads","issues_url":"https://api.github.com/repos/gdxn96/swarm-wars/issues{/number}","pulls_url":"https://api.github.com/repos/gdxn96/swarm-wars/pulls{/number}","milestones_url":"https://api.github.com/repos/gdxn96/swarm-wars/milestones{/number}","notifications_url":"https://api.github.com/repos/gdxn96/swarm-wars/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gdxn96/swarm-wars/labels{/name}","releases_url":"https://api.github.com/repos/gdxn96/swarm-wars/releases{/id}","created_at":"2015-10-01T13:22:24Z","updated_at":"2015-10-01T14:05:33Z","pushed_at":"2015-10-15T18:02:41Z","git_url":"git://github.com/gdxn96/swarm-wars.git","ssh_url":"git@github.com:gdxn96/swarm-wars.git","clone_url":"https://github.com/gdxn96/swarm-wars.git","svn_url":"https://github.com/gdxn96/swarm-wars","homepage":null,"size":17796,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gdxn96/swarm-wars/pulls/5"},"html":{"href":"https://github.com/gdxn96/swarm-wars/pull/5"},"issue":{"href":"https://api.github.com/repos/gdxn96/swarm-wars/issues/5"},"comments":{"href":"https://api.github.com/repos/gdxn96/swarm-wars/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/gdxn96/swarm-wars/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/gdxn96/swarm-wars/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gdxn96/swarm-wars/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/gdxn96/swarm-wars/statuses/4c711fe1431ea84b967f691266984a57a9e2685a"}}}}