package Services.Sounds.WeaponSoundObjects { import flash.media.Sound; import Services.Sounds.WeaponSoundObjects.WeaponSound; /** * ... * @author */ public class mp5 implements WeaponSound { [Embed(source = "../Weapons/ClipEmpty_Rifle.mp3")] private static const rifleEmpty:Class; private var rifle_Empty : Sound = new rifleEmpty(); //Sound for the mp5 [Embed(source = "../Weapons/mp5-1.mp3")] private static const mp5Shot:Class; [Embed(source = "../Weapons/mp5_reload.mp3")] private static const mp5Reload:Class; [Embed(source = "../Weapons/mp5_slideback.mp3")] private static const mp5SlideBack:Class; private var mp5_fire : Sound = new mp5Shot(); private var mp5_reload : Sound = new mp5Reload(); private var mp5_deploy : Sound = new mp5SlideBack(); public function mp5() { } /* INTERFACE Services.Sounds.WeaponSoundObjects.WeaponSound */ public function playFire():void { mp5_fire.play(); } public function getReload():Sound { return mp5_reload; } public function getSwitch():Sound { return mp5_deploy; } public function playEmpty():void { rifle_Empty.play(); } } }