Class: RPG::SE

Inherits:
AudioFile show all
Defined in:
lib/rpg/se.rb

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

.stopObject



8
9
10
# File 'lib/rpg/se.rb', line 8

def self.stop
  Audio.se_stop
end

Instance Method Details

#playObject



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