From b8b79db028feab3da79c6facc6cf9b86c3accca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Tue, 19 Apr 2016 11:46:59 +0200 Subject: [PATCH] Added threshold initialization to ctor --- cicaprojekt/Scale.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cicaprojekt/Scale.java b/cicaprojekt/Scale.java index 3c4e55e..1dfb422 100644 --- a/cicaprojekt/Scale.java +++ b/cicaprojekt/Scale.java @@ -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(); System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.Scale()"); Menu.removeTab();