From 19aad357913c824f84e76eb1f46758b179c4bb73 Mon Sep 17 00:00:00 2001 From: ericnerdo Date: Fri, 22 Apr 2016 10:43:45 +0200 Subject: [PATCH] Measurable interface implemented Method int weight() overridden, the return value is 0. --- cicaprojekt/ZPM.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cicaprojekt/ZPM.java b/cicaprojekt/ZPM.java index c4ffde5..bea9ff2 100644 --- a/cicaprojekt/ZPM.java +++ b/cicaprojekt/ZPM.java @@ -19,4 +19,13 @@ public class ZPM implements Pickable System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "ZPM.destroy()"); Menu.removeTab(); } + + @Override + public int weight() { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "ZPM.weight()"); + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "ZPM.weight()"); + Menu.removeTab(); + return 0; + } }