{"action":"created","comment":{"url":"https://api.github.com/repos/Osilos/openfl-game-template/pulls/comments/63652154","id":63652154,"diff_hunk":"@@ -0,0 +1,52 @@\n+package template.utils.game;\n+\n+import openfl.Assets;\n+import openfl.display.DisplayObject;\n+import openfl.display.MovieClip;\n+import openfl.display.Sprite;\n+import openfl.geom.Point;\n+import openfl.Lib;\n+\n+/**\n+ * ...\n+ * @author Flavien\n+ */\n+class GameObject extends Sprite\n+{\n+\tprivate var anim:MovieClip;\n+\t\n+\t/**\n+\t * Create a GameObect\n+\t * @param\tlibrary where the movieClip has to be load\n+\t * @param\tmovieClipName the name of the MovieClip to load\n+\t */\n+\tpublic function new(library:String, movieClipName:String) \n+\t{\n+\t\tsuper();\n+\t\t\n+\t\tanim = createAnim(library, movieClipName);\n+\t\taddChild(anim);\n+\t}\n+\t\n+\t/**\n+\t * Destroy the GameObejct\n+\t */\n+\tpublic function destroy () : Void  {\n+\t\tremoveChild(anim);\n+\t\tanim = null;\n+\t}\n+\t\n+\t/**\n+\t * Get the anim MovieClip of the GameObject\n+\t * @return anim\n+\t */\n+\tpublic function getAnim () : MovieClip {\n+\t\treturn anim;\n+\t}\n+\t\n+\tprivate function createAnim (library:String, movieClipName:String) : MovieClip {","path":"src/template/utils/game/GameObject.hx","position":47,"original_position":47,"commit_id":"12197ebb4ea5addb603be0f91df1ea5407f6d8ef","original_commit_id":"12197ebb4ea5addb603be0f91df1ea5407f6d8ef","user":{"login":"Mystraht","id":8995312,"avatar_url":"https://avatars.githubusercontent.com/u/8995312?v=3","gravatar_id":"","url":"https://api.github.com/users/Mystraht","html_url":"https://github.com/Mystraht","followers_url":"https://api.github.com/users/Mystraht/followers","following_url":"https://api.github.com/users/Mystraht/following{/other_user}","gists_url":"https://api.github.com/users/Mystraht/gists{/gist_id}","starred_url":"https://api.github.com/users/Mystraht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mystraht/subscriptions","organizations_url":"https://api.github.com/users/Mystraht/orgs","repos_url":"https://api.github.com/users/Mystraht/repos","events_url":"https://api.github.com/users/Mystraht/events{/privacy}","received_events_url":"https://api.github.com/users/Mystraht/received_events","type":"User","site_admin":false},"body":"libraryName","created_at":"2016-05-18T06:36:37Z","updated_at":"2016-05-18T06:36:37Z","html_url":"https://github.com/Osilos/openfl-game-template/pull/9#discussion_r63652154","pull_request_url":"https://api.github.com/repos/Osilos/openfl-game-template/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/Osilos/openfl-game-template/pulls/comments/63652154"},"html":{"href":"https://github.com/Osilos/openfl-game-template/pull/9#discussion_r63652154"},"pull_request":{"href":"https://api.github.com/repos/Osilos/openfl-game-template/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/Osilos/openfl-game-template/pulls/9","id":70436357,"html_url":"https://github.com/Osilos/openfl-game-template/pull/9","diff_url":"https://github.com/Osilos/openfl-game-template/pull/9.diff","patch_url":"https://github.com/Osilos/openfl-game-template/pull/9.patch","issue_url":"https://api.github.com/repos/Osilos/openfl-game-template/issues/9","number":9,"state":"open","locked":false,"title":"Game object","user":{"login":"Osilos","id":11525494,"avatar_url":"https://avatars.githubusercontent.com/u/11525494?v=3","gravatar_id":"","url":"https://api.github.com/users/Osilos","html_url":"https://github.com/Osilos","followers_url":"https://api.github.com/users/Osilos/followers","following_url":"https://api.github.com/users/Osilos/following{/other_user}","gists_url":"https://api.github.com/users/Osilos/gists{/gist_id}","starred_url":"https://api.github.com/users/Osilos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osilos/subscriptions","organizations_url":"https://api.github.com/users/Osilos/orgs","repos_url":"https://api.github.com/users/Osilos/repos","events_url":"https://api.github.com/users/Osilos/events{/privacy}","received_events_url":"https://api.github.com/users/Osilos/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-17T21:46:43Z","updated_at":"2016-05-18T06:36:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc2ff2b09701f91b926fca1ea2efc710b36e35cf","assignee":{"login":"Mystraht","id":8995312,"avatar_url":"https://avatars.githubusercontent.com/u/8995312?v=3","gravatar_id":"","url":"https://api.github.com/users/Mystraht","html_url":"https://github.com/Mystraht","followers_url":"https://api.github.com/users/Mystraht/followers","following_url":"https://api.github.com/users/Mystraht/following{/other_user}","gists_url":"https://api.github.com/users/Mystraht/gists{/gist_id}","starred_url":"https://api.github.com/users/Mystraht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mystraht/subscriptions","organizations_url":"https://api.github.com/users/Mystraht/orgs","repos_url":"https://api.github.com/users/Mystraht/repos","events_url":"https://api.github.com/users/Mystraht/events{/privacy}","received_events_url":"https://api.github.com/users/Mystraht/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Osilos/openfl-game-template/pulls/9/commits","review_comments_url":"https://api.github.com/repos/Osilos/openfl-game-template/pulls/9/comments","review_comment_url":"https://api.github.com/repos/Osilos/openfl-game-template/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Osilos/openfl-game-template/issues/9/comments","statuses_url":"https://api.github.com/repos/Osilos/openfl-game-template/statuses/12197ebb4ea5addb603be0f91df1ea5407f6d8ef","head":{"label":"Osilos:gameObject","ref":"gameObject","sha":"12197ebb4ea5addb603be0f91df1ea5407f6d8ef","user":{"login":"Osilos","id":11525494,"avatar_url":"https://avatars.githubusercontent.com/u/11525494?v=3","gravatar_id":"","url":"https://api.github.com/users/Osilos","html_url":"https://github.com/Osilos","followers_url":"https://api.github.com/users/Osilos/followers","following_url":"https://api.github.com/users/Osilos/following{/other_user}","gists_url":"https://api.github.com/users/Osilos/gists{/gist_id}","starred_url":"https://api.github.com/users/Osilos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osilos/subscriptions","organizations_url":"https://api.github.com/users/Osilos/orgs","repos_url":"https://api.github.com/users/Osilos/repos","events_url":"https://api.github.com/users/Osilos/events{/privacy}","received_events_url":"https://api.github.com/users/Osilos/received_events","type":"User","site_admin":false},"repo":{"id":58328395,"name":"openfl-game-template","full_name":"Osilos/openfl-game-template","owner":{"login":"Osilos","id":11525494,"avatar_url":"https://avatars.githubusercontent.com/u/11525494?v=3","gravatar_id":"","url":"https://api.github.com/users/Osilos","html_url":"https://github.com/Osilos","followers_url":"https://api.github.com/users/Osilos/followers","following_url":"https://api.github.com/users/Osilos/following{/other_user}","gists_url":"https://api.github.com/users/Osilos/gists{/gist_id}","starred_url":"https://api.github.com/users/Osilos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osilos/subscriptions","organizations_url":"https://api.github.com/users/Osilos/orgs","repos_url":"https://api.github.com/users/Osilos/repos","events_url":"https://api.github.com/users/Osilos/events{/privacy}","received_events_url":"https://api.github.com/users/Osilos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Osilos/openfl-game-template","description":"Template for openfl game","fork":false,"url":"https://api.github.com/repos/Osilos/openfl-game-template","forks_url":"https://api.github.com/repos/Osilos/openfl-game-template/forks","keys_url":"https://api.github.com/repos/Osilos/openfl-game-template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Osilos/openfl-game-template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Osilos/openfl-game-template/teams","hooks_url":"https://api.github.com/repos/Osilos/openfl-game-template/hooks","issue_events_url":"https://api.github.com/repos/Osilos/openfl-game-template/issues/events{/number}","events_url":"https://api.github.com/repos/Osilos/openfl-game-template/events","assignees_url":"https://api.github.com/repos/Osilos/openfl-game-template/assignees{/user}","branches_url":"https://api.github.com/repos/Osilos/openfl-game-template/branches{/branch}","tags_url":"https://api.github.com/repos/Osilos/openfl-game-template/tags","blobs_url":"https://api.github.com/repos/Osilos/openfl-game-template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Osilos/openfl-game-template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Osilos/openfl-game-template/git/refs{/sha}","trees_url":"https://api.github.com/repos/Osilos/openfl-game-template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Osilos/openfl-game-template/statuses/{sha}","languages_url":"https://api.github.com/repos/Osilos/openfl-game-template/languages","stargazers_url":"https://api.github.com/repos/Osilos/openfl-game-template/stargazers","contributors_url":"https://api.github.com/repos/Osilos/openfl-game-template/contributors","subscribers_url":"https://api.github.com/repos/Osilos/openfl-game-template/subscribers","subscription_url":"https://api.github.com/repos/Osilos/openfl-game-template/subscription","commits_url":"https://api.github.com/repos/Osilos/openfl-game-template/commits{/sha}","git_commits_url":"https://api.github.com/repos/Osilos/openfl-game-template/git/commits{/sha}","comments_url":"https://api.github.com/repos/Osilos/openfl-game-template/comments{/number}","issue_comment_url":"https://api.github.com/repos/Osilos/openfl-game-template/issues/comments{/number}","contents_url":"https://api.github.com/repos/Osilos/openfl-game-template/contents/{+path}","compare_url":"https://api.github.com/repos/Osilos/openfl-game-template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Osilos/openfl-game-template/merges","archive_url":"https://api.github.com/repos/Osilos/openfl-game-template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Osilos/openfl-game-template/downloads","issues_url":"https://api.github.com/repos/Osilos/openfl-game-template/issues{/number}","pulls_url":"https://api.github.com/repos/Osilos/openfl-game-template/pulls{/number}","milestones_url":"https://api.github.com/repos/Osilos/openfl-game-template/milestones{/number}","notifications_url":"https://api.github.com/repos/Osilos/openfl-game-template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Osilos/openfl-game-template/labels{/name}","releases_url":"https://api.github.com/repos/Osilos/openfl-game-template/releases{/id}","deployments_url":"https://api.github.com/repos/Osilos/openfl-game-template/deployments","created_at":"2016-05-08T19:48:07Z","updated_at":"2016-05-15T12:35:06Z","pushed_at":"2016-05-17T21:51:28Z","git_url":"git://github.com/Osilos/openfl-game-template.git","ssh_url":"git@github.com:Osilos/openfl-game-template.git","clone_url":"https://github.com/Osilos/openfl-game-template.git","svn_url":"https://github.com/Osilos/openfl-game-template","homepage":null,"size":3023,"stargazers_count":1,"watchers_count":1,"language":"Haxe","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"Osilos:master","ref":"master","sha":"116640af8b0d23697077b2acf3733357422c25bb","user":{"login":"Osilos","id":11525494,"avatar_url":"https://avatars.githubusercontent.com/u/11525494?v=3","gravatar_id":"","url":"https://api.github.com/users/Osilos","html_url":"https://github.com/Osilos","followers_url":"https://api.github.com/users/Osilos/followers","following_url":"https://api.github.com/users/Osilos/following{/other_user}","gists_url":"https://api.github.com/users/Osilos/gists{/gist_id}","starred_url":"https://api.github.com/users/Osilos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osilos/subscriptions","organizations_url":"https://api.github.com/users/Osilos/orgs","repos_url":"https://api.github.com/users/Osilos/repos","events_url":"https://api.github.com/users/Osilos/events{/privacy}","received_events_url":"https://api.github.com/users/Osilos/received_events","type":"User","site_admin":false},"repo":{"id":58328395,"name":"openfl-game-template","full_name":"Osilos/openfl-game-template","owner":{"login":"Osilos","id":11525494,"avatar_url":"https://avatars.githubusercontent.com/u/11525494?v=3","gravatar_id":"","url":"https://api.github.com/users/Osilos","html_url":"https://github.com/Osilos","followers_url":"https://api.github.com/users/Osilos/followers","following_url":"https://api.github.com/users/Osilos/following{/other_user}","gists_url":"https://api.github.com/users/Osilos/gists{/gist_id}","starred_url":"https://api.github.com/users/Osilos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osilos/subscriptions","organizations_url":"https://api.github.com/users/Osilos/orgs","repos_url":"https://api.github.com/users/Osilos/repos","events_url":"https://api.github.com/users/Osilos/events{/privacy}","received_events_url":"https://api.github.com/users/Osilos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Osilos/openfl-game-template","description":"Template for openfl game","fork":false,"url":"https://api.github.com/repos/Osilos/openfl-game-template","forks_url":"https://api.github.com/repos/Osilos/openfl-game-template/forks","keys_url":"https://api.github.com/repos/Osilos/openfl-game-template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Osilos/openfl-game-template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Osilos/openfl-game-template/teams","hooks_url":"https://api.github.com/repos/Osilos/openfl-game-template/hooks","issue_events_url":"https://api.github.com/repos/Osilos/openfl-game-template/issues/events{/number}","events_url":"https://api.github.com/repos/Osilos/openfl-game-template/events","assignees_url":"https://api.github.com/repos/Osilos/openfl-game-template/assignees{/user}","branches_url":"https://api.github.com/repos/Osilos/openfl-game-template/branches{/branch}","tags_url":"https://api.github.com/repos/Osilos/openfl-game-template/tags","blobs_url":"https://api.github.com/repos/Osilos/openfl-game-template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Osilos/openfl-game-template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Osilos/openfl-game-template/git/refs{/sha}","trees_url":"https://api.github.com/repos/Osilos/openfl-game-template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Osilos/openfl-game-template/statuses/{sha}","languages_url":"https://api.github.com/repos/Osilos/openfl-game-template/languages","stargazers_url":"https://api.github.com/repos/Osilos/openfl-game-template/stargazers","contributors_url":"https://api.github.com/repos/Osilos/openfl-game-template/contributors","subscribers_url":"https://api.github.com/repos/Osilos/openfl-game-template/subscribers","subscription_url":"https://api.github.com/repos/Osilos/openfl-game-template/subscription","commits_url":"https://api.github.com/repos/Osilos/openfl-game-template/commits{/sha}","git_commits_url":"https://api.github.com/repos/Osilos/openfl-game-template/git/commits{/sha}","comments_url":"https://api.github.com/repos/Osilos/openfl-game-template/comments{/number}","issue_comment_url":"https://api.github.com/repos/Osilos/openfl-game-template/issues/comments{/number}","contents_url":"https://api.github.com/repos/Osilos/openfl-game-template/contents/{+path}","compare_url":"https://api.github.com/repos/Osilos/openfl-game-template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Osilos/openfl-game-template/merges","archive_url":"https://api.github.com/repos/Osilos/openfl-game-template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Osilos/openfl-game-template/downloads","issues_url":"https://api.github.com/repos/Osilos/openfl-game-template/issues{/number}","pulls_url":"https://api.github.com/repos/Osilos/openfl-game-template/pulls{/number}","milestones_url":"https://api.github.com/repos/Osilos/openfl-game-template/milestones{/number}","notifications_url":"https://api.github.com/repos/Osilos/openfl-game-template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Osilos/openfl-game-template/labels{/name}","releases_url":"https://api.github.com/repos/Osilos/openfl-game-template/releases{/id}","deployments_url":"https://api.github.com/repos/Osilos/openfl-game-template/deployments","created_at":"2016-05-08T19:48:07Z","updated_at":"2016-05-15T12:35:06Z","pushed_at":"2016-05-17T21:51:28Z","git_url":"git://github.com/Osilos/openfl-game-template.git","ssh_url":"git@github.com:Osilos/openfl-game-template.git","clone_url":"https://github.com/Osilos/openfl-game-template.git","svn_url":"https://github.com/Osilos/openfl-game-template","homepage":null,"size":3023,"stargazers_count":1,"watchers_count":1,"language":"Haxe","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Osilos/openfl-game-template/pulls/9"},"html":{"href":"https://github.com/Osilos/openfl-game-template/pull/9"},"issue":{"href":"https://api.github.com/repos/Osilos/openfl-game-template/issues/9"},"comments":{"href":"https://api.github.com/repos/Osilos/openfl-game-template/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/Osilos/openfl-game-template/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/Osilos/openfl-game-template/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Osilos/openfl-game-template/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/Osilos/openfl-game-template/statuses/12197ebb4ea5addb603be0f91df1ea5407f6d8ef"}}}}