예제 #1
0
파일: main.cs 프로젝트: staherianYMCA/test
 public Automat(int n)
 {
     _count                = n;
     _waitingState         = new WaitingState(this);
     _gotApplicationState  = new GotApplicationState(this);
     _apartmentRentedState = new ApartmentRentedState(this);
     _fullyRentedState     = new FullyRentedState(this);
     _state                = _waitingState;
 }
예제 #2
0
 public Automat(Int32 n)
 {
     _count = n;
     _waitingState = new WaitingState(this);
     _gotApplicationState = new GotApplicationState(this);
     _apartmentRentedState = new ApartmentRentedState(this);
     _fullyRentedState = new FullyRentedState(this);
     _state = _waitingState;
 }
예제 #3
0
 public Automat(Int32 n)
 {
     count                 = n;
     waitingState          = new WaitingState(this);
     gotApplicationState   = new GotApplicationState(this);
     appartmentRentedState = new ApartmentRentedState(this);
     fullyRentedState      = new FullyRenteState(this);
     state                 = waitingState;
 }
예제 #4
0
파일: main.cs 프로젝트: staherianYMCA/test
 public void SetState(IAutomatState s)
 {
     _state = s;
 }
예제 #5
0
 public void SetState(IAutomatState s) { _state = s; }