public void AnalyzeModifiers(HandModifier handModifier, int handModifierValue)
    {
        currentHandModifier      = handModifier;
        currentHandModifierValue = handModifierValue;
        switch (handModifier)
        {
        case HandModifier.RedrawRandomCards:
            DispatchRedrawRandomCardsRequestEvent(handModifierValue);
            break;

        case HandModifier.Draw:
            DispatchDrawRandomCardsRequestEvent(handModifierValue);
            break;

        case HandModifier.Redraw:
            DispatchCardPickStartRequestEvent(handModifierValue, handModifier);
            break;

        case HandModifier.RedrawHand:
            DispatchRedrawHandRequestEvent();
            break;

        case HandModifier.ResourceChange:
            DispatchResourceChangeRequestEvent(handModifierValue);
            break;

        case HandModifier.Sell:
            DispatchCardSellProcessBeginRequestEvent(handModifierValue);
            break;
        }
    }
Пример #2
0
 public CardPickStartedEvent(int maxAmount, HandModifier handModifier, float value) : this(maxAmount, handModifier)
 {
     if (maxAmount == 0)
     {
         unrestricted = true;
     }
     this.value = value;
 }
Пример #3
0
 public CardPickStartedEvent(int maxAmount, HandModifier handModifier) : this(maxAmount)
 {
     this.handModifier = handModifier;
     if (maxAmount == 0)
     {
         unrestricted = true;
     }
 }
 private void OnCardPickStarted(CardPickStartedEvent obj)
 {
     ToggleVisualDisplay(true);
     value = obj.value;
     currentHandModifier = obj.handModifier;
     unrestricted        = obj.unrestricted;
     SetNeededCardsText(obj.maxAmount, 0);
     SetFlavorText();
 }
Пример #5
0
 public CardPickStartedEvent(int maxAmount, bool unrestricted, HandModifier handModifier, float value) : this(maxAmount, unrestricted, handModifier)
 {
     this.value = value;
 }
Пример #6
0
 public CardPickStartedEvent(int amount, bool unrestricted, HandModifier handModifier) : this(amount)
 {
     this.unrestricted = unrestricted;
     this.handModifier = handModifier;
 }
 private void DispatchCardPickStartRequestEvent(int amount, HandModifier handModifier)
 {
     CodeControl.Message.Send(new CardPickStartRequestEvent(amount, handModifier));
 }
 public CardPickStartRequestEvent(int amount, HandModifier handModifier)
 {
     this.amount       = amount;
     this.handModifier = handModifier;
 }
Пример #9
0
 private void DispatchCardPickStartedEvent(int cardsToPick, HandModifier handModifier, float value)
 {
     CodeControl.Message.Send(new CardPickStartedEvent(cardsToPick, handModifier, value));
 }