Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (IGameObject obj : mObjects) {
- //stuff
- }
- java.util.ArrayList$ArrayListIterator 24 bytes java.util.ArrayList iterator
- int sz = mObjects.size();
- IGameObject gameObject = null;
- for (int i=0;i<sz;i++) {
- gameObject = mObjects.get(i);
- }
- for(i=0;i<MAX_GAME_OBJECTS;i++){
- if(isObjAlive[i]){
- // draw the object or anything else...
- }
- }
- for(i=0;i<MAX_GAME_OBJECTS;i++){
- if( ! isObjAlive[i]){
- // use the setters to customize your object for the new role...
- }
- }
Add Comment
Please, Sign In to add comment