示例#1
0
 public Minion(int attack, int health, Status status = Status.None, int?id = null, TriggeredAbility ability = null, IEnumerable <EventType> raisedEvents = null, IEnumerable <Targetless> reactionEffects = null, int attackBuff = 0, int?healthCurrent = null, int healthBuffMax = 0, int healthBuffCurrent = 0)
 {
     _id                = id ?? IdProvider.GetNext();
     _attack            = attack;
     _attackBuff        = attackBuff;
     _healthMax         = health;
     _healthCurrent     = healthCurrent ?? health;
     _healthBuffMax     = healthBuffMax;
     _healthBuffCurrent = healthBuffCurrent;
     _status            = status;
     _ability           = ability;
     _raisedEvents      = raisedEvents ?? Enumerable.Empty <EventType>();
     _reactionEffects   = reactionEffects ?? Enumerable.Empty <Targetless>();
 }
 public AbilityMinionCard(int manaCost, int attack, int health, TriggeredAbility ability, Class cardClass = Class.Neutral, Status status = Status.None)
     : base(manaCost, attack, health, cardClass, status)
 {
     Ability = ability;
 }