コード例 #1
0
 public BattleMoveWithTarget(BattleMove move, IFighter target, IFighter owner, IMoveExecutor moveExecutor = null)
 {
     Move         = move;
     Target       = target;
     Owner        = owner;
     MoveExecutor = moveExecutor;
 }
コード例 #2
0
        public ShieldMove(BattleMove copy) : base(copy)
        {
            ShieldMove shieldMove = copy as ShieldMove;

            if (shieldMove != null)
            {
                Shield = shieldMove.Shield.Copy();
            }
        }
コード例 #3
0
ファイル: BattleMove.cs プロジェクト: Jsweeney1000/SimpleRPG
 public BattleMove(BattleMove copy)
 {
     Description              = copy.Description;
     MoveType                 = copy.MoveType;
     TargetType               = copy.TargetType;
     Priority                 = copy.Priority;
     BattleMoveEffects        = new List <BattleMoveEffect>(copy.BattleMoveEffects);
     TargettingRuleCollection = copy.TargettingRuleCollection;
 }
コード例 #4
0
        public ShieldFortifyingMove(BattleMove copy) : base(copy)
        {
            ShieldFortifyingMove shieldFortifyingMove = copy as ShieldFortifyingMove;

            if (shieldFortifyingMove != null)
            {
                FortifyingType   = shieldFortifyingMove.FortifyingType;
                FortifyingAmount = shieldFortifyingMove.FortifyingAmount;
            }
        }
コード例 #5
0
        public AttackBattleMove(BattleMove copy) : base(copy)
        {
            AttackBattleMove copyAsAttack = copy as AttackBattleMove;

            if (copyAsAttack != null)
            {
                Accuracy   = copyAsAttack.Accuracy;
                CritChance = copyAsAttack.CritChance;
            }
        }
コード例 #6
0
 public MultiTurnBattleMove(BattleMove copy) : base(copy)
 {
 }
コード例 #7
0
ファイル: MoveFactory.cs プロジェクト: Jsweeney1000/SimpleRPG
 public MoveByLevel(BattleMove move, int level, FighterClass fighterClass = FighterClass.None)
 {
     Move         = move;
     Level        = level;
     FighterClass = fighterClass;
 }
コード例 #8
0
 public ShadeAbsorbingMove(BattleMove copy) : base(copy)
 {
 }
コード例 #9
0
 public BattleMoveWithTargetAndNumberInput(BattleMove move, IFighter target, IFighter owner, int numberValue, IMoveExecutor moveExecutor = null)
     : base(move, target, owner, moveExecutor)
 {
     NumberValue = numberValue;
 }
コード例 #10
0
ファイル: SpecialMove.cs プロジェクト: Jsweeney1000/SimpleRPG
 public SpecialMove(BattleMove copy) : base(copy)
 {
 }
コード例 #11
0
 public ConditionalPowerAttackBattleMove(BattleMove copy) : base(copy)
 {
     //right now, the only difference between an AttackBattleMove and a ConditionalPowerAttackBattleMove is the MoveType
     MoveType = BattleMoveType.ConditionalPowerAttack;
 }