Esempio n. 1
0
        public void MoveToShootPosition()
        {
            PotentialMap shootMap = null;

            if (Game.Arena.LeftGoal.Team == PlayerAI.Player.Team)
            {
                shootMap = Game.GameManager.Navigation.PotentialMaps["ShootRight"];
            }
            else
            {
                shootMap = Game.GameManager.Navigation.PotentialMaps["ShootLeft"];
            }
            PlayerAI.NavigateToBestValue(shootMap);
        }
Esempio n. 2
0
        private void MoveToDefense()
        {
            Engine.Log.Debug("State " + PlayerAI.Player.PlayerIndex, "Defend");
            PotentialMap defenseMap = null;

            if (Game.Arena.LeftGoal.Team == PlayerAI.Player.Team)
            {
                defenseMap = Game.GameManager.Navigation.PotentialMaps["ShootLeft"];
            }
            else
            {
                defenseMap = Game.GameManager.Navigation.PotentialMaps["ShootRight"];
            }
            PlayerAI.NavigateToBestValue(defenseMap);
        }