import java.util.*; import java.awt.*; //public class object1000 implements oo{ public class object1000 extends object{ int list[]=new int[1000]; int list2[]=new int[1000]; int listnr=0; object1000(){ objnumber=1000; methods[0]="hit"; methods[1]="resetevent"; } public void init(Global glbl){ global=glbl; image=global.loadImage(global.Server, global.Directory+"1000"+global.Extention, global.show); sound=global.loadSound(global.Server, global.Directory+"1000.au"); for(int i=0; i<1000;i++){ list[i]=-1; list2[i]=-1; } int r=0; // Scan for all objects between 1000 and 1999 for(int x=0;x999 && r<2000){ list2[listnr]=r; list[listnr++]=(y*global.WIDTH*global.STEPP)+(x*global.STEPP); } } } } public void execute(){ if(method.compareTo("hit")==0){ hit(); return; } } public void hit(){ int x,y; x=global.player.getX(); y=global.player.getY(); int r=0; if(global.dir == -global.STEPP){ x-=global.STEPP; } // Right if(global.dir == global.STEPP){ x+=global.STEPP; } // down if(global.dir == global.STEPP*global.WIDTH){ y+=global.STEPP; } // up if(global.dir == -global.STEPP*global.WIDTH){ y-=global.STEPP; } r=(y*global.WIDTH*global.STEPP)+(x*global.STEPP); for(int ll=0;ll