Fixed: Characters Constructors
This commit is contained in:
@@ -17,9 +17,6 @@ public class Artist extends Character {
|
||||
super(Era, CharacterType.ARTIST,nMin);
|
||||
}
|
||||
|
||||
public Artist(Artist copy){
|
||||
this(copy.getEra());
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString();
|
||||
|
||||
@@ -44,16 +44,12 @@ public class Builder extends Character
|
||||
}
|
||||
this.prestigeValue = prestigeValue;
|
||||
}
|
||||
public Builder(Builder copy)
|
||||
{
|
||||
this(copy.getEra(),copy.getReductionValue(), copy.getPrestigeValue());
|
||||
}
|
||||
@Override
|
||||
public String toString() { return super.toString()+" Reduction Value: " + String.valueOf(reductionValue) + "\n Prestige Value: " + String.valueOf(prestigeValue); }
|
||||
|
||||
@Override
|
||||
public Character clone() {
|
||||
return new Builder(this);
|
||||
return new Builder(getEra(),getReductionValue(), getPrestigeValue());
|
||||
}
|
||||
|
||||
public void insert(Player player) {
|
||||
|
||||
Reference in New Issue
Block a user