{"action":"created","comment":{"url":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls/comments/82524183","pull_request_review_id":3427174,"id":82524183,"diff_hunk":"@@ -0,0 +1,49 @@\n+using UnityEngine;\n+using System;\n+using System.Collections;\n+using System.Collections.Generic;\n+using RAIN.Action;\n+using RAIN.Core;\n+using RAIN.Representation;\n+using RAIN.Navigation;\n+\n+[RAINAction(\"Choose Free Position\")]\n+public class ChooseFreePosition : RAINAction\n+{\n+\n+  public Expression MoveDistance = new Expression();\n+\n+  public Expression StayOnGraph = new Expression();\n+\n+  public Expression MoveTargetVariable = new Expression();\n+\n+  private float _defaultMoveDistance = 10f;\n+\n+  public override ActionResult Execute(RAIN.Core.AI ai)\n+  {\n+    if (!MoveTargetVariable.IsVariable)\n+      throw new Exception(\"The Choose Move Position node requires a valid Move Target Variable\");\n+\n+    float tMoveDistance = 0f;\n+    if (MoveDistance.IsValid)\n+      tMoveDistance = MoveDistance.Evaluate<float>(ai.DeltaTime, ai.WorkingMemory);\n+\n+    if (tMoveDistance <= 0f)\n+      tMoveDistance = _defaultMoveDistance;\n+\n+    Vector3 tDirection = new Vector3(UnityEngine.Random.Range(-1f, 1f), 0f, UnityEngine.Random.Range(-1f, 1f));\n+    tDirection *= tMoveDistance;\n+\n+    Vector3 tDestination = ai.Kinematic.Position + tDirection;","path":"Assets/AI/Actions/ChooseFreePosition.cs","position":37,"original_position":37,"commit_id":"316b7edfa113a48cf364e1cdf8f9132499f52a85","original_commit_id":"316b7edfa113a48cf364e1cdf8f9132499f52a85","user":{"login":"Lights999","id":3608281,"avatar_url":"https://avatars.githubusercontent.com/u/3608281?v=3","gravatar_id":"","url":"https://api.github.com/users/Lights999","html_url":"https://github.com/Lights999","followers_url":"https://api.github.com/users/Lights999/followers","following_url":"https://api.github.com/users/Lights999/following{/other_user}","gists_url":"https://api.github.com/users/Lights999/gists{/gist_id}","starred_url":"https://api.github.com/users/Lights999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lights999/subscriptions","organizations_url":"https://api.github.com/users/Lights999/orgs","repos_url":"https://api.github.com/users/Lights999/repos","events_url":"https://api.github.com/users/Lights999/events{/privacy}","received_events_url":"https://api.github.com/users/Lights999/received_events","type":"User","site_admin":false},"body":"[MUST]\r\n```\r\nVector3 tDestination = ai.Kinematic.Position + tDirection.normalized * tMoveDistance;\r\n```","created_at":"2016-10-09T15:04:04Z","updated_at":"2016-10-09T15:04:04Z","html_url":"https://github.com/backstreetwx/Pac-Man/pull/6#discussion_r82524183","pull_request_url":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls/comments/82524183"},"html":{"href":"https://github.com/backstreetwx/Pac-Man/pull/6#discussion_r82524183"},"pull_request":{"href":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls/6","id":88031592,"html_url":"https://github.com/backstreetwx/Pac-Man/pull/6","diff_url":"https://github.com/backstreetwx/Pac-Man/pull/6.diff","patch_url":"https://github.com/backstreetwx/Pac-Man/pull/6.patch","issue_url":"https://api.github.com/repos/backstreetwx/Pac-Man/issues/6","number":6,"state":"open","locked":false,"title":"[Reviewable] upload the content of the task 4th and 5th","user":{"login":"backstreetwx","id":20456777,"avatar_url":"https://avatars.githubusercontent.com/u/20456777?v=3","gravatar_id":"","url":"https://api.github.com/users/backstreetwx","html_url":"https://github.com/backstreetwx","followers_url":"https://api.github.com/users/backstreetwx/followers","following_url":"https://api.github.com/users/backstreetwx/following{/other_user}","gists_url":"https://api.github.com/users/backstreetwx/gists{/gist_id}","starred_url":"https://api.github.com/users/backstreetwx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backstreetwx/subscriptions","organizations_url":"https://api.github.com/users/backstreetwx/orgs","repos_url":"https://api.github.com/users/backstreetwx/repos","events_url":"https://api.github.com/users/backstreetwx/events{/privacy}","received_events_url":"https://api.github.com/users/backstreetwx/received_events","type":"User","site_admin":false},"body":"@Lights999  \r\nplease check if the coding is  fit for the coding standard;\r\nplease look at the reason why after the game restart, the light will be darker before the game started; \r\n\r\ncreated the background;\r\ncreated the player and the player controller;\r\ncreated the objects that can be picked up by the player;\r\nthe objects be rotated by themselves;\r\nthe enemies are moving by the AI;\r\nwhen the enemies detected the player, they will attach into the player;\r\nchange the coding format;\r\ncreated the enemies that will be auto moving in the ground;and when it detect if there is a player nearby it will move toward to the player;\r\ncreated the pick-up that will be auto moving in the ground, and when it detect if there is a player nearby it will run away from the player;\r\nif the player is attached by the enemy, the game over; \r\nif game over ,it can be restart be press 'R';\r\n","created_at":"2016-10-05T07:59:16Z","updated_at":"2016-10-09T15:04:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7cc62fc057bd0c8c41a5329e5b40ad5aa198b675","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls/6/commits","review_comments_url":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls/6/comments","review_comment_url":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls/comments{/number}","comments_url":"https://api.github.com/repos/backstreetwx/Pac-Man/issues/6/comments","statuses_url":"https://api.github.com/repos/backstreetwx/Pac-Man/statuses/316b7edfa113a48cf364e1cdf8f9132499f52a85","head":{"label":"backstreetwx:TaskIn2016/10/05","ref":"TaskIn2016/10/05","sha":"316b7edfa113a48cf364e1cdf8f9132499f52a85","user":{"login":"backstreetwx","id":20456777,"avatar_url":"https://avatars.githubusercontent.com/u/20456777?v=3","gravatar_id":"","url":"https://api.github.com/users/backstreetwx","html_url":"https://github.com/backstreetwx","followers_url":"https://api.github.com/users/backstreetwx/followers","following_url":"https://api.github.com/users/backstreetwx/following{/other_user}","gists_url":"https://api.github.com/users/backstreetwx/gists{/gist_id}","starred_url":"https://api.github.com/users/backstreetwx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backstreetwx/subscriptions","organizations_url":"https://api.github.com/users/backstreetwx/orgs","repos_url":"https://api.github.com/users/backstreetwx/repos","events_url":"https://api.github.com/users/backstreetwx/events{/privacy}","received_events_url":"https://api.github.com/users/backstreetwx/received_events","type":"User","site_admin":false},"repo":{"id":69005662,"name":"Pac-Man","full_name":"backstreetwx/Pac-Man","owner":{"login":"backstreetwx","id":20456777,"avatar_url":"https://avatars.githubusercontent.com/u/20456777?v=3","gravatar_id":"","url":"https://api.github.com/users/backstreetwx","html_url":"https://github.com/backstreetwx","followers_url":"https://api.github.com/users/backstreetwx/followers","following_url":"https://api.github.com/users/backstreetwx/following{/other_user}","gists_url":"https://api.github.com/users/backstreetwx/gists{/gist_id}","starred_url":"https://api.github.com/users/backstreetwx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backstreetwx/subscriptions","organizations_url":"https://api.github.com/users/backstreetwx/orgs","repos_url":"https://api.github.com/users/backstreetwx/repos","events_url":"https://api.github.com/users/backstreetwx/events{/privacy}","received_events_url":"https://api.github.com/users/backstreetwx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/backstreetwx/Pac-Man","description":null,"fork":false,"url":"https://api.github.com/repos/backstreetwx/Pac-Man","forks_url":"https://api.github.com/repos/backstreetwx/Pac-Man/forks","keys_url":"https://api.github.com/repos/backstreetwx/Pac-Man/keys{/key_id}","collaborators_url":"https://api.github.com/repos/backstreetwx/Pac-Man/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/backstreetwx/Pac-Man/teams","hooks_url":"https://api.github.com/repos/backstreetwx/Pac-Man/hooks","issue_events_url":"https://api.github.com/repos/backstreetwx/Pac-Man/issues/events{/number}","events_url":"https://api.github.com/repos/backstreetwx/Pac-Man/events","assignees_url":"https://api.github.com/repos/backstreetwx/Pac-Man/assignees{/user}","branches_url":"https://api.github.com/repos/backstreetwx/Pac-Man/branches{/branch}","tags_url":"https://api.github.com/repos/backstreetwx/Pac-Man/tags","blobs_url":"https://api.github.com/repos/backstreetwx/Pac-Man/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/backstreetwx/Pac-Man/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/backstreetwx/Pac-Man/git/refs{/sha}","trees_url":"https://api.github.com/repos/backstreetwx/Pac-Man/git/trees{/sha}","statuses_url":"https://api.github.com/repos/backstreetwx/Pac-Man/statuses/{sha}","languages_url":"https://api.github.com/repos/backstreetwx/Pac-Man/languages","stargazers_url":"https://api.github.com/repos/backstreetwx/Pac-Man/stargazers","contributors_url":"https://api.github.com/repos/backstreetwx/Pac-Man/contributors","subscribers_url":"https://api.github.com/repos/backstreetwx/Pac-Man/subscribers","subscription_url":"https://api.github.com/repos/backstreetwx/Pac-Man/subscription","commits_url":"https://api.github.com/repos/backstreetwx/Pac-Man/commits{/sha}","git_commits_url":"https://api.github.com/repos/backstreetwx/Pac-Man/git/commits{/sha}","comments_url":"https://api.github.com/repos/backstreetwx/Pac-Man/comments{/number}","issue_comment_url":"https://api.github.com/repos/backstreetwx/Pac-Man/issues/comments{/number}","contents_url":"https://api.github.com/repos/backstreetwx/Pac-Man/contents/{+path}","compare_url":"https://api.github.com/repos/backstreetwx/Pac-Man/compare/{base}...{head}","merges_url":"https://api.github.com/repos/backstreetwx/Pac-Man/merges","archive_url":"https://api.github.com/repos/backstreetwx/Pac-Man/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/backstreetwx/Pac-Man/downloads","issues_url":"https://api.github.com/repos/backstreetwx/Pac-Man/issues{/number}","pulls_url":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls{/number}","milestones_url":"https://api.github.com/repos/backstreetwx/Pac-Man/milestones{/number}","notifications_url":"https://api.github.com/repos/backstreetwx/Pac-Man/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/backstreetwx/Pac-Man/labels{/name}","releases_url":"https://api.github.com/repos/backstreetwx/Pac-Man/releases{/id}","deployments_url":"https://api.github.com/repos/backstreetwx/Pac-Man/deployments","created_at":"2016-09-23T08:32:33Z","updated_at":"2016-09-28T01:40:06Z","pushed_at":"2016-10-07T10:41:21Z","git_url":"git://github.com/backstreetwx/Pac-Man.git","ssh_url":"git@github.com:backstreetwx/Pac-Man.git","clone_url":"https://github.com/backstreetwx/Pac-Man.git","svn_url":"https://github.com/backstreetwx/Pac-Man","homepage":null,"size":1010,"stargazers_count":1,"watchers_count":1,"language":"GLSL","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":1,"default_branch":"master"}},"base":{"label":"backstreetwx:master","ref":"master","sha":"d79d395b4db1f7086d5d4944cef3fccbacdc76f5","user":{"login":"backstreetwx","id":20456777,"avatar_url":"https://avatars.githubusercontent.com/u/20456777?v=3","gravatar_id":"","url":"https://api.github.com/users/backstreetwx","html_url":"https://github.com/backstreetwx","followers_url":"https://api.github.com/users/backstreetwx/followers","following_url":"https://api.github.com/users/backstreetwx/following{/other_user}","gists_url":"https://api.github.com/users/backstreetwx/gists{/gist_id}","starred_url":"https://api.github.com/users/backstreetwx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backstreetwx/subscriptions","organizations_url":"https://api.github.com/users/backstreetwx/orgs","repos_url":"https://api.github.com/users/backstreetwx/repos","events_url":"https://api.github.com/users/backstreetwx/events{/privacy}","received_events_url":"https://api.github.com/users/backstreetwx/received_events","type":"User","site_admin":false},"repo":{"id":69005662,"name":"Pac-Man","full_name":"backstreetwx/Pac-Man","owner":{"login":"backstreetwx","id":20456777,"avatar_url":"https://avatars.githubusercontent.com/u/20456777?v=3","gravatar_id":"","url":"https://api.github.com/users/backstreetwx","html_url":"https://github.com/backstreetwx","followers_url":"https://api.github.com/users/backstreetwx/followers","following_url":"https://api.github.com/users/backstreetwx/following{/other_user}","gists_url":"https://api.github.com/users/backstreetwx/gists{/gist_id}","starred_url":"https://api.github.com/users/backstreetwx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backstreetwx/subscriptions","organizations_url":"https://api.github.com/users/backstreetwx/orgs","repos_url":"https://api.github.com/users/backstreetwx/repos","events_url":"https://api.github.com/users/backstreetwx/events{/privacy}","received_events_url":"https://api.github.com/users/backstreetwx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/backstreetwx/Pac-Man","description":null,"fork":false,"url":"https://api.github.com/repos/backstreetwx/Pac-Man","forks_url":"https://api.github.com/repos/backstreetwx/Pac-Man/forks","keys_url":"https://api.github.com/repos/backstreetwx/Pac-Man/keys{/key_id}","collaborators_url":"https://api.github.com/repos/backstreetwx/Pac-Man/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/backstreetwx/Pac-Man/teams","hooks_url":"https://api.github.com/repos/backstreetwx/Pac-Man/hooks","issue_events_url":"https://api.github.com/repos/backstreetwx/Pac-Man/issues/events{/number}","events_url":"https://api.github.com/repos/backstreetwx/Pac-Man/events","assignees_url":"https://api.github.com/repos/backstreetwx/Pac-Man/assignees{/user}","branches_url":"https://api.github.com/repos/backstreetwx/Pac-Man/branches{/branch}","tags_url":"https://api.github.com/repos/backstreetwx/Pac-Man/tags","blobs_url":"https://api.github.com/repos/backstreetwx/Pac-Man/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/backstreetwx/Pac-Man/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/backstreetwx/Pac-Man/git/refs{/sha}","trees_url":"https://api.github.com/repos/backstreetwx/Pac-Man/git/trees{/sha}","statuses_url":"https://api.github.com/repos/backstreetwx/Pac-Man/statuses/{sha}","languages_url":"https://api.github.com/repos/backstreetwx/Pac-Man/languages","stargazers_url":"https://api.github.com/repos/backstreetwx/Pac-Man/stargazers","contributors_url":"https://api.github.com/repos/backstreetwx/Pac-Man/contributors","subscribers_url":"https://api.github.com/repos/backstreetwx/Pac-Man/subscribers","subscription_url":"https://api.github.com/repos/backstreetwx/Pac-Man/subscription","commits_url":"https://api.github.com/repos/backstreetwx/Pac-Man/commits{/sha}","git_commits_url":"https://api.github.com/repos/backstreetwx/Pac-Man/git/commits{/sha}","comments_url":"https://api.github.com/repos/backstreetwx/Pac-Man/comments{/number}","issue_comment_url":"https://api.github.com/repos/backstreetwx/Pac-Man/issues/comments{/number}","contents_url":"https://api.github.com/repos/backstreetwx/Pac-Man/contents/{+path}","compare_url":"https://api.github.com/repos/backstreetwx/Pac-Man/compare/{base}...{head}","merges_url":"https://api.github.com/repos/backstreetwx/Pac-Man/merges","archive_url":"https://api.github.com/repos/backstreetwx/Pac-Man/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/backstreetwx/Pac-Man/downloads","issues_url":"https://api.github.com/repos/backstreetwx/Pac-Man/issues{/number}","pulls_url":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls{/number}","milestones_url":"https://api.github.com/repos/backstreetwx/Pac-Man/milestones{/number}","notifications_url":"https://api.github.com/repos/backstreetwx/Pac-Man/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/backstreetwx/Pac-Man/labels{/name}","releases_url":"https://api.github.com/repos/backstreetwx/Pac-Man/releases{/id}","deployments_url":"https://api.github.com/repos/backstreetwx/Pac-Man/deployments","created_at":"2016-09-23T08:32:33Z","updated_at":"2016-09-28T01:40:06Z","pushed_at":"2016-10-07T10:41:21Z","git_url":"git://github.com/backstreetwx/Pac-Man.git","ssh_url":"git@github.com:backstreetwx/Pac-Man.git","clone_url":"https://github.com/backstreetwx/Pac-Man.git","svn_url":"https://github.com/backstreetwx/Pac-Man","homepage":null,"size":1010,"stargazers_count":1,"watchers_count":1,"language":"GLSL","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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls/6"},"html":{"href":"https://github.com/backstreetwx/Pac-Man/pull/6"},"issue":{"href":"https://api.github.com/repos/backstreetwx/Pac-Man/issues/6"},"comments":{"href":"https://api.github.com/repos/backstreetwx/Pac-Man/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/backstreetwx/Pac-Man/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/backstreetwx/Pac-Man/statuses/316b7edfa113a48cf364e1cdf8f9132499f52a85"}}}}
{"actor":{"display_login":"Lights999"}}