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]; } }