Back to project page Castle-Invaders.
The source code is released under:
GNU General Public License
If you think the Android project Castle-Invaders 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.noobygames.utils; /*from w w w. j a v a2 s .c om*/ import java.util.ArrayList; import com.noobygames.castleinvaders.GameObject; public class ArrayListUtils { public ArrayList<GameObject> moveObjectsX(ArrayList<GameObject> list, int deltaX){ if(list.isEmpty()) return null; if(deltaX == 0) return list; for(GameObject obj: list){ obj.position.x+=deltaX; return list; } return null; } }