(direction)
| 1114 | } |
| 1115 | |
| 1116 | getRelationship (direction) { |
| 1117 | if (!direction) return undefined |
| 1118 | if (this.is(direction)) return 'forward' |
| 1119 | if (this.isOpposite(direction)) return 'backward' |
| 1120 | if (this.isOrthogonal(direction)) return 'turn' |
| 1121 | } |
| 1122 | } |
| 1123 | |
| 1124 | class Action { |
no test coverage detected