public Land(TextInput in) { this.name = in.readLine(); this.symbol = in.readLine(); this.enterable = in.readBoolean(); in.readLine(); this.amountOfSpice = in.readInt(); in.readLine(); this.speedModifier = in.readDouble(); in.readLine(); in.readLine(); }
/* Does the same thing as readLine from becker.io.TextInput, but has an unlimited [buffer] length */ public String readLongLine() { String text = ""; while (!super.eolIsAvailable()) { if (super.tokenIsAvailable()) { text = text + super.readToken() + " "; } else { break; } } super.readLine(); return text; }