Skip to content

Documenting how the connections is used to implement the tile features #5

@nadinengland

Description

@nadinengland

Currently, tiles Features are implementing as an enum to represent the various types, and a connections field is provided on the few that touch the edges of the tiles (Roads, doesn't include all that are included in the base game. Specifically, we are missing:

A Feature of a Tile can touch zero, one, or more cardinal direction of the Tile. In the event it touches non, as in the case of a Monastery, it exists as a simple enum with no struct fields. However, in the case it does touch a direction, like a City, it contains a connections field which lists all the sides it touches.

Rule 11

The part of the above image is represented as follows:

  • Bottom Left
    • Road: [North, East]
    • Field: [NorthNorthEast, NorthEastEast]
    • Field: [SouthEastEast, SouthWestWest, West, NorthWestWest, NorthNorthWest]
  • Bottom Right
    • Road: [North]
    • Field: [NorthNorthEast, NorthEastEast, East, SouthEastEast, SouthSouthEast]
    • Road: [South]
    • Field: [SouthSouthWest, SouthWestWest]
    • Road: [West]
    • Field: [NorthWestWest, NorthNorthWest]

Note: roads that terminate in the centre are represented as only touching one Direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions