public int GetIndexOffset(HeroClass heroClass) { switch (heroClass) { case HeroClass.Hunter: return(0); case HeroClass.Mage: if (DisplayedClasses.Contains(HeroClass.Hunter)) { return(SecretHelper.GetMaxSecretCount(HeroClass.Hunter)); } return(0); case HeroClass.Paladin: if (DisplayedClasses.Contains(HeroClass.Hunter) && DisplayedClasses.Contains(HeroClass.Mage)) { return(SecretHelper.GetMaxSecretCount(HeroClass.Hunter) + SecretHelper.GetMaxSecretCount(HeroClass.Mage)); } if (DisplayedClasses.Contains(HeroClass.Hunter)) { return(SecretHelper.GetMaxSecretCount(HeroClass.Hunter)); } if (DisplayedClasses.Contains(HeroClass.Mage)) { return(SecretHelper.GetMaxSecretCount(HeroClass.Mage)); } return(0); } return(0); }
public Secret[] GetDefaultSecrets(HeroClass heroClass) { var count = SecretHelper.GetMaxSecretCount(heroClass); var returnThis = new Secret[count]; for (int i = 0; i < count; i++) { returnThis[i] = new Secret(SecretHelper.GetSecretIds(heroClass)[i], 1); } return(returnThis); }
public List <Secret> GetDefaultSecrets(HeroClass heroClass) { var count = SecretHelper.GetMaxSecretCount(heroClass); var returnThis = new List <Secret>(); foreach (var cardId in SecretHelper.GetSecretIds(heroClass)) { returnThis.Add(new Secret(cardId, 1)); } return(returnThis); }
public Secret[] GetSecrets() { var count = SecretHelper.GetMaxSecretCount(HeroClass); var returnThis = new Secret[count]; for (int i = 0; i < count; i++) { returnThis[i] = new Secret(SecretHelper.GetSecretIds(HeroClass)[i], 0); } foreach (var secret in Secrets) { for (int i = 0; i < count; i++) { if (secret.PossibleSecrets[i]) { returnThis[i].Count++; } } } return(returnThis); }