class Goby::Location

The combination of a map and y-x coordinates, which determine a specific position/location on the map.

Attributes

coords[R]
map[R]

Public Class Methods

new(map, coords) click to toggle source

Location constructor.

@param [Map] map the map component. @param [C(Integer, Integer)] coords a pair of y-x coordinates.

# File lib/goby/util.rb, line 42
def initialize(map, coords)
  @map = map
  @coords = coords
end