Added weight to Box, not finished
This commit is contained in:
parent
a83a849ac0
commit
d735d72a78
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user