Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Gets a Property Set given a list of a Players PropertySet's and the Guid of the set
 /// </summary>
 /// <param name="pps"></param>
 /// <param name="guidOfSet"></param>
 /// <returns></returns>
 private PropertyCardSet getPropertyCardSet(PlayerPropertySets pps, Guid guidOfSet)
 {
     foreach (PropertyCardSet ps in pps.playersPropertySets)
     {
         if (ps.guid.CompareTo(guidOfSet) == 0)
         {
             return ps;
         }
     }
     return null;
 }
        public PlayerPropertySets(PlayerPropertySets playerPropertySetCollection, PlayFieldModel state)
        {
            this.playerGuid = playerPropertySetCollection.playerGuid;

            this.playersPropertySets = playerPropertySetCollection.playersPropertySets.cloneListPropertyCardSet(state);
        }
 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();
 }
Ejemplo n.º 8
0
        public PlayerPropertySets(PlayerPropertySets playerPropertySetCollection, PlayFieldModel state)
        {
            this.playerGuid = playerPropertySetCollection.playerGuid;

            this.playersPropertySets = playerPropertySetCollection.playersPropertySets.cloneListPropertyCardSet(state);
        }
 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();
 }