/** * Moves the position one hex in the direction indicated. Does not change * facing. * * @param dir */ public void moveInDir(int dir) { position = position.translated(dir); if (!getGame().getBoard().contains(position)) { throw new RuntimeException("Coordinate off the board."); } }
/** * Turns VTOL bombing on or off for this step. */ public void setVTOLBombing(boolean bombing) { if (bombing) { setTarget(new HexTarget(getPosition(), getGame().getBoard(), Targetable.TYPE_HEX_AERO_BOMB)); } else { setTarget(null); } }
/** * Turns VTOL strafing on or off for this step. */ public void setStrafing(boolean strafing) { if (strafing) { setTarget(new HexTarget(getPosition(), getGame().getBoard(), Targetable.TYPE_HEX_CLEAR)); } else { setTarget(null); } }
if(lastStep != null && lastStep.canAeroTurn(lastStep.getGame())) { result.add(mp.clone().addStep(MoveStepType.TURN_RIGHT)); result.add(mp.clone().addStep(MoveStepType.TURN_LEFT));