예제 #1
0
 public void Bounce(Card source)
 {
     ActionAvailable = true;
     MoveAvailable   = true;
     UpdateHasActedIndicators();
     Tile.Creature = null;
     SetSpriteColor(Color.white); // reset sprite color in case card is greyed out
     ResetToBaseStats();
     SourceCard.MoveToCardPile(SourceCard.Owner.Hand, source);
 }
예제 #2
0
    private void CreateOnTileActual(Tile tile)
    {
        // move card from player's hand and parent it to the board
        if (Board.Instance != null)
        {
            SourceCard.MoveToCardPile(Board.Instance, null);
        }

        // resize structure and stop treating it as a card and start treating is as a structure
        (SourceCard as StructureCard).SwapToStructure(tile);

        tile.Structure = this;
        Tile           = tile;

        // turn on FoF border
        UpdateFriendOrFoeBorder();
    }