()
| 151 | } |
| 152 | |
| 153 | public String getLSTformat() |
| 154 | { |
| 155 | StringBuilder sb = new StringBuilder(); |
| 156 | sb.append(index).append('|').append(name); |
| 157 | if (bonuses != null) |
| 158 | { |
| 159 | for (BonusObj bo : bonuses) |
| 160 | { |
| 161 | sb.append('\t').append(bo.getLSTformat()); |
| 162 | } |
| 163 | } |
| 164 | if (kits != null) |
| 165 | { |
| 166 | for (TransitionChoice<Kit> tc : kits) |
| 167 | { |
| 168 | sb.append('\t').append(tc.getCount()).append(Constants.PIPE); |
| 169 | sb.append(tc.getChoices().getLSTformat().replaceAll(Constants.COMMA, Constants.PIPE)); |
| 170 | } |
| 171 | } |
| 172 | return sb.toString(); |
| 173 | } |
| 174 | |
| 175 | /* |
| 176 | * Begin items implementing BonusContainer interface |
no test coverage detected