Fixed: Characters Constructors

This commit is contained in:
rubenpirreram
2026-03-27 16:12:08 +01:00
parent a45b5042a0
commit 8e82a5aae4
2 changed files with 1 additions and 8 deletions
@@ -17,9 +17,6 @@ public class Artist extends Character {
super(Era, CharacterType.ARTIST,nMin); super(Era, CharacterType.ARTIST,nMin);
} }
public Artist(Artist copy){
this(copy.getEra());
}
@Override @Override
public String toString() { public String toString() {
return super.toString(); return super.toString();
@@ -44,16 +44,12 @@ public class Builder extends Character
} }
this.prestigeValue = prestigeValue; this.prestigeValue = prestigeValue;
} }
public Builder(Builder copy)
{
this(copy.getEra(),copy.getReductionValue(), copy.getPrestigeValue());
}
@Override @Override
public String toString() { return super.toString()+" Reduction Value: " + String.valueOf(reductionValue) + "\n Prestige Value: " + String.valueOf(prestigeValue); } public String toString() { return super.toString()+" Reduction Value: " + String.valueOf(reductionValue) + "\n Prestige Value: " + String.valueOf(prestigeValue); }
@Override @Override
public Character clone() { public Character clone() {
return new Builder(this); return new Builder(getEra(),getReductionValue(), getPrestigeValue());
} }
public void insert(Player player) { public void insert(Player player) {