Ejemplo n.º 1
0
        //
        internal RaidFrames(InGame inGame, List<PlayerClassI> raid, Vector2f v)
        {
            playerFrames = new PlayerFrame[raid.Count];

            int i = 0;
            foreach (PlayerClassI p in raid) {
                playerFrames[i] = new PlayerFrame(this,p, new Vector2f(v.X + (i / MAX_COLM * (FRAME_SPACING + PlayerFrame.FRAMESIZE)), v.Y + (i % MAX_COLM * (FRAME_SPACING + PlayerFrame.FRAMESIZE))));
                i++;
            }
            parent = inGame;
        }
Ejemplo n.º 2
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();
        }
Ejemplo n.º 3
0
 internal void initPostFight(BossFightID id, double timeSecond, int playerAmt, DamageMeter damageMeter, bool win, int enrageTimer, Hashtable lastRaid) {
     inGame = null;
     //this.lastRaid = lastRaid;
     gameState = GameState.postFight;
     postFight = new PostFight(id, timeSecond, playerAmt, damageMeter, win, enrageTimer, lastRaid);
     BossSelect.updateTotalStars();
 }
Ejemplo n.º 4
0
        internal void restartBossFight(BossFight bossFight, Hashtable raid) {
            inGame = new InGame();
            inGame.LoadContent(bossFight, lastRaidCompN, raid);
            gameState = GameState.inGame;

        }
Ejemplo n.º 5
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;
 }
Ejemplo n.º 6
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;
 }