import java.util.*; import java.awt.*; public class object30 extends object29{ public object30(){ objnumber=30; } public void init(Global glbl){ global=glbl; if(image1 == null){ image1=global.loadImage(global.Server, global.Directory+"30"+global.Extention, global.show); image2=global.loadImage(global.Server, global.Directory+"30_1"+global.Extention, global.show); squick=global.loadSound(global.Server, global.Directory+"14.au"); image=image1; } other=global.grid.next(0,0,15); } public void hit(){ if(other > -1){ if(global.playsound) squick.play(); if(global.grid.get(other)==15){ global.grid.set(other,1); image=image2; } else if(global.grid.get(other)==1){ global.grid.set(other,15); 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; } }