GameControllerScript.Weapon.Weapon C# (CSharp) Method

Weapon() public method

public Weapon ( string theName, Type, theType, int dmgMod, int spdMod, int defMod, int weaponLevel, DiceControllerScript.Roll, weaponRoll ) : System.Collections
theName string
theType Type,
dmgMod int
spdMod int
defMod int
weaponLevel int
weaponRoll DiceControllerScript.Roll,
return System.Collections
        public Weapon(string theName, Type theType, int dmgMod, int spdMod, int defMod, int weaponLevel, Roll weaponRoll)
        {
            name = theName;				// A human-readable name to be displayed in the UI
            type = theType;				// See Weapon.Type
            damageModifier = dmgMod;		// Additional modifiers that the weapon adds to the damage-roll
            speedModifier = spdMod;		// A modifier effecting the weilder's speed
            defenseModifier = defMod;	// A modifier effecting the weilder's defense
            level = weaponLevel;
            roll = weaponRoll;

            attacks = new Dictionary<string, Attack>();
        }
GameControllerScript.Weapon