Class: Wowr::Classes::Melee
- Inherits:
-
Object
- Object
- Wowr::Classes::Melee
- Defined in:
- lib/wowr/character.rb
Overview
<melee> <mainHandDamage dps=“65.6” max=“149” min=“60” percent=“0” speed=“1.60”/> <offHandDamage dps=“0.0” max=“0” min=“0” percent=“0” speed=“2.00”/> <mainHandSpeed hastePercent=“0.00” hasteRating=“0” value=“1.60”/> <offHandSpeed hastePercent=“0.00” hasteRating=“0” value=“2.00”/> <power base=“338” effective=“338” increasedDps=“24.0”/> <hitRating increasedHitPercent=“0.00” value=“0”/> <critChance percent=“4.16” plusPercent=“0.00” rating=“0”/> <expertise additional=“0” percent=“0.00” rating=“0” value=“0”/> </melee>
Instance Attribute Summary collapse
-
#crit_chance ⇒ Object
readonly
Returns the value of attribute crit_chance.
-
#hit_rating ⇒ Object
readonly
Returns the value of attribute hit_rating.
-
#main_hand_damage ⇒ Object
readonly
Returns the value of attribute main_hand_damage.
-
#main_hand_skill ⇒ Object
readonly
Returns the value of attribute main_hand_skill.
-
#main_hand_speed ⇒ Object
readonly
Returns the value of attribute main_hand_speed.
-
#off_hand_damage ⇒ Object
readonly
Returns the value of attribute off_hand_damage.
-
#off_hand_skill ⇒ Object
readonly
Returns the value of attribute off_hand_skill.
-
#off_hand_speed ⇒ Object
readonly
Returns the value of attribute off_hand_speed.
-
#speed ⇒ Object
readonly
Returns the value of attribute speed.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Melee
constructor
A new instance of Melee.
Constructor Details
#initialize(elem) ⇒ Melee
Returns a new instance of Melee.
411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 |
# File 'lib/wowr/character.rb', line 411 def initialize(elem) # TODO: Do these not exist anymore? @main_hand_skill = WeaponSkill.new(elem%'mainHandWeaponSkill') if (elem%'mainHandWeaponSkill') @off_hand_skill = WeaponSkill.new(elem%'offHandWeaponSkill') if (elem%'offHandWeaponSkill') @main_hand_damage = WeaponDamage.new(elem%'mainHandDamage') @off_hand_damage = WeaponDamage.new(elem%'offHandDamage') @main_hand_speed = WeaponSpeed.new(elem%'mainHandSpeed') @off_hand_speed = WeaponSpeed.new(elem%'offHandSpeed') @power = WeaponPower.new(elem%'power') @hit_rating = WeaponHitRating.new(elem%'hitRating') @crit_chance = WeaponCritChance.new(elem%'critChance') @expertise = WeaponExpertise.new(elem%'expertise') end |
Instance Attribute Details
#crit_chance ⇒ Object (readonly)
Returns the value of attribute crit_chance.
405 406 407 |
# File 'lib/wowr/character.rb', line 405 def crit_chance @crit_chance end |
#hit_rating ⇒ Object (readonly)
Returns the value of attribute hit_rating.
405 406 407 |
# File 'lib/wowr/character.rb', line 405 def @hit_rating end |
#main_hand_damage ⇒ Object (readonly)
Returns the value of attribute main_hand_damage.
405 406 407 |
# File 'lib/wowr/character.rb', line 405 def main_hand_damage @main_hand_damage end |
#main_hand_skill ⇒ Object (readonly)
Returns the value of attribute main_hand_skill.
405 406 407 |
# File 'lib/wowr/character.rb', line 405 def main_hand_skill @main_hand_skill end |
#main_hand_speed ⇒ Object (readonly)
Returns the value of attribute main_hand_speed.
405 406 407 |
# File 'lib/wowr/character.rb', line 405 def main_hand_speed @main_hand_speed end |
#off_hand_damage ⇒ Object (readonly)
Returns the value of attribute off_hand_damage.
405 406 407 |
# File 'lib/wowr/character.rb', line 405 def off_hand_damage @off_hand_damage end |
#off_hand_skill ⇒ Object (readonly)
Returns the value of attribute off_hand_skill.
405 406 407 |
# File 'lib/wowr/character.rb', line 405 def off_hand_skill @off_hand_skill end |
#off_hand_speed ⇒ Object (readonly)
Returns the value of attribute off_hand_speed.
405 406 407 |
# File 'lib/wowr/character.rb', line 405 def off_hand_speed @off_hand_speed end |
#speed ⇒ Object (readonly)
Returns the value of attribute speed.
405 406 407 |
# File 'lib/wowr/character.rb', line 405 def speed @speed end |