{"action":"created","comment":{"url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls/comments/22640778","id":22640778,"diff_hunk":"@@ -41,6 +41,42 @@ void Client::PlayerMoved( IEventPtr newEvent )\n \t}\n }\n \n+void Client::PlayerDied(IEventPtr newEvent)\n+{\n+\tif (newEvent->GetEventType() == Event_Player_Died::GUID)\n+\t{\n+\t\tstd::shared_ptr<Event_Player_Died> data = std::static_pointer_cast<Event_Player_Died>(newEvent);\n+\t\tif (mServerSocket != INVALID_SOCKET)\n+\t\t{\n+\t\t\tEvPlayerConnection msg;\n+\t\t\tmsg.ID = data->ID();\n+\n+\t\t\tif (mServerSocket != INVALID_SOCKET)\n+\t\t\t{\n+\t\t\t\tmConn->SendPkg(mServerSocket, 0, Net_Event::EV_PLAYER_DIED, msg);\n+\t\t\t}\n+\t\t}\n+\t}\n+}\n+\n+void Client::PlayerDamaged( IEventPtr newEvent )\n+{\n+\tif (newEvent->GetEventType() == Event_Player_Damaged::GUID)\n+\t{\n+\t\tstd::shared_ptr<Event_Player_Damaged> data = std::static_pointer_cast<Event_Player_Damaged>(newEvent);\n+\t\tif (mServerSocket != INVALID_SOCKET)","path":"ProjectFlightSchool/ProjectFlightSchool/Client.cpp","position":27,"original_position":27,"commit_id":"9000b014873f31cc00ffd70937419cdad971c738","original_commit_id":"9000b014873f31cc00ffd70937419cdad971c738","user":{"login":"Gnidleif","id":4114733,"avatar_url":"https://avatars.githubusercontent.com/u/4114733?v=3","gravatar_id":"","url":"https://api.github.com/users/Gnidleif","html_url":"https://github.com/Gnidleif","followers_url":"https://api.github.com/users/Gnidleif/followers","following_url":"https://api.github.com/users/Gnidleif/following{/other_user}","gists_url":"https://api.github.com/users/Gnidleif/gists{/gist_id}","starred_url":"https://api.github.com/users/Gnidleif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gnidleif/subscriptions","organizations_url":"https://api.github.com/users/Gnidleif/orgs","repos_url":"https://api.github.com/users/Gnidleif/repos","events_url":"https://api.github.com/users/Gnidleif/events{/privacy}","received_events_url":"https://api.github.com/users/Gnidleif/received_events","type":"User","site_admin":false},"body":"Code standard spacing","created_at":"2015-01-08T08:57:55Z","updated_at":"2015-01-08T08:57:55Z","html_url":"https://github.com/SvinSimpe/Project-Flight-School/pull/82#discussion_r22640778","pull_request_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls/82","_links":{"self":{"href":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls/comments/22640778"},"html":{"href":"https://github.com/SvinSimpe/Project-Flight-School/pull/82#discussion_r22640778"},"pull_request":{"href":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls/82"}}},"pull_request":{"url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls/82","id":26953045,"html_url":"https://github.com/SvinSimpe/Project-Flight-School/pull/82","diff_url":"https://github.com/SvinSimpe/Project-Flight-School/pull/82.diff","patch_url":"https://github.com/SvinSimpe/Project-Flight-School/pull/82.patch","issue_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/issues/82","number":82,"state":"open","locked":false,"title":"Player hp","user":{"login":"sege12","id":7314389,"avatar_url":"https://avatars.githubusercontent.com/u/7314389?v=3","gravatar_id":"","url":"https://api.github.com/users/sege12","html_url":"https://github.com/sege12","followers_url":"https://api.github.com/users/sege12/followers","following_url":"https://api.github.com/users/sege12/following{/other_user}","gists_url":"https://api.github.com/users/sege12/gists{/gist_id}","starred_url":"https://api.github.com/users/sege12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sege12/subscriptions","organizations_url":"https://api.github.com/users/sege12/orgs","repos_url":"https://api.github.com/users/sege12/repos","events_url":"https://api.github.com/users/sege12/events{/privacy}","received_events_url":"https://api.github.com/users/sege12/received_events","type":"User","site_admin":false},"body":"Please review","created_at":"2015-01-07T11:57:44Z","updated_at":"2015-01-08T08:57:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34298e8c02beedffb6c0f02a9147d86da12102fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls/82/commits","review_comments_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls/82/comments","review_comment_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls/comments/{number}","comments_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/issues/82/comments","statuses_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/statuses/9000b014873f31cc00ffd70937419cdad971c738","head":{"label":"SvinSimpe:PlayerHP","ref":"PlayerHP","sha":"9000b014873f31cc00ffd70937419cdad971c738","user":{"login":"SvinSimpe","id":7174343,"avatar_url":"https://avatars.githubusercontent.com/u/7174343?v=3","gravatar_id":"","url":"https://api.github.com/users/SvinSimpe","html_url":"https://github.com/SvinSimpe","followers_url":"https://api.github.com/users/SvinSimpe/followers","following_url":"https://api.github.com/users/SvinSimpe/following{/other_user}","gists_url":"https://api.github.com/users/SvinSimpe/gists{/gist_id}","starred_url":"https://api.github.com/users/SvinSimpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvinSimpe/subscriptions","organizations_url":"https://api.github.com/users/SvinSimpe/orgs","repos_url":"https://api.github.com/users/SvinSimpe/repos","events_url":"https://api.github.com/users/SvinSimpe/events{/privacy}","received_events_url":"https://api.github.com/users/SvinSimpe/received_events","type":"User","site_admin":false},"repo":{"id":26538774,"name":"Project-Flight-School","full_name":"SvinSimpe/Project-Flight-School","owner":{"login":"SvinSimpe","id":7174343,"avatar_url":"https://avatars.githubusercontent.com/u/7174343?v=3","gravatar_id":"","url":"https://api.github.com/users/SvinSimpe","html_url":"https://github.com/SvinSimpe","followers_url":"https://api.github.com/users/SvinSimpe/followers","following_url":"https://api.github.com/users/SvinSimpe/following{/other_user}","gists_url":"https://api.github.com/users/SvinSimpe/gists{/gist_id}","starred_url":"https://api.github.com/users/SvinSimpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvinSimpe/subscriptions","organizations_url":"https://api.github.com/users/SvinSimpe/orgs","repos_url":"https://api.github.com/users/SvinSimpe/repos","events_url":"https://api.github.com/users/SvinSimpe/events{/privacy}","received_events_url":"https://api.github.com/users/SvinSimpe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SvinSimpe/Project-Flight-School","description":"","fork":false,"url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School","forks_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/forks","keys_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/teams","hooks_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/hooks","issue_events_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/issues/events{/number}","events_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/events","assignees_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/assignees{/user}","branches_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/branches{/branch}","tags_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/tags","blobs_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/git/refs{/sha}","trees_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/statuses/{sha}","languages_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/languages","stargazers_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/stargazers","contributors_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/contributors","subscribers_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/subscribers","subscription_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/subscription","commits_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/commits{/sha}","git_commits_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/git/commits{/sha}","comments_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/comments{/number}","issue_comment_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/issues/comments/{number}","contents_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/contents/{+path}","compare_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/merges","archive_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/downloads","issues_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/issues{/number}","pulls_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls{/number}","milestones_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/milestones{/number}","notifications_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/labels{/name}","releases_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/releases{/id}","created_at":"2014-11-12T14:06:46Z","updated_at":"2015-01-08T08:28:17Z","pushed_at":"2015-01-08T08:47:18Z","git_url":"git://github.com/SvinSimpe/Project-Flight-School.git","ssh_url":"git@github.com:SvinSimpe/Project-Flight-School.git","clone_url":"https://github.com/SvinSimpe/Project-Flight-School.git","svn_url":"https://github.com/SvinSimpe/Project-Flight-School","homepage":null,"size":118128,"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":"development"}},"base":{"label":"SvinSimpe:development","ref":"development","sha":"dfaecb4b625222399464561ff4c7167eebc7f215","user":{"login":"SvinSimpe","id":7174343,"avatar_url":"https://avatars.githubusercontent.com/u/7174343?v=3","gravatar_id":"","url":"https://api.github.com/users/SvinSimpe","html_url":"https://github.com/SvinSimpe","followers_url":"https://api.github.com/users/SvinSimpe/followers","following_url":"https://api.github.com/users/SvinSimpe/following{/other_user}","gists_url":"https://api.github.com/users/SvinSimpe/gists{/gist_id}","starred_url":"https://api.github.com/users/SvinSimpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvinSimpe/subscriptions","organizations_url":"https://api.github.com/users/SvinSimpe/orgs","repos_url":"https://api.github.com/users/SvinSimpe/repos","events_url":"https://api.github.com/users/SvinSimpe/events{/privacy}","received_events_url":"https://api.github.com/users/SvinSimpe/received_events","type":"User","site_admin":false},"repo":{"id":26538774,"name":"Project-Flight-School","full_name":"SvinSimpe/Project-Flight-School","owner":{"login":"SvinSimpe","id":7174343,"avatar_url":"https://avatars.githubusercontent.com/u/7174343?v=3","gravatar_id":"","url":"https://api.github.com/users/SvinSimpe","html_url":"https://github.com/SvinSimpe","followers_url":"https://api.github.com/users/SvinSimpe/followers","following_url":"https://api.github.com/users/SvinSimpe/following{/other_user}","gists_url":"https://api.github.com/users/SvinSimpe/gists{/gist_id}","starred_url":"https://api.github.com/users/SvinSimpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvinSimpe/subscriptions","organizations_url":"https://api.github.com/users/SvinSimpe/orgs","repos_url":"https://api.github.com/users/SvinSimpe/repos","events_url":"https://api.github.com/users/SvinSimpe/events{/privacy}","received_events_url":"https://api.github.com/users/SvinSimpe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SvinSimpe/Project-Flight-School","description":"","fork":false,"url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School","forks_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/forks","keys_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/teams","hooks_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/hooks","issue_events_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/issues/events{/number}","events_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/events","assignees_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/assignees{/user}","branches_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/branches{/branch}","tags_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/tags","blobs_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/git/refs{/sha}","trees_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/statuses/{sha}","languages_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/languages","stargazers_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/stargazers","contributors_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/contributors","subscribers_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/subscribers","subscription_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/subscription","commits_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/commits{/sha}","git_commits_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/git/commits{/sha}","comments_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/comments{/number}","issue_comment_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/issues/comments/{number}","contents_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/contents/{+path}","compare_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/merges","archive_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/downloads","issues_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/issues{/number}","pulls_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls{/number}","milestones_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/milestones{/number}","notifications_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/labels{/name}","releases_url":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/releases{/id}","created_at":"2014-11-12T14:06:46Z","updated_at":"2015-01-08T08:28:17Z","pushed_at":"2015-01-08T08:47:18Z","git_url":"git://github.com/SvinSimpe/Project-Flight-School.git","ssh_url":"git@github.com:SvinSimpe/Project-Flight-School.git","clone_url":"https://github.com/SvinSimpe/Project-Flight-School.git","svn_url":"https://github.com/SvinSimpe/Project-Flight-School","homepage":null,"size":118128,"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":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls/82"},"html":{"href":"https://github.com/SvinSimpe/Project-Flight-School/pull/82"},"issue":{"href":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/issues/82"},"comments":{"href":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/SvinSimpe/Project-Flight-School/statuses/9000b014873f31cc00ffd70937419cdad971c738"}}}}