{"action":"created","comment":{"url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls/comments/192380415","pull_request_review_id":125144746,"id":192380415,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjM4MDQxNQ==","diff_hunk":"@@ -0,0 +1,60 @@\n+#include \"libAdapter.h\"\n+#include <unistd.h>\n+\n+#include \"session_data.h\"\n+\n+using namespace SessionData;\n+\n+int const time_delay = 10000;\n+\n+void Moving(int count) {    //перемещение на count шагов\n+        Event *event = eventsData.getEvent(hero.GetCoord());    //попытка получения события в данной точке\n+        if (event) {\n+            event->runEvent();\n+        }\n+        usleep(time_delay);  //временая задержка\n+    }\n+}\n+\n+int Game() {\n+    Init(); //инициализация данных игры\n+    return 0;\n+}\n+\n+Coord Coords() {    //получение позиции героя\n+    Coord place = hero.GetCoord();\n+    return place;\n+}\n+\n+Coord EndOfMap() {  //получение границ карты\n+    return {surfaceData.getWidth(), surfaceData.getHeight()};\n+}\n+\n+std::vector<str> Data() {   //отправка данных о герое\n+    std::vector<str> data;\n+    data.push_back(hero.GetName());\n+    data.push_back(std::to_string(hero.GetLevel()));\n+    data.push_back(std::to_string(hero.GetSpeed()));\n+    return data;\n+}\n+\n+std::string Write(std::string *msg) {   //получение записей для игрового журнала\n+    if (diaryString != \"\") {\n+        *msg = diaryString; //сообщение\n+        diaryString = \"\";\n+    }\n+    return writer;  //автор сообщения\n+}\n+\n+int Go(int x, int y) {  //перемещение героя\n+    int count = 0;\n+    writer = hero.GetName();\n+    if ((count = hero.Move({x, y}))) {\n+        diaryString = \"Я иду...\";","path":"libAdapter.cpp","position":53,"original_position":53,"commit_id":"389c51dc67bef3597c8b1ecad0dcd9610d26508c","original_commit_id":"389c51dc67bef3597c8b1ecad0dcd9610d26508c","user":{"login":"leshiy1295","id":2719573,"node_id":"MDQ6VXNlcjI3MTk1NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/2719573?v=4","gravatar_id":"","url":"https://api.github.com/users/leshiy1295","html_url":"https://github.com/leshiy1295","followers_url":"https://api.github.com/users/leshiy1295/followers","following_url":"https://api.github.com/users/leshiy1295/following{/other_user}","gists_url":"https://api.github.com/users/leshiy1295/gists{/gist_id}","starred_url":"https://api.github.com/users/leshiy1295/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leshiy1295/subscriptions","organizations_url":"https://api.github.com/users/leshiy1295/orgs","repos_url":"https://api.github.com/users/leshiy1295/repos","events_url":"https://api.github.com/users/leshiy1295/events{/privacy}","received_events_url":"https://api.github.com/users/leshiy1295/received_events","type":"User","site_admin":false},"body":"в константы - в строковый ресурс","created_at":"2018-06-01T12:30:34Z","updated_at":"2018-06-01T12:32:29Z","html_url":"https://github.com/Rasseki-Studios/rasseki.game/pull/1#discussion_r192380415","pull_request_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls/comments/192380415"},"html":{"href":"https://github.com/Rasseki-Studios/rasseki.game/pull/1#discussion_r192380415"},"pull_request":{"href":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls/1","id":181228389,"node_id":"MDExOlB1bGxSZXF1ZXN0MTgxMjI4Mzg5","html_url":"https://github.com/Rasseki-Studios/rasseki.game/pull/1","diff_url":"https://github.com/Rasseki-Studios/rasseki.game/pull/1.diff","patch_url":"https://github.com/Rasseki-Studios/rasseki.game/pull/1.patch","issue_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/issues/1","number":1,"state":"open","locked":false,"title":"Разработаны базовые классы (абстракции) и классы предметов игры.","user":{"login":"Moleque","id":17351300,"node_id":"MDQ6VXNlcjE3MzUxMzAw","avatar_url":"https://avatars3.githubusercontent.com/u/17351300?v=4","gravatar_id":"","url":"https://api.github.com/users/Moleque","html_url":"https://github.com/Moleque","followers_url":"https://api.github.com/users/Moleque/followers","following_url":"https://api.github.com/users/Moleque/following{/other_user}","gists_url":"https://api.github.com/users/Moleque/gists{/gist_id}","starred_url":"https://api.github.com/users/Moleque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Moleque/subscriptions","organizations_url":"https://api.github.com/users/Moleque/orgs","repos_url":"https://api.github.com/users/Moleque/repos","events_url":"https://api.github.com/users/Moleque/events{/privacy}","received_events_url":"https://api.github.com/users/Moleque/received_events","type":"User","site_admin":false},"body":"Базовые классы (абстракции): Located, Movable, Item.\r\nКлассы предметов: Artifact, Storage, Creature, Hero.","created_at":"2018-04-12T14:46:57Z","updated_at":"2018-06-01T12:32:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"902cf8e60061da12e7c2770435f723168b6d6de8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/issues/1/comments","statuses_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/statuses/389c51dc67bef3597c8b1ecad0dcd9610d26508c","head":{"label":"Rasseki-Studios:salman","ref":"salman","sha":"389c51dc67bef3597c8b1ecad0dcd9610d26508c","user":{"login":"Rasseki-Studios","id":37486812,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NDg2ODEy","avatar_url":"https://avatars0.githubusercontent.com/u/37486812?v=4","gravatar_id":"","url":"https://api.github.com/users/Rasseki-Studios","html_url":"https://github.com/Rasseki-Studios","followers_url":"https://api.github.com/users/Rasseki-Studios/followers","following_url":"https://api.github.com/users/Rasseki-Studios/following{/other_user}","gists_url":"https://api.github.com/users/Rasseki-Studios/gists{/gist_id}","starred_url":"https://api.github.com/users/Rasseki-Studios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rasseki-Studios/subscriptions","organizations_url":"https://api.github.com/users/Rasseki-Studios/orgs","repos_url":"https://api.github.com/users/Rasseki-Studios/repos","events_url":"https://api.github.com/users/Rasseki-Studios/events{/privacy}","received_events_url":"https://api.github.com/users/Rasseki-Studios/received_events","type":"Organization","site_admin":false},"repo":{"id":125669668,"node_id":"MDEwOlJlcG9zaXRvcnkxMjU2Njk2Njg=","name":"rasseki.game","full_name":"Rasseki-Studios/rasseki.game","owner":{"login":"Rasseki-Studios","id":37486812,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NDg2ODEy","avatar_url":"https://avatars0.githubusercontent.com/u/37486812?v=4","gravatar_id":"","url":"https://api.github.com/users/Rasseki-Studios","html_url":"https://github.com/Rasseki-Studios","followers_url":"https://api.github.com/users/Rasseki-Studios/followers","following_url":"https://api.github.com/users/Rasseki-Studios/following{/other_user}","gists_url":"https://api.github.com/users/Rasseki-Studios/gists{/gist_id}","starred_url":"https://api.github.com/users/Rasseki-Studios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rasseki-Studios/subscriptions","organizations_url":"https://api.github.com/users/Rasseki-Studios/orgs","repos_url":"https://api.github.com/users/Rasseki-Studios/repos","events_url":"https://api.github.com/users/Rasseki-Studios/events{/privacy}","received_events_url":"https://api.github.com/users/Rasseki-Studios/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Rasseki-Studios/rasseki.game","description":"Текстовая РПГ с интерактивной картой","fork":false,"url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game","forks_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/forks","keys_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/teams","hooks_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/hooks","issue_events_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/issues/events{/number}","events_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/events","assignees_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/assignees{/user}","branches_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/branches{/branch}","tags_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/tags","blobs_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/statuses/{sha}","languages_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/languages","stargazers_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/stargazers","contributors_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/contributors","subscribers_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/subscribers","subscription_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/subscription","commits_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/contents/{+path}","compare_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/merges","archive_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/downloads","issues_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/issues{/number}","pulls_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls{/number}","milestones_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/milestones{/number}","notifications_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/labels{/name}","releases_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/releases{/id}","deployments_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/deployments","created_at":"2018-03-17T21:17:04Z","updated_at":"2018-05-11T20:31:25Z","pushed_at":"2018-06-01T00:13:10Z","git_url":"git://github.com/Rasseki-Studios/rasseki.game.git","ssh_url":"git@github.com:Rasseki-Studios/rasseki.game.git","clone_url":"https://github.com/Rasseki-Studios/rasseki.game.git","svn_url":"https://github.com/Rasseki-Studios/rasseki.game","homepage":null,"size":52805,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":2,"default_branch":"master"}},"base":{"label":"Rasseki-Studios:master","ref":"master","sha":"ca47a3ca3c955da6ba84850076a48379ac3273bb","user":{"login":"Rasseki-Studios","id":37486812,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NDg2ODEy","avatar_url":"https://avatars0.githubusercontent.com/u/37486812?v=4","gravatar_id":"","url":"https://api.github.com/users/Rasseki-Studios","html_url":"https://github.com/Rasseki-Studios","followers_url":"https://api.github.com/users/Rasseki-Studios/followers","following_url":"https://api.github.com/users/Rasseki-Studios/following{/other_user}","gists_url":"https://api.github.com/users/Rasseki-Studios/gists{/gist_id}","starred_url":"https://api.github.com/users/Rasseki-Studios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rasseki-Studios/subscriptions","organizations_url":"https://api.github.com/users/Rasseki-Studios/orgs","repos_url":"https://api.github.com/users/Rasseki-Studios/repos","events_url":"https://api.github.com/users/Rasseki-Studios/events{/privacy}","received_events_url":"https://api.github.com/users/Rasseki-Studios/received_events","type":"Organization","site_admin":false},"repo":{"id":125669668,"node_id":"MDEwOlJlcG9zaXRvcnkxMjU2Njk2Njg=","name":"rasseki.game","full_name":"Rasseki-Studios/rasseki.game","owner":{"login":"Rasseki-Studios","id":37486812,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NDg2ODEy","avatar_url":"https://avatars0.githubusercontent.com/u/37486812?v=4","gravatar_id":"","url":"https://api.github.com/users/Rasseki-Studios","html_url":"https://github.com/Rasseki-Studios","followers_url":"https://api.github.com/users/Rasseki-Studios/followers","following_url":"https://api.github.com/users/Rasseki-Studios/following{/other_user}","gists_url":"https://api.github.com/users/Rasseki-Studios/gists{/gist_id}","starred_url":"https://api.github.com/users/Rasseki-Studios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rasseki-Studios/subscriptions","organizations_url":"https://api.github.com/users/Rasseki-Studios/orgs","repos_url":"https://api.github.com/users/Rasseki-Studios/repos","events_url":"https://api.github.com/users/Rasseki-Studios/events{/privacy}","received_events_url":"https://api.github.com/users/Rasseki-Studios/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Rasseki-Studios/rasseki.game","description":"Текстовая РПГ с интерактивной картой","fork":false,"url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game","forks_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/forks","keys_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/teams","hooks_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/hooks","issue_events_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/issues/events{/number}","events_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/events","assignees_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/assignees{/user}","branches_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/branches{/branch}","tags_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/tags","blobs_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/statuses/{sha}","languages_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/languages","stargazers_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/stargazers","contributors_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/contributors","subscribers_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/subscribers","subscription_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/subscription","commits_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/contents/{+path}","compare_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/merges","archive_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/downloads","issues_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/issues{/number}","pulls_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls{/number}","milestones_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/milestones{/number}","notifications_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/labels{/name}","releases_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/releases{/id}","deployments_url":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/deployments","created_at":"2018-03-17T21:17:04Z","updated_at":"2018-05-11T20:31:25Z","pushed_at":"2018-06-01T00:13:10Z","git_url":"git://github.com/Rasseki-Studios/rasseki.game.git","ssh_url":"git@github.com:Rasseki-Studios/rasseki.game.git","clone_url":"https://github.com/Rasseki-Studios/rasseki.game.git","svn_url":"https://github.com/Rasseki-Studios/rasseki.game","homepage":null,"size":52805,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls/1"},"html":{"href":"https://github.com/Rasseki-Studios/rasseki.game/pull/1"},"issue":{"href":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/issues/1"},"comments":{"href":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Rasseki-Studios/rasseki.game/statuses/389c51dc67bef3597c8b1ecad0dcd9610d26508c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"leshiy1295"}}