{"action":"created","issue":{"url":"https://api.github.com/repos/dis446/Fallout-Shelter-Text-Based/issues/18","repository_url":"https://api.github.com/repos/dis446/Fallout-Shelter-Text-Based","labels_url":"https://api.github.com/repos/dis446/Fallout-Shelter-Text-Based/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/dis446/Fallout-Shelter-Text-Based/issues/18/comments","events_url":"https://api.github.com/repos/dis446/Fallout-Shelter-Text-Based/issues/18/events","html_url":"https://github.com/dis446/Fallout-Shelter-Text-Based/issues/18","id":132098163,"number":18,"title":"Can't refer to variables defined in main file ","user":{"login":"dis446","id":16208784,"avatar_url":"https://avatars.githubusercontent.com/u/16208784?v=3","gravatar_id":"","url":"https://api.github.com/users/dis446","html_url":"https://github.com/dis446","followers_url":"https://api.github.com/users/dis446/followers","following_url":"https://api.github.com/users/dis446/following{/other_user}","gists_url":"https://api.github.com/users/dis446/gists{/gist_id}","starred_url":"https://api.github.com/users/dis446/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dis446/subscriptions","organizations_url":"https://api.github.com/users/dis446/orgs","repos_url":"https://api.github.com/users/dis446/repos","events_url":"https://api.github.com/users/dis446/events{/privacy}","received_events_url":"https://api.github.com/users/dis446/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dis446/Fallout-Shelter-Text-Based/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"mikevb1","id":8661717,"avatar_url":"https://avatars.githubusercontent.com/u/8661717?v=3","gravatar_id":"","url":"https://api.github.com/users/mikevb1","html_url":"https://github.com/mikevb1","followers_url":"https://api.github.com/users/mikevb1/followers","following_url":"https://api.github.com/users/mikevb1/following{/other_user}","gists_url":"https://api.github.com/users/mikevb1/gists{/gist_id}","starred_url":"https://api.github.com/users/mikevb1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikevb1/subscriptions","organizations_url":"https://api.github.com/users/mikevb1/orgs","repos_url":"https://api.github.com/users/mikevb1/repos","events_url":"https://api.github.com/users/mikevb1/events{/privacy}","received_events_url":"https://api.github.com/users/mikevb1/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-02-08T10:04:34Z","updated_at":"2016-02-08T15:23:24Z","closed_at":null,"body":"In the class files, I can't refer to variables defined in the main file.\r\nSo I have to two options. \r\n1. Declare them as variables in the classes ( Don't know if they will work)\r\n2. Make the code more functional. As in pass to the class all the variables that it needs to know.\r\nFor example, the human class gives stats specific to the player. This is currently done by checking if the length of the people list is zero. "},"comment":{"url":"https://api.github.com/repos/dis446/Fallout-Shelter-Text-Based/issues/comments/181423061","html_url":"https://github.com/dis446/Fallout-Shelter-Text-Based/issues/18#issuecomment-181423061","issue_url":"https://api.github.com/repos/dis446/Fallout-Shelter-Text-Based/issues/18","id":181423061,"user":{"login":"dis446","id":16208784,"avatar_url":"https://avatars.githubusercontent.com/u/16208784?v=3","gravatar_id":"","url":"https://api.github.com/users/dis446","html_url":"https://github.com/dis446","followers_url":"https://api.github.com/users/dis446/followers","following_url":"https://api.github.com/users/dis446/following{/other_user}","gists_url":"https://api.github.com/users/dis446/gists{/gist_id}","starred_url":"https://api.github.com/users/dis446/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dis446/subscriptions","organizations_url":"https://api.github.com/users/dis446/orgs","repos_url":"https://api.github.com/users/dis446/repos","events_url":"https://api.github.com/users/dis446/events{/privacy}","received_events_url":"https://api.github.com/users/dis446/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T15:23:24Z","updated_at":"2016-02-08T15:23:24Z","body":"That's genius! So I should just keep the player seperate from all the others. Up till now, the player was the first entity in the 'people' list. Great idea!"}}