예제 #1
0
 public NoQuarterState(GumballMachineInfo marchine)
 {
     _gumballMachine = marchine;
     _gumballMachine.CurrentState = this;
 }
 public SoldOutState(GumballMachineInfo marchine)
 {
     _gumballMachine = marchine;
     _gumballMachine.CurrentState = this;
 }
예제 #3
0
 public WinnerState(GumballMachineInfo marchine)
 {
     _gumballMachine = marchine;
     _gumballMachine.CurrentState = this;
     Dispense();
 }