import java.util.*; import java.awt.*; // // Pair object ---> 200 with 201 // // Baloon & needle // public class object200 extends object{ General general; int state=0; public object200(){ objnumber=200; methods[2]="hit"; } public void init(Global glbl){ global=glbl; image=global.loadImage(global.Server, global.Directory+"200"+global.Extention, global.show); general=new General(global,getNr()); } public void execute(){ if(method.compareTo("hit")==0) hit(); } public void hit(){ global.PLAYERSTATE=0; global.pushbag(200); global.setInfo("You have a needle"); state=general.throwit(state); global.freeze=false; global.aftermoves=true; state=33; } public void it(){ if(global.grid.get(global.player.get(),global.dir) != -1){ global.player.set(global.dir); global.State=global.WALK; } } }