public LLEMessageBalloon(float x, float y, Texture2D texture, Texture2D balloonPointer, SpriteFont font, LLEMapFrontLayer frontLayer)
        {
            mText = "";

            mBalloonPointer = balloonPointer;

            mBalloon = null;

            mBalloon = new LLESprite(x, y, 0, 0, 0);

            mBalloon.setTexture(texture);

            mIcon = null;

            mFont = font;

            mTextLines = new List<string>();

            mEventMsg = false;

            mTextColor = new Color(210, 105, 0);

            mWindowWidth = frontLayer.getWindowWidth();

            mWindowHeight = frontLayer.getWindowHeight();
        }
Ejemplo n.º 2
0
        public LLEEnemy(string name, int hp, Vector2 position, Assets assets)
        {
            mName = name;

            mHP = hp;

            mSprite = new LLESprite(position.X, position.Y, 0, 0, 0);

            mSprite.setTexture(assets.getTexture(mName));

            mSprite.setTextureName(mName);
        }
Ejemplo n.º 3
0
        public virtual LLESprite clone()
        {
            LLESprite theSprite = new LLESprite(mX, mY, mXVel, mYVel, mSpeed);

            theSprite.setTexture(mTexture);

            theSprite.setTextureName(mTextureName);

            theSprite.setWidth(mW);

            theSprite.setHeight(mH);

            theSprite.setRotation(mRotation);

            theSprite.setRotationSpeed(mRotationSpeed);

            theSprite.setTextureColor(mTextureColor);

            theSprite.setVisible(mVisible);

            return theSprite;
        }