Posted by Tai Tue 20th Mar 2007 20:50 - Syntax is Java - 46 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
-
-
public int getObjectAt(int x, int y) {
-
for (int i = 0; i < 4; i++) {
-
try {
-
mb ground = jf.n.w[i] [x - je.ib][y - ad.G];
-
-
if (ground != null) {
-
if (ground.L != null) {
-
for (Obj obj : ground.L)
-
if (obj != null && obj.p != -1)
-
return obj.p;
-
}
-
if (ground.cc != null && ground.cc.o != -1)
-
return ground.cc.o;
-
if (ground.o != null && ground.o.f != -1)
-
return ground.o.f;
-
if (ground.jd != null && ground.jd.g != -1)
-
return ground.jd.g;
-
if (ground.hf != null && ground.hf.k != -1)
-
return ground.hf.k;
-
}
-
} catch ( e) { }
-
}
-
return -1;
-
}
PermaLink to this entry https://pastebin.co.uk/12099
Posted by Tai Tue 20th Mar 2007 20:50 - Syntax is Java - 46 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
Comments: 0