if (tank.getEngineType()==0) type = Engine.NORMAL_ENGINE; else if (tank.getEngineType()==1) {
if (tank.getEngineType()==EquipmentType.T_ENGINE_ICE) {
    private static Engine getEngine(Tank tank)    {        int type = 0;        int flag = Engine.TANK_ENGINE;        if (tank.getEngineType()==0)            type = Engine.NORMAL_ENGINE;        else if (tank.getEngineType()==1)        {            type = Engine.COMPUSTION_ENGINE;            flag = 0;        }        else if (tank.getEngineType()==2)            type = Engine.XL_ENGINE;        if (tank.isClan())            flag |= Engine.CLAN_ENGINE;        return new Engine(getTankEngineRating(tank), type, flag);    }