class Savage::Directions::PointTarget

Attributes

target[RW]

Public Class Methods

new(x, y, absolute=true) click to toggle source
Calls superclass method Savage::Direction::new
# File lib/savage/directions/point_target.rb, line 7
def initialize(x, y, absolute=true)
  @target = Point.new(x,y)
  super(absolute)
end

Public Instance Methods

movement() click to toggle source
# File lib/savage/directions/point_target.rb, line 16
def movement
  [target.x, target.y]
end
to_a() click to toggle source
# File lib/savage/directions/point_target.rb, line 12
def to_a
  [command_code, @target.x, @target.y]
end