예제 #1
0
        public Meatshield()
        {
            addedCombatCards.Add(new Shield());
            placedStipulationCard = new Shielder();

            name = "Meatshield";
            image = SpriteBase.mainSpriteBase.armor;

            description = "Add cards to your deck, play "+placedStipulationCard.name;
        }
예제 #2
0
    public void TryPlaceCharacterStipulationCard(CharacterStipulationCard playedCard)
    {
        foreach (CharacterStipulationCard card in activeStipulationCards)
        {
            if (card.GetType() == playedCard.GetType())
            {
                RemoveCharacterStipulationCard(card);
                break;
            }
        }

        CharStipulationCardGraphic cardGraphic = Instantiate(stipulationCardPrefab);
        cardGraphic.AssignCard(playedCard);
        cardGraphic.transform.SetParent(stipulationCardsGroup, false);
        cardGraphic.transform.SetAsFirstSibling();
        playedCard.ActivateCard(this);
        activeStipulationCards.Add(playedCard);
    }
예제 #3
0
 public void RemoveCharacterStipulationCard(CharacterStipulationCard removedCard)
 {
     removedCard.DeactivateCard();
     foreach (CharStipulationCardGraphic graphic in stipulationCardsGroup.GetComponentsInChildren<CharStipulationCardGraphic>())
     {
         if (graphic.assignedCard == removedCard)
         {
             GameObject.Destroy(graphic.gameObject);
             break;
         }
     }
     activeStipulationCards.Remove(removedCard);
 }
 public void AssignCard(CharacterStipulationCard newCard)
 {
     base.UpdateBasicVisuals(newCard);
     assignedCard = newCard;
 }
예제 #5
0
            protected override void ExtenderConstructor()
            {
                staminaCost = 1;
                targetType = TargetType.None;

                placedStipulationCard = new BlockStipulationCard();

                name = "Block";
                description = "If no block is present:" + placedStipulationCard.description;
                image = SpriteBase.mainSpriteBase.armor;
            }
예제 #6
0
        public Blocker()
        {
            addedCombatCards.Add(new Block());
            placedStipulationCard = new BlockStipulationCard();

            name = "Blocker";
            image = SpriteBase.mainSpriteBase.armor;

            description = "Add cards to your deck, plays " + placedStipulationCard.name;
        }