示例#1
0
 @Override
 public String printWeightMisc() {
   String turretString =
       !tank.hasNoTurret()
           ? StringUtil.makeLength("Turret:", getPrintSize() - 5)
               + TestEntity.makeWeightString(getTankWeightTurret())
               + "\n"
           : "";
   String dualTurretString =
       !tank.hasNoDualTurret()
           ? StringUtil.makeLength("Front Turret:", getPrintSize() - 5)
               + TestEntity.makeWeightString(getTankWeightDualTurret())
               + "\n"
           : "";
   return turretString
       + dualTurretString
       + (getTankWeightLifting() != 0
           ? StringUtil.makeLength("Lifting Equip:", getPrintSize() - 5)
               + TestEntity.makeWeightString(getTankWeightLifting())
               + "\n"
           : "")
       + (getWeightPowerAmp() != 0
           ? StringUtil.makeLength("Power Amp:", getPrintSize() - 5)
               + TestEntity.makeWeightString(getWeightPowerAmp())
               + "\n"
           : "");
 }
示例#2
0
 @Override
 public String printWeightControls() {
   return StringUtil.makeLength("Controls:", getPrintSize() - 5)
       + TestEntity.makeWeightString(getWeightControls())
       + "\n";
 }