Module: Sound

Defined in:
Sound.rb

Overview

** Sound


This module plays sound effects. It obtains sound effects specified in the

database from the global variable $data_system, and plays them.

Class Method Summary (collapse)

Class Method Details

+ (Object) play_actor_collapse

Actor Collapse



91
92
93
# File 'Sound.rb', line 91

def self.play_actor_collapse
  play_system_sound(15)
end

+ (Object) play_actor_damage

Actor Damage



86
87
88
# File 'Sound.rb', line 86

def self.play_actor_damage
  play_system_sound(14)
end

+ (Object) play_battle_start

Battle Start



51
52
53
# File 'Sound.rb', line 51

def self.play_battle_start
  play_system_sound(7)
end

+ (Object) play_boss_collapse1

Boss Collapse 1



76
77
78
# File 'Sound.rb', line 76

def self.play_boss_collapse1
  play_system_sound(12)
end

+ (Object) play_boss_collapse2

Boss Collapse 2



81
82
83
# File 'Sound.rb', line 81

def self.play_boss_collapse2
  play_system_sound(13)
end

+ (Object) play_buzzer

Buzzer



31
32
33
# File 'Sound.rb', line 31

def self.play_buzzer
  play_system_sound(3)
end

+ (Object) play_cancel

Cancel



26
27
28
# File 'Sound.rb', line 26

def self.play_cancel
  play_system_sound(2)
end

+ (Object) play_cursor

Cursor Movement



16
17
18
# File 'Sound.rb', line 16

def self.play_cursor
  play_system_sound(0)
end

+ (Object) play_enemy_attack

Enemy Attack



61
62
63
# File 'Sound.rb', line 61

def self.play_enemy_attack
  play_system_sound(9)
end

+ (Object) play_enemy_collapse

Enemy Collapse



71
72
73
# File 'Sound.rb', line 71

def self.play_enemy_collapse
  play_system_sound(11)
end

+ (Object) play_enemy_damage

Enemy Damage



66
67
68
# File 'Sound.rb', line 66

def self.play_enemy_damage
  play_system_sound(10)
end

+ (Object) play_equip

Equip



36
37
38
# File 'Sound.rb', line 36

def self.play_equip
  play_system_sound(4)
end

+ (Object) play_escape

Escape



56
57
58
# File 'Sound.rb', line 56

def self.play_escape
  play_system_sound(8)
end

+ (Object) play_evasion

Evasion



106
107
108
# File 'Sound.rb', line 106

def self.play_evasion
  play_system_sound(18)
end

+ (Object) play_load

Load



46
47
48
# File 'Sound.rb', line 46

def self.play_load
  play_system_sound(6)
end

+ (Object) play_magic_evasion

Magic Evasion



111
112
113
# File 'Sound.rb', line 111

def self.play_magic_evasion
  play_system_sound(19)
end

+ (Object) play_miss

Miss



101
102
103
# File 'Sound.rb', line 101

def self.play_miss
  play_system_sound(17)
end

+ (Object) play_ok

Decision



21
22
23
# File 'Sound.rb', line 21

def self.play_ok
  play_system_sound(1)
end

+ (Object) play_recovery

Recovery



96
97
98
# File 'Sound.rb', line 96

def self.play_recovery
  play_system_sound(16)
end

+ (Object) play_reflection

Magic Reflection



116
117
118
# File 'Sound.rb', line 116

def self.play_reflection
  play_system_sound(20)
end

+ (Object) play_save

Save



41
42
43
# File 'Sound.rb', line 41

def self.play_save
  play_system_sound(5)
end

+ (Object) play_shop

Shop



121
122
123
# File 'Sound.rb', line 121

def self.play_shop
  play_system_sound(21)
end

+ (Object) play_system_sound(n)

System Sound Effect



11
12
13
# File 'Sound.rb', line 11

def self.play_system_sound(n)
  $data_system.sounds[n].play
end

+ (Object) play_use_item

Use Item



126
127
128
# File 'Sound.rb', line 126

def self.play_use_item
  play_system_sound(22)
end

+ (Object) play_use_skill

Use Skill



131
132
133
# File 'Sound.rb', line 131

def self.play_use_skill
  play_system_sound(23)
end