Back to project page GameWorker.
The source code is released under:
Apache License
If you think the Android project GameWorker 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 com.al.gameengine; /* w w w . j a v a2 s . c o m*/ /** * Class that holds the position value for each sprite. * @author AL * */ public class Position { //The X variable of the position. private int x; //The Y variable of the position. private int y; public Position() { x = 0; y = 0; } public Position(int x, int y) { this.x = x; this.y = y; } public int getX() { return x; } public void setX(int x) { this.x = x; } public int getY() { return y; } public void setY(int y) { this.y = y; } }