コード例 #1
0
 /// <summary>
 /// The constructor which makes an equipment with all the given stats and with the description.
 /// </summary>
 /// <param name="damage"></param>
 /// <param name="atkspd"></param>
 /// <param name="armor"></param>
 /// <param name="health"></param>
 /// <param name="moveSpeedModifier"></param>
 /// <param name="name"></param>
 /// <param name="itemtype"></param>
 /// <param name="description"></param>
 public ItemEquipment(float damage, float atkspd, float armor, float health, float moveSpeedModifier, string name, tItemType itemtype, string description)
     : base(name)
 {
     _damage = damage;
     _atkspd = atkspd;
     _armor = armor;
     _health = health;
     _moveSpeedModifier = moveSpeedModifier;
     this.type = itemtype;
 }
コード例 #2
0
    /// <summary>
    /// This constructor makes an item with the specified name and ore type.
    /// </summary>
    /// <param name="name"></param>
    /// <param name="oreType"></param>
    public ItemBase(string name, ItemBase.tOreType oreType)
    {
        this.oreType = oreType;
        type = tItemType.Item;
        _name = name;
        _description = "A fine " + _name + ".";
        _quantity = 1;

        neededOreQuantity = 1;
        neededPoints = 1;
    }
コード例 #3
0
    /// <summary>
    /// This constructor makes an item with the specified name.
    /// </summary>
    /// <param name="name"></param>
    public ItemBase(string name)
    {
        oreType = tOreType.NOT_ORE;
        type = tItemType.Item;
        _name = name;
        _description = "A fine " + _name + ".";
        _quantity = 1;

        neededOreQuantity = 1;
        neededPoints = 1;
    }
コード例 #4
0
 /// <summary>
 /// The constructor which creates an equipment of the specified type with the specified name
 /// </summary>
 /// <param name="name"></param>
 /// <param name="itemtype"></param>
 public ItemEquipment(string name, tItemType itemtype)
     : base(name)
 {
     this.type = itemtype;
 }