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

Define the "PathfinderInterface" #5

Open
LiquidityC opened this issue Sep 28, 2019 · 0 comments
Open

Define the "PathfinderInterface" #5

LiquidityC opened this issue Sep 28, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Hacktoberfest label help wanted Extra attention is needed
Milestone

Comments

@LiquidityC
Copy link
Member

When implementing a pathfinding algorithm it needs to conform to some structure so that the framework can allow it to operate. This is probably best done through an interface but I'm open to cool ideas.

My thoughts are this:
PathfinderInterface with the following methods:

  • setup(Grid), agents and cells should be accessible through the grid
  • update(), This is where the algorithm runs (called once per "tick")
  • cleanup(Grid), clean out all the data that was initially setup.

Bonus. If you can find a way for the framework to list implementations of this interface dynamically that would be sweet. We could extend upon this with some sort of dropdown or whatever that executes the selected algorithm once you're done "drawing".

@LiquidityC LiquidityC added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers hacktoberfest Hacktoberfest label labels Sep 28, 2019
@LiquidityC LiquidityC added this to the Version 1.0 milestone Sep 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Hacktoberfest label help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant