All pastes #257242 Raw Edit

Untitled

public java v1 · immutable
#257242 ·published 2006-11-25 02:54 UTC
rendered paste body
	public void setName(String name)	{			//Put code here to get all the Data for a component, and fill			//out this object.				//We do this so when the page calls setName, all the other data is filled			//out.  If this component doesn't exist, set all the attributes to 0.					_name = name;				try 		{			Data objData = new Data();						Hashtable componentMaterials;			componentMaterials = Data.getComponentMaterials(_name);			                        //right hand side is an object??			Integer n = (Integer)componentMaterials.get("tritanium");			setTritanium( n );			setPyre( 5 );			setIsogen( 5 );			setNoxcium( 5 );			setMexallon( 5 );			setMegacyte( 5 );			setOther( 5 );		}				catch (Exception e)		{			e.printStackTrace();		}	}