Exemplo n.º 1
0
        internal EdwardDog(Vector2f start, BossFight bf)
            : base(start)
        {
            myBossFight = bf;
            enemyCooldowns = new Cooldown[1];
            currentHp = maxHp = DOG_HP;
            currentTexture = bossCircleTexture;
            innerCircle = 30;
            circleSize = 75;

            enemyCooldowns[0] = new Cooldown(MELEE_CD);

            leashSprite = new Sprite(leashTexture);
        }
Exemplo n.º 2
0
 public void LoadContent(BossFight bossFight, List<List<ChampItemPair>> raidComp, Hashtable raidSetup)
 {
     LoadContent(bossFight, raidComp);
     PositionFactory.getSetupRaid(getAlivePlayerMoveables(), raidSetup);
 }
Exemplo n.º 3
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());
        }
Exemplo n.º 4
0
 public void LoadContent(BossFight bossFight, PlayerClassNum[] raidComp, Hashtable raidSetup)
 {
     LoadContent(bossFight, raidComp);
     PositionFactory.getSetupRaid(getAlivePlayerMoveables(), raidSetup);
 }
Exemplo n.º 5
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));
        }
Exemplo n.º 6
0
        public void LoadContent(BossFight bossFight)
        {
            inGame = this;
            this.bossFight = bossFight;

            //botBlackTexture = contentManager.Load<Texture2D>("images/bottom_black");
            //backgroundTexture = contentManager.Load<Texture2D>(bossFight.getBGString());
            //foregroundTexture = contentManager.Load<Texture2D>("images/fg");

            targetTexture = GameBox.loadTexture("images/target");

            moveables = new List<Moveable>();

            abilityButton1 = new Button(new IntRect(650, 560, 35, 35));
            abilityButton2 = new Button(new IntRect(700, 560, 35, 35));
            abilityButton3 = new Button(new IntRect(750, 560, 35, 35));

            projectiles = new List<Projectile>();
            projectilesToAdd = new List<Projectile>();
            projectilesToRemove = new List<Projectile>();
            groundEffects = new List<GroundEffect>();
            groundEffectsToRemove = new List<GroundEffect>();

            damageMeter = new DamageMeter();
            activeScripts = bossFight.getTimedScripts();

            fightObjects = bossFight.getObjects();

            //gfx stuff
            selectedCoordText = new Text("selected coord", GameBox.corbalFont, 15U);
            selectedCoordText.Position = new Vector2f(10, 560);
            selectedCoordText.Color = Color.Yellow;
            firstCooldownText = new Text("first cd", GameBox.corbalFont, 15U);
            firstCooldownText.Position = new Vector2f(300, 550);
            firstCooldownText.Color = Color.White;
            secondCooldownText = new Text("second cd", GameBox.corbalFont, 15U);
            secondCooldownText.Position = new Vector2f(300, 565);
            secondCooldownText.Color = Color.White;
            bossCooldownText = new Text("boss cd", GameBox.corbalFont, 15U);
            bossCooldownText.Position = new Vector2f(300, 575);
            bossCooldownText.Color = Color.White;
            enrageText = new Text("ENRAGE OHHHHHH SHIT SON", GameBox.corbalFont, 15U);
            enrageText.Position = new Vector2f(375, 5);
            enrageText.Color = Color.Red;
            damagemeterText = new Text("damagemeter", GameBox.corbalFont, 15U);
            firstThreatText = new Text("first threat", GameBox.corbalFont, 15U);
            firstThreatText.Position = new Vector2f(15, 15);
            firstThreatText.Color = Color.White;
            secondThreatText = new Text("second threat", GameBox.corbalFont, 15U);
            secondThreatText.Position = new Vector2f(15, 30);
            secondThreatText.Color = Color.White;
            thirdThreatText = new Text("third threat", GameBox.corbalFont, 15U);
            thirdThreatText.Position = new Vector2f(15, 45);
            thirdThreatText.Color = Color.White;
            fightStatusText = new Text("fightstatus", GameBox.corbalFont, 15U);
            fightStatusText.Position = new Vector2f(50, 520);
            fightStatusText.Color = Color.White;
            countDownText = new Text("countDown", GameBox.corbalFont, 15U);
            countDownText.Position = new Vector2f(400, 520);
            countDownText.Color = Color.White;

            //shouldnt load here
            hpBarSprite = new Sprite(GameBox.loadTexture("images/UI/insideFrame"));
            hpBarSprite.Position = new Vector2f(500, 550);
            hpBarSprite.Color = Color.Red;

            currentCursorSprite = new Sprite();
        }
Exemplo n.º 7
0
        internal void restartBossFight(BossFight bossFight, Hashtable raid) {
            inGame = new InGame();
            inGame.LoadContent(bossFight, lastRaidCompN, raid);
            gameState = GameState.inGame;

        }
Exemplo n.º 8
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;
 }
Exemplo n.º 9
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;
 }