public StatValue getStatValue(String name) {
	      StatValue result = null;
	      StatDescriptor desc = getType().getStat(name);
	      if (desc != null) {
	        result = values[desc.getOffset()];
	      }
	      return result;
	    }
public StatValue getStatValue(String name) {
	      StatValue result = null;
	      StatDescriptor desc = getType().getStat(name);
	      if (desc != null) {
	        result = values[desc.getOffset()];
	      }
	      return result;
	    }
public StatValue getStatValue ( String name ) { StatValue result = null ; StatDescriptor desc = getType ( ) . getStat ( name ) ; if ( desc != null ) { result = values [ desc . getOffset ( ) ] ; } return result ; }
/*
Gets the value of the stat in the current instance given the stat name.

@param name the name of the stat to find in the current instance
@return the value that matches the name or null if the instance does not
have a stat of the given name
/ * Gets the value of the stat in the current instance given the stat name .