Added threshold initialization to ctor

This commit is contained in:
Bokros Bálint 2016-04-19 11:46:59 +02:00
parent f45ed417ae
commit b8b79db028

View File

@ -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();