1 | package com.takenoko.vector; | |
2 | ||
3 | /** The enum Direction represents the 6 directions in a 2D hexagonal grid. */ | |
4 | public enum Direction { | |
5 | NORTH(new Vector(0, -1, 1)), | |
6 | NORTH_EAST(new Vector(1, -1, 0)), | |
7 | SOUTH_EAST(new Vector(1, 0, -1)), | |
8 | SOUTH(new Vector(0, 1, -1)), | |
9 | SOUTH_WEST(new Vector(-1, 1, 0)), | |
10 | NORTH_WEST(new Vector(-1, 0, 1)); | |
11 | private final Vector vector; | |
12 | ||
13 | Direction(Vector vector) { | |
14 | this.vector = vector; | |
15 | } | |
16 | ||
17 | public Vector getVector() { | |
18 |
1
1. getVector : replaced return value with null for com/takenoko/vector/Direction::getVector → KILLED |
return vector; |
19 | } | |
20 | } | |
Mutations | ||
18 |
1.1 |