Class: RubyWarrior::Abilities::Feel

Inherits:
Base
  • Object
show all
Defined in:
lib/ruby_warrior/abilities/feel.rb

Constant Summary

Constants inherited from Base

Base::DIRECTIONS

Instance Method Summary collapse

Methods inherited from Base

#damage, #initialize, #offset, #space, #unit

Constructor Details

This class inherits a constructor from RubyWarrior::Abilities::Base

Instance Method Details

#descriptionObject



4
5
6
# File 'lib/ruby_warrior/abilities/feel.rb', line 4

def description
  "Returns a Space for the given direction (forward by default)."
end

#perform(direction = :forward) ⇒ Object



8
9
10
# File 'lib/ruby_warrior/abilities/feel.rb', line 8

def perform(direction = :forward)
  space(direction)
end