Пример #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;
        }
Пример #2
0
 internal int getThreatRankOnMainEnemy(PlayerClassI player)
 {
     return mainEnemy.getThreatRank(player);
 }