Example #1
0
        private void Ai_LocationChanged(object sender, EventArgsLocationChanged e)
        {
            if (this.IsFishing)
            {
                this.IsIdle = true;
            }

            this.joystick.Reset();
            this.CheckFishingHere();
        }
        private void Ai_LocationChanged(object sender, EventArgsLocationChanged e)
        {
            // We are not active controller? Don't handle changed location event
            if (this.ai.CurrentController != this)
            {
                return;
            }

            this.leaderLastTileCheckPoint = this.negativeOne;
            this.joystick.Reset();
            this.PathfindingRemakeCheck();
        }
Example #3
0
        private void Ai_LocationChanged(object sender, EventArgsLocationChanged e)
        {
            // We are not active controller? Don't handle changed location event
            if (this.ai.CurrentController != this)
            {
                return;
            }

            this.pathFinder.GameLocation  = e.CurrentLocation;
            this.currentFollowedPoint     = this.negativeOne;
            this.leaderLastTileCheckPoint = this.negativeOne;
            this.gatesInThisLocation      = this.CheckForGatesInThisLocation();
            this.PathfindingRemakeCheck();
        }