}
} else if (entity.getMovementMode() == IEntityMovementMode.SUBMARINE) {   entity.setElevation(game.getBoard().getHex(coords).surface()); } else if ((entity.getMovementMode() == IEntityMovementMode.HOVER) || (entity.getMovementMode() == IEntityMovementMode.NAVAL) || (entity.getMovementMode() == IEntityMovementMode.HYDROFOIL)) {  entity.setElevation(game.getBoard().getHex(coords).surface()); } else {  entity.setElevation(game.getBoard().getHex(coords).floor()); }
    private void processDeployment(Entity entity, Coords coords, int nFacing, Vector loadVector) {        for (Enumeration i = loadVector.elements(); i.hasMoreElements();) {            Entity loaded = (Entity)i.nextElement();            if ( loaded == null || loaded.getPosition() != null ||                 loaded.getTransportId() != Entity.NONE ) {                // Something is fishy in Denmark.                System.err.println("error: " + entity + " can not load entity #" + loaded );                break;            }            else {                // Have the deployed unit load the indicated unit.                this.loadUnit( entity, loaded );            }        }        entity.setPosition(coords);        entity.setFacing(nFacing);        entity.setSecondaryFacing(nFacing);        if(entity instanceof VTOL) {            // We should let players pick, but this simplifies a lot.            // Only do it for VTOLs, though; assume everything else is on the ground.            entity.setElevation(game.getBoard().getHex(coords).ceiling()-game.getBoard().getHex(coords).surface()+1);            while ((Compute.stackingViolation(game, entity, coords, null) != null) && (entity.getElevation() <= 50)) {                entity.setElevation(entity.getElevation() + 1);            }            if (entity.getElevation() > 50) {                throw new IllegalStateException("Entity #" + entity.getId() + " appears to be in an infinite loop trying to get a legal elevation.");            }        } // TODO: Implement this for Submarines.  Assume they're at the surface?        entity.setDone(true);        entity.setDeployed(true);        entityUpdate(entity.getId());    }