static TankActionRecommendation() { NoRecommendation = new TankActionRecommendation { IsAMoveRecommended = false }; }
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); }
public void SetTankActionRecommendation(int playerIndex, int tankNumber, TankActionRecommendation recommendation) { int tankIndex = Game.Current.Players[playerIndex].Tanks[tankNumber].Index; RecommendedTankActionsByTankIndex[tankIndex] = recommendation; }