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

Implement basic Map Singleton #2

Closed
krogenth opened this issue Jan 10, 2022 · 0 comments · Fixed by #23
Closed

Implement basic Map Singleton #2

krogenth opened this issue Jan 10, 2022 · 0 comments · Fixed by #23
Assignees
Labels
enhancement New feature or request

Comments

@krogenth
Copy link
Owner

krogenth commented Jan 10, 2022

We'll want to keep a record of the entire map state. This map will be a singleton, only one instance of a Map should ever exist at any time. This task only deals with regards to map initialization and tiling, no units/resources. The Map should be capable of resetting between matches, and should be called in the bot Module's onStart() or onEnd().

This includes:

functionality:

  • capability to draw all Tiles to the game map
  • capability to return a const references to the underlying tiles
  • capability to return a const reference to the map size

For more information on the Singleton design pattern: https://stackoverflow.com/questions/1008019/c-singleton-design-pattern

@krogenth krogenth added the enhancement New feature or request label Jan 10, 2022
@krogenth krogenth added this to To Do in AdditionalPylons via automation Jan 10, 2022
AdditionalPylons automation moved this from To Do to Done Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

2 participants