Class: RPG::AudioFile

Inherits:
Object
  • Object
show all
Defined in:
lib/rpg/audio_file.rb

Direct Known Subclasses

BGM, BGS, ME, SE

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = '', volume = 100, pitch = 100) ⇒ AudioFile

Returns a new instance of AudioFile.



3
4
5
6
7
# File 'lib/rpg/audio_file.rb', line 3

def initialize(name = '', volume = 100, pitch = 100)
  @name = name
  @volume = volume
  @pitch = pitch
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#pitchObject

Returns the value of attribute pitch.



10
11
12
# File 'lib/rpg/audio_file.rb', line 10

def pitch
  @pitch
end

#volumeObject

Returns the value of attribute volume.



9
10
11
# File 'lib/rpg/audio_file.rb', line 9

def volume
  @volume
end