{"action":"created","comment":{"url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls/comments/48251180","id":48251180,"diff_hunk":"@@ -0,0 +1,130 @@\n+#include \"bullet.h\"\n+#include \"game.h\"\n+\n+int Bullet::numberOfCreatedBullets = 0;\n+\n+Bullet::Bullet(QPointF center, qreal angle, Game *game)\n+    : bulletCenter(center),\n+      initialCenter(center),\n+      iteration(0),\n+      bulletRadius(5),\n+      coefficient(4.0),\n+      angle(angle),\n+      speed(55),\n+      timer(nullptr),\n+      isReadyToBurst(false),\n+      game(game),\n+      id(numberOfCreatedBullets)\n+{\n+    radiusOfBurst = 40;\n+    numberOfCreatedBullets++;\n+    this->game->addBullet(this);\n+}\n+\n+Bullet::~Bullet()\n+{\n+    if (timer)","path":"3-semester/TanksGame/Tanks/Elements/bullet.cpp","position":26,"original_position":26,"commit_id":"4e608688dab4c7df855342ae40b47d7a87471883","original_commit_id":"4e608688dab4c7df855342ae40b47d7a87471883","user":{"login":"jzuken","id":705678,"avatar_url":"https://avatars.githubusercontent.com/u/705678?v=3","gravatar_id":"","url":"https://api.github.com/users/jzuken","html_url":"https://github.com/jzuken","followers_url":"https://api.github.com/users/jzuken/followers","following_url":"https://api.github.com/users/jzuken/following{/other_user}","gists_url":"https://api.github.com/users/jzuken/gists{/gist_id}","starred_url":"https://api.github.com/users/jzuken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzuken/subscriptions","organizations_url":"https://api.github.com/users/jzuken/orgs","repos_url":"https://api.github.com/users/jzuken/repos","events_url":"https://api.github.com/users/jzuken/events{/privacy}","received_events_url":"https://api.github.com/users/jzuken/received_events","type":"User","site_admin":false},"body":"а если он уже nullptr, то от delete ничего плохого не случится. так что проверка не особо актуальна","created_at":"2015-12-22T13:10:09Z","updated_at":"2015-12-22T13:10:09Z","html_url":"https://github.com/kbatoev/SpbSU-Homeworks/pull/28#discussion_r48251180","pull_request_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls/comments/48251180"},"html":{"href":"https://github.com/kbatoev/SpbSU-Homeworks/pull/28#discussion_r48251180"},"pull_request":{"href":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls/28","id":53547021,"html_url":"https://github.com/kbatoev/SpbSU-Homeworks/pull/28","diff_url":"https://github.com/kbatoev/SpbSU-Homeworks/pull/28.diff","patch_url":"https://github.com/kbatoev/SpbSU-Homeworks/pull/28.patch","issue_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/issues/28","number":28,"state":"open","locked":false,"title":"PR. Tanks Game","user":{"login":"kbatoev","id":10994842,"avatar_url":"https://avatars.githubusercontent.com/u/10994842?v=3","gravatar_id":"","url":"https://api.github.com/users/kbatoev","html_url":"https://github.com/kbatoev","followers_url":"https://api.github.com/users/kbatoev/followers","following_url":"https://api.github.com/users/kbatoev/following{/other_user}","gists_url":"https://api.github.com/users/kbatoev/gists{/gist_id}","starred_url":"https://api.github.com/users/kbatoev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbatoev/subscriptions","organizations_url":"https://api.github.com/users/kbatoev/orgs","repos_url":"https://api.github.com/users/kbatoev/repos","events_url":"https://api.github.com/users/kbatoev/events{/privacy}","received_events_url":"https://api.github.com/users/kbatoev/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-14T10:30:25Z","updated_at":"2015-12-22T13:10:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8f4e86d646b65873190ef511522c4eccd8d2aba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls/28/commits","review_comments_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls/28/comments","review_comment_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/issues/28/comments","statuses_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/statuses/4e608688dab4c7df855342ae40b47d7a87471883","head":{"label":"kbatoev:3-1","ref":"3-1","sha":"4e608688dab4c7df855342ae40b47d7a87471883","user":{"login":"kbatoev","id":10994842,"avatar_url":"https://avatars.githubusercontent.com/u/10994842?v=3","gravatar_id":"","url":"https://api.github.com/users/kbatoev","html_url":"https://github.com/kbatoev","followers_url":"https://api.github.com/users/kbatoev/followers","following_url":"https://api.github.com/users/kbatoev/following{/other_user}","gists_url":"https://api.github.com/users/kbatoev/gists{/gist_id}","starred_url":"https://api.github.com/users/kbatoev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbatoev/subscriptions","organizations_url":"https://api.github.com/users/kbatoev/orgs","repos_url":"https://api.github.com/users/kbatoev/repos","events_url":"https://api.github.com/users/kbatoev/events{/privacy}","received_events_url":"https://api.github.com/users/kbatoev/received_events","type":"User","site_admin":false},"repo":{"id":31053008,"name":"SpbSU-Homeworks","full_name":"kbatoev/SpbSU-Homeworks","owner":{"login":"kbatoev","id":10994842,"avatar_url":"https://avatars.githubusercontent.com/u/10994842?v=3","gravatar_id":"","url":"https://api.github.com/users/kbatoev","html_url":"https://github.com/kbatoev","followers_url":"https://api.github.com/users/kbatoev/followers","following_url":"https://api.github.com/users/kbatoev/following{/other_user}","gists_url":"https://api.github.com/users/kbatoev/gists{/gist_id}","starred_url":"https://api.github.com/users/kbatoev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbatoev/subscriptions","organizations_url":"https://api.github.com/users/kbatoev/orgs","repos_url":"https://api.github.com/users/kbatoev/repos","events_url":"https://api.github.com/users/kbatoev/events{/privacy}","received_events_url":"https://api.github.com/users/kbatoev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kbatoev/SpbSU-Homeworks","description":"","fork":false,"url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks","forks_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/forks","keys_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/teams","hooks_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/hooks","issue_events_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/issues/events{/number}","events_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/events","assignees_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/assignees{/user}","branches_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/branches{/branch}","tags_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/tags","blobs_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/statuses/{sha}","languages_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/languages","stargazers_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/stargazers","contributors_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/contributors","subscribers_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/subscribers","subscription_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/subscription","commits_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/contents/{+path}","compare_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/merges","archive_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/downloads","issues_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/issues{/number}","pulls_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls{/number}","milestones_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/milestones{/number}","notifications_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/labels{/name}","releases_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/releases{/id}","created_at":"2015-02-20T05:59:46Z","updated_at":"2015-05-07T10:06:27Z","pushed_at":"2015-12-21T19:27:33Z","git_url":"git://github.com/kbatoev/SpbSU-Homeworks.git","ssh_url":"git@github.com:kbatoev/SpbSU-Homeworks.git","clone_url":"https://github.com/kbatoev/SpbSU-Homeworks.git","svn_url":"https://github.com/kbatoev/SpbSU-Homeworks","homepage":null,"size":528,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"kbatoev:master","ref":"master","sha":"95e9985d6f8704a31b38a9d2b5c224d995c78c7e","user":{"login":"kbatoev","id":10994842,"avatar_url":"https://avatars.githubusercontent.com/u/10994842?v=3","gravatar_id":"","url":"https://api.github.com/users/kbatoev","html_url":"https://github.com/kbatoev","followers_url":"https://api.github.com/users/kbatoev/followers","following_url":"https://api.github.com/users/kbatoev/following{/other_user}","gists_url":"https://api.github.com/users/kbatoev/gists{/gist_id}","starred_url":"https://api.github.com/users/kbatoev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbatoev/subscriptions","organizations_url":"https://api.github.com/users/kbatoev/orgs","repos_url":"https://api.github.com/users/kbatoev/repos","events_url":"https://api.github.com/users/kbatoev/events{/privacy}","received_events_url":"https://api.github.com/users/kbatoev/received_events","type":"User","site_admin":false},"repo":{"id":31053008,"name":"SpbSU-Homeworks","full_name":"kbatoev/SpbSU-Homeworks","owner":{"login":"kbatoev","id":10994842,"avatar_url":"https://avatars.githubusercontent.com/u/10994842?v=3","gravatar_id":"","url":"https://api.github.com/users/kbatoev","html_url":"https://github.com/kbatoev","followers_url":"https://api.github.com/users/kbatoev/followers","following_url":"https://api.github.com/users/kbatoev/following{/other_user}","gists_url":"https://api.github.com/users/kbatoev/gists{/gist_id}","starred_url":"https://api.github.com/users/kbatoev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbatoev/subscriptions","organizations_url":"https://api.github.com/users/kbatoev/orgs","repos_url":"https://api.github.com/users/kbatoev/repos","events_url":"https://api.github.com/users/kbatoev/events{/privacy}","received_events_url":"https://api.github.com/users/kbatoev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kbatoev/SpbSU-Homeworks","description":"","fork":false,"url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks","forks_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/forks","keys_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/teams","hooks_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/hooks","issue_events_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/issues/events{/number}","events_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/events","assignees_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/assignees{/user}","branches_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/branches{/branch}","tags_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/tags","blobs_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/statuses/{sha}","languages_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/languages","stargazers_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/stargazers","contributors_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/contributors","subscribers_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/subscribers","subscription_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/subscription","commits_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/contents/{+path}","compare_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/merges","archive_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/downloads","issues_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/issues{/number}","pulls_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls{/number}","milestones_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/milestones{/number}","notifications_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/labels{/name}","releases_url":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/releases{/id}","created_at":"2015-02-20T05:59:46Z","updated_at":"2015-05-07T10:06:27Z","pushed_at":"2015-12-21T19:27:33Z","git_url":"git://github.com/kbatoev/SpbSU-Homeworks.git","ssh_url":"git@github.com:kbatoev/SpbSU-Homeworks.git","clone_url":"https://github.com/kbatoev/SpbSU-Homeworks.git","svn_url":"https://github.com/kbatoev/SpbSU-Homeworks","homepage":null,"size":528,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls/28"},"html":{"href":"https://github.com/kbatoev/SpbSU-Homeworks/pull/28"},"issue":{"href":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/issues/28"},"comments":{"href":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/kbatoev/SpbSU-Homeworks/statuses/4e608688dab4c7df855342ae40b47d7a87471883"}}}}