diff --git a/src/main/java/controls/PhaseController.java b/src/main/java/controls/PhaseController.java new file mode 100644 index 0000000..929c670 --- /dev/null +++ b/src/main/java/controls/PhaseController.java @@ -0,0 +1,44 @@ +package controls; + +import interfaces.ICardButtonEnabler; + +public class PhaseController extends Thread{ + ICardButtonEnabler iCardButtonEnabler; + Phase currentPhase; + int guess; + int attacker; + int target; + public PhaseController(ICardButtonEnabler iCardButtonEnabler){ + this.iCardButtonEnabler=iCardButtonEnabler; + currentPhase=Phase.Selection; + } + + public void setSelection(int attacker){ + this.attacker = attacker; + iCardButtonEnabler.setEnableSelection(attacker); + } + public void setTarget(int target){ + this.target = target; + iCardButtonEnabler.setEnableTarget(target); + } + @Override + public void run(){ + switch (currentPhase){ + case Selection: + case Target: + case Declaration: + } + + } + public void playerAttack(){ + + } + public void botAttack(){ + + } + enum Phase{ + Selection, + Target, + Declaration + } +}