package Services.Sounds.WeaponSoundObjects { import Services.Sounds.WeaponSoundObjects.WeaponSound; import flash.media.Sound; /** * ... * @author */ public class m249 implements WeaponSound { [Embed(source = "../Weapons/ClipEmpty_Rifle.mp3")] private static const rifleEmpty:Class; private var rifle_Empty : Sound = new rifleEmpty(); //Sound for the machine gun [Embed(source = "../Weapons/m249-1.mp3")] private static const m249Shot:Class; [Embed(source = "../Weapons/m249_reload.mp3")] private static const m249Reload:Class; [Embed(source = "../Weapons/m249_deploy.mp3")] private static const m249Deploy:Class; private var m249_fire : Sound = new m249Shot(); private var m249_reload : Sound = new m249Reload(); private var m249_deploy : Sound = new m249Deploy(); public function m249() { } /* INTERFACE Services.Sounds.WeaponSoundObjects.WeaponSound */ public function playFire():void { m249_fire.play(); } public function getReload():Sound { return m249_reload; } public function getSwitch():Sound { return m249_deploy; } public function playEmpty():void { rifle_Empty.play(); } } }