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/rect/RectProxy.java

35 lines
450 B

package mightypork.utils.math.rect;
import mightypork.utils.math.coord.VecView;
/**
* Immutable rect accessor
*
* @author MightyPork
*/
public class RectProxy extends RectValue {
private final Rect observed;
public RectProxy(Rect observed) {
this.observed = observed;
}
@Override
public VecView getOrigin()
{
return observed.getOrigin();
}
@Override
public VecView getSize()
{
return observed.getSize();
}
}