{"action":"created","issue":{"url":"https://api.github.com/repos/freeorion/freeorion/issues/353","labels_url":"https://api.github.com/repos/freeorion/freeorion/issues/353/labels{/name}","comments_url":"https://api.github.com/repos/freeorion/freeorion/issues/353/comments","events_url":"https://api.github.com/repos/freeorion/freeorion/issues/353/events","html_url":"https://github.com/freeorion/freeorion/pull/353","id":107546884,"number":353,"title":"[AI] Add getters for inner colonization variables","user":{"login":"Cjkjvfnby","id":171597,"avatar_url":"https://avatars.githubusercontent.com/u/171597?v=3","gravatar_id":"","url":"https://api.github.com/users/Cjkjvfnby","html_url":"https://github.com/Cjkjvfnby","followers_url":"https://api.github.com/users/Cjkjvfnby/followers","following_url":"https://api.github.com/users/Cjkjvfnby/following{/other_user}","gists_url":"https://api.github.com/users/Cjkjvfnby/gists{/gist_id}","starred_url":"https://api.github.com/users/Cjkjvfnby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cjkjvfnby/subscriptions","organizations_url":"https://api.github.com/users/Cjkjvfnby/orgs","repos_url":"https://api.github.com/users/Cjkjvfnby/repos","events_url":"https://api.github.com/users/Cjkjvfnby/events{/privacy}","received_events_url":"https://api.github.com/users/Cjkjvfnby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-21T16:13:03Z","updated_at":"2015-09-22T21:17:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/freeorion/freeorion/pulls/353","html_url":"https://github.com/freeorion/freeorion/pull/353","diff_url":"https://github.com/freeorion/freeorion/pull/353.diff","patch_url":"https://github.com/freeorion/freeorion/pull/353.patch"},"body":"Colonization module give public access to variables that store some important game state.\r\nI suggest to restrict access to variables directly and use getters instead.\r\n\r\n@Dilvish-fo, this changes will be useful  for new ResearchAI.  I did not update `ResearchAI.py` to avoid conflicts."},"comment":{"url":"https://api.github.com/repos/freeorion/freeorion/issues/comments/142425457","html_url":"https://github.com/freeorion/freeorion/pull/353#issuecomment-142425457","issue_url":"https://api.github.com/repos/freeorion/freeorion/issues/353","id":142425457,"user":{"login":"Cjkjvfnby","id":171597,"avatar_url":"https://avatars.githubusercontent.com/u/171597?v=3","gravatar_id":"","url":"https://api.github.com/users/Cjkjvfnby","html_url":"https://github.com/Cjkjvfnby","followers_url":"https://api.github.com/users/Cjkjvfnby/followers","following_url":"https://api.github.com/users/Cjkjvfnby/following{/other_user}","gists_url":"https://api.github.com/users/Cjkjvfnby/gists{/gist_id}","starred_url":"https://api.github.com/users/Cjkjvfnby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cjkjvfnby/subscriptions","organizations_url":"https://api.github.com/users/Cjkjvfnby/orgs","repos_url":"https://api.github.com/users/Cjkjvfnby/repos","events_url":"https://api.github.com/users/Cjkjvfnby/events{/privacy}","received_events_url":"https://api.github.com/users/Cjkjvfnby/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T21:17:23Z","updated_at":"2015-09-22T21:17:23Z","body":"We already have some magic in `extend_free_orion_AI_interface.py`.  It is quite common python magic, but still can confuse coders.  Module properties magic is much confusing. It change default python behavior. "}}