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/utils/math/num/NumVar.java

37 lines
424 B

package mightypork.utils.math.num;
/**
* Mutable numeric variable.
*
* @author MightyPork
*/
public class NumVar extends NumMutable {
private double value;
public NumVar(Num value) {
this(value.value());
}
public NumVar(double value) {
this.value = value;
}
@Override
public double value()
{
return value;
}
@Override
public void setTo(double value)
{
this.value = value;
}
}