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