Updated: SetCard and Pair Building implementation
This commit is contained in:
@@ -25,6 +25,14 @@ public class Building0 extends BuildingCard {
|
|||||||
numSet = 0;
|
numSet = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean buy(Player player)
|
||||||
|
{
|
||||||
|
if(!super.buy(player))
|
||||||
|
return false;
|
||||||
|
initialize(player);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public void initialize(Player player)
|
public void initialize(Player player)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -41,6 +41,16 @@ public class Building4 extends BuildingCard {
|
|||||||
purchased = true;
|
purchased = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean buy(Player player)
|
||||||
|
{
|
||||||
|
if(!super.buy(player))
|
||||||
|
return false;
|
||||||
|
initialize(player);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BuildingCard clone() {
|
public BuildingCard clone() {
|
||||||
return new Building4(getEra(),getPrice());
|
return new Building4(getEra(),getPrice());
|
||||||
|
|||||||
Reference in New Issue
Block a user