Exemple #1
0
        internal PlayerFrame(RaidFrames raidFrames, PlayerClassI m, Vector2f spot)
            : base(new IntRect((int)spot.X, (int)spot.Y, FRAMESIZE, FRAMESIZE))
        {
            player = m;
            parent = raidFrames;

            playerFrameSprite = new Sprite(playerFrame);
            playerFrameSprite.Scale = new Vector2f(FRAMESIZE / playerFrame.Size.X, FRAMESIZE / playerFrame.Size.Y);
            playerFrameSprite.Position = spot;
            insideFrameSprite = new Sprite(insideFrame);
            insideFrameSprite.Scale = new Vector2f(FRAMESIZE / insideFrame.Size.X, FRAMESIZE / insideFrame.Size.Y);
            insideFrameSprite.Position = new Vector2f(spot.X + INSIDE_SPACER, spot.Y + INSIDE_SPACER);
            insideFrameSprite.Color = PlayerClassI.getClassColor(PlayerClassI.getClassNum(player));

            hpPercentText = new Text("hppercent",GameBox.corbalFont,10U);
            hpPercentText.Position = new Vector2f(spot.X + INSIDE_SPACER + 2, spot.Y + INSIDE_SPACER + 8);
            hpPercentText.Color = Color.Black;
            threatText = new Text("threat", GameBox.corbalFont, 10U);
            threatText.Position = new Vector2f(spot.X + INSIDE_SPACER + INSIDESIZE - 5, spot.Y + INSIDE_SPACER + INSIDESIZE - 10);
            threatText.Color = Color.White;
        }
Exemple #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());
        }
Exemple #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));
        }