{"action":"created","comment":{"url":"https://api.github.com/repos/mjowned/GameDev/pulls/comments/42979963","id":42979963,"diff_hunk":"@@ -1,14 +1,189 @@\n #include \"GameStateManager.h\"\n+#include \"IGameState.h\"\n+#include \"MenuState.h\"\n+#include \"PlayState.h\"\n+#include <iostream>\n+#include <Windows.h>\n \n+GameStateManager GameStateManager::m_Gsm;\n+GameStateManager::GameStateManager() { }\n \n-GameStateManager::GameStateManager()\n+void GameStateManager::init(const char* title, int width, int height, bool fullscreen)\n {\n-\tcurrentLevel = LevelFactory::GetFirstLevel();\n+\tsdlInitializer = new SDLInitializer();\n+\tsdlInitializer->init(title, width, height, fullscreen);","path":"GameDev/GameStateManager.cpp","position":16,"original_position":16,"commit_id":"6659de95e50015306540bac2ee6acf50147ba42e","original_commit_id":"6659de95e50015306540bac2ee6acf50147ba42e","user":{"login":"japguele","id":4252815,"avatar_url":"https://avatars.githubusercontent.com/u/4252815?v=3","gravatar_id":"","url":"https://api.github.com/users/japguele","html_url":"https://github.com/japguele","followers_url":"https://api.github.com/users/japguele/followers","following_url":"https://api.github.com/users/japguele/following{/other_user}","gists_url":"https://api.github.com/users/japguele/gists{/gist_id}","starred_url":"https://api.github.com/users/japguele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/japguele/subscriptions","organizations_url":"https://api.github.com/users/japguele/orgs","repos_url":"https://api.github.com/users/japguele/repos","events_url":"https://api.github.com/users/japguele/events{/privacy}","received_events_url":"https://api.github.com/users/japguele/received_events","type":"User","site_admin":false},"body":"view dingen horen hier niet","created_at":"2015-10-26T11:02:24Z","updated_at":"2015-10-26T11:02:24Z","html_url":"https://github.com/mjowned/GameDev/pull/10#discussion_r42979963","pull_request_url":"https://api.github.com/repos/mjowned/GameDev/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/mjowned/GameDev/pulls/comments/42979963"},"html":{"href":"https://github.com/mjowned/GameDev/pull/10#discussion_r42979963"},"pull_request":{"href":"https://api.github.com/repos/mjowned/GameDev/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/mjowned/GameDev/pulls/10","id":48722526,"html_url":"https://github.com/mjowned/GameDev/pull/10","diff_url":"https://github.com/mjowned/GameDev/pull/10.diff","patch_url":"https://github.com/mjowned/GameDev/pull/10.patch","issue_url":"https://api.github.com/repos/mjowned/GameDev/issues/10","number":10,"state":"open","locked":false,"title":"Level editor test","user":{"login":"rhsattev","id":6680073,"avatar_url":"https://avatars.githubusercontent.com/u/6680073?v=3","gravatar_id":"","url":"https://api.github.com/users/rhsattev","html_url":"https://github.com/rhsattev","followers_url":"https://api.github.com/users/rhsattev/followers","following_url":"https://api.github.com/users/rhsattev/following{/other_user}","gists_url":"https://api.github.com/users/rhsattev/gists{/gist_id}","starred_url":"https://api.github.com/users/rhsattev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhsattev/subscriptions","organizations_url":"https://api.github.com/users/rhsattev/orgs","repos_url":"https://api.github.com/users/rhsattev/repos","events_url":"https://api.github.com/users/rhsattev/events{/privacy}","received_events_url":"https://api.github.com/users/rhsattev/received_events","type":"User","site_admin":false},"body":"@mjowned, @D-Eijkelenboom, @japguele \r\nis voor review only, onder geen voorwaarde wordt dit gemerged","created_at":"2015-10-26T10:32:47Z","updated_at":"2015-10-26T11:02:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5a9ac6d15a8be417681cebd2b9fa3648a308dbc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mjowned/GameDev/pulls/10/commits","review_comments_url":"https://api.github.com/repos/mjowned/GameDev/pulls/10/comments","review_comment_url":"https://api.github.com/repos/mjowned/GameDev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mjowned/GameDev/issues/10/comments","statuses_url":"https://api.github.com/repos/mjowned/GameDev/statuses/6659de95e50015306540bac2ee6acf50147ba42e","head":{"label":"mjowned:Level_Editor_Test","ref":"Level_Editor_Test","sha":"6659de95e50015306540bac2ee6acf50147ba42e","user":{"login":"mjowned","id":4252820,"avatar_url":"https://avatars.githubusercontent.com/u/4252820?v=3","gravatar_id":"","url":"https://api.github.com/users/mjowned","html_url":"https://github.com/mjowned","followers_url":"https://api.github.com/users/mjowned/followers","following_url":"https://api.github.com/users/mjowned/following{/other_user}","gists_url":"https://api.github.com/users/mjowned/gists{/gist_id}","starred_url":"https://api.github.com/users/mjowned/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjowned/subscriptions","organizations_url":"https://api.github.com/users/mjowned/orgs","repos_url":"https://api.github.com/users/mjowned/repos","events_url":"https://api.github.com/users/mjowned/events{/privacy}","received_events_url":"https://api.github.com/users/mjowned/received_events","type":"User","site_admin":false},"repo":{"id":41668259,"name":"GameDev","full_name":"mjowned/GameDev","owner":{"login":"mjowned","id":4252820,"avatar_url":"https://avatars.githubusercontent.com/u/4252820?v=3","gravatar_id":"","url":"https://api.github.com/users/mjowned","html_url":"https://github.com/mjowned","followers_url":"https://api.github.com/users/mjowned/followers","following_url":"https://api.github.com/users/mjowned/following{/other_user}","gists_url":"https://api.github.com/users/mjowned/gists{/gist_id}","starred_url":"https://api.github.com/users/mjowned/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjowned/subscriptions","organizations_url":"https://api.github.com/users/mjowned/orgs","repos_url":"https://api.github.com/users/mjowned/repos","events_url":"https://api.github.com/users/mjowned/events{/privacy}","received_events_url":"https://api.github.com/users/mjowned/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mjowned/GameDev","description":"Minor game development","fork":false,"url":"https://api.github.com/repos/mjowned/GameDev","forks_url":"https://api.github.com/repos/mjowned/GameDev/forks","keys_url":"https://api.github.com/repos/mjowned/GameDev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mjowned/GameDev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mjowned/GameDev/teams","hooks_url":"https://api.github.com/repos/mjowned/GameDev/hooks","issue_events_url":"https://api.github.com/repos/mjowned/GameDev/issues/events{/number}","events_url":"https://api.github.com/repos/mjowned/GameDev/events","assignees_url":"https://api.github.com/repos/mjowned/GameDev/assignees{/user}","branches_url":"https://api.github.com/repos/mjowned/GameDev/branches{/branch}","tags_url":"https://api.github.com/repos/mjowned/GameDev/tags","blobs_url":"https://api.github.com/repos/mjowned/GameDev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mjowned/GameDev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mjowned/GameDev/git/refs{/sha}","trees_url":"https://api.github.com/repos/mjowned/GameDev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mjowned/GameDev/statuses/{sha}","languages_url":"https://api.github.com/repos/mjowned/GameDev/languages","stargazers_url":"https://api.github.com/repos/mjowned/GameDev/stargazers","contributors_url":"https://api.github.com/repos/mjowned/GameDev/contributors","subscribers_url":"https://api.github.com/repos/mjowned/GameDev/subscribers","subscription_url":"https://api.github.com/repos/mjowned/GameDev/subscription","commits_url":"https://api.github.com/repos/mjowned/GameDev/commits{/sha}","git_commits_url":"https://api.github.com/repos/mjowned/GameDev/git/commits{/sha}","comments_url":"https://api.github.com/repos/mjowned/GameDev/comments{/number}","issue_comment_url":"https://api.github.com/repos/mjowned/GameDev/issues/comments{/number}","contents_url":"https://api.github.com/repos/mjowned/GameDev/contents/{+path}","compare_url":"https://api.github.com/repos/mjowned/GameDev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mjowned/GameDev/merges","archive_url":"https://api.github.com/repos/mjowned/GameDev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mjowned/GameDev/downloads","issues_url":"https://api.github.com/repos/mjowned/GameDev/issues{/number}","pulls_url":"https://api.github.com/repos/mjowned/GameDev/pulls{/number}","milestones_url":"https://api.github.com/repos/mjowned/GameDev/milestones{/number}","notifications_url":"https://api.github.com/repos/mjowned/GameDev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mjowned/GameDev/labels{/name}","releases_url":"https://api.github.com/repos/mjowned/GameDev/releases{/id}","created_at":"2015-08-31T09:49:44Z","updated_at":"2015-10-24T10:53:26Z","pushed_at":"2015-10-26T10:32:47Z","git_url":"git://github.com/mjowned/GameDev.git","ssh_url":"git@github.com:mjowned/GameDev.git","clone_url":"https://github.com/mjowned/GameDev.git","svn_url":"https://github.com/mjowned/GameDev","homepage":null,"size":21668,"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":"master"}},"base":{"label":"mjowned:Develop","ref":"Develop","sha":"54e9f4890c788b4d0544077416a26ad43ade5da1","user":{"login":"mjowned","id":4252820,"avatar_url":"https://avatars.githubusercontent.com/u/4252820?v=3","gravatar_id":"","url":"https://api.github.com/users/mjowned","html_url":"https://github.com/mjowned","followers_url":"https://api.github.com/users/mjowned/followers","following_url":"https://api.github.com/users/mjowned/following{/other_user}","gists_url":"https://api.github.com/users/mjowned/gists{/gist_id}","starred_url":"https://api.github.com/users/mjowned/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjowned/subscriptions","organizations_url":"https://api.github.com/users/mjowned/orgs","repos_url":"https://api.github.com/users/mjowned/repos","events_url":"https://api.github.com/users/mjowned/events{/privacy}","received_events_url":"https://api.github.com/users/mjowned/received_events","type":"User","site_admin":false},"repo":{"id":41668259,"name":"GameDev","full_name":"mjowned/GameDev","owner":{"login":"mjowned","id":4252820,"avatar_url":"https://avatars.githubusercontent.com/u/4252820?v=3","gravatar_id":"","url":"https://api.github.com/users/mjowned","html_url":"https://github.com/mjowned","followers_url":"https://api.github.com/users/mjowned/followers","following_url":"https://api.github.com/users/mjowned/following{/other_user}","gists_url":"https://api.github.com/users/mjowned/gists{/gist_id}","starred_url":"https://api.github.com/users/mjowned/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjowned/subscriptions","organizations_url":"https://api.github.com/users/mjowned/orgs","repos_url":"https://api.github.com/users/mjowned/repos","events_url":"https://api.github.com/users/mjowned/events{/privacy}","received_events_url":"https://api.github.com/users/mjowned/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mjowned/GameDev","description":"Minor game development","fork":false,"url":"https://api.github.com/repos/mjowned/GameDev","forks_url":"https://api.github.com/repos/mjowned/GameDev/forks","keys_url":"https://api.github.com/repos/mjowned/GameDev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mjowned/GameDev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mjowned/GameDev/teams","hooks_url":"https://api.github.com/repos/mjowned/GameDev/hooks","issue_events_url":"https://api.github.com/repos/mjowned/GameDev/issues/events{/number}","events_url":"https://api.github.com/repos/mjowned/GameDev/events","assignees_url":"https://api.github.com/repos/mjowned/GameDev/assignees{/user}","branches_url":"https://api.github.com/repos/mjowned/GameDev/branches{/branch}","tags_url":"https://api.github.com/repos/mjowned/GameDev/tags","blobs_url":"https://api.github.com/repos/mjowned/GameDev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mjowned/GameDev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mjowned/GameDev/git/refs{/sha}","trees_url":"https://api.github.com/repos/mjowned/GameDev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mjowned/GameDev/statuses/{sha}","languages_url":"https://api.github.com/repos/mjowned/GameDev/languages","stargazers_url":"https://api.github.com/repos/mjowned/GameDev/stargazers","contributors_url":"https://api.github.com/repos/mjowned/GameDev/contributors","subscribers_url":"https://api.github.com/repos/mjowned/GameDev/subscribers","subscription_url":"https://api.github.com/repos/mjowned/GameDev/subscription","commits_url":"https://api.github.com/repos/mjowned/GameDev/commits{/sha}","git_commits_url":"https://api.github.com/repos/mjowned/GameDev/git/commits{/sha}","comments_url":"https://api.github.com/repos/mjowned/GameDev/comments{/number}","issue_comment_url":"https://api.github.com/repos/mjowned/GameDev/issues/comments{/number}","contents_url":"https://api.github.com/repos/mjowned/GameDev/contents/{+path}","compare_url":"https://api.github.com/repos/mjowned/GameDev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mjowned/GameDev/merges","archive_url":"https://api.github.com/repos/mjowned/GameDev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mjowned/GameDev/downloads","issues_url":"https://api.github.com/repos/mjowned/GameDev/issues{/number}","pulls_url":"https://api.github.com/repos/mjowned/GameDev/pulls{/number}","milestones_url":"https://api.github.com/repos/mjowned/GameDev/milestones{/number}","notifications_url":"https://api.github.com/repos/mjowned/GameDev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mjowned/GameDev/labels{/name}","releases_url":"https://api.github.com/repos/mjowned/GameDev/releases{/id}","created_at":"2015-08-31T09:49:44Z","updated_at":"2015-10-24T10:53:26Z","pushed_at":"2015-10-26T10:32:47Z","git_url":"git://github.com/mjowned/GameDev.git","ssh_url":"git@github.com:mjowned/GameDev.git","clone_url":"https://github.com/mjowned/GameDev.git","svn_url":"https://github.com/mjowned/GameDev","homepage":null,"size":21668,"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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mjowned/GameDev/pulls/10"},"html":{"href":"https://github.com/mjowned/GameDev/pull/10"},"issue":{"href":"https://api.github.com/repos/mjowned/GameDev/issues/10"},"comments":{"href":"https://api.github.com/repos/mjowned/GameDev/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/mjowned/GameDev/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/mjowned/GameDev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mjowned/GameDev/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/mjowned/GameDev/statuses/6659de95e50015306540bac2ee6acf50147ba42e"}}}}