Beispiel #1
0
 public static Node StopGuardingDoor(
     SmartCharacter actor,
     SmartDoor door)
 {
     return new LeafAffordance("StopGuarding", actor, door);
 }
Beispiel #2
0
 public static Node GuardDoorRear(
     SmartCharacter actor,
     SmartDoor door)
 {
     return new LeafAffordance("GuardRear", actor, door);
 }
Beispiel #3
0
 public static Node GuardDoorFront(
     SmartCharacter actor,
     SmartDoor door)
 {
     return new LeafAffordance("GuardFront", actor, door);
 }
Beispiel #4
0
 public static Node LockDoorRear(
     SmartCharacter actor,
     SmartDoor door)
 {
     return new LeafAffordance("LockRear", actor, door);
 }
Beispiel #5
0
 public static Node LockDoorFront(
     SmartCharacter actor,
     SmartDoor door)
 {
     return new LeafAffordance("LockFront", actor, door);
 }
Beispiel #6
0
 public static Node CoerceIntoUnlockDoorRear(
     SmartCharacter coercer,
     SmartCharacter target,
     SmartDoor door)
 {
     return new Sequence(
         ApproachUpTo(coercer, target, 3.0f),
         BeginCoerce(coercer, target),
         UnlockDoorRear(target, door),
         EndCoerce(coercer));
 }