{"action":"created","comment":{"url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls/comments/88703853","pull_request_review_id":9271857,"id":88703853,"diff_hunk":"@@ -0,0 +1,84 @@\n+//\n+// Created by sander on 11/17/16.\n+//\n+\n+#include \"MenuState.hpp\"\n+#include \"../Game.hpp\"\n+using State::MenuState;\n+\n+namespace State {\n+\n+    MenuState::MenuState(){\n+\n+    }\n+\n+    MenuState::~MenuState(){\n+\n+    }\n+\n+    void MenuState::update(GameLogic::Game& game) {\n+        game._SDL_facade.handle_sdl_events();\n+        game._raycasting_engine.handle_input();\n+        PressedKeys keys = game._SDL_facade.get_keys();\n+        if(timeSinceLastPress <= 20){ //TODO: TO SDL ticks\n+            timeSinceLastPress++;\n+        }\n+        if(timeSinceLastPress > 20){\n+            for(auto key : keys){\n+                switch (key) {\n+                    case Key::W :\n+                        if(selected != 1){","path":"src/gamelogic/State/MenuState.cpp","position":23,"original_position":30,"commit_id":"00498d3643e6354103b627f855a2b09fbde745a5","original_commit_id":"3c4686078a11f8d62d4f20b6ba82e5040cde4a79","user":{"login":"waseland","id":7224770,"avatar_url":"https://avatars.githubusercontent.com/u/7224770?v=3","gravatar_id":"","url":"https://api.github.com/users/waseland","html_url":"https://github.com/waseland","followers_url":"https://api.github.com/users/waseland/followers","following_url":"https://api.github.com/users/waseland/following{/other_user}","gists_url":"https://api.github.com/users/waseland/gists{/gist_id}","starred_url":"https://api.github.com/users/waseland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waseland/subscriptions","organizations_url":"https://api.github.com/users/waseland/orgs","repos_url":"https://api.github.com/users/waseland/repos","events_url":"https://api.github.com/users/waseland/events{/privacy}","received_events_url":"https://api.github.com/users/waseland/received_events","type":"User","site_admin":false},"body":"This THis THIs THIS!! AAAH","created_at":"2016-11-18T17:46:50Z","updated_at":"2016-11-18T17:46:50Z","html_url":"https://github.com/ThomasvLingen/Minor_vidya/pull/35#discussion_r88703853","pull_request_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls/comments/88703853"},"html":{"href":"https://github.com/ThomasvLingen/Minor_vidya/pull/35#discussion_r88703853"},"pull_request":{"href":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls/35","id":94369150,"html_url":"https://github.com/ThomasvLingen/Minor_vidya/pull/35","diff_url":"https://github.com/ThomasvLingen/Minor_vidya/pull/35.diff","patch_url":"https://github.com/ThomasvLingen/Minor_vidya/pull/35.patch","issue_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/issues/35","number":35,"state":"open","locked":false,"title":"Jelmer Sander create states and screens and game and no Jody Bernal :(","user":{"login":"waseland","id":7224770,"avatar_url":"https://avatars.githubusercontent.com/u/7224770?v=3","gravatar_id":"","url":"https://api.github.com/users/waseland","html_url":"https://github.com/waseland","followers_url":"https://api.github.com/users/waseland/followers","following_url":"https://api.github.com/users/waseland/following{/other_user}","gists_url":"https://api.github.com/users/waseland/gists{/gist_id}","starred_url":"https://api.github.com/users/waseland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waseland/subscriptions","organizations_url":"https://api.github.com/users/waseland/orgs","repos_url":"https://api.github.com/users/waseland/repos","events_url":"https://api.github.com/users/waseland/events{/privacy}","received_events_url":"https://api.github.com/users/waseland/received_events","type":"User","site_admin":false},"body":"@waseland\twaseland\tfeat: added DrawRect to SDL Facade and Raycasting Engine\t\t\t9f6588a\r\n @SandervGeel\tSandervGeel\tfeat: IDrawable\t\t\tfdeb769\r\n @SandervGeel\tSandervGeel\tfix: IDrawable make error\t\t\t8a91397\r\n @waseland\twaseland\tfeat: Virtual and Deconstructor\t\t\t1f9d0be\r\n @waseland\twaseland\tfeat: draw_image in SDL_Facade\t\t\t3770355\r\n @waseland\twaseland\tfix: removed draw_rect from Raycasting.hpp\t\t\t4dd7fde\r\n @SandervGeel\tSandervGeel\tfeat: state pattern set up\t\t\t0926940\r\n @SandervGeel\tSandervGeel\tMerge branch 'JelmerSander_credits' of https://github.com/ThomasvLing…  …\t\t\t7e4ac8c\r\n @SandervGeel\tSandervGeel\tfix: bug fix\t\t\t0b8d6bd\r\n @waseland\twaseland\tfix: Squiggle lines and CMakeList error\t\t\t82e65a4\r\n @SandervGeel\tSandervGeel\tfeat: initialization states\t\t\t7191a47\r\n @SandervGeel\tSandervGeel\tMerge branch 'JelmerSander_credits' of https://github.com/ThomasvLing…  …\t\t\te77509e\r\n @SandervGeel\tSandervGeel\tfix: error fix for pull request\t\t\tace87f9\r\n @waseland\twaseland\tfeat: added credit and start screen and fixed memory leak in draw_tex…  …\t\t\tf5e257a\r\nCommits on Nov 18, 2016\r\n @SandervGeel\tSandervGeel\tfeat: state pattern\t\t\t51163fb\r\n @SandervGeel\tSandervGeel\tMerge branch 'JelmerSander_credits' of https://github.com/ThomasvLing…  …\t\t\t1a91060\r\n @waseland\twaseland\tfeat: added credit_screen\t\t\t7d5cf69\r\n @waseland\twaseland\tMerge branch 'dev' of https://github.com/ThomasvLingen/Minor_vidya in…  …\t\t\td692f21\r\n @waseland\twaseland\tfeat: made states working and made them work with each other\t\t\tbfad9e4\r\n @SandervGeel\tSandervGeel\tfeat: help state\t\t\t8e7c1cd\r\n @SandervGeel\tSandervGeel\tfeat: error fix includes\t\t\tfed599a\r\n @waseland\twaseland\tfeat: created help screen\t\t\tcb0864a\r\n @waseland\twaseland\tfix: loading screen time and warning in bool Game::_running","created_at":"2016-11-18T14:18:15Z","updated_at":"2016-11-18T17:46:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da3b91a8ccc3fc4cf8d4a4f9655b7520513d843d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls/35/commits","review_comments_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls/35/comments","review_comment_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/issues/35/comments","statuses_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/statuses/00498d3643e6354103b627f855a2b09fbde745a5","head":{"label":"ThomasvLingen:JelmerSander_credits","ref":"JelmerSander_credits","sha":"00498d3643e6354103b627f855a2b09fbde745a5","user":{"login":"ThomasvLingen","id":4148061,"avatar_url":"https://avatars.githubusercontent.com/u/4148061?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasvLingen","html_url":"https://github.com/ThomasvLingen","followers_url":"https://api.github.com/users/ThomasvLingen/followers","following_url":"https://api.github.com/users/ThomasvLingen/following{/other_user}","gists_url":"https://api.github.com/users/ThomasvLingen/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasvLingen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasvLingen/subscriptions","organizations_url":"https://api.github.com/users/ThomasvLingen/orgs","repos_url":"https://api.github.com/users/ThomasvLingen/repos","events_url":"https://api.github.com/users/ThomasvLingen/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasvLingen/received_events","type":"User","site_admin":false},"repo":{"id":70231180,"name":"Minor_vidya","full_name":"ThomasvLingen/Minor_vidya","owner":{"login":"ThomasvLingen","id":4148061,"avatar_url":"https://avatars.githubusercontent.com/u/4148061?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasvLingen","html_url":"https://github.com/ThomasvLingen","followers_url":"https://api.github.com/users/ThomasvLingen/followers","following_url":"https://api.github.com/users/ThomasvLingen/following{/other_user}","gists_url":"https://api.github.com/users/ThomasvLingen/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasvLingen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasvLingen/subscriptions","organizations_url":"https://api.github.com/users/ThomasvLingen/orgs","repos_url":"https://api.github.com/users/ThomasvLingen/repos","events_url":"https://api.github.com/users/ThomasvLingen/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasvLingen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ThomasvLingen/Minor_vidya","description":"This is the repo for the SWAP-E project's videogame","fork":false,"url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya","forks_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/forks","keys_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/teams","hooks_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/hooks","issue_events_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/issues/events{/number}","events_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/events","assignees_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/assignees{/user}","branches_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/branches{/branch}","tags_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/tags","blobs_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/git/refs{/sha}","trees_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/statuses/{sha}","languages_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/languages","stargazers_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/stargazers","contributors_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/contributors","subscribers_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/subscribers","subscription_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/subscription","commits_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/commits{/sha}","git_commits_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/git/commits{/sha}","comments_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/comments{/number}","issue_comment_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/issues/comments{/number}","contents_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/contents/{+path}","compare_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/merges","archive_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/downloads","issues_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/issues{/number}","pulls_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls{/number}","milestones_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/milestones{/number}","notifications_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/labels{/name}","releases_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/releases{/id}","deployments_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/deployments","created_at":"2016-10-07T09:04:39Z","updated_at":"2016-11-07T13:51:00Z","pushed_at":"2016-11-18T16:52:25Z","git_url":"git://github.com/ThomasvLingen/Minor_vidya.git","ssh_url":"git@github.com:ThomasvLingen/Minor_vidya.git","clone_url":"https://github.com/ThomasvLingen/Minor_vidya.git","svn_url":"https://github.com/ThomasvLingen/Minor_vidya","homepage":null,"size":576,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"dev"}},"base":{"label":"ThomasvLingen:dev","ref":"dev","sha":"64f60ccd1e3e1c9379e6d9cb54b012117ce6892b","user":{"login":"ThomasvLingen","id":4148061,"avatar_url":"https://avatars.githubusercontent.com/u/4148061?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasvLingen","html_url":"https://github.com/ThomasvLingen","followers_url":"https://api.github.com/users/ThomasvLingen/followers","following_url":"https://api.github.com/users/ThomasvLingen/following{/other_user}","gists_url":"https://api.github.com/users/ThomasvLingen/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasvLingen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasvLingen/subscriptions","organizations_url":"https://api.github.com/users/ThomasvLingen/orgs","repos_url":"https://api.github.com/users/ThomasvLingen/repos","events_url":"https://api.github.com/users/ThomasvLingen/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasvLingen/received_events","type":"User","site_admin":false},"repo":{"id":70231180,"name":"Minor_vidya","full_name":"ThomasvLingen/Minor_vidya","owner":{"login":"ThomasvLingen","id":4148061,"avatar_url":"https://avatars.githubusercontent.com/u/4148061?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasvLingen","html_url":"https://github.com/ThomasvLingen","followers_url":"https://api.github.com/users/ThomasvLingen/followers","following_url":"https://api.github.com/users/ThomasvLingen/following{/other_user}","gists_url":"https://api.github.com/users/ThomasvLingen/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasvLingen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasvLingen/subscriptions","organizations_url":"https://api.github.com/users/ThomasvLingen/orgs","repos_url":"https://api.github.com/users/ThomasvLingen/repos","events_url":"https://api.github.com/users/ThomasvLingen/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasvLingen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ThomasvLingen/Minor_vidya","description":"This is the repo for the SWAP-E project's videogame","fork":false,"url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya","forks_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/forks","keys_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/teams","hooks_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/hooks","issue_events_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/issues/events{/number}","events_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/events","assignees_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/assignees{/user}","branches_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/branches{/branch}","tags_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/tags","blobs_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/git/refs{/sha}","trees_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/statuses/{sha}","languages_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/languages","stargazers_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/stargazers","contributors_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/contributors","subscribers_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/subscribers","subscription_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/subscription","commits_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/commits{/sha}","git_commits_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/git/commits{/sha}","comments_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/comments{/number}","issue_comment_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/issues/comments{/number}","contents_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/contents/{+path}","compare_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/merges","archive_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/downloads","issues_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/issues{/number}","pulls_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls{/number}","milestones_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/milestones{/number}","notifications_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/labels{/name}","releases_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/releases{/id}","deployments_url":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/deployments","created_at":"2016-10-07T09:04:39Z","updated_at":"2016-11-07T13:51:00Z","pushed_at":"2016-11-18T16:52:25Z","git_url":"git://github.com/ThomasvLingen/Minor_vidya.git","ssh_url":"git@github.com:ThomasvLingen/Minor_vidya.git","clone_url":"https://github.com/ThomasvLingen/Minor_vidya.git","svn_url":"https://github.com/ThomasvLingen/Minor_vidya","homepage":null,"size":576,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls/35"},"html":{"href":"https://github.com/ThomasvLingen/Minor_vidya/pull/35"},"issue":{"href":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/issues/35"},"comments":{"href":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/ThomasvLingen/Minor_vidya/statuses/00498d3643e6354103b627f855a2b09fbde745a5"}}}}
{"actor":{"display_login":"waseland"}}