{"action":"created","comment":{"url":"https://api.github.com/repos/spidamoo/rns/pulls/comments/83168780","pull_request_review_id":4027052,"id":83168780,"diff_hunk":"@@ -624,21 +661,36 @@ void VisualCharacter::SetTarget2(float _x, float _y, float time) {\n }\n \n void VisualCharacter::SetMoveDirection(char _direction) {\n-    if (_direction == CHARACTER_MOVE_DIRECTION_IDLE) {\n+    Character::SetMoveDirection(_direction);\n+    if (_direction != CHARACTER_MOVE_DIRECTION_IDLE)\n+        displayed_direction = _direction;\n+    Animate(\n+        _direction == CHARACTER_MOVE_DIRECTION_IDLE\n+            ? CHARACTER_ANIMATION_GROUP_IDLE\n+            : CHARACTER_ANIMATION_GROUP_MOVE\n+    );\n+}\n+\n+void VisualCharacter::SetVisible(bool _visible) {visible = _visible;}\n+bool VisualCharacter::IsVisible() {return visible;}\n+\n+void VisualCharacter::Animate(char group) {\n+    if (group == CHARACTER_ANIMATION_GROUP_IDLE) {\n+        animation = animations[CHARACTER_ANIMATION_GROUP_MOVE][displayed_direction - 1];\n         animation->Stop();\n-        animation->SetFrame(0);\n     }\n     else {\n-        animation = move_animations[_direction - 1];\n+        animation = animations[group][displayed_direction - 1];\n         animation->Play();\n-        animation->SetFrame(1);\n     }\n-    Character::SetMoveDirection(_direction);\n+    if (group == CHARACTER_ANIMATION_GROUP_MOVE) {\n+        animation->SetFrame(0);\n+    }\n+    else {\n+        animation->SetFrame(0);","path":"rns_client/src/VisualCharacter.cpp","position":167,"original_position":167,"commit_id":"66c58ebd98c4fd8beee5cd2b7184e0376ca222fc","original_commit_id":"f7bc6d88593ac88f717c1aef6778cd5d4c1332bf","user":{"login":"spidamoo","id":1983259,"avatar_url":"https://avatars.githubusercontent.com/u/1983259?v=3","gravatar_id":"","url":"https://api.github.com/users/spidamoo","html_url":"https://github.com/spidamoo","followers_url":"https://api.github.com/users/spidamoo/followers","following_url":"https://api.github.com/users/spidamoo/following{/other_user}","gists_url":"https://api.github.com/users/spidamoo/gists{/gist_id}","starred_url":"https://api.github.com/users/spidamoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spidamoo/subscriptions","organizations_url":"https://api.github.com/users/spidamoo/orgs","repos_url":"https://api.github.com/users/spidamoo/repos","events_url":"https://api.github.com/users/spidamoo/events{/privacy}","received_events_url":"https://api.github.com/users/spidamoo/received_events","type":"User","site_admin":false},"body":"это дебажил, забыл вернуть","created_at":"2016-10-13T08:46:39Z","updated_at":"2016-10-13T08:46:39Z","html_url":"https://github.com/spidamoo/rns/pull/10#discussion_r83168780","pull_request_url":"https://api.github.com/repos/spidamoo/rns/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/spidamoo/rns/pulls/comments/83168780"},"html":{"href":"https://github.com/spidamoo/rns/pull/10#discussion_r83168780"},"pull_request":{"href":"https://api.github.com/repos/spidamoo/rns/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/spidamoo/rns/pulls/10","id":89088752,"html_url":"https://github.com/spidamoo/rns/pull/10","diff_url":"https://github.com/spidamoo/rns/pull/10.diff","patch_url":"https://github.com/spidamoo/rns/pull/10.patch","issue_url":"https://api.github.com/repos/spidamoo/rns/issues/10","number":10,"state":"open","locked":false,"title":"monster types render","user":{"login":"spidamoo","id":1983259,"avatar_url":"https://avatars.githubusercontent.com/u/1983259?v=3","gravatar_id":"","url":"https://api.github.com/users/spidamoo","html_url":"https://github.com/spidamoo","followers_url":"https://api.github.com/users/spidamoo/followers","following_url":"https://api.github.com/users/spidamoo/following{/other_user}","gists_url":"https://api.github.com/users/spidamoo/gists{/gist_id}","starred_url":"https://api.github.com/users/spidamoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spidamoo/subscriptions","organizations_url":"https://api.github.com/users/spidamoo/orgs","repos_url":"https://api.github.com/users/spidamoo/repos","events_url":"https://api.github.com/users/spidamoo/events{/privacy}","received_events_url":"https://api.github.com/users/spidamoo/received_events","type":"User","site_admin":false},"body":"появились новые проблемы связанные с data race'ами\r\nмы их будем фиксить в рамках https://trello.com/c/2euYxSha/28-data-races","created_at":"2016-10-12T20:34:43Z","updated_at":"2016-10-13T08:46:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"daf2b0522b728967c1c12ae6b9a76348376f5361","assignee":{"login":"seedofpanic","id":4730204,"avatar_url":"https://avatars.githubusercontent.com/u/4730204?v=3","gravatar_id":"","url":"https://api.github.com/users/seedofpanic","html_url":"https://github.com/seedofpanic","followers_url":"https://api.github.com/users/seedofpanic/followers","following_url":"https://api.github.com/users/seedofpanic/following{/other_user}","gists_url":"https://api.github.com/users/seedofpanic/gists{/gist_id}","starred_url":"https://api.github.com/users/seedofpanic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seedofpanic/subscriptions","organizations_url":"https://api.github.com/users/seedofpanic/orgs","repos_url":"https://api.github.com/users/seedofpanic/repos","events_url":"https://api.github.com/users/seedofpanic/events{/privacy}","received_events_url":"https://api.github.com/users/seedofpanic/received_events","type":"User","site_admin":false},"assignees":[{"login":"seedofpanic","id":4730204,"avatar_url":"https://avatars.githubusercontent.com/u/4730204?v=3","gravatar_id":"","url":"https://api.github.com/users/seedofpanic","html_url":"https://github.com/seedofpanic","followers_url":"https://api.github.com/users/seedofpanic/followers","following_url":"https://api.github.com/users/seedofpanic/following{/other_user}","gists_url":"https://api.github.com/users/seedofpanic/gists{/gist_id}","starred_url":"https://api.github.com/users/seedofpanic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seedofpanic/subscriptions","organizations_url":"https://api.github.com/users/seedofpanic/orgs","repos_url":"https://api.github.com/users/seedofpanic/repos","events_url":"https://api.github.com/users/seedofpanic/events{/privacy}","received_events_url":"https://api.github.com/users/seedofpanic/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/spidamoo/rns/pulls/10/commits","review_comments_url":"https://api.github.com/repos/spidamoo/rns/pulls/10/comments","review_comment_url":"https://api.github.com/repos/spidamoo/rns/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spidamoo/rns/issues/10/comments","statuses_url":"https://api.github.com/repos/spidamoo/rns/statuses/66c58ebd98c4fd8beee5cd2b7184e0376ca222fc","head":{"label":"spidamoo:spidamoo/monster-types-render","ref":"spidamoo/monster-types-render","sha":"66c58ebd98c4fd8beee5cd2b7184e0376ca222fc","user":{"login":"spidamoo","id":1983259,"avatar_url":"https://avatars.githubusercontent.com/u/1983259?v=3","gravatar_id":"","url":"https://api.github.com/users/spidamoo","html_url":"https://github.com/spidamoo","followers_url":"https://api.github.com/users/spidamoo/followers","following_url":"https://api.github.com/users/spidamoo/following{/other_user}","gists_url":"https://api.github.com/users/spidamoo/gists{/gist_id}","starred_url":"https://api.github.com/users/spidamoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spidamoo/subscriptions","organizations_url":"https://api.github.com/users/spidamoo/orgs","repos_url":"https://api.github.com/users/spidamoo/repos","events_url":"https://api.github.com/users/spidamoo/events{/privacy}","received_events_url":"https://api.github.com/users/spidamoo/received_events","type":"User","site_admin":false},"repo":{"id":34407062,"name":"rns","full_name":"spidamoo/rns","owner":{"login":"spidamoo","id":1983259,"avatar_url":"https://avatars.githubusercontent.com/u/1983259?v=3","gravatar_id":"","url":"https://api.github.com/users/spidamoo","html_url":"https://github.com/spidamoo","followers_url":"https://api.github.com/users/spidamoo/followers","following_url":"https://api.github.com/users/spidamoo/following{/other_user}","gists_url":"https://api.github.com/users/spidamoo/gists{/gist_id}","starred_url":"https://api.github.com/users/spidamoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spidamoo/subscriptions","organizations_url":"https://api.github.com/users/spidamoo/orgs","repos_url":"https://api.github.com/users/spidamoo/repos","events_url":"https://api.github.com/users/spidamoo/events{/privacy}","received_events_url":"https://api.github.com/users/spidamoo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spidamoo/rns","description":null,"fork":false,"url":"https://api.github.com/repos/spidamoo/rns","forks_url":"https://api.github.com/repos/spidamoo/rns/forks","keys_url":"https://api.github.com/repos/spidamoo/rns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spidamoo/rns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spidamoo/rns/teams","hooks_url":"https://api.github.com/repos/spidamoo/rns/hooks","issue_events_url":"https://api.github.com/repos/spidamoo/rns/issues/events{/number}","events_url":"https://api.github.com/repos/spidamoo/rns/events","assignees_url":"https://api.github.com/repos/spidamoo/rns/assignees{/user}","branches_url":"https://api.github.com/repos/spidamoo/rns/branches{/branch}","tags_url":"https://api.github.com/repos/spidamoo/rns/tags","blobs_url":"https://api.github.com/repos/spidamoo/rns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spidamoo/rns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spidamoo/rns/git/refs{/sha}","trees_url":"https://api.github.com/repos/spidamoo/rns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spidamoo/rns/statuses/{sha}","languages_url":"https://api.github.com/repos/spidamoo/rns/languages","stargazers_url":"https://api.github.com/repos/spidamoo/rns/stargazers","contributors_url":"https://api.github.com/repos/spidamoo/rns/contributors","subscribers_url":"https://api.github.com/repos/spidamoo/rns/subscribers","subscription_url":"https://api.github.com/repos/spidamoo/rns/subscription","commits_url":"https://api.github.com/repos/spidamoo/rns/commits{/sha}","git_commits_url":"https://api.github.com/repos/spidamoo/rns/git/commits{/sha}","comments_url":"https://api.github.com/repos/spidamoo/rns/comments{/number}","issue_comment_url":"https://api.github.com/repos/spidamoo/rns/issues/comments{/number}","contents_url":"https://api.github.com/repos/spidamoo/rns/contents/{+path}","compare_url":"https://api.github.com/repos/spidamoo/rns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spidamoo/rns/merges","archive_url":"https://api.github.com/repos/spidamoo/rns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spidamoo/rns/downloads","issues_url":"https://api.github.com/repos/spidamoo/rns/issues{/number}","pulls_url":"https://api.github.com/repos/spidamoo/rns/pulls{/number}","milestones_url":"https://api.github.com/repos/spidamoo/rns/milestones{/number}","notifications_url":"https://api.github.com/repos/spidamoo/rns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spidamoo/rns/labels{/name}","releases_url":"https://api.github.com/repos/spidamoo/rns/releases{/id}","deployments_url":"https://api.github.com/repos/spidamoo/rns/deployments","created_at":"2015-04-22T18:07:17Z","updated_at":"2016-10-06T20:31:28Z","pushed_at":"2016-10-13T08:33:32Z","git_url":"git://github.com/spidamoo/rns.git","ssh_url":"git@github.com:spidamoo/rns.git","clone_url":"https://github.com/spidamoo/rns.git","svn_url":"https://github.com/spidamoo/rns","homepage":"https://drive.google.com/drive/folders/0B6yoe32PPnJ6MU5aLVBOMkRTLUk","size":17604,"stargazers_count":3,"watchers_count":3,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"spidamoo:master","ref":"master","sha":"e53bbc74bd650b9790860612b851d66f53668776","user":{"login":"spidamoo","id":1983259,"avatar_url":"https://avatars.githubusercontent.com/u/1983259?v=3","gravatar_id":"","url":"https://api.github.com/users/spidamoo","html_url":"https://github.com/spidamoo","followers_url":"https://api.github.com/users/spidamoo/followers","following_url":"https://api.github.com/users/spidamoo/following{/other_user}","gists_url":"https://api.github.com/users/spidamoo/gists{/gist_id}","starred_url":"https://api.github.com/users/spidamoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spidamoo/subscriptions","organizations_url":"https://api.github.com/users/spidamoo/orgs","repos_url":"https://api.github.com/users/spidamoo/repos","events_url":"https://api.github.com/users/spidamoo/events{/privacy}","received_events_url":"https://api.github.com/users/spidamoo/received_events","type":"User","site_admin":false},"repo":{"id":34407062,"name":"rns","full_name":"spidamoo/rns","owner":{"login":"spidamoo","id":1983259,"avatar_url":"https://avatars.githubusercontent.com/u/1983259?v=3","gravatar_id":"","url":"https://api.github.com/users/spidamoo","html_url":"https://github.com/spidamoo","followers_url":"https://api.github.com/users/spidamoo/followers","following_url":"https://api.github.com/users/spidamoo/following{/other_user}","gists_url":"https://api.github.com/users/spidamoo/gists{/gist_id}","starred_url":"https://api.github.com/users/spidamoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spidamoo/subscriptions","organizations_url":"https://api.github.com/users/spidamoo/orgs","repos_url":"https://api.github.com/users/spidamoo/repos","events_url":"https://api.github.com/users/spidamoo/events{/privacy}","received_events_url":"https://api.github.com/users/spidamoo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spidamoo/rns","description":null,"fork":false,"url":"https://api.github.com/repos/spidamoo/rns","forks_url":"https://api.github.com/repos/spidamoo/rns/forks","keys_url":"https://api.github.com/repos/spidamoo/rns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spidamoo/rns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spidamoo/rns/teams","hooks_url":"https://api.github.com/repos/spidamoo/rns/hooks","issue_events_url":"https://api.github.com/repos/spidamoo/rns/issues/events{/number}","events_url":"https://api.github.com/repos/spidamoo/rns/events","assignees_url":"https://api.github.com/repos/spidamoo/rns/assignees{/user}","branches_url":"https://api.github.com/repos/spidamoo/rns/branches{/branch}","tags_url":"https://api.github.com/repos/spidamoo/rns/tags","blobs_url":"https://api.github.com/repos/spidamoo/rns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spidamoo/rns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spidamoo/rns/git/refs{/sha}","trees_url":"https://api.github.com/repos/spidamoo/rns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spidamoo/rns/statuses/{sha}","languages_url":"https://api.github.com/repos/spidamoo/rns/languages","stargazers_url":"https://api.github.com/repos/spidamoo/rns/stargazers","contributors_url":"https://api.github.com/repos/spidamoo/rns/contributors","subscribers_url":"https://api.github.com/repos/spidamoo/rns/subscribers","subscription_url":"https://api.github.com/repos/spidamoo/rns/subscription","commits_url":"https://api.github.com/repos/spidamoo/rns/commits{/sha}","git_commits_url":"https://api.github.com/repos/spidamoo/rns/git/commits{/sha}","comments_url":"https://api.github.com/repos/spidamoo/rns/comments{/number}","issue_comment_url":"https://api.github.com/repos/spidamoo/rns/issues/comments{/number}","contents_url":"https://api.github.com/repos/spidamoo/rns/contents/{+path}","compare_url":"https://api.github.com/repos/spidamoo/rns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spidamoo/rns/merges","archive_url":"https://api.github.com/repos/spidamoo/rns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spidamoo/rns/downloads","issues_url":"https://api.github.com/repos/spidamoo/rns/issues{/number}","pulls_url":"https://api.github.com/repos/spidamoo/rns/pulls{/number}","milestones_url":"https://api.github.com/repos/spidamoo/rns/milestones{/number}","notifications_url":"https://api.github.com/repos/spidamoo/rns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spidamoo/rns/labels{/name}","releases_url":"https://api.github.com/repos/spidamoo/rns/releases{/id}","deployments_url":"https://api.github.com/repos/spidamoo/rns/deployments","created_at":"2015-04-22T18:07:17Z","updated_at":"2016-10-06T20:31:28Z","pushed_at":"2016-10-13T08:33:32Z","git_url":"git://github.com/spidamoo/rns.git","ssh_url":"git@github.com:spidamoo/rns.git","clone_url":"https://github.com/spidamoo/rns.git","svn_url":"https://github.com/spidamoo/rns","homepage":"https://drive.google.com/drive/folders/0B6yoe32PPnJ6MU5aLVBOMkRTLUk","size":17604,"stargazers_count":3,"watchers_count":3,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spidamoo/rns/pulls/10"},"html":{"href":"https://github.com/spidamoo/rns/pull/10"},"issue":{"href":"https://api.github.com/repos/spidamoo/rns/issues/10"},"comments":{"href":"https://api.github.com/repos/spidamoo/rns/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/spidamoo/rns/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/spidamoo/rns/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spidamoo/rns/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/spidamoo/rns/statuses/66c58ebd98c4fd8beee5cd2b7184e0376ca222fc"}}}}
{"actor":{"display_login":"spidamoo"}}