import java.util.*; import java.awt.*; public class object40 extends object29{ public object40(){ objnumber=40; } public void init(Global glbl){ global=glbl; if(image1==null){ squick=global.loadSound(global.Server, global.Directory+"14.au"); image1=global.loadImage(global.Server, global.Directory+"40"+global.Extention, global.show); image2=global.loadImage(global.Server, global.Directory+"40_1"+global.Extention, global.show); image=image1; } other=global.grid.next(0,0,25); } public void hit(){ if(other > -1){ if(global.playsound) squick.play(); if(global.grid.get(other)==25){ global.grid.set(other,1); image=image2; } else if(global.grid.get(other)==1){ global.grid.set(other,25); image=image1; } } int c=other%(global.WIDTH*global.STEPP); int h=other/(global.WIDTH*global.STEPP); global.boardwidth=-1; global.boardheight=-1; global.boardrow=-1; global.boardcol=-1; global.doboard=true; } }