Lorem Ipsum
Member
I am facing some confusion as to what the 'module' keyword does in RGSS. Could somebody explain it to me?
module Toaster
def self.toast(bread)
return bread.toasted
end
end
module Prexus
LOLCHEESE = 'HAH'
end
module khmp
LOLCHEESE = 'ROFL'
end
khmp::LOLCHEESE #=> 'ROFL'
Prexus::LOLCHEESE #=> 'HAH'
class Window_MyWindow < Window
end
class Window_MyWindow < Window < OtherWindow
end
module OtherWindow
# Methods
end
class Window_MyWindow < Window
include OtherWindow
end
etheon":35fk4usy said:Basically, modules are abstract classes; in other words, they are EXACTLY the same as classes, except that you can NEVER use the new method on them; thus you do not need to define a initialize method.