{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/334","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/334/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/334/events","html_url":"https://github.com/chrsmith/bwapi/issues/334","id":58275584,"number":334,"title":"Correct values for Unit::getUnitsIn*","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/Maintainability","name":"Maintainability","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Milestone-Release","name":"Milestone-Release","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/NewFeature","name":"NewFeature","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Performance","name":"Performance","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Priority-High","name":"Priority-High","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":8,"created_at":"2015-02-19T21:49:13Z","updated_at":"2015-02-19T21:49:15Z","closed_at":null,"body":"```\nAlgorithm:\nhttp://en.wikipedia.org/wiki/R-tree\n\nC++ Implementation:\nhttp://www.superliminal.com/sources/sources.htm#C%20&%20C++%20Code\n\n1. Add:\n\nstd::set<Unit*> Game::unitsInRectangle(int left, int top, int right, int \nbottom);\n\nstd::set<Unit*> Game::unitsInRectangle(Position topLeft, Position bottomRight);\n\nreturns the set of units in or overlapping the given rectangle.\n\n2. Add:\n\nstd::set<Unit*> Game::unitsInRadius(Position center, double radius);\n\nReturns the set of units within or overlapping a circle at the given point with \nthe given radius.\n\n\n3. Add:\n\nstd::set<Unit*> Unit::unitsInRange();\n\nReturns the set of units within attack range of the given units. Different from \njust calling Game::unitsInRadius with this->getPosition() and the attack range \nsince it must take into account the shape of the unit (so the query rectangle \nwill be constructed differently.\n\n```\n\n-----\nOriginal issue reported on code.google.com by `lowerlo...@gmail.com` on 16 Dec 2010 at 11:22"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75145269","html_url":"https://github.com/chrsmith/bwapi/issues/334#issuecomment-75145269","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/334","id":75145269,"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-19T21:49:13Z","updated_at":"2015-02-19T21:49:13Z","body":"\n\n-----\nOriginal comment by `lowerlo...@gmail.com` on 16 Dec 2010 at 11:23\n* Added labels: **Type-Enhancement**, **Priority-Medium**"}}