{"action":"created","comment":{"url":"https://api.github.com/repos/YRussov/template/pulls/comments/84435371","pull_request_review_id":5214142,"id":84435371,"diff_hunk":"@@ -0,0 +1,53 @@\n+#pragma once\r\n+\r\n+#include \"gameentity.hpp\"\r\n+#include \"bullet.hpp\"\r\n+\r\n+class Gun :public GameEntity\r\n+{\r\n+public:\r\n+\r\n+  Gun() = default;\r\n+\r\n+  Gun(int ammo) :m_ammo(ammo) {}\r\n+\r\n+  Gun(Box2D && position) :m_position(std::move(position)) {}\r\n+\r\n+  Gun(Gun const & obj) :m_ammo(obj.m_ammo) {}\r\n+\r\n+  Gun(Gun && obj) { std::swap(m_ammo, obj.m_ammo); }\r\n+\r\n+  Gun & operator = (Gun && obj)\r\n+  {\r\n+    std::swap(m_ammo, obj.m_ammo);\r\n+    return *this;\r\n+  }\r\n+\r\n+  void SetAmmo(unsigned int && ammo) { m_ammo = std::move(ammo); }\r\n+  void SetDirection(Point2D && direction) { m_direction = std::move(direction); }\r\n+  void SetPosition(Box2D && position) { m_position = std::move(position); }\r\n+\r\n+  unsigned int GetAmmo() const { return m_ammo; }\r\n+  Point2D GetDirection() const { return m_direction; }\r\n+  Box2D GetPosition() const { return m_position; }\r\n+\r\n+  Bullet Shot()\r\n+  {\r\n+    if (m_ammo > 0)\r\n+    {\r\n+      m_ammo--;\r\n+      Bullet bullet(m_position.Center(), m_direction);\r","path":"src/gun.hpp","position":39,"original_position":39,"commit_id":"8caeb2d7895d91700108448fff367c3d9e6a5b4f","original_commit_id":"8caeb2d7895d91700108448fff367c3d9e6a5b4f","user":{"login":"rokuz","id":5437220,"avatar_url":"https://avatars.githubusercontent.com/u/5437220?v=3","gravatar_id":"","url":"https://api.github.com/users/rokuz","html_url":"https://github.com/rokuz","followers_url":"https://api.github.com/users/rokuz/followers","following_url":"https://api.github.com/users/rokuz/following{/other_user}","gists_url":"https://api.github.com/users/rokuz/gists{/gist_id}","starred_url":"https://api.github.com/users/rokuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rokuz/subscriptions","organizations_url":"https://api.github.com/users/rokuz/orgs","repos_url":"https://api.github.com/users/rokuz/repos","events_url":"https://api.github.com/users/rokuz/events{/privacy}","received_events_url":"https://api.github.com/users/rokuz/received_events","type":"User","site_admin":false},"body":"return  Bullet(m_position.Center(), m_direction);","created_at":"2016-10-21T08:06:54Z","updated_at":"2016-10-21T08:06:54Z","html_url":"https://github.com/YRussov/template/pull/1#discussion_r84435371","pull_request_url":"https://api.github.com/repos/YRussov/template/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/YRussov/template/pulls/comments/84435371"},"html":{"href":"https://github.com/YRussov/template/pull/1#discussion_r84435371"},"pull_request":{"href":"https://api.github.com/repos/YRussov/template/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/YRussov/template/pulls/1","id":88329444,"html_url":"https://github.com/YRussov/template/pull/1","diff_url":"https://github.com/YRussov/template/pull/1.diff","patch_url":"https://github.com/YRussov/template/pull/1.patch","issue_url":"https://api.github.com/repos/YRussov/template/issues/1","number":1,"state":"open","locked":false,"title":"Y branch","user":{"login":"YRussov","id":22546620,"avatar_url":"https://avatars.githubusercontent.com/u/22546620?v=3","gravatar_id":"","url":"https://api.github.com/users/YRussov","html_url":"https://github.com/YRussov","followers_url":"https://api.github.com/users/YRussov/followers","following_url":"https://api.github.com/users/YRussov/following{/other_user}","gists_url":"https://api.github.com/users/YRussov/gists{/gist_id}","starred_url":"https://api.github.com/users/YRussov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YRussov/subscriptions","organizations_url":"https://api.github.com/users/YRussov/orgs","repos_url":"https://api.github.com/users/YRussov/repos","events_url":"https://api.github.com/users/YRussov/events{/privacy}","received_events_url":"https://api.github.com/users/YRussov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-06T19:53:07Z","updated_at":"2016-10-21T08:06:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4af1430eaded48d15edb86159e1137534f4163a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/YRussov/template/pulls/1/commits","review_comments_url":"https://api.github.com/repos/YRussov/template/pulls/1/comments","review_comment_url":"https://api.github.com/repos/YRussov/template/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YRussov/template/issues/1/comments","statuses_url":"https://api.github.com/repos/YRussov/template/statuses/8caeb2d7895d91700108448fff367c3d9e6a5b4f","head":{"label":"YRussov:YBranch","ref":"YBranch","sha":"8caeb2d7895d91700108448fff367c3d9e6a5b4f","user":{"login":"YRussov","id":22546620,"avatar_url":"https://avatars.githubusercontent.com/u/22546620?v=3","gravatar_id":"","url":"https://api.github.com/users/YRussov","html_url":"https://github.com/YRussov","followers_url":"https://api.github.com/users/YRussov/followers","following_url":"https://api.github.com/users/YRussov/following{/other_user}","gists_url":"https://api.github.com/users/YRussov/gists{/gist_id}","starred_url":"https://api.github.com/users/YRussov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YRussov/subscriptions","organizations_url":"https://api.github.com/users/YRussov/orgs","repos_url":"https://api.github.com/users/YRussov/repos","events_url":"https://api.github.com/users/YRussov/events{/privacy}","received_events_url":"https://api.github.com/users/YRussov/received_events","type":"User","site_admin":false},"repo":{"id":69701154,"name":"template","full_name":"YRussov/template","owner":{"login":"YRussov","id":22546620,"avatar_url":"https://avatars.githubusercontent.com/u/22546620?v=3","gravatar_id":"","url":"https://api.github.com/users/YRussov","html_url":"https://github.com/YRussov","followers_url":"https://api.github.com/users/YRussov/followers","following_url":"https://api.github.com/users/YRussov/following{/other_user}","gists_url":"https://api.github.com/users/YRussov/gists{/gist_id}","starred_url":"https://api.github.com/users/YRussov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YRussov/subscriptions","organizations_url":"https://api.github.com/users/YRussov/orgs","repos_url":"https://api.github.com/users/YRussov/repos","events_url":"https://api.github.com/users/YRussov/events{/privacy}","received_events_url":"https://api.github.com/users/YRussov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YRussov/template","description":"This is template C++11 project.","fork":true,"url":"https://api.github.com/repos/YRussov/template","forks_url":"https://api.github.com/repos/YRussov/template/forks","keys_url":"https://api.github.com/repos/YRussov/template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YRussov/template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YRussov/template/teams","hooks_url":"https://api.github.com/repos/YRussov/template/hooks","issue_events_url":"https://api.github.com/repos/YRussov/template/issues/events{/number}","events_url":"https://api.github.com/repos/YRussov/template/events","assignees_url":"https://api.github.com/repos/YRussov/template/assignees{/user}","branches_url":"https://api.github.com/repos/YRussov/template/branches{/branch}","tags_url":"https://api.github.com/repos/YRussov/template/tags","blobs_url":"https://api.github.com/repos/YRussov/template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YRussov/template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YRussov/template/git/refs{/sha}","trees_url":"https://api.github.com/repos/YRussov/template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YRussov/template/statuses/{sha}","languages_url":"https://api.github.com/repos/YRussov/template/languages","stargazers_url":"https://api.github.com/repos/YRussov/template/stargazers","contributors_url":"https://api.github.com/repos/YRussov/template/contributors","subscribers_url":"https://api.github.com/repos/YRussov/template/subscribers","subscription_url":"https://api.github.com/repos/YRussov/template/subscription","commits_url":"https://api.github.com/repos/YRussov/template/commits{/sha}","git_commits_url":"https://api.github.com/repos/YRussov/template/git/commits{/sha}","comments_url":"https://api.github.com/repos/YRussov/template/comments{/number}","issue_comment_url":"https://api.github.com/repos/YRussov/template/issues/comments{/number}","contents_url":"https://api.github.com/repos/YRussov/template/contents/{+path}","compare_url":"https://api.github.com/repos/YRussov/template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YRussov/template/merges","archive_url":"https://api.github.com/repos/YRussov/template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YRussov/template/downloads","issues_url":"https://api.github.com/repos/YRussov/template/issues{/number}","pulls_url":"https://api.github.com/repos/YRussov/template/pulls{/number}","milestones_url":"https://api.github.com/repos/YRussov/template/milestones{/number}","notifications_url":"https://api.github.com/repos/YRussov/template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YRussov/template/labels{/name}","releases_url":"https://api.github.com/repos/YRussov/template/releases{/id}","deployments_url":"https://api.github.com/repos/YRussov/template/deployments","created_at":"2016-09-30T20:49:10Z","updated_at":"2016-09-30T20:49:11Z","pushed_at":"2016-10-20T20:53:07Z","git_url":"git://github.com/YRussov/template.git","ssh_url":"git@github.com:YRussov/template.git","clone_url":"https://github.com/YRussov/template.git","svn_url":"https://github.com/YRussov/template","homepage":"","size":34,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"YRussov:master","ref":"master","sha":"671715820eeb1b13709ee7f2ebee344c5c71f222","user":{"login":"YRussov","id":22546620,"avatar_url":"https://avatars.githubusercontent.com/u/22546620?v=3","gravatar_id":"","url":"https://api.github.com/users/YRussov","html_url":"https://github.com/YRussov","followers_url":"https://api.github.com/users/YRussov/followers","following_url":"https://api.github.com/users/YRussov/following{/other_user}","gists_url":"https://api.github.com/users/YRussov/gists{/gist_id}","starred_url":"https://api.github.com/users/YRussov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YRussov/subscriptions","organizations_url":"https://api.github.com/users/YRussov/orgs","repos_url":"https://api.github.com/users/YRussov/repos","events_url":"https://api.github.com/users/YRussov/events{/privacy}","received_events_url":"https://api.github.com/users/YRussov/received_events","type":"User","site_admin":false},"repo":{"id":69701154,"name":"template","full_name":"YRussov/template","owner":{"login":"YRussov","id":22546620,"avatar_url":"https://avatars.githubusercontent.com/u/22546620?v=3","gravatar_id":"","url":"https://api.github.com/users/YRussov","html_url":"https://github.com/YRussov","followers_url":"https://api.github.com/users/YRussov/followers","following_url":"https://api.github.com/users/YRussov/following{/other_user}","gists_url":"https://api.github.com/users/YRussov/gists{/gist_id}","starred_url":"https://api.github.com/users/YRussov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YRussov/subscriptions","organizations_url":"https://api.github.com/users/YRussov/orgs","repos_url":"https://api.github.com/users/YRussov/repos","events_url":"https://api.github.com/users/YRussov/events{/privacy}","received_events_url":"https://api.github.com/users/YRussov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YRussov/template","description":"This is template C++11 project.","fork":true,"url":"https://api.github.com/repos/YRussov/template","forks_url":"https://api.github.com/repos/YRussov/template/forks","keys_url":"https://api.github.com/repos/YRussov/template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YRussov/template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YRussov/template/teams","hooks_url":"https://api.github.com/repos/YRussov/template/hooks","issue_events_url":"https://api.github.com/repos/YRussov/template/issues/events{/number}","events_url":"https://api.github.com/repos/YRussov/template/events","assignees_url":"https://api.github.com/repos/YRussov/template/assignees{/user}","branches_url":"https://api.github.com/repos/YRussov/template/branches{/branch}","tags_url":"https://api.github.com/repos/YRussov/template/tags","blobs_url":"https://api.github.com/repos/YRussov/template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YRussov/template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YRussov/template/git/refs{/sha}","trees_url":"https://api.github.com/repos/YRussov/template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YRussov/template/statuses/{sha}","languages_url":"https://api.github.com/repos/YRussov/template/languages","stargazers_url":"https://api.github.com/repos/YRussov/template/stargazers","contributors_url":"https://api.github.com/repos/YRussov/template/contributors","subscribers_url":"https://api.github.com/repos/YRussov/template/subscribers","subscription_url":"https://api.github.com/repos/YRussov/template/subscription","commits_url":"https://api.github.com/repos/YRussov/template/commits{/sha}","git_commits_url":"https://api.github.com/repos/YRussov/template/git/commits{/sha}","comments_url":"https://api.github.com/repos/YRussov/template/comments{/number}","issue_comment_url":"https://api.github.com/repos/YRussov/template/issues/comments{/number}","contents_url":"https://api.github.com/repos/YRussov/template/contents/{+path}","compare_url":"https://api.github.com/repos/YRussov/template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YRussov/template/merges","archive_url":"https://api.github.com/repos/YRussov/template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YRussov/template/downloads","issues_url":"https://api.github.com/repos/YRussov/template/issues{/number}","pulls_url":"https://api.github.com/repos/YRussov/template/pulls{/number}","milestones_url":"https://api.github.com/repos/YRussov/template/milestones{/number}","notifications_url":"https://api.github.com/repos/YRussov/template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YRussov/template/labels{/name}","releases_url":"https://api.github.com/repos/YRussov/template/releases{/id}","deployments_url":"https://api.github.com/repos/YRussov/template/deployments","created_at":"2016-09-30T20:49:10Z","updated_at":"2016-09-30T20:49:11Z","pushed_at":"2016-10-20T20:53:07Z","git_url":"git://github.com/YRussov/template.git","ssh_url":"git@github.com:YRussov/template.git","clone_url":"https://github.com/YRussov/template.git","svn_url":"https://github.com/YRussov/template","homepage":"","size":34,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/YRussov/template/pulls/1"},"html":{"href":"https://github.com/YRussov/template/pull/1"},"issue":{"href":"https://api.github.com/repos/YRussov/template/issues/1"},"comments":{"href":"https://api.github.com/repos/YRussov/template/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/YRussov/template/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/YRussov/template/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YRussov/template/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/YRussov/template/statuses/8caeb2d7895d91700108448fff367c3d9e6a5b4f"}}}}
{"actor":{"display_login":"rokuz"}}