Ejemplo n.º 1
0
 public static Node StandInFrontOfCounter(
     SmartCharacter user,
     SmartBankCounter counter)
 {
     return new LeafAffordance("StandInFront", user, counter);
 }
Ejemplo n.º 2
0
 public static Node AttendCounter(
     SmartCharacter teller,
     SmartBankCounter counter)
 {
     return new LeafAffordance("Attend", teller, counter);
 }
Ejemplo n.º 3
0
 public static Node LeaveCounter(
     SmartCharacter teller,
     SmartBankCounter counter)
 {
     return new LeafAffordance("Leave", teller, counter);
 }
Ejemplo n.º 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));
 }