public override void ApplySpecials(ISlot slot, ISlot otherSlot, IGameMessages messages) { foreach (var s in _specials) { s.ApplySpecials(slot, otherSlot, messages); } }
public Game(IContainer container, IGameMessages messages, IAttackHandler actionHandler, IRandomNumberGenerator randomNumberGenerator) { Container = container; this.GameMessages = messages; this._actionHandler = actionHandler; this._randomNumberGenerator = randomNumberGenerator; Interlocked.Increment(ref _counter); _gameId = _counter; }
public override void RemoveSpecials(ISlot slot, IGameMessages messages) { foreach (var s in _specials) { s.RemoveSpecials(slot, messages); } }
public override void ApplySpecials(ISlot slot, ISlot otherSlot, IGameMessages messages) { messages.Add("Increasing damage of all {0} by {1}", categoryAffected, amountAttack); slot.PlayerHand.ApplyDamageModifier(otherSlot.SlotIndex, categoryAffected, amountAttack); }
public override void RemoveSpecials(ISlot slot, IGameMessages messages) { messages.Add("Removing damage bonus of all {0} by {1}", categoryAffected, amountAttack); slot.PlayerHand.ApplyDamageModifierToAll(slot.SlotIndex, categoryAffected, -amountAttack); }
public override void ApplySpecials(ISlot slot, ISlot otherSlot, IGameMessages messages) { messages.Add("Increasing health of all {0} by {1}", categoryAffected, amountHealth); slot.PlayerHand.ApplyHealthModifier(slot.SlotIndex, otherSlot.SlotIndex, categoryAffected, amountHealth); }
public abstract void RemoveSpecials(ISlot slot, IGameMessages messages);
public abstract void ApplySpecials(ISlot slot, ISlot otherSlot, IGameMessages messages);