import java.util.*; import java.awt.*; // // Book // Disappears when all pages (70) are gone // // public class object71 extends object13{ long lasttime=0; boolean nomore=false; public object71(){ objnumber=71; methods[0]="hit"; Date dd=new Date(); lasttime=dd.getTime()+1000; } public void init(Global glbl){ global=glbl; nomore=false; image=global.loadImage(global.Server, global.Directory+"71"+global.Extention, global.show); sound=global.loadSound(global.Server, global.Directory+"71.au"); } public void execute(){ if(method.compareTo("hit")==0) eventje(); } // public void aftermove(){ public void eventje(){ int other=global.grid.next(0,0,70); System.out.println("there is still a page on the board? nr:"+other); if(other < 0){ if(global.playsound)sound.play(); other=global.grid.next(0,0,71); global.grid.set(other,1); nomore=true; // Change for a smaller region global.boardrow=-1; global.boardcol=-1; global.boardwidth=-1; global.boardheight=-1; global.doboard=true; } } }