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.
41 lines
596 B
41 lines
596 B
package mightypork.gamecore.util.math.constraints.rect.proxy;
|
|
|
|
|
|
import mightypork.gamecore.util.math.constraints.rect.Rect;
|
|
|
|
|
|
/**
|
|
* Pluggable rect bound adapter
|
|
*
|
|
* @author Ondřej Hruška (MightyPork)
|
|
*/
|
|
public class RectBoundAdapter extends RectAdapter implements PluggableRectBound {
|
|
|
|
private RectBound backing = null;
|
|
|
|
|
|
public RectBoundAdapter()
|
|
{
|
|
}
|
|
|
|
|
|
public RectBoundAdapter(RectBound bound)
|
|
{
|
|
backing = bound;
|
|
}
|
|
|
|
|
|
@Override
|
|
public void setRect(RectBound rect)
|
|
{
|
|
this.backing = rect;
|
|
}
|
|
|
|
|
|
@Override
|
|
public Rect getSource()
|
|
{
|
|
return backing.getRect();
|
|
}
|
|
|
|
}
|
|
|