コード例 #1
0
ファイル: Scan.cs プロジェクト: linbozhang/LockstepFramework
 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));
 }