Lines Matching refs:directions
78 private final Set<Direction> directions = new HashSet<Direction>(); field in Interactive_v2
118 directions.add(Direction.UP); in onKeyPressed()
123 directions.add(Direction.DOWN); in onKeyPressed()
128 directions.add(Direction.RIGHT); in onKeyPressed()
133 directions.add(Direction.LEFT); in onKeyPressed()
143 directions.remove(Direction.UP); in onKeyReleased()
148 directions.remove(Direction.DOWN); in onKeyReleased()
153 directions.remove(Direction.RIGHT); in onKeyReleased()
158 directions.remove(Direction.LEFT); in onKeyReleased()
213 if (directions.isEmpty()) { in angleToTurnInDegrees()
222 if (directions.isEmpty()) { in distanceToMove()
237 if (directions.contains(Direction.UP)) { in desiredDirection()
238 if (directions.contains(Direction.RIGHT)) { in desiredDirection()
241 if (directions.contains(Direction.LEFT)) { in desiredDirection()
246 if (directions.contains(Direction.DOWN)) { in desiredDirection()
247 if (directions.contains(Direction.RIGHT)) { in desiredDirection()
250 if (directions.contains(Direction.LEFT)) { in desiredDirection()
255 if (directions.contains(Direction.RIGHT)) { in desiredDirection()
258 if (directions.contains(Direction.LEFT)) { in desiredDirection()