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 } }