Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: building layout #16

Open
raspersc2 opened this issue Feb 24, 2023 · 0 comments
Open

feat: building layout #16

raspersc2 opened this issue Feb 24, 2023 · 0 comments
Labels

Comments

@raspersc2
Copy link
Contributor

raspersc2 commented Feb 24, 2023

How this should be implemented is not yet determined, should initially support Terran

Could be some kind of function (cython?) (include_townhall so expanding on high ground is possible):

def get_building_positions(race, include_townhall, position, ramp_position, wall_off: bool) -> Dict[size, set[Point2]]:
    pass

Returns a dict in the following format:

{
    "2x2": {(50, 55), (15, 10)},
    "3x3": {(20, 21), (152, 8)},
    "5x5": {(23, 67)}
}
  • Ensure large units can path
  • Calculate on the fly based on position
  • Probably should include radius based on position, and only allow structures at same terrain height as position
  • Takes into account existing structures, creep, addons etc
@raspersc2 raspersc2 changed the title feature: building layout feat: building layout Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant