Class: RubyWarrior::Abilities::Health
- Defined in:
- lib/ruby_warrior/abilities/health.rb
Instance Method Summary collapse
Methods inherited from Base
#damage, #initialize, #offset, #pass_turn, #space, #unit, #verify_direction
Constructor Details
This class inherits a constructor from RubyWarrior::Abilities::Base
Instance Method Details
#description ⇒ Object
4 5 6 |
# File 'lib/ruby_warrior/abilities/health.rb', line 4 def description "Returns an integer representing your health." end |
#perform ⇒ Object
8 9 10 |
# File 'lib/ruby_warrior/abilities/health.rb', line 8 def perform @unit.health end |