예제 #1
0
 public VillagerMoveTo(BaseBlackboard bb, Villager villager, List <Vector3> CustomPath = null, float distanceTo = 0.3f) : base(bb)
 {
     vBB              = (VillagerBB)bb;
     villagerRef      = villager;
     customPath       = CustomPath;
     distanceToTarget = distanceTo;
 }
 public HouseRangeDecorator(BtNode wrappedNode, BaseBlackboard bb, Villager villager, bool withinRange) : base(
         wrappedNode, bb)
 {
     WithinRange = withinRange;
     vBB         = (VillagerBB)bb;
     villagerRef = villager;
 }
 public DelayNode(BaseBlackboard bb, float delayTime, Villager villager) : base(bb)
 {
     villagerRef         = villager;
     Delay               = delayTime;
     _regulator          = new Timer(Delay * 1000.0f); // in milliseconds, so multiply by 1000
     _regulator.Elapsed += OnTimedEvent;
     _regulator.Enabled  = true;
     _regulator.Stop();
 }
 public DecoratorNode(BtNode wrappedNode, BaseBlackboard bb) : base(bb)
 {
     this.WrappedNode = wrappedNode;
 }
 public Sequence(BaseBlackboard bb) : base(bb)
 {
 }
 public EnterHome(BaseBlackboard bb, Villager villager) : base(bb)
 {
     vBB         = (VillagerBB)bb;
     villagerRef = villager;
 }
예제 #7
0
 public FindTreeDecorator(BtNode wrappedNode, BaseBlackboard bb) : base(wrappedNode, bb)
 {
     vBB = (VillagerBB)bb;
 }
 public CompositeNode(BaseBlackboard bb) : base(bb)
 {
     Children = new List <BtNode>();
 }
 public BtNode(BaseBlackboard bb)
 {
     this.Bb = bb;
 }
 public GetPathToHouseForRepair(BaseBlackboard bb, Villager villager) : base(bb)
 {
     vBB         = (VillagerBB)bb;
     villagerRef = villager;
 }
 public ReplenishHealthAndStamina(BaseBlackboard bb, Villager villager) : base(bb)
 {
     villagerRef = villager;
 }
예제 #12
0
 public GetMovePath(BaseBlackboard bb, Vector3 _targetLocation, Villager inVillagerRef) : base(bb)
 {
     villagerRef    = inVillagerRef;
     vBB            = (VillagerBB)bb;
     targetPosition = _targetLocation;
 }
예제 #13
0
 public GetPathToRandomNearbyLocation(BaseBlackboard bb, Villager villager) : base(bb)
 {
     vBB         = (VillagerBB)bb;
     villagerRef = villager;
 }
예제 #14
0
 public GetDirectPathToTree(BaseBlackboard bb, Villager Villager) : base(bb)
 {
     villagerRef = Villager;
     vBB         = (VillagerBB)bb;
 }
예제 #15
0
 public GetPathToNearestTree(BaseBlackboard bb, Villager villager) : base(bb)
 {
     vBB         = (VillagerBB)bb;
     villagerRef = villager;
 }
예제 #16
0
 public InverterDecorator(BtNode wrappedNode, BaseBlackboard bb) : base(wrappedNode, bb)
 {
 }
예제 #17
0
 public ConditionalDecorator(BtNode wrappedNode, BaseBlackboard bb) : base(wrappedNode, bb)
 {
 }
 public GetHouseOnLowestHealth(BaseBlackboard bb) : base(bb)
 {
     vBB = (VillagerBB)bb;
 }
 public SlapWoodOnHouse(BaseBlackboard bb, Villager villager) : base(bb)
 {
     vBB         = (VillagerBB)bb;
     villagerRef = villager;
 }
 public CanRepairHomeDecorator(BtNode wrappedNode, BaseBlackboard bb, Villager villager) : base(wrappedNode,
                                                                                                bb)
 {
     vBB         = (VillagerBB)bb;
     villagerRef = villager;
 }
예제 #21
0
 public Selector(BaseBlackboard bb) : base(bb)
 {
 }
예제 #22
0
 public ChopTree(BaseBlackboard bb, Villager villager) : base(bb)
 {
     vBB         = (VillagerBB)bb;
     villagerRef = villager;
 }