示例#1
0
        public void WhenBuildingBattle_ReturnValidBattle()
        {
            var builder  = new BattleBuilder();
            var director = new BattleDirector();

            director.Build(builder);

            var battle = builder.Build();

            battle.Should().BeOfType <Battle>();
            battle.AggroedEnemies.Should().NotBeNull();
            battle.BattleSystem.Should().BeOfType <RealTimeBattle>();
            battle.Map.Should().NotBeNull();
            battle.Player.Should().NotBeNull();
            battle.ProgressionSystem.Should().BeOfType <ActivityBasedProgression>();
        }
示例#2
0
        public void WhenBuildingBattle_ReturnValidBattle()
        {
            var builder  = new BattleBuilder();
            var director = new BattleDirector();

            director.Build(builder);

            var battle = builder.Build();

            battle.Should().BeOfType <Battle>();
            battle.Arena.Should().NotBeNull();
            battle.BattleSystem.Should().BeOfType <ConditionalTurnBasedBattle>();
            battle.Mob.Should().NotBeNull();
            battle.Party.Should().NotBeNull();
            battle.ProgressionSystem.Should().BeOfType <SphereGrid>();
        }
示例#3
0
 private static BattleLogic MakeBattleLogic(BattleController battleController)
 {
     return(BattleBuilder.Build(MakeBattleInfo(battleController)));
 }