Game initialize
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
package it.polimi.ingsw.gc14.Model;
|
||||
|
||||
import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCard;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
import static java.lang.Math.abs;
|
||||
|
||||
@@ -35,14 +32,7 @@ public class Player {
|
||||
};
|
||||
}
|
||||
|
||||
private ArrayList <BuildingCard> BuildingCards;
|
||||
public ArrayList <BuildingCard> getBuildingCards() {
|
||||
ArrayList <BuildingCard> copy = new ArrayList <>();
|
||||
for(BuildingCard building:BuildingCards){
|
||||
copy.add(building.clone());
|
||||
}
|
||||
return copy;
|
||||
}
|
||||
public ArrayList <BuildingCard> buildingCards;
|
||||
|
||||
public ArrayList <Artist> artists;
|
||||
public ArrayList <Builder> builders;
|
||||
@@ -107,7 +97,7 @@ public class Player {
|
||||
this.hunters = new ArrayList <>();
|
||||
this.artists = new ArrayList<>();
|
||||
|
||||
this.BuildingCards = new ArrayList<>();
|
||||
this.buildingCards = new ArrayList<>();
|
||||
this.FoodValue = 0;
|
||||
this.PrestigeValue = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user