Class: Wowr::Classes::Ranged

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_chanceObject (readonly)

Returns the value of attribute crit_chance.



439
440
441
# File 'lib/wowr/character.rb', line 439

def crit_chance
  @crit_chance
end

#damageObject (readonly)

Returns the value of attribute damage.



439
440
441
# File 'lib/wowr/character.rb', line 439

def damage
  @damage
end

#hit_ratingObject (readonly)

Returns the value of attribute hit_rating.



439
440
441
# File 'lib/wowr/character.rb', line 439

def hit_rating
  @hit_rating
end

#powerObject (readonly)

Returns the value of attribute power.



439
440
441
# File 'lib/wowr/character.rb', line 439

def power
  @power
end

#speedObject (readonly)

Returns the value of attribute speed.



439
440
441
# File 'lib/wowr/character.rb', line 439

def speed
  @speed
end

#weapon_skillObject (readonly)

Returns the value of attribute weapon_skill.



439
440
441
# File 'lib/wowr/character.rb', line 439

def weapon_skill
  @weapon_skill
end