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/constraints/ContextAdapter.java

30 lines
432 B

package mightypork.utils.math.constraints;
import mightypork.utils.math.rect.RectView;
/**
* Basic pluggable context implementation
*
* @author MightyPork
*/
public abstract class ContextAdapter implements PluggableRect {
private RectBound backing = null;
@Override
public void setContext(RectBound rect)
{
this.backing = rect;
}
@Override
public RectView getRect()
{
return backing.getRect();
}
}