IHex curHex, IHex prevHex) { if(prevHex == curHex)
Coords curPos, Coords prevPos) { if(prevPos.equals(curPos))
    public int checkMovementInBuilding(MoveStep step, MoveStep prevStep,                                           IHex curHex, IHex prevHex) {        if(prevHex == curHex)            return 0;        // ineligable because of movement type or unit type        if(this instanceof Infantry || this instanceof Protomech || step.getMovementType() == IEntityMovementType.MOVE_JUMP)            return 0;                int rv = 0;        //check current hex for building        if (step.getElevation()<curHex.terrainLevel(Terrains.BLDG_ELEV)) {            rv += 2;        } else if (step.getElevation()==curHex.terrainLevel(Terrains.BLDG_ELEV)                || step.getElevation()==curHex.terrainLevel(Terrains.BRIDGE_ELEV)) {            rv += 4;        }        //check previous hex for building        if(prevHex != null) {            int prevEl = getElevation();            if(prevStep != null) {                prevEl = prevStep.getElevation();            }            if (prevEl<prevHex.terrainLevel(Terrains.BLDG_ELEV)) {                rv += 1;            }        }                return rv;    }