示例#1
0
 //Clone Constructors
 public PlayerModel(PlayerModel player, PlayFieldModel state)
 {
     this.hand                      = new PlayerHand(player.hand, state);
     this.bank                      = new PlayerBank(player.bank, state);
     this.propertySets              = new PlayerPropertySets(player.propertySets, state);
     this.guid                      = player.guid;
     this.id                        = player.id;
     this.isThisPlayersTurn         = player.isThisPlayersTurn;
     this.name                      = player.name;
     this.actionsCurrentlyAllowed   = player.actionsCurrentlyAllowed.cloneListTurnActionTypes();
     this.isReadyToStartGame        = player.isReadyToStartGame;
     this.owesAnotherPlayer         = player.owesAnotherPlayer;
     this.amountOwedToAnotherPlayer = player.amountOwedToAnotherPlayer;
 }
示例#2
0
 //Clone Constructors
 public PlayerModel(PlayerModel player, PlayFieldModel state)
 {
     this.hand = new PlayerHand(player.hand, state);
     this.bank = new PlayerBank(player.bank, state);
     this.propertySets = new PlayerPropertySets(player.propertySets, state);
     this.guid = player.guid;
     this.id = player.id;
     this.isThisPlayersTurn = player.isThisPlayersTurn;
     this.name = player.name;
     this.actionsCurrentlyAllowed = player.actionsCurrentlyAllowed.cloneListTurnActionTypes();
     this.isReadyToStartGame = player.isReadyToStartGame;
     this.owesAnotherPlayer = player.owesAnotherPlayer;
     this.amountOwedToAnotherPlayer = player.amountOwedToAnotherPlayer;
 }
示例#3
0
 public PlayerModel(String nameP)
 {
     //Set ID
     guid = generatePlayerGuid();
     //Set name
     name = nameP;
     //Give emptyhand
     hand = new PlayerHand(guid, new List <Card>());
     //Give emptybank
     bank = new PlayerBank(guid, new List <Card>());
     //give emptypropertysets
     propertySets = new PlayerPropertySets(guid, new List <PropertyCardSet>());
     //Set not players turn
     isThisPlayersTurn = false;
     //notready to start game
     isReadyToStartGame = false;
 }
示例#4
0
 public PlayerModel(String nameP)
 {
     //Set ID
     guid = generatePlayerGuid();
     //Set name
     name = nameP;
     //Give emptyhand
     hand = new PlayerHand(guid, new List<Card>());
     //Give emptybank
     bank = new PlayerBank(guid, new List<Card>());
     //give emptypropertysets
     propertySets = new PlayerPropertySets(guid, new List<PropertyCardSet>());
     //Set not players turn
     isThisPlayersTurn = false;
     //notready to start game
     isReadyToStartGame = false;
 }
示例#5
0
 public PlayerBank(PlayerBank bank, PlayFieldModel state)
 {
     this.playerGuid  = bank.playerGuid;
     this.cardsInBank = bank.cardsInBank.cloneListCard(state.deck);
 }
 public void referenceAllDataContracts(ActionCard ac, Card c, FieldUpdateMessage fum, Message msg, MoneyCard mc, PlayerBank pb, PlayerHand ph, PlayerModel pm, PlayerPropertySets pps, PlayFieldModel pfm, PlayPile pp, PollForFieldUpdateMessage pffum, PropertyCard pc, PropertyCardSet pcs, PropertySetInfo psi, RentStandard rs, TakeActionOnTurnMessage taotm, TurnActionModel tam)
 {
     throw new NotImplementedException();
 }
示例#7
0
 public PlayerBank(PlayerBank bank, PlayFieldModel state)
 {
     this.playerGuid = bank.playerGuid;
     this.cardsInBank = bank.cardsInBank.cloneListCard(state.deck);
 }
 public void referenceAllDataContracts(ActionCard ac, Card c, FieldUpdateMessage fum, Message msg, MoneyCard mc, PlayerBank pb, PlayerHand ph, PlayerModel pm, PlayerPropertySets pps, PlayFieldModel pfm, PlayPile pp, PollForFieldUpdateMessage pffum, PropertyCard pc, PropertyCardSet pcs, PropertySetInfo psi, RentStandard rs, TakeActionOnTurnMessage taotm, TurnActionModel tam)
 {
     throw new NotImplementedException();
 }