Fix: clone method
This commit is contained in:
@@ -91,7 +91,7 @@ public class Building0 extends BuildingCard {
|
||||
*/
|
||||
@Override
|
||||
public BuildingCard clone() {
|
||||
return new Building0(getEra(),getPrice(),getPrestigeValue());
|
||||
return new Building0(getIdIMG(),getEra(),getPrice(),getPrestigeValue());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -53,7 +53,7 @@ public class Building1 extends BuildingCard {
|
||||
*/
|
||||
@Override
|
||||
public BuildingCard clone() {
|
||||
return new Building1(getEra(),getPrice(),getPrestigeValue(),getIcon());
|
||||
return new Building1(getIdIMG(),getEra(),getPrice(),getPrestigeValue(),getIcon());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Building10 extends BuildingCard {
|
||||
*/
|
||||
@Override
|
||||
public BuildingCard clone() {
|
||||
return new Building10(getEra(),getPrice(),getPrestigeValue());
|
||||
return new Building10(getIdIMG(),getEra(),getPrice(),getPrestigeValue());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -70,7 +70,7 @@ public class Building11 extends BuildingCard {
|
||||
*/
|
||||
@Override
|
||||
public BuildingCard clone() {
|
||||
return new Building11(getEra(),getPrice(),getPrestigeValue(), getIcon(), getPrestigeMul());
|
||||
return new Building11(getIdIMG(),getEra(),getPrice(),getPrestigeValue(), getIcon(), getPrestigeMul());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -37,7 +37,7 @@ public class Building13 extends BuildingCard{
|
||||
*/
|
||||
@Override
|
||||
public BuildingCard clone() {
|
||||
return new Building13(getEra(),getPrice(),getPrestigeValue());
|
||||
return new Building13(getIdIMG(),getEra(),getPrice(),getPrestigeValue());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -96,7 +96,7 @@ public class Building4 extends BuildingCard {
|
||||
*/
|
||||
@Override
|
||||
public BuildingCard clone() {
|
||||
return new Building4(getEra(),getPrice(),getPrestigeValue());
|
||||
return new Building4(getIdIMG(),getEra(),getPrice(),getPrestigeValue());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -41,7 +41,7 @@ public class Building8 extends BuildingCard {
|
||||
*/
|
||||
@Override
|
||||
public BuildingCard clone() {
|
||||
return new Building8(getEra(),getPrice(),getPrestigeValue());
|
||||
return new Building8(getIdIMG(),getEra(),getPrice(),getPrestigeValue());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -212,7 +212,7 @@ public class BuildingCard extends PlayableCard implements Cloneable , BuildingEf
|
||||
@Override
|
||||
public BuildingCard clone()
|
||||
{
|
||||
return new BuildingCard(effectId,getEra(),getPrice(),getPrestigeValue());
|
||||
return new BuildingCard(getIdIMG(),effectId,getEra(),getPrice(),getPrestigeValue());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -61,7 +61,7 @@ public class Artist extends Character {
|
||||
*/
|
||||
@Override
|
||||
public Character clone() {
|
||||
return new Artist(getEra(), getNMin());
|
||||
return new Artist(getIdIMG(),getEra(), getNMin());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -159,7 +159,7 @@ public class Builder extends Character {
|
||||
*/
|
||||
@Override
|
||||
public Character clone() {
|
||||
return new Builder(getEra(),getReductionValue(), getPrestigeValue(), getNMin());
|
||||
return new Builder(getIdIMG(),getEra(),getReductionValue(), getPrestigeValue(), getNMin());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,7 +60,7 @@ public class Gatherer extends Character {
|
||||
*/
|
||||
@Override
|
||||
public Character clone() {
|
||||
return new Gatherer(getEra(), getNMin());
|
||||
return new Gatherer(getIdIMG(),getEra(), getNMin());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -110,7 +110,7 @@ public class Hunter extends Character {
|
||||
*/
|
||||
@Override
|
||||
public Character clone() {
|
||||
return new Hunter(getEra(), getIcon(), getNMin());
|
||||
return new Hunter(getIdIMG(),getEra(), getIcon(), getNMin());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -110,7 +110,7 @@ public class Inventor extends Character {
|
||||
*/
|
||||
@Override
|
||||
public Character clone() {
|
||||
return new Inventor(getEra(),icon, getNMin());
|
||||
return new Inventor(getIdIMG(),getEra(),icon, getNMin());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -104,7 +104,7 @@ public class Shaman extends Character {
|
||||
*/
|
||||
@Override
|
||||
public Character clone() {
|
||||
return new Shaman(getEra(), getIcon(), getNMin());
|
||||
return new Shaman(getIdIMG(),getEra(), getIcon(), getNMin());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -97,7 +97,7 @@ public class CavePaintings extends EventCard {
|
||||
@Override
|
||||
public EventCard clone()
|
||||
{
|
||||
return new CavePaintings(getEra(), NLower, NPrestigeRem, NPrestigeMul) ;
|
||||
return new CavePaintings(getIdIMG(),getEra(), NLower, NPrestigeRem, NPrestigeMul) ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ public class Hunt extends EventCard {
|
||||
*/
|
||||
@Override
|
||||
public EventCard clone() {
|
||||
return new Hunt(getEra(), prestigeMultiplier);
|
||||
return new Hunt(getIdIMG(),getEra(), prestigeMultiplier);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -107,7 +107,7 @@ public class ShamanicRitual extends EventCard {
|
||||
*/
|
||||
@Override
|
||||
public EventCard clone() {
|
||||
return new ShamanicRitual(getEra(), prestigeToAdd, prestigeToRemove);
|
||||
return new ShamanicRitual(getIdIMG(),getEra(), prestigeToAdd, prestigeToRemove);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -97,7 +97,7 @@ public class Sustenance extends EventCard {
|
||||
*/
|
||||
@Override
|
||||
public EventCard clone() {
|
||||
return new Sustenance(getEra(), PrestigeDebt);
|
||||
return new Sustenance(getIdIMG(),getEra(), PrestigeDebt);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user