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

draft of the floodfill model #91

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

roberko44
Copy link

Basic structure of the new class.
Some functions were deleted at short notice.

@roberko44 roberko44 changed the title class shortest_path_tactical draft of the ComputeGrid model (floodfill) Sep 22, 2021
@roberko44 roberko44 changed the title draft of the ComputeGrid model (floodfill) draft of the floodfill model Sep 22, 2021


for (LevelStorage ls: w.getLevelStorages()){
for(SpecialArea specialArea: ls.getSpecialAreas()){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to consider special areas for the floodfill. The areas are no actual walls. They are used to e.g. spawn pedestrians or define exit areas.


}

auto jps::Floodfill::computeGrid(jps::Simulation const & p_simulation, jps::Agent const & p_agent){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you don't need any agents in that function

.gitignore Outdated
Comment on lines 78 to 80
.idea/
cmake-build-debug/
cpp/cmake-build-debug/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete these files, push the changes and then rebuild. But do not add them to version control.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I delete the build files, i can't build. I'll do that at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants