// TroopSpace:
if (transporter.startsWith("TroopSpace:", 0)) {
// Everything after the ':' should be the space's size.
Double fsize = new Double(transporter.substring(11));
int size = fsize.intValue();
t.addTransporter(new TroopSpace(size));
}
} // Handle the next transportation component.
} // End has-transporters