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); }
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; }