Skip to content

Consider replacing direction ints with enums #4

Description

@danneu

0-5 represent the six directions on a hexagonal grid.

I could replace them with E | NE | N | NW | W | SW | S | SE.

Pros:

  • More meaningful.

Cons:

  • Possibly too prescriptive: imposes cardinal directions on a game that doesn't necessary have them or one that rotates away from the library's idea of north.

I would have to see if this cleans up some of my code in my games that use this library before I'd actually commit to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions