Exemplo n.º 1
0
        public RewardItem(string id, string itemID, int level, RewardHoldTypes holdType, string message, Animation animation)
        {
            this.id				= id;
            this.animation		= animation;
            this.message		= message;
            this.hasDuration	= true;
            this.holdType		= holdType;
            this.isCollectibleWithItems	= true;

            this.itemID			= itemID;
            this.level			= level;
        }
Exemplo n.º 2
0
        //-----------------------------------------------------------------------------
        // Constructors
        //-----------------------------------------------------------------------------

        public RewardItem(string id, string itemID, int level, RewardHoldTypes holdType, string message, SpriteAnimation animation)
        {
            InitAnimation(animation);

            this.id                     = id;
            this.message                = message;
            this.hasDuration            = false;
            this.holdType               = holdType;
            this.isCollectibleWithItems = false;

            this.itemID = itemID;
            this.level  = level;
        }
Exemplo n.º 3
0
        //-----------------------------------------------------------------------------
        // Constructors
        //-----------------------------------------------------------------------------
        public RewardItem(string id, string itemID, int level, RewardHoldTypes holdType, string message, SpriteAnimation animation)
        {
            InitAnimation(animation);

            this.id				= id;
            this.message		= message;
            this.hasDuration	= false;
            this.holdType		= holdType;
            this.isCollectibleWithItems	= false;

            this.itemID			= itemID;
            this.level			= level;
        }
        //-----------------------------------------------------------------------------
        // Constructors
        //-----------------------------------------------------------------------------
        public RewardDungeonItem(string id, SpriteAnimation animation, RewardHoldTypes holdType, string message)
        {
            InitAnimation(animation);

            this.id				= id;
            this.message		= message;
            this.holdType		= holdType;

            this.hasDuration	= false;
            this.isCollectibleWithItems	= (id != "small_key");
            this.onlyShowMessageInChest = (id == "small_key");

            if (id == "small_key" || id == "boss_key")
                this.soundBounce = GameData.SOUND_KEY_BOUNCE;
        }
Exemplo n.º 5
0
        //-----------------------------------------------------------------------------
        // Constructors
        //-----------------------------------------------------------------------------
        public RewardItem(string id, string itemID, int level, RewardHoldTypes holdType, string message, Sprite sprite)
        {
            this.id				= id;
            if (sprite.SourceRect.Width == 8 && sprite.DrawOffset.X == 0) {
                sprite = new Sprite(sprite);
                sprite.DrawOffset = new Point2I(4, sprite.DrawOffset.Y);
            }
            this.animation		= new Animation(sprite);
            this.message		= message;
            this.hasDuration	= true;
            this.holdType		= holdType;
            this.isCollectibleWithItems	= true;

            this.itemID			= itemID;
            this.level			= level;
        }
Exemplo n.º 6
0
        //-----------------------------------------------------------------------------
        // Constructors
        //-----------------------------------------------------------------------------

        public RewardDungeonItem(string id, SpriteAnimation animation, RewardHoldTypes holdType, string message)
        {
            InitAnimation(animation);

            this.id       = id;
            this.message  = message;
            this.holdType = holdType;

            this.hasDuration            = false;
            this.isCollectibleWithItems = (id != "small_key");
            this.onlyShowMessageInChest = (id == "small_key");

            if (id == "small_key" || id == "boss_key")
            {
                this.soundBounce = GameData.SOUND_KEY_BOUNCE;
            }
        }