public Cat(ICatState state) { State = state; }
public void ChangeState(ICatState newState) { this.currentState = newState; }
public override void Start() { base.Display("Oh hai! Starting up......"); this.currentState = new CatSleepState(); // start in sleep state }
public Cat(string inputName) { base.Name = inputName; this.currentState = new CatSleepState(); // default to sleep state }