示例#1
0
 protected override void TearDown()
 {
     factory      = null;
     turnState    = null;
     stateMachine = null;
     enemy        = null;
 }
示例#2
0
        protected override void Setup()
        {
            turnState = new MockTurnState()
            {
                ReturnExecute = states
            };

            factory = new MockTurnStateFactory()
            {
                ReturnState = turnState
            };

            stateMachine = new TurnStateMachine(factory);
            player       = new Player(always10, 11, 11, FightingStyle.Archery, mh, ohs, feats, buffs);
            status       = new MockPlayerStatus();
            enemy        = new Enemy(14);
        }