|
@@ -23,6 +23,15 @@ public class HolonElement {
|
|
|
System.out.println("You create some " + name + "'s. The amount is:" + amount);
|
|
|
System.out.println("It's actual status is: " + isWorking);
|
|
|
}
|
|
|
+
|
|
|
+ public HolonElement(HolonElement hol) {
|
|
|
+ this.name = hol.getName();
|
|
|
+ this.amount = hol.getAmount();
|
|
|
+ this.energy = hol.getEnergy();
|
|
|
+ this.isWorking = true;
|
|
|
+ System.out.println("You create some " + name + "'s. The amount is:" + amount);
|
|
|
+ System.out.println("It's actual status is: " + isWorking);
|
|
|
+ }
|
|
|
|
|
|
public String getName() {
|
|
|
return name;
|