public String getName() { return name; }
public boolean isInbox() { return inbox; }
public boolean isOutbox() { return !inbox; }
+ public boolean isLeft() { return left; }
public boolean tokensOnly() { return tokenOnly; }
public String getShortcut() { return shortcut; }
public Iterator<String> iterator() { return destinations.iterator(); }
private final String name;
private final boolean inbox;
private final boolean tokenOnly;
+ private final boolean left;
private ArrayList<String> destinations = new ArrayList<String>();
// FIXME
public HashMap<String,Constant> constants = new HashMap<String,Constant>();
- PumpDescription(ShipDescription ship, String name, boolean tokenOnly, boolean inbox) {
- this(ship, name, tokenOnly, inbox, null);
+ PumpDescription(ShipDescription ship, String name, boolean tokenOnly, boolean left, boolean inbox) {
+ this(ship, name, tokenOnly, inbox, left, null);
}
- PumpDescription(ShipDescription ship, String name, boolean tokenOnly, boolean inbox, String shortcut) {
+ PumpDescription(ShipDescription ship, String name, boolean tokenOnly, boolean left, boolean inbox, String shortcut) {
+ this.left = left;
this.ship = ship;
this.name = name;
this.inbox = inbox;
String dest = val.indexOf('.') != -1 ? val.substring(val.indexOf('.')+1) : "";
for (PumpDescription b : pumps)
if (b.getName().equals(boxname)) { p = b; break; }
- if (p==null) p = new PumpDescription(this, boxname, tokenOnly, inbox);
+ if (p==null) p = new PumpDescription(this, boxname, tokenOnly, inbox, !rightSide);
p.addDest(dest);
}
}