From da86d11f16e436c3cd15831aef13a36c9f797eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Mon, 28 Mar 2016 23:09:01 +0200 Subject: [PATCH] fixed echos in the Box class --- cicaprojekt/Box.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cicaprojekt/Box.java b/cicaprojekt/Box.java index 541c864..cf805d0 100644 --- a/cicaprojekt/Box.java +++ b/cicaprojekt/Box.java @@ -4,11 +4,15 @@ public class Box implements cicaprojekt.Pickable, cicaprojekt.Destroyable { public void destroy() { - System.out.println("Box.destroy() hivodott."); + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.destroy()"); + Menu.removeTab(); } public void pick() { - System.out.println("Box.pick() hivodott."); + Menu.removeTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.pick()"); + Menu.removeTab(); } }