Sha256: bdc762e09c04224f1808309e07466fd620bd2c9fe6abbbe4a6c0497912fc7eed

Contents?: true

Size: 395 Bytes

Versions: 24

Compression:

Stored size: 395 Bytes

Contents

#
#
class Waves
  
  attr_reader :window, :scheduling
  
  #
  #
  def initialize window, scheduling
    @window     = window
    @scheduling = scheduling
  end
  
  #
  #
  def add time, generated_type, times, &generation
    add_wave time, Wave.new(generated_type, times, &generation)
  end
  
  #
  #
  def add_wave time, wave
    scheduling.add time, wave.for_scheduling(window)
  end
  
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
gosu_extensions-0.1.27 lib/core/waves.rb
gosu_extensions-0.1.26 lib/core/waves.rb
gosu_extensions-0.1.25 lib/core/waves.rb
gosu_extensions-0.1.24 lib/core/waves.rb