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/vect/VectProxy.java

32 lines
461 B

package mightypork.utils.math.vect;
/**
* View of another coordinate, immutable.<br>
* GetVec()
*
* @author MightyPork
*/
class VectProxy extends VectAdapter {
final Vect observed;
/**
* Protected, in order to enforce the use of view() method on Vec, which
* uses caching.
*
* @param observed
*/
public VectProxy(Vect observed) {
this.observed = observed;
}
@Override
protected Vect getSource()
{
return observed;
}
}