(direction)
| 1110 | } |
| 1111 | |
| 1112 | isOrthogonal (direction) { |
| 1113 | return Math.abs(this.vector.x - direction.vector.x) === 1 && Math.abs(this.vector.y - direction.vector.y) === 1 |
| 1114 | } |
| 1115 | |
| 1116 | getRelationship (direction) { |
| 1117 | if (!direction) return undefined |