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
8
9
10
|
# File 'lib/rpg/se.rb', line 8
def self.stop
Audio.se_stop
end
|
Instance Method Details
#play ⇒ Object
3
4
5
6
7
|
# File 'lib/rpg/se.rb', line 3
def play
unless @name.empty?
Audio.se_play('Audio/SE/' + @name, @volume, @pitch)
end
end
|