예제 #1
0
        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);
        }
예제 #2
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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }