mixedcards/Assets/Battle/Effects/AcquireCardsEffect.cs
2020-09-20 11:58:35 -04:00

28 lines
839 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AcquireCardsEffect : IBattleEffect
{
private CardId[] cardIds;
private BattleZone zone;
private BattleParticipant participant;
public AcquireCardsEffect(CardId[] cardIds, BattleZone zone, BattleParticipant participant) {
this.cardIds = cardIds;
this.zone = zone;
this.participant = participant;
}
public void Apply(IBattleEffectResolver resolver) {
if (this.participant.IsHero()) {
resolver.AcquireHeroCards(this);
} else {
throw new System.NotImplementedException();
}
}
public CardId[] CardIds {get => this.cardIds;}
public BattleZone Zone {get => this.zone;}
public BattleParticipant Participant {get => this.participant;}
}