Back to project page AndroidShooter.
The source code is released under:
GNU General Public License
If you think the Android project AndroidShooter 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 jonathan.geoffroy.shooter.model; // w w w .j a v a 2 s.c om import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.utils.Pool.Poolable; public class Bullet implements Poolable { Vector2 position; public Bullet() { position = new Vector2(); } public void initialize(float x, float y) { position.x = x; position.y = y; } @Override public void reset() {} public Vector2 getPosition() { return position; } public void setPosition(Vector2 position) { this.position = position; } }