package Services.Sounds.WeaponSoundObjects { import Services.Sounds.WeaponSoundObjects.WeaponSound; import flash.media.Sound; /** * ... * @author */ public class mac10 implements WeaponSound { [Embed(source = "../Weapons/ClipEmpty_Rifle.mp3")] private static const rifleEmpty:Class; private var rifle_Empty : Sound = new rifleEmpty(); //Sound for the mac 10 [Embed(source = "../Weapons/mac10-1.mp3")] private static const mac10Shot:Class; [Embed(source = "../Weapons/mac10_reload.mp3")] private static const mac10Reload:Class; [Embed(source = "../Weapons/mac10_boltpull.mp3")] private static const mac10BoltPull:Class; private var mac10_fire : Sound = new mac10Shot(); private var mac10_reload : Sound = new mac10Reload(); private var mac10_deploy : Sound = new mac10BoltPull(); public function mac10() { } /* INTERFACE Services.Sounds.WeaponSoundObjects.WeaponSound */ public function playFire():void { mac10_fire.play(); } public function getReload():Sound { return mac10_reload; } public function getSwitch():Sound { return mac10_deploy; } public function playEmpty():void { rifle_Empty.play(); } } }