Class: Savage::Directions::MoveTo

Inherits:
PointTarget show all
Defined in:
lib/savage/directions/move_to.rb

Instance Attribute Summary

Attributes inherited from PointTarget

#target

Instance Method Summary collapse

Methods inherited from PointTarget

#initialize, #to_a

Methods inherited from Savage::Direction

#absolute?, #initialize, #to_command

Methods included from Utils

#bool_to_int

Constructor Details

This class inherits a constructor from Savage::Directions::PointTarget

Instance Method Details

#command_codeObject



4
5
6
# File 'lib/savage/directions/move_to.rb', line 4

def command_code
  (absolute?) ? 'M' : 'm'
end