Rogue: Savage Rats, a retro-themed dungeon crawler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
rogue-savage-rats/src/mightypork/gamecore/util/math/constraints/num/proxy/NumBoundAdapter.java

36 lines
499 B

package mightypork.gamecore.util.math.constraints.num.proxy;
import mightypork.gamecore.util.math.constraints.num.Num;
public class NumBoundAdapter extends NumAdapter implements PluggableNumBound {
private NumBound backing = null;
public NumBoundAdapter()
{
}
public NumBoundAdapter(NumBound bound)
{
backing = bound;
}
@Override
public void setNum(NumBound num)
{
this.backing = num;
}
@Override
protected Num getSource()
{
return backing.getNum();
}
}