예제 #1
0
 private LSAgent DoScan()
 {
     return(InfluenceManager.Scan(
                this.cachedBody.Position,
                this.rangeDeltaCount,
                (other) => other.Healther.IsNotNull(),
                (bite) => ((this.Agent.Controller.GetAllegiance(bite) & this.TargetAllegiance) != 0)
                ));
 }
예제 #2
0
 public LSAgent Scan(int deltaCount,
                     AllegianceType targetAllegiance = AllAllegiance,
                     PlatformType targetPlatform     = AllPlatforms)
 {
     InfluenceManager.Source           = Agent;
     InfluenceManager.TargetAllegiance = targetAllegiance;
     InfluenceManager.TargetPlatform   = targetPlatform;
     return(InfluenceManager.Scan(LocatedNode.ScanX, LocatedNode.ScanY, deltaCount,
                                  this.Agent, targetAllegiance));
 }
예제 #3
0
 public LSAgent Scan(int deltaCount,
                     AllegianceType targetAllegiance = AllegianceType.Any,
                     PlatformType targetPlatform     = PlatformType.Any)
 {
     InfluenceManager.Source           = Agent;
     InfluenceManager.TargetAllegiance = targetAllegiance;
     InfluenceManager.TargetPlatform   = targetPlatform;
     return(InfluenceManager.Scan(LocatedNode.ScanX, LocatedNode.ScanY, deltaCount,
                                  InfluenceManager.ScanConditionalSourceWithHealthAction,
                                  Agent.Body.Position.x,
                                  Agent.Body.Position.y));
 }