示例#1
0
        public override TurnStateEnum Execute(IPlayerStatus player, IEnemy enemy)
        {
            Validate(player, enemy);
            Assert.AreEqual(0, player.NumberOfTurnsPassed);

            ActionEconomy actionUsed = ActionEconomy.FreeAction;

            if (!CurrentlyConcentrating(player))
            {
                MagicInitiateSpell spell = DetermineSpellToCast(player.PlayerBase);
                if (spell != MagicInitiateSpell.None)
                {
                    actionUsed = player.CastBuff(spell);
                }
            }

            return(ActionUsedToTurnStateEnumMap[actionUsed]);
        }
示例#2
0
 public ActionEconomy CastBuff(MagicInitiateSpell spell)
 {
     throw new NotImplementedException();
 }
示例#3
0
 private void ValidateCastBuff(MagicInitiateSpell spell)
 {
     Assert.ValidEnum(spell);
     Assert.IsTrue(spell != MagicInitiateSpell.None);
     Assert.IsTrue(CurrentSpell == MagicInitiateSpell.None);
 }
示例#4
0
 public bool CanCastBuff(MagicInitiateSpell spell)
 {
     throw new NotImplementedException();
 }