Пример #1
0
        /// <summary>
        /// Returns a new battlechoice containing instructions to run from the battlefield
        /// </summary>
        /// <returns></returns>
        public static BattleChoice RunFromBattle()
        {
            BattleChoice choice = new BattleChoice();

            //choice.pRun = true;
            choice.choiceType = ChoiceType.RUN;

            return(choice);
        }
Пример #2
0
        /// <summary>
        /// Returns a new battlechoice containing instructions to switch to the specified pokemon
        /// </summary>
        /// <param name="pokemon"></param>
        /// <returns></returns>
        public static BattleChoice SwitchPokemon(ActivePokemon pokemon)
        {
            BattleChoice choice = new BattleChoice();

            choice.choiceType = ChoiceType.SWITCH;
            choice.pSwitchTo  = pokemon;

            return(choice);
        }
Пример #3
0
        public static BattleChoice UseItem(Item item, BattlePosition inTarget)
        {
            BattleChoice choice = new BattleChoice();

            choice.choiceType = ChoiceType.ITEM;
            choice.pItem      = item;
            choice.target     = inTarget;

            return(choice);
        }
Пример #4
0
        /// <summary>
        /// Returns a new battlechoice containing instructions to use the specified move on the specified target
        /// </summary>
        /// <param name="move">move to use</param>
        /// <param name="inTarget">target battleposition</param>
        /// <returns></returns>
        public static BattleChoice UseMove(ActiveMove move, BattlePosition inTarget)
        {
            BattleChoice choice = new BattleChoice();

            choice.choiceType = ChoiceType.MOVE;
            choice.target     = inTarget;
            choice.pMove      = move;

            return(choice);
        }