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.
0-5 represent the six directions on a hexagonal grid.
I could replace them with
E | NE | N | NW | W | SW | S | SE
.Pros:
Cons:
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.