import java.util.*; import java.awt.*; public class object201 extends object{ General general; int state=0; public object201(){ objnumber=201; methods[0]="hit"; } public void init(Global glbl){ global=glbl; image=global.loadImage(global.Server, global.Directory+"201"+global.Extention, global.show); sound=global.loadSound(global.Server, global.Directory+"200.au"); general=new General(global,201); } public void execute(){ if(method.compareTo("hit")==0) hit(); } public void hit(){ //System.out.println("HITTING OBJECT201"); global.PLAYERSTATE=0; //System.out.println("HITTING OBJECT201 inbag check"); if(global.inbag(200)){ global.popbag(200); if(global.playsound)sound.play(); state=general.throwit(state); global.freeze=false; global.aftermoves=true; state=33; }else{ global.setInfo("You need a needle"); global.freeze=false; global.aftermoves=true; // state=33; } } }