I am wondering how weaponry, specifically ship weaponry works in star trek. STID showed those missiles which (which Khan stupidly put his men in). Are weapons powered from a ships warp core/reactor directly? if so, are the essentially 'unlimited' unless they burn out the fuel source? Are some this way and others based on actual munitions? I know that small arms do have limited ammunition, but I am not sure what is actually used as ammo for ship weapons.