コード例 #1
0
 static TankActionRecommendation()
 {
     NoRecommendation = new TankActionRecommendation
     {
         IsAMoveRecommended = false
     };
 }
コード例 #2
0
        public TankActionRecommendation GetRecommendedTankActionsByPlayerAndTankNumber(int playerIndex, int tankNumber)
        {
            int tankIndex = Game.Current.Players[playerIndex].Tanks[tankNumber].Index;
            TankActionRecommendation tankActRec = RecommendedTankActionsByTankIndex[tankIndex];

            if (tankActRec == null)
            {
                return(TankActionRecommendation.NoRecommendation);
            }
            return(tankActRec);
        }
コード例 #3
0
        public void SetTankActionRecommendation(int playerIndex, int tankNumber, TankActionRecommendation recommendation)
        {
            int tankIndex = Game.Current.Players[playerIndex].Tanks[tankNumber].Index;

            RecommendedTankActionsByTankIndex[tankIndex] = recommendation;
        }