Back to project page rpg.
The source code is released under:
Apache License
If you think the Android project rpg listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.aschyiel.rpg; //from w ww . j a v a2 s .co m /** * An immutable object - records a pixel location (x,y) within the AndEngine space. */ public final class Coords { private final float x; private final float y; public Coords( final int x, final int y ) { this( (float) x, (float) y ); } public Coords( final float x, final float y ) { this.x = x; this.y = y; } public float getX() { return x; } public float getY() { return y; } @Override public String toString() { return "{ x: "+ x +", y: "+ y +" }"; } }