Added threshold initialization to ctor
This commit is contained in:
parent
f45ed417ae
commit
b8b79db028
@ -8,10 +8,11 @@ public class Scale extends Field {
|
|||||||
private int threshold;
|
private int threshold;
|
||||||
private int weight;
|
private int weight;
|
||||||
|
|
||||||
public Scale(Gate gate){
|
public Scale(Gate gate, int _threshold){
|
||||||
Menu.addTab();
|
Menu.addTab();
|
||||||
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.Scale(" + gate + ")");
|
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.Scale(" + gate + ")");
|
||||||
gateConnected = gate;
|
gateConnected = gate;
|
||||||
|
threshold = _threshold;
|
||||||
itemsOnTile = new Stack<Pickable>();
|
itemsOnTile = new Stack<Pickable>();
|
||||||
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.Scale()");
|
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.Scale()");
|
||||||
Menu.removeTab();
|
Menu.removeTab();
|
||||||
|
Loading…
Reference in New Issue
Block a user