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.vect;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Vect proxy with abstract method for plugging in / generating coordinates
|
|
|
|
* dynamically.
|
|
|
|
*
|
|
|
|
* @author MightyPork
|
|
|
|
*/
|
|
|
|
public abstract class VectAdapter extends VectView {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the proxied coord
|
|
|
|
*/
|
|
|
|
protected abstract Vect getSource();
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public double x()
|
|
|
|
{
|
|
|
|
return getSource().x();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public double y()
|
|
|
|
{
|
|
|
|
return getSource().y();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public double z()
|
|
|
|
{
|
|
|
|
return getSource().z();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|