Exemplo n.º 1
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();
        }
Exemplo n.º 2
0
        public void Setup()
        {
            var bubbleSystem = new TextBubbleSystem();

            Mario = new Mario(
                new Inventory(),
                new List <IJumps> {
                new Attacks.Jump(), new PowerJump()
            }.ToArray(),
                new Attacks.Hammer(), new Attacks.HammerThrow());
            Goombario = new Goombario();
            //var scriptAttack = new ScriptAttack(EnemyAttack.JrTroopaPowerJump);
            //JrTroopa = new JrTroopa(new List<IEnemyAttack> { new RegularAttack(EnemyAttack.JrTroopaJump, 1) });
            Magikoopa = new Magikoopa();
            var enemies = new List <Enemy>()
            {
                Magikoopa
            };

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


            //battle.Start();
        }