コード例 #1
0
 public void OnEnter(Professor inhabitant)
 {
     inhabitant.Display("I need a cup of coffee.");
 }
コード例 #2
0
 public void OnExit(Professor inhabitant)
 {
     inhabitant.Display("{{bright eyed}} Ready for work.");
 }
コード例 #3
0
 public void Execute(Professor inhabitant)
 {
     inhabitant.Display("{{sllluuurrrppp}} Umm Umm coffee's good.");
     inhabitant.ChangeState(new ProfessorGradeHomeworkState());
 }