package Services.Sounds.WeaponSoundObjects { import Services.Sounds.WeaponSoundObjects.WeaponSound; import flash.media.Sound; /** * ... * @author */ public class ak47 implements WeaponSound { [Embed(source = "../Weapons/ClipEmpty_Rifle.mp3")] private static const rifleEmpty:Class; private var rifle_Empty : Sound = new rifleEmpty(); //Sound for the ak47 [Embed(source = "../Weapons/ak47-1.mp3")] private static const ak47Shot:Class; [Embed(source = "../Weapons/ak47_reload.mp3")] private static const ak47Reload:Class; [Embed(source = "../Weapons/ak47_boltpull.mp3")] private static const ak47BoltPull:Class; private var ak47_fire : Sound = new ak47Shot(); private var ak47_reload : Sound = new ak47Reload(); private var ak47_deploy : Sound = new ak47BoltPull(); public function ak47() { } /* INTERFACE Services.Sounds.WeaponSoundObjects.WeaponSound */ public function playFire():void { ak47_fire.play(); } public function getReload():Sound { return ak47_reload; } public function getSwitch():Sound { return ak47_deploy; } public function playEmpty():void { rifle_Empty.play(); } } }