Class: Wowr::Classes::Ranged
- Inherits:
-
Object
- Object
- Wowr::Classes::Ranged
- Defined in:
- lib/wowr/character.rb
Overview
<ranged> <weaponSkill rating=“0” value=“-1”/> <damage dps=“0.0” max=“0” min=“0” percent=“0” speed=“0.00”/> <speed hastePercent=“0.00” hasteRating=“0” value=“0.00”/> <power base=“57” effective=“57” increasedDps=“4.0” petAttack=“-1.00” petSpell=“-1.00”/> <hitRating increasedHitPercent=“0.00” value=“0”/> <critChance percent=“0.92” plusPercent=“0.00” rating=“0”/> </ranged>
Instance Attribute Summary collapse
-
#crit_chance ⇒ Object
readonly
Returns the value of attribute crit_chance.
-
#damage ⇒ Object
readonly
Returns the value of attribute damage.
-
#hit_rating ⇒ Object
readonly
Returns the value of attribute hit_rating.
-
#power ⇒ Object
readonly
Returns the value of attribute power.
-
#speed ⇒ Object
readonly
Returns the value of attribute speed.
-
#weapon_skill ⇒ Object
readonly
Returns the value of attribute weapon_skill.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Ranged
constructor
A new instance of Ranged.
Constructor Details
#initialize(elem) ⇒ Ranged
Returns a new instance of Ranged.
442 443 444 445 446 447 448 449 |
# File 'lib/wowr/character.rb', line 442 def initialize(elem) @weapon_skill = WeaponSkill.new(elem%'weaponSkill') @damage = WeaponDamage.new(elem%'damage') @speed = WeaponSpeed.new(elem%'speed') @power = WeaponPower.new(elem%'power') @hit_rating = WeaponHitRating.new(elem%'hitRating') @crit_chance = WeaponCritChance.new(elem%'critChance') end |
Instance Attribute Details
#crit_chance ⇒ Object (readonly)
Returns the value of attribute crit_chance.
439 440 441 |
# File 'lib/wowr/character.rb', line 439 def crit_chance @crit_chance end |
#damage ⇒ Object (readonly)
Returns the value of attribute damage.
439 440 441 |
# File 'lib/wowr/character.rb', line 439 def damage @damage end |
#hit_rating ⇒ Object (readonly)
Returns the value of attribute hit_rating.
439 440 441 |
# File 'lib/wowr/character.rb', line 439 def @hit_rating end |
#power ⇒ Object (readonly)
Returns the value of attribute power.
439 440 441 |
# File 'lib/wowr/character.rb', line 439 def power @power end |
#speed ⇒ Object (readonly)
Returns the value of attribute speed.
439 440 441 |
# File 'lib/wowr/character.rb', line 439 def speed @speed end |
#weapon_skill ⇒ Object (readonly)
Returns the value of attribute weapon_skill.
439 440 441 |
# File 'lib/wowr/character.rb', line 439 def weapon_skill @weapon_skill end |