/// <summary> /// Fonction de transition qui fait le tour de l'adversaire et renvoie à l'état IN_BATTLE pour compléter le tour. /// </summary> void GérerTransitionTOUR_OPPONENT() { GamePad.SetVibration(PlayerIndex.One, 0, 1); NomUserPokemon.Visible = true; VieUserPokemon.Visible = true; EffectuerTourOpponent(); VieUserPokemon.RemplacerMessage(UserPokemon.VieToString()); TourOpponentComplété = true; CombatState = CombatState.IN_BATTLE; }
/// <summary> /// Fonction qui change le pokémon du joueur. /// </summary> /// <param name="pokémonSélectionné">Le numéro en inventaire du pokémon choisi</param> void ChangerUserPokémon(int pokémonSélectionné) { UserPokemon = UserTrainer[pokémonSélectionné]; PositionInfoUserPokemon = new Vector2(Game.Window.ClientBounds.Width - (UserPokemon.ToString().Count() + 3) * Cadre.TAILLE_TILE, Game.Window.ClientBounds.Height - Cadre.TAILLE_TILE * 9); NomUserPokemon.Visible = false; VieUserPokemon.Visible = false; NomUserPokemon.RemplacerPosition(PositionInfoUserPokemon); NomUserPokemon.RemplacerMessage(UserPokemon.ToString()); VieUserPokemon.RemplacerPosition(new Vector2(PositionInfoUserPokemon.X, PositionInfoUserPokemon.Y + Cadre.TAILLE_TILE)); VieUserPokemon.RemplacerMessage(UserPokemon.VieToString()); string messageTour = UserTrainer.Nom + " send out " + UserPokemon.Nom + "!"; AfficheurTexte message = new AfficheurTexte(Game, PositionBox, Jeu.LargeurBoxMessage, Jeu.HauteurBoxMessage, messageTour, IntervalMAJ); Game.Components.Add(message); }