Exemple #1
0
            private int targetBulletID;//当前子弹的ID

            public Goal_GetBullet(RavenEntity owner) : base(owner)
            {
                this.state = GoalState.Wait;
            }
Exemple #2
0
        public RavenGoal(RavenEntity owner)
        {
            this.owner = owner;

            this.state = GoalState.Wait;
        }
Exemple #3
0
            private int mTargetHealthPackID;//目标健康包的ID号

            public Goal_GetHealth(RavenEntity owner) : base(owner)
            {
                this.state = GoalState.Wait;
            }
Exemple #4
0
 public Goal_TraverseEdge(RavenEntity owner, PathEdge edge) : base(owner)
 {
     this.edge = edge;
 }
Exemple #5
0
 public Goal_FollowTarget(RavenEntity entity) : base(entity)
 {
     this.state = GoalState.Wait;
 }
Exemple #6
0
            protected float activeTime;//有效时间

            public Goal_SeekMemoryTarget(RavenEntity owner) : base(owner)
            {
                this.state       = GoalState.Wait;
                this.activeTime  = 0.5f;
                this.owner.state = EvaluatorType.SeekMemory;
            }
Exemple #7
0
 public Goal_FollowPath(RavenEntity owner, List <PathEdge> path) : base(owner)
 {
     this.path = path;
 }
Exemple #8
0
 public override void SetGoal(RavenEntity entity)
 {
     entity.ThinkGomponent.AddSubGoal(new Goal_AttackAndHunterTarget(entity));
     Debug.Log(entity.gameObject.name + "的当前最上层的目标是hunter");
     //Debug.Break();
 }
Exemple #9
0
 public CompositeGoal(RavenEntity entity) : base(entity)
 {
     this.type    = GoalType.Composite;
     subGoalStack = new Stack <RavenGoal>();
     this.state   = GoalState.Wait;
 }
Exemple #10
0
            public override void SetGoal(RavenEntity entity)
            {
                entity.ThinkGomponent.AddSubGoal(new Goal_GetBullet(entity));

                Debug.Log(entity.gameObject.name + "当前最上层的目标是GetWeapon");
            }
Exemple #11
0
 public override float Calculate(RavenEntity entity)
 {
     //一直返回一个比较小的的期望值
     return(0.2f);
 }
Exemple #12
0
 public override void SetGoal(RavenEntity entity)
 {
     //添加一个获取健康包的目标
     entity.ThinkGomponent.AddSubGoal(new Goal_GetHealth(entity));
     Debug.Log(entity.gameObject.name + " 当前的最上层的目标是GetHealth");
 }
Exemple #13
0
 /// <summary>
 /// 让AI设置完成这个目标的子目标
 /// </summary>
 public virtual void SetGoal(RavenEntity entity)
 {
 }
Exemple #14
0
            protected float k = 10;//目标价值的调整因子

            public virtual float Calculate(RavenEntity entity)
            {
                return(0);
            }
Exemple #15
0
    public TargetSelectSystem(RavenEntity entity)
    {
        this.owner = entity;

        this.ravenSensoryComponent = this.owner.SensoryComponent;
    }
Exemple #16
0
 public Goal_Wander(RavenEntity owner, NavMap map) : base(owner)
 {
     this.map = map;
 }
    protected float distance = 3f; //进行感知的距离(Lua)

    public RavenSensoryComponent(RavenEntity owner)
    {
        this.owner = owner;

        sensoryMemory = new RavenSensoryMemory(this.owner);
    }
Exemple #18
0
 public Goal_SeekTarger(RavenEntity owner) : base(owner)
 {
     this.state       = GoalState.Wait;
     this.owner.state = EvaluatorType.HunterEvaluator;
 }