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 weight;
|
||||
|
||||
public Scale(Gate gate){
|
||||
public Scale(Gate gate, int _threshold){
|
||||
Menu.addTab();
|
||||
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.Scale(" + gate + ")");
|
||||
gateConnected = gate;
|
||||
threshold = _threshold;
|
||||
itemsOnTile = new Stack<Pickable>();
|
||||
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.Scale()");
|
||||
Menu.removeTab();
|
||||
|
Loading…
Reference in New Issue
Block a user