Example #1
0
        //newish one
        public void LoadContent(BossFight bossFight, List<List<ChampItemPair>> raidComp)
        {
            this.LoadContent(bossFight);

            List<PlayerClassI> playerRaid = PlayerClassI.makeRaid(raidComp, new Vector2f(191,50));
            foreach (PlayerClassI p in playerRaid) {
                //place all in moveables
                moveables.Add(p);
            }
            List<Enemy> enemys = bossFight.getEnemies();
            foreach (Moveable m in enemys)
            {
                moveables.Add(m);
            }
            if (enemys.Count >= 1) mainEnemy = enemys[0];
            selected = playerRaid[0];
            playerAmt = playerRaid.Count;

            raidFrames = new RaidFrames(this, playerRaid, new Vector2f(5,200));

            LoadBackdrop(bossFight.getFightID());
        }
Example #2
0
 internal void setMainEnemy(Enemy e)
 {
     if (!bossFight.getEnemies().Contains(e)) throw new Exception("enemy must be in bossfight");
     mainEnemy = e;
 }
Example #3
0
        //oldish one
        public void LoadContent(BossFight bossFight, PlayerClassNum[] raidComp)
        {
            this.LoadContent(bossFight);

            List<PlayerClassI> playerRaid = PlayerClassI.makeRaid(raidComp, new Vector2f(191,50));
            //TODO preset spots specific to bossfight
            foreach (PlayerClassI p in playerRaid) {
                //place all in moveables
                moveables.Add(p);
            }
            List<Enemy> enemys = bossFight.getEnemies();
            foreach (Moveable m in enemys)
            {
                moveables.Add(m);
            }
            if (enemys.Count >= 1) mainEnemy = enemys[0];

            selected = playerRaid[0];
            playerAmt = playerRaid.Count;

            raidFrames = new RaidFrames(this, playerRaid, new Vector2f(5,200));
        }