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.
|
|
|
package mightypork.utils.math.constraints;
|
|
|
|
|
|
|
|
|
|
|
|
import mightypork.utils.math.rect.Rect;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Basic pluggable context implementation
|
|
|
|
*
|
|
|
|
* @author MightyPork
|
|
|
|
*/
|
|
|
|
public abstract class ContextAdapter implements PluggableContext {
|
|
|
|
|
|
|
|
private RectConstraint backing = null;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setContext(RectConstraint rect)
|
|
|
|
{
|
|
|
|
this.backing = rect;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Rect getRect()
|
|
|
|
{
|
|
|
|
return backing.getRect();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|