Removed: Board in MiniModel
Added: upperListTribe,lowerListTribe,upperListBuilding,lowerListBuilding
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
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.GamePackage.Board;
|
||||
import it.polimi.ingsw.gc14.Model.GamePackage.CurrentState;
|
||||
|
||||
@@ -15,10 +17,10 @@ import java.util.*;
|
||||
*/
|
||||
public class MiniModel implements Serializable {
|
||||
|
||||
/**
|
||||
* Current game board.
|
||||
*/
|
||||
public Board board;
|
||||
public ArrayList<TribeCard> upperListTribeCards;
|
||||
public ArrayList<TribeCard> lowerListTribeCards;
|
||||
public ArrayList<BuildingCard> upperListBuildingCards;
|
||||
public ArrayList<BuildingCard> lowerListBuildingCards;
|
||||
|
||||
/**
|
||||
* Map associating each occupied slot with the corresponding player.
|
||||
@@ -56,13 +58,12 @@ public class MiniModel implements Serializable {
|
||||
public MiniModel() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a mini model containing only the game board.
|
||||
*
|
||||
* @param board the current game board.
|
||||
*/
|
||||
public MiniModel(Board board) {
|
||||
this.board = board;
|
||||
//TODO
|
||||
public MiniModel(ArrayList<TribeCard> upperListTribeCards,ArrayList<TribeCard>lowerListTribeCards,ArrayList<BuildingCard> upperListBuildingCards,ArrayList<BuildingCard>lowerListBuildingCards) {
|
||||
this.upperListTribeCards = upperListTribeCards;
|
||||
this.lowerListTribeCards = lowerListTribeCards;
|
||||
this.upperListBuildingCards = upperListBuildingCards;
|
||||
this.lowerListBuildingCards = lowerListBuildingCards;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -91,14 +92,6 @@ public class MiniModel implements Serializable {
|
||||
setPlayers(players);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the current game board.
|
||||
*
|
||||
* @param board the board to assign.
|
||||
*/
|
||||
public void setBoard(Board board) {
|
||||
this.board = board;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the list of totems still available for selection.
|
||||
|
||||
Reference in New Issue
Block a user