{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/100","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/100/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/100/events","html_url":"https://github.com/chrsmith/bwapi/issues/100","id":58485290,"number":100,"title":"Nuclear launch detection and support","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-02-22T01:32:23Z","updated_at":"2015-02-22T01:32:26Z","closed_at":null,"body":"```\nNuke support includes:\n- a onNuclearLaunchDetected() or onNuclearLaunch() callback function\n- a NukeDot structure/class featuring a Unit* and a BWAPI::Position;\n-- a BWAPI::NukeDot Unit::getNukeDot() function\n-- maybe an int NukeDot::getRemainingFrameCount() wrapper\n- a std::set<BWAPI::NukeDot> Game::getAllNukeDots() function\n\nI couldn't find the dot in the units list, nor in the list where psionic \nstorm and stuff are. If it's nowhere to find i suggest iterating through \nall units, picking ghosts that have the \"produce dot\" command active and \nthe dot's position visible in means of Game::isVisible().\n```\n\n-----\nOriginal issue reported on code.google.com by `goo...@teabix.com` on 16 Nov 2009 at 2:56"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75412368","html_url":"https://github.com/chrsmith/bwapi/issues/100#issuecomment-75412368","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/100","id":75412368,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T01:32:24Z","updated_at":"2015-02-22T01:32:24Z","body":"```\nNice =)\nIf position parameter of onNukeDetect is Positions::Unknown, the dot might \nstill get \nspotted later, so this position parameter becomes useless when making generic \nAIs. a \nGame::getAllDots method or/and a ::NukeDot* parameter (instead of the \n::Position \nparameter) would provide full functionality.\n\nBWAPI::NukeDot being a class yet to be made which, like BWAPI::Unit, \ngrant/restrict \naccess and become invalid.\n```\n\n-----\nOriginal comment by `goo...@teabix.com` on 22 Nov 2009 at 10:53"}}