Back to project page Marble-Run.
The source code is released under:
Apache License
If you think the Android project Marble-Run 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 nttu.edu.entity; /* www.j a v a 2s. c o m*/ public abstract class Terrain extends Entity { public float x; public float y; protected float defaultX; protected float defaultY; public Terrain(float x, float y){ this.x = x; this.y = y; this.defaultX = x; this.defaultY = y; } public void reset(){ this.x = defaultX; this.y = defaultY; } }