public boolean correctControlSystems(StringBuffer buff){
  if (aero.getEntityType() == Entity.ETYPE_CONV_FIGHTER && aero.getCockpitType() != Aero.COCKPIT_STANDARD) {
    buff.append("Conventional fighters may only have standard cockpits!");
    return false;
  }
 else   if (aero.getCockpitType() < Aero.COCKPIT_STANDARD || aero.getCockpitType() > Aero.COCKPIT_PRIMITIVE) {
    buff.append("Invalid cockpit type!");
    return false;
  }
  return true;
}

public boolean correctControlSystems ( StringBuffer buff ) { if ( aero . getEntityType ( ) == Entity . ETYPE_CONV_FIGHTER && aero . getCockpitType ( ) != Aero . COCKPIT_STANDARD ) { buff . append ( "Conventional fighters may only have standard cockpits!" ) ; return false ; } else if ( aero . getCockpitType ( ) < Aero . COCKPIT_STANDARD || aero . getCockpitType ( ) > Aero . COCKPIT_PRIMITIVE ) { buff . append ( "Invalid cockpit type!" ) ; return false ; } return true ; }
checks that conventional fighters only have a standard cockpit and that aerospace fighters have a valid cockpit ( standard , small , primitive , command console ) .
