Beispiel #1
0
 public static Node StandInFrontOfCounter(
     SmartCharacter user,
     SmartBankCounter counter)
 {
     return new LeafAffordance("StandInFront", user, counter);
 }
Beispiel #2
0
 public static Node AttendCounter(
     SmartCharacter teller,
     SmartBankCounter counter)
 {
     return new LeafAffordance("Attend", teller, counter);
 }
Beispiel #3
0
 public static Node LeaveCounter(
     SmartCharacter teller,
     SmartBankCounter counter)
 {
     return new LeafAffordance("Leave", teller, counter);
 }
Beispiel #4
0
 public static Node CoerceIntoPressingButtonAtCounter(
     SmartCharacter coercer,
     SmartCharacter target,
     SmartButton button,
     SmartBankCounter counter)
 {
     return new Sequence(
         StandInFrontOfCounter(coercer, counter),
         BeginCoerce(coercer, target),
         new LeafWait(2000),
         LeaveCounter(target, counter),
         new LeafWait(1000),
         PressButton(target, button),
         EndCoerce(coercer));
 }