Пример #1
0
        public void Setup()
        {
            var bubbleSystem = new TextBubbleSystem();

            Kooper = new Kooper();
            Mario  = new Mario(new Hero[] { new Goombario(), Kooper },
                               new Inventory(),
                               new List <IJumps> {
                new Attacks.Jump(), new PowerJump()
            }.ToArray(),
                               new Attacks.Hammer(), new Attacks.HammerThrow());

            //var scriptAttack = new ScriptAttack(EnemyAttack.JrTroopaPowerJump);
            //JrTroopa = new JrTroopa(new List<IEnemyAttack> { new RegularAttack(EnemyAttack.JrTroopaJump, 1) });
            var enemyCreator = new EnemyFactory();

            FuzzieA = enemyCreator.FetchEnemy <Fuzzie>();
            FuzzieB = enemyCreator.FetchEnemy <Fuzzie>();
            FuzzieC = enemyCreator.FetchEnemy <Fuzzie>();
            FuzzieD = enemyCreator.FetchEnemy <Fuzzie>();
            var enemies = new List <Enemy>()
            {
                FuzzieA,
                FuzzieB,
                FuzzieC,
                FuzzieD
            };

            battle = new Battle.Battle(new List <Hero> {
                Mario, Kooper
            }, enemies, bubbleSystem);


            //battle.Start();
        }
Пример #2
0
        public void Setup()
        {
            var bubbleSystem = new TextBubbleSystem();

            this.mario = new Mario(
                new Inventory(new Item("Mushroom"), new Item("Fire Flower", 3, TargetType.All), new Item("Mushroom")),
                new List <IJumps> {
                new Attacks.Jump(), new PowerJump()
            }.ToArray(),
                new Attacks.Hammer());
            this.goombario  = new Goombario(bubbleSystem);
            this.GoombaKing = new GoombaKing(new List <IEnemyAttack> {
                new ScriptAttack(EnemyAttack.GoomnutJump), new GoombaKingKick()
            });
            var goomNutTree = new GoomnutTree();

            this.redGoomba = new RedGoomba(2);
            var enemyFactory = new EnemyFactory();

            this.blueGoomba = enemyFactory.FetchEnemy <NewBlueGoomba>(2);
            var enemies = new List <Enemy>()
            {
                goomNutTree,
                GoombaKing,
                redGoomba,
                blueGoomba,
            };

            battle = new Battle.Battle(new List <Hero> {
                mario, goombario
            }, enemies, bubbleSystem);
            battle.Start();
        }
Пример #3
0
        public void Setup()
        {
            battle = new Battle.Battle();
            battle.Heroes.Add(new Mario());
            var enemyFactory = new EnemyFactory();

            ;
            battle.Enemies.Add(enemyFactory.FetchEnemy <NewBlueGoomba>());
        }
Пример #4
0
        public void Setup()
        {
            var enemyFactory = new EnemyFactory();

            battle = new Battle.Battle();
            battle.Heroes.Add(new Mario(new List <IJumps>()
            {
                new PowerJump()
            }));
            battle.Enemies.Add(enemyFactory.FetchEnemy <NewBlueGoomba>());
        }