package Services.Sounds.WeaponSoundObjects { import Services.Sounds.WeaponSoundObjects.WeaponSound; import flash.media.Sound; /** * ... * @author */ public class xm1014 implements WeaponSound { [Embed(source = "../Weapons/ClipEmpty_Rifle.mp3")] private static const rifleEmpty:Class; private var rifle_Empty : Sound = new rifleEmpty(); //Sound for the XM1014 Auto Shotgun [Embed(source = "../Weapons/xm1014-1.mp3")] private static const autoShot:Class; [Embed(source = "../Weapons/xm1014_insertshell.mp3")] private static const autoShellIn:Class; [Embed(source = "../Weapons/m3_pump.mp3")] private static const m3Pump:Class; private var xm1014_fire : Sound = new autoShot(); private var xm1014_reload : Sound = new autoShellIn(); private var xm1014_deploy : Sound = new m3Pump(); public function xm1014() { } /* INTERFACE Services.Sounds.WeaponSoundObjects.WeaponSound */ public function playFire():void { xm1014_fire.play(); } public function getReload():Sound { return xm1014_reload; } public function getSwitch():Sound { return xm1014_deploy; } public function playEmpty():void { rifle_Empty.play(); } } }