예제 #1
0
파일: DevCards.cs 프로젝트: CHE6yp/Colonize
    void FillStack()
    {
        devCards.Clear();

        for (int i = 0; i < 14; i++)
        {
            DevCardType card = DevCardType.Knight;
            devCards.Add(card);
        }

        for (int i = 0; i < 5; i++)
        {
            DevCardType card = DevCardType.WinPoint;
            devCards.Add(card);
        }

        for (int i = 0; i < 2; i++)
        {
            DevCardType card = DevCardType.TwoRoads;
            devCards.Add(card);
        }

        for (int i = 0; i < 2; i++)
        {
            DevCardType card = DevCardType.AnyResource;
            devCards.Add(card);
        }

        for (int i = 0; i < 2; i++)
        {
            DevCardType card = DevCardType.Monopoly;
            devCards.Add(card);
        }
    }
 public void setType(DevCardType type)
 {
     this.type = type;
     if (hidden)
     {
         this.BackgroundImage = Bank.devCardImages[(int)DevCardType.Back];
     } else
     {
         this.BackgroundImage = Bank.devCardImages[(int)type];
     }
 }