package Services.Sounds.WeaponSoundObjects { import Services.Sounds.WeaponSoundObjects.WeaponSound; import flash.media.Sound; /** * ... * @author */ public class m4a1 implements WeaponSound { [Embed(source = "../Weapons/ClipEmpty_Rifle.mp3")] private static const rifleEmpty:Class; private var rifle_Empty : Sound = new rifleEmpty(); //Sound for the m4a1 [Embed(source = "../Weapons/m4a1_unsil-1.mp3")] private static const m4a1Shot:Class; [Embed(source = "../Weapons/m4a1_reload.mp3")] private static const m4a1Reload:Class; [Embed(source = "../Weapons/m4a1_deploy.mp3")] private static const m4a1Deploy:Class; private var m4a1_fire : Sound = new m4a1Shot(); private var m4a1_reload : Sound = new m4a1Reload(); private var m4a1_deploy : Sound = new m4a1Deploy(); public function m4a1() { } /* INTERFACE Services.Sounds.WeaponSoundObjects.WeaponSound */ public function playFire():void { m4a1_fire.play(); } public function getReload():Sound { return m4a1_reload; } public function getSwitch():Sound { return m4a1_deploy; } public function playEmpty():void { rifle_Empty.play(); } } }