overmapper.rb
def draw_seen(image, overview)
  draw_loop(overview) do |x, y, ix, iy|
    verbose { "At overmap #{x}x#{y}..." }
    next unless overview.seen.has_key? "#{x} #{y}"
    parse_seen(overview.seen["#{x} #{y}"]).each do |box|
      image.rect(*box_transform(box, ix, iy), CFG, CFG)
    end
  end
end
# Draw seen
#
# The main drawing loop
Draw seen
The main drawing loop
Draw seen The main drawing loop
def draw_seen(image, overview)
  draw_loop(overview) do |x, y, ix, iy|
    verbose { "At overmap #{x}x#{y}..." }
    next unless overview.seen.has_key? "#{x} #{y}"
    parse_seen(overview.seen["#{x} #{y}"]).each do |box|
      image.rect(*box_transform(box, ix, iy), CFG, CFG)
    end
  end
end
def draw_seen ( image , overview ) draw_loop ( overview ) do | x , y , ix , iy | verbose { "At overmap #{x}x#{y}..." } next unless overview . seen . has_key? "#{x} #{y}" parse_seen ( overview . seen [ "#{x} #{y}" ] ) . each do | box | image . rect ( * box_transform ( box , ix , iy ) , CFG , CFG ) end end end
Draw seen
The main drawing loop
Draw seen The main drawing loop
image
overview