@Override public String toString(){
  StringBuffer buf=new StringBuffer();
switch (getType()) {
case Building.LIGHT:
    buf.append("Light ");
  break;
case Building.MEDIUM:
buf.append("Medium ");
break;
case Building.HEAVY:
buf.append("Heavy ");
break;
case Building.HARDENED:
buf.append("Hardened ");
break;
case Building.WALL:
buf.append("");
break;
}
switch (getBldgClass()) {
case Building.HANGAR:
buf.append("Hangar ");
break;
case Building.FORTRESS:
buf.append("Fortress ");
break;
case Building.GUN_EMPLACEMENT:
buf.append("Gun Emplacement");
break;
default :
buf.append("Standard ");
}
buf.append(name);
return buf.toString();
}

@ Override public String toString ( ) { StringBuffer buf = new StringBuffer ( ) ; switch ( getType ( ) ) { case Building . LIGHT : buf . append ( "Light " ) ; break ; case Building . MEDIUM : buf . append ( "Medium " ) ; break ; case Building . HEAVY : buf . append ( "Heavy " ) ; break ; case Building . HARDENED : buf . append ( "Hardened " ) ; break ; case Building . WALL : buf . append ( "" ) ; break ; } switch ( getBldgClass ( ) ) { case Building . HANGAR : buf . append ( "Hangar " ) ; break ; case Building . FORTRESS : buf . append ( "Fortress " ) ; break ; case Building . GUN_EMPLACEMENT : buf . append ( "Gun Emplacement" ) ; break ; default : buf . append ( "Standard " ) ; } buf . append ( name ) ; return buf . toString ( ) ; }
get a string for this building .
