//set dev state public void setState(DevState state) //set ups a dev using all the state from a dev { // <-- set type here //startUp(typeData); for (int i = 1; i < state.lvl; i++) { levelUp(); } exp = state.exp; energy = state.energy; currActivity = state.activity; energyFactor = updateEnergyFactor(); }
public void changeActivity(devActivity activity) { currActivity = activity; energyLoss = setEnergyLoss(); }