Ejemplo n.º 1
0
        private Executor CreateSut(FakeWindower windower, FakePlayer player)
        {
            var memory = new FakeMemoryAPI();

            memory.Player   = player;
            memory.Windower = windower;

            var sut = new Executor(memory);

            return(sut);
        }
Ejemplo n.º 2
0
            private static BattleState CreateSut(FakeWindower windower, FakePlayer player)
            {
                var navigator = FindNavigator();

                var sut = new BattleState(new FakeMemoryAPI()
                {
                    Windower  = windower,
                    Player    = player,
                    Navigator = navigator
                });

                return(sut);
            }
Ejemplo n.º 3
0
        private Executor CreateSut(
            FakeWindower windower,
            FakePlayer player,
            FakeNavigator navigator,
            FakeTarget target)
        {
            var memory = new FakeMemoryAPI();

            memory.Player    = player;
            memory.Windower  = windower;
            memory.Navigator = navigator;
            memory.Target    = target;

            var sut = new Executor(memory);

            return(sut);
        }
Ejemplo n.º 4
0
            private static BattleState CreateSut(FakeWindower windower)
            {
                var player    = FindPlayer();
                var navigator = FindNavigator();
                var target    = FindTarget();

                var sut = new BattleState(new FakeMemoryAPI()
                {
                    Player    = player,
                    Windower  = windower,
                    Navigator = navigator,
                    Target    = target
                });

                CombatState.Target = FindUnit();

                return(sut);
            }
Ejemplo n.º 5
0
            private static BattleState CreateSut(FakeWindower windower)
            {
                var player    = FindPlayer();
                var navigator = FindNavigator();
                var target    = FindTarget();
                var timer     = FindTimer();

                var memory = new FakeMemoryAPI()
                {
                    Player    = player,
                    Windower  = windower,
                    Navigator = navigator,
                    Target    = target,
                    Timer     = timer
                };

                var sut = new BattleState(new StateMemory(memory)
                {
                    Target = FindUnit()
                });

                return(sut);
            }