Exemple #1
0
 private void Wander_AnalyzePing(HackGameBoard board)
 {
     //move right away to loiter.
     wanderSubState = HackGameAgent_AI_Wander_SubState.HackGameAgent_AI_State_Wander_Substate_Loiter;
 }
Exemple #2
0
        private void Wander_Ping(HackGameBoard board)
        {
            board.AddBackgroundTextEmergency(new StringBuilder("AI #3180 PING..."), 0);
            board.AddBackgroundTextEmergency(new StringBuilder("AI RESOLVE OK"), 0.75f);

            StartPing_Update = true;
            //move right away to analyze.
            wanderSubState = HackGameAgent_AI_Wander_SubState.HackGameAgent_AI_State_Wander_Substate_AnalyzePing;
        }
Exemple #3
0
        public override void ArrivedAtDestination()
        {
            switch (currentAIState)
            {
                case HackGameAgent_AI_State.HackGameAgent_AI_State_Wander:
                    if (nextBoardElementDestinations.Count <= 0)
                    {
                        wanderSubState = HackGameAgent_AI_Wander_SubState.HackGameAgent_AI_State_Wander_Substate_Ping;
                    }
                    break;
            }

            base.ArrivedAtDestination();
        }