Advertisement
Guest User

particleAt(x,y)

a guest
Apr 21st, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. public static Particle particleAt(int x,int y){
  2.         for(Iterator<Particle> iterator=particles.iterator();iterator.hasNext();){
  3.             Particle particle=iterator.next();
  4.             if(particle.x==x&&particle.y==y) return particle;
  5.         }
  6.         return null;
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement