Class: RuGUI::FrameworkAdapters::Rubygame::BaseMainController

Inherits:
BaseController show all
Defined in:
lib/rugui/framework_adapters/Rubygame.rb

Instance Attribute Summary

Attributes inherited from BaseFrameworkAdapter::Base

#adapted_object

Instance Method Summary collapse

Methods inherited from BaseController

#queue

Methods inherited from BaseFrameworkAdapter::BaseController

#queue

Methods inherited from BaseFrameworkAdapter::Base

#initialize

Constructor Details

This class inherits a constructor from RuGUI::FrameworkAdapters::BaseFrameworkAdapter::Base

Instance Method Details

#quitObject



26
27
28
29
# File 'lib/rugui/framework_adapters/Rubygame.rb', line 26

def quit
  throw :quit
  Rubygame.quit
end

#refreshObject



23
24
# File 'lib/rugui/framework_adapters/Rubygame.rb', line 23

def refresh
end

#runObject



15
16
17
18
19
20
21
# File 'lib/rugui/framework_adapters/Rubygame.rb', line 15

def run
  catch :quit do
    loop do
      self.adapted_object.step
    end
  end
end