Added weight to Box, not finished

This commit is contained in:
muskenum 2016-04-21 23:32:14 +02:00
parent a83a849ac0
commit d735d72a78

View File

@ -5,20 +5,40 @@ public class Box implements cicaprojekt.Pickable, cicaprojekt.Destroyable
private int weight; private int weight;
public Box(int w){ public Box(int w){
Menu.addTab();
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.Box(" + w + ")");
weight = w; weight = w;
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.Box()");
Menu.removeTab();
} }
public int getWeight(){ public int getWeight(){
Menu.addTab();
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.getWeight()");
return weight; return weight;
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.getWeight()");
Menu.removeTab();
} }
public void setWeight(int w){ public void setWeight(int w){
Menu.addTab();
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.setWeight(" + w + ")");
weight = w; weight = w;
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.setWeight()");
Menu.removeTab();
} }
public void destroy() { public void destroy() {
Menu.addTab();
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.destroy()");
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.destroy()");
Menu.removeTab();
} }
public void pick() { public void pick() {
Menu.addTab();
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.pick()");
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Box.pick()");
Menu.removeTab();
} }
} }