コード例 #1
0
ファイル: Armour.cs プロジェクト: abenavente406/RPG
        public Armour(Texture2D stndTex, Texture2D attTex, Item i, ArmourParts part, float mult)
        {
            this.Item = i;
            this.Part = part;
            this.Mult = mult;

            this.Stand  = stndTex;
            this.Attack = attTex;
        }
コード例 #2
0
ファイル: Armour.cs プロジェクト: abenavente406/RPG
        public Armour(Armour a, Item i)
        {
            this.Item = i;
            this.Part = a.Part;
            this.Mult = a.Mult;

            this.Stand  = a.Stand;
            this.Attack = a.Attack;
        }
コード例 #3
0
ファイル: Armour.cs プロジェクト: abenavente406/RPG
        public Armour(Armour a, Item i)
        {
            this.Item = i;
            this.Part = a.Part;
            this.Mult = a.Mult;

            this.Stand = a.Stand;
            this.Attack = a.Attack;
        }
コード例 #4
0
ファイル: Armour.cs プロジェクト: abenavente406/RPG
        public Armour(Texture2D stndTex, Texture2D attTex, string name, ItemId id, ArmourParts part, float mult, bool add)
        {
            // Add its item to the Item list
            Item i = new Item(id, name, stndTex, Item.Equip);
            if (add) GameScreen.Items.Add(id, i);

            this.Item = i;
            this.Part = part;
            this.Mult = mult;

            this.Stand = stndTex;
            this.Attack = attTex;
        }
コード例 #5
0
ファイル: Armour.cs プロジェクト: abenavente406/RPG
        public Armour(Texture2D stndTex, Texture2D attTex, string name, ItemId id, ArmourParts part, float mult, bool add)
        {
            // Add its item to the Item list
            Item i = new Item(id, name, stndTex, Item.Equip);

            if (add)
            {
                GameScreen.Items.Add(id, i);
            }

            this.Item = i;
            this.Part = part;
            this.Mult = mult;

            this.Stand  = stndTex;
            this.Attack = attTex;
        }
コード例 #6
0
ファイル: Armour.cs プロジェクト: abenavente406/RPG
        public Armour(Item i)
        {
            if (i != null) {
                Armour a = GameScreen.Armours[i.Id];
                this.Item = i;
                this.Part = a.Part;
                this.Mult = a.Mult;

                this.Stand = a.Stand;
                this.Attack = a.Attack;
            } else {
                this.Item = GameScreen.Items[ItemId.None];
                this.Part = ArmourParts.Body;
                this.Mult = 0;

                this.Stand = null;
                this.Attack = null;
            }
        }
コード例 #7
0
ファイル: Armour.cs プロジェクト: abenavente406/RPG
        public Armour(Item i)
        {
            if (i != null)
            {
                Armour a = GameScreen.Armours[i.Id];
                this.Item = i;
                this.Part = a.Part;
                this.Mult = a.Mult;

                this.Stand  = a.Stand;
                this.Attack = a.Attack;
            }
            else
            {
                this.Item = GameScreen.Items[ItemId.None];
                this.Part = ArmourParts.Body;
                this.Mult = 0;

                this.Stand  = null;
                this.Attack = null;
            }
        }
コード例 #8
0
ファイル: Armour.cs プロジェクト: abenavente406/RPG
        public Armour(Texture2D stndTex, Texture2D attTex, Item i, ArmourParts part, float mult)
        {
            this.Item = i;
            this.Part = part;
            this.Mult = mult;

            this.Stand = stndTex;
            this.Attack = attTex;
        }