diff --git a/cicaprojekt/Box.java b/cicaprojekt/Box.java index 3a773a3..4303b3d 100644 --- a/cicaprojekt/Box.java +++ b/cicaprojekt/Box.java @@ -2,6 +2,8 @@ package cicaprojekt; public class Box implements cicaprojekt.Pickable, cicaprojekt.Destroyable { + private int weight = 5; + public Box(){ Menu.addTab(); @@ -30,6 +32,6 @@ public class Box implements cicaprojekt.Pickable, cicaprojekt.Destroyable System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.weight()"); System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.weight()"); Menu.removeTab(); - return 5; + return this.weight; } }