public Prey(GroundPredSubject sub) { this.state = PreyStates.FindFood; sub.Attach(this); }
public void Attach(GroundPredSubject sub) { sub.Attach(this); }
public FlyingPredObserver(GroundPredSubject sub) { this.State = FlyingState.Flying; sub.Attach(this); }