Class: RPG::SE
Instance Attribute Summary
Attributes inherited from AudioFile
#name, #pitch, #volume
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from AudioFile
#initialize
Constructor Details
This class inherits a constructor from RPG::AudioFile
Class Method Details
.stop ⇒ Object
99
100
101
|
# File 'lib/rgss3/rpg.rb', line 99
def self.stop
Audio.se_stop
end
|
Instance Method Details
#play ⇒ Object
94
95
96
97
98
|
# File 'lib/rgss3/rpg.rb', line 94
def play
unless @name.empty?
Audio.se_play('Audio/SE/' + @name, @volume, @pitch)
end
end
|