Example #1
0
 public AddMarker(AbilityStep step, GameObject markerPrefab, bool reuseTarget = false, Card card = null)
 {
     thisStep          = step;
     this.markerPrefab = markerPrefab;
     this.reuseTarget  = reuseTarget;
     this.card         = card;
 }
Example #2
0
    private void CreateAbilityStep(AbilityStep step, List <ICardAbilityStep> steps, Card card)
    {
        switch (step)
        {
        case AbilityStep.ChooseTarget:
            break;

        case AbilityStep.AddMarker:
            steps.Add(new AddMarker(step, GameLocalization.Instance.GetMarkerPrefab(), reuseTarget, card));
            break;

        case AbilityStep.RemoveMarker:
            steps.Add(new RemoveMarker(step, reuseTarget));
            break;

        case AbilityStep.CardFinishedResolving:
            break;

        case AbilityStep.BreachBarriers:
            steps.Add(new BreachBarriers(step, reuseTarget));
            break;

        case AbilityStep.AddHalfMarker:
            var fullMarkerPrefab = GameLocalization.Instance.GetMarkerPrefab();
            var halfMarkerPrefab = GameLocalization.Instance.CheatGetPrefab(false);
            steps.Add(new AddHalfMarker(step, halfMarkerPrefab, fullMarkerPrefab));
            break;

        case AbilityStep.Idle:
            break;

        default:
            break;
        }
    }
Example #3
0
 public AddHalfMarker(AbilityStep step, GameObject halfMarkerPrefab, GameObject fullMarkerPrefab, bool reuseTarget = false)
 {
     thisStep = step;
     this.halfMarkerPrefab = halfMarkerPrefab;
     this.fullMarkerPrefab = fullMarkerPrefab;
     this.reuseTarget      = reuseTarget;
 }
Example #4
0
 public StepMachineIdle(AbilityStep step)
 {
     thisStep = step;
 }
Example #5
0
 public CardFinishedResolving(AbilityStep step, Card card)
 {
     thisStep  = step;
     this.card = card;
 }
Example #6
0
 public RemoveMarker(AbilityStep step, bool reuseTarget = false)
 {
     thisStep         = step;
     this.reuseTarget = reuseTarget;
 }
Example #7
0
 public BreachBarriers(AbilityStep step, bool reuseTarget = false)
 {
     thisStep         = step;
     this.reuseTarget = reuseTarget;
 }