Android Open Source - GameWorker Position






From Project

Back to project page GameWorker.

License

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.

Java Source Code

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;
    }

}




Java Source Code List

com.al.gameengine.Animation.java
com.al.gameengine.Background.java
com.al.gameengine.Direction.java
com.al.gameengine.GameEngine.java
com.al.gameengine.Position.java
com.al.gameengine.Scene.java
com.al.gameengine.sprite.GameView.java
com.al.gameengine.sprite.SpriteManager.java
com.al.gameengine.sprite.Sprite.java
com.al.gameworker.MainActivity.java