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; } }
public CardPickStartedEvent(int maxAmount, HandModifier handModifier, float value) : this(maxAmount, handModifier) { if (maxAmount == 0) { unrestricted = true; } this.value = value; }
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(); }
public CardPickStartedEvent(int maxAmount, bool unrestricted, HandModifier handModifier, float value) : this(maxAmount, unrestricted, handModifier) { this.value = value; }
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; }
private void DispatchCardPickStartedEvent(int cardsToPick, HandModifier handModifier, float value) { CodeControl.Message.Send(new CardPickStartedEvent(cardsToPick, handModifier, value)); }