public DraftContractViewModel(GameContract contract, GameContractLocation location)
 {
     Contract = contract;
     BonusClass = IconCss.BonusClass[contract.Bonus];
     State = GameActionState.ContractDraft;
     Location = location;
     SetSpecificText(contract);
 }
Exemplo n.º 2
0
 public void AddContracts(List<TemplateContract> contracts)
 {
     var i = 0;
     foreach (TemplateContract contract in contracts)
     {
         var gameContract = new GameContract(contract);
         gameContract.Order = i++;
         gameContract.Location = GameContractLocation.DrawDeck;
         Contracts.Add(gameContract);
     }
 }
Exemplo n.º 3
0
        public void AddContracts(List <TemplateContract> contracts)
        {
            var i = 0;

            foreach (TemplateContract contract in contracts)
            {
                var gameContract = new GameContract(contract);
                gameContract.Order    = i++;
                gameContract.Location = GameContractLocation.DrawDeck;
                Contracts.Add(gameContract);
            }
        }
 private void SetSpecificText(GameContract contract)
 {
     TooltipSpecificText = TooltipText + "<bold>Contract Bonus</bold>: " + ContractBonusToToolTip[contract.Bonus];
 }
 public PlayerContractViewModel(GameContract contract, GameContractLocation location)
 {
     Contract = contract;
     Location = location;
     if (contract == null)
     {
         Ticket = location.ToString().ToLower();
         EmptyCssClass = "player-contract-empty";
         BonusClass = "";
     }
     else
     {
         Ticket = "";
         EmptyCssClass = "";
         BonusClass = IconCss.BonusClass[contract.Bonus];
     }
 }