Returns true if exitName resolves to any position delta
(exitName string)
| 129 | |
| 130 | // Returns true if exitName resolves to any position delta |
| 131 | func IsValidExitDirection(exitName string) bool { |
| 132 | _, ok := posDeltas[exitName] |
| 133 | return ok |
| 134 | } |
| 135 | |
| 136 | // Returns true if exitName is a compass direction (north, south, east, west, northwest) |
| 137 | func IsCompassDirection(exitName string) bool { |