/// <<inheritdoc /> public Card Build() { if (_card == null) { throw new NotProperlyInitializedException($"Card cannot be null. Call {nameof(AddBasicCardElements)} before {nameof(Build)}"); } if (_pendulumMonsterCard != null) { CheckIfMonsterInitialized(_monsterCard); _monsterCard.PendulumMonsterCard = _pendulumMonsterCard; _pendulumMonsterCard.MonsterCard = _monsterCard; } if (_linkMonsterCard != null) { CheckIfMonsterInitialized(_monsterCard); _monsterCard.LinkMonsterCard = _linkMonsterCard; _linkMonsterCard.MonsterCard = _monsterCard; } if (_monsterCard != null) { _monsterCard.Card = _card; _card.MonsterCard = _monsterCard; } _monsterCard = null; _linkMonsterCard = null; _pendulumMonsterCard = null; return(_card); }
/// <<inheritdoc /> public CardBuilder AddLinkMonsterCardElements( int linkValue, bool topLeftLinkMarker, bool topLinkMarker, bool topRightLinkMarker, bool middleLeftLinkMarker, bool middleRightLinkMarker, bool bottomLeftLinkMarker, bool bottomLinkMarker, bool bottomRightLinkMarker ) { _linkMonsterCard = LinkMonsterCard.Create( linkValue, topLeftLinkMarker, topLinkMarker, topRightLinkMarker, middleLeftLinkMarker, middleRightLinkMarker, bottomLeftLinkMarker, bottomLinkMarker, bottomRightLinkMarker, _monsterCard ); return(this); }
public LinkMonsterCard GetLinkMonsterCard(MonsterCard monster) { return(LinkMonsterCard.Create( 1, topLeftLinkMarker: true, false, false, false, false, false, false, false, monster)); }