Fixed: Characters Constructors
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user