Skip to content

Compute all journeys from choose team spots to end game spot #13

@smelc

Description

@smelc

This issue keeps tracks of adding a journeys :: Team -> [[Encounter]] function to Network.

Given a team t, this function should do the following:

  • Given the starting spot of this team, i.e. the value in chooseTeamSpots.
  • Compute all paths from the starting spot to endSpot. Coordinates that can be walked on (roads in the world map below) are in Roads.points.
  • On every path, collect the fights on this path.

For example, journeys Human is [p1 ,p2], where p1 is map Model.Encounter [Undead, Beastmen, Evil] and p2 is map Model.Encounter [Undead, ZKnights]. p1 is the path that goes to the left in the world map after the cemetery, while p2 is the path that goes to the right after the cemetry. The path start is the blue knight in the map below, which corresponds to the value mapped by Human in the chooseTeamSpots map.

When computing a journey you cannot go back on your path. You also cannot go through another chooseTeamSpot than the one you started from.

Here is the world map (load tiled/world.tmx with tiled to see it locally):

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions