Guest User

Untitled

a guest
Jan 17th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. for (IGameObject obj : mObjects) {
  2. //stuff
  3. }
  4.  
  5. java.util.ArrayList$ArrayListIterator 24 bytes java.util.ArrayList iterator
  6.  
  7. int sz = mObjects.size();
  8. IGameObject gameObject = null;
  9. for (int i=0;i<sz;i++) {
  10. gameObject = mObjects.get(i);
  11. }
  12.  
  13. for(i=0;i<MAX_GAME_OBJECTS;i++){
  14. if(isObjAlive[i]){
  15. // draw the object or anything else...
  16. }
  17. }
  18.  
  19. for(i=0;i<MAX_GAME_OBJECTS;i++){
  20. if( ! isObjAlive[i]){
  21. // use the setters to customize your object for the new role...
  22. }
  23. }
Add Comment
Please, Sign In to add comment