All pastes #908957 Raw Edit

m1test

public java v1 · immutable
·published 2008-02-18 20:46 UTC
rendered paste body
//ok, so why do i need to dopublic void setStat(StatType type, float amount ){	switch( type ){			case STR:					STR.setAmount(amount);					break;                         //etc         }}//and in another program saym1.setStat(StatType.STR,3); //m1 is monster 1//what about justpublic void setStat(Stat type, float amount ){	type.setAmount(amount);}//? but i cant figure out how id call it. essentially id just like to be able to say m1.setStat(STR,20); i appear to be missing a step somewhere though