@Override
    public boolean equals(Object that) {
        if (that == null) {
            return false;
        }
        if (that.getClass() != this.getClass()) {
            return false;
        }
        SpriteElement thatSprite = (SpriteElement) that;

        return this.mAlignX == thatSprite.mAlignX && this.mAlignY == thatSprite.mAlignY
                && this.mToOponent == thatSprite.mToOponent && this.mImagePath.equals(thatSprite.mImagePath)
                && this.mIndex == thatSprite.mIndex && this.mScale == thatSprite.mScale && this.mVariableName.equals(thatSprite.mVariableName);
    }