Пример #1
0
 //new version!
 internal void startBossFight(BossFight bossFight, List<List<ChampItemPair>> raidComp) {
     inGame = new InGame();
     BossFightID id = bossFight.getFightID();
     if (lastRaid != null && id == lastBossID) {
         inGame.LoadContent(bossFight, raidComp, lastRaid);
     } else {
         inGame.LoadContent(bossFight, raidComp);
     }
     gameState = GameState.inGame;
     lastBossID = id;
     lastRaidCompN = raidComp;
 }
Пример #2
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());
        }
Пример #3
0
 //old version!!
 internal void startBossFight(BossFight bossFight, PlayerClassNum[] raidComp) {
     inGame = new InGame();
     BossFightID id = bossFight.getFightID();
     if (lastRaid != null && id == lastBossID) {
         inGame.LoadContent(bossFight, raidComp, lastRaid);
     } else {
         inGame.LoadContent(bossFight, raidComp);
     }
     gameState = GameState.inGame;
     lastBossID = id;
     lastRaidComp = raidComp;
 }