First implementation minimodel
This commit is contained in:
@@ -1,4 +1,46 @@
|
||||
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.Character;
|
||||
import it.polimi.ingsw.gc14.Model.GamePackage.Board;
|
||||
import it.polimi.ingsw.gc14.Model.GamePackage.CurrentState;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import java.util.*;
|
||||
//TODO
|
||||
public class MiniModel {
|
||||
public Board board;
|
||||
public Map<Slot,Player> slotPlayerMap;
|
||||
public OrderLogicCard orderLogicCard;
|
||||
public CurrentState currentState;
|
||||
public Map<String,Player> players;
|
||||
public MiniModel(Board board, Map<Slot,Player> slotPlayerMap, OrderLogicCard orderLogicCard, CurrentState currentState, Map<String,Player> players) {
|
||||
this.board = board;
|
||||
this.slotPlayerMap = slotPlayerMap;
|
||||
this.orderLogicCard = orderLogicCard;
|
||||
this.currentState = currentState;
|
||||
this.players = players;
|
||||
}
|
||||
public void setBoard(Board board) {
|
||||
this.board = board;
|
||||
}
|
||||
public void setSlotPlayerMap(Map<Slot,Player> slotPlayerMap) {
|
||||
this.slotPlayerMap = slotPlayerMap;
|
||||
}
|
||||
public void setOrderLogicCard(OrderLogicCard orderLogicCard) {
|
||||
this.orderLogicCard = orderLogicCard;
|
||||
}
|
||||
public void setCurrentState(CurrentState currentState) {
|
||||
this.currentState = currentState;
|
||||
}
|
||||
public void setPlayers(List<Player> players) {
|
||||
for (Player player : players) {
|
||||
this.players.put(player.getUserName(),player);
|
||||
}
|
||||
}
|
||||
public void setPlayer(Player player)
|
||||
{
|
||||
players.put(player.getUserName(),player);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user