Removed: Board in ApplyNextRound, MiniModel constructor
Added: upperListTribe,lowerListTribe,upperListBuilding,lowerListBuilding in MiniModel constructor
This commit is contained in:
@@ -265,8 +265,8 @@ public class Game implements Serializable {
|
||||
*
|
||||
* @return a list containing clones of the upper tribe cards currently available on the board.
|
||||
*/
|
||||
public List<TribeCard>getUpperListTribeCards() {
|
||||
List<TribeCard> cards = new ArrayList<>();
|
||||
public ArrayList<TribeCard>getUpperListTribeCards() {
|
||||
ArrayList<TribeCard> cards = new ArrayList<>();
|
||||
board.upperListTribe.forEach(x->cards.add(x.clone()));
|
||||
return cards;
|
||||
}
|
||||
@@ -276,8 +276,8 @@ public class Game implements Serializable {
|
||||
*
|
||||
* @return a list containing clones of the lower tribe cards currently available on the board.
|
||||
*/
|
||||
public List<TribeCard>getLowerListTribeCards() {
|
||||
List<TribeCard> cards = new ArrayList<>();
|
||||
public ArrayList<TribeCard>getLowerListTribeCards() {
|
||||
ArrayList<TribeCard> cards = new ArrayList<>();
|
||||
board.lowerListTribe.forEach(x->cards.add(x.clone()));
|
||||
return cards;
|
||||
}
|
||||
@@ -287,8 +287,8 @@ public class Game implements Serializable {
|
||||
*
|
||||
* @return a list containing clones of the upper building cards currently available on the board.
|
||||
*/
|
||||
public List<BuildingCard>getUpperListBuilding() {
|
||||
List<BuildingCard> cards = new ArrayList<>();
|
||||
public ArrayList<BuildingCard>getUpperListBuilding() {
|
||||
ArrayList<BuildingCard> cards = new ArrayList<>();
|
||||
board.upperListBuilding.forEach(x->cards.add(x.clone()));
|
||||
return cards;
|
||||
}
|
||||
@@ -298,8 +298,8 @@ public class Game implements Serializable {
|
||||
*
|
||||
* @return a list containing clones of the lower building cards currently available on the board.
|
||||
*/
|
||||
public List<BuildingCard>getLowerListBuilding() {
|
||||
List<BuildingCard> cards = new ArrayList<>();
|
||||
public ArrayList<BuildingCard>getLowerListBuilding() {
|
||||
ArrayList<BuildingCard> cards = new ArrayList<>();
|
||||
board.lowerListBuilding.forEach(x->cards.add(x.clone()));
|
||||
return cards;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user