/** the docks of a given type are numbered; this returns the ordinal number of this dock */
public abstract int getOrdinal();
+ /** get a constant associated with a ship; returns null if none found */
+ public BitVector getConstant(String constantName) {
+ return null;
+ }
+
public String toString() {
String name = getType();
name = name.substring(0,1).toLowerCase()+name.substring(1);
s = s.substring(0, s.indexOf('='));
hasval = true;
}
- ShipDescription.Constant c = ((FleetTwoDock)dd).getConstant(s);
+ ShipDescription.Constant c = ((FleetTwoDock)dd).getDockConstant(s);
if (c==null) throw new RuntimeException("no constant " + s + " on dock " + dd);
ret |= c.setbits;
ret &= ~c.clearbits;
public String getName() { return dockDescription.getName(); }
- public ShipDescription.Constant getConstant(String s) { return dockDescription.getConstant(s); }
+ public ShipDescription.Constant getDockConstant(String s) { return dockDescription.getConstant(s); }
public boolean isInputDock() { return dockDescription.isInputDock(); }