All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.daxie.xops.xgs.XGSManipulator Maven / Gradle / Ivy

package com.daxie.xops.xgs;

import java.io.FileNotFoundException;

import com.daxie.log.LogFile;
import com.daxie.tool.ExceptionFunctions;
import com.daxie.xops.weapon.WeaponData;

/**
 * Manipulates a XGS file.
 * @author Daba
 *
 */
public class XGSManipulator {
	private WeaponData[] weapon_data_array=null;
	
	/**
	 * 
	 * @param xgs_filename XGS filename to load
	 * @throws FileNotFoundException XGS file not found
	 */
	public XGSManipulator(String xgs_filename) throws FileNotFoundException {
		XGSParser xgs_parser=new XGSParser(xgs_filename);
		weapon_data_array=xgs_parser.GetWeaponDataArray();
	}
	public XGSManipulator() {
		
	}
	
	/**
	 * Returns a weapon data array.
* Returns null in case data is null. * @return A weapon data array */ public WeaponData[] GetWeaponDataArray() { if(weapon_data_array==null)return null; WeaponData[] ret=new WeaponData[weapon_data_array.length]; for(int i=0;i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy