import java.util.*; import java.awt.*; // // // End point from animal matching // // // Moved from 224 to 225 // public class object225 extends object{ public object225(){ objnumber=225; methods[0]="hit"; } public void init(Global glbl){ global=glbl; image=global.loadImage(global.Server,global.Directory+"224"+global.Extention,global.show); sound=global.loadSound(global.Server,global.Directory+"224.au"); } public void execute(){ if(method.compareTo("hit")==0) hit(); } public void hit(){ // check if there are any animals left int c1=global.grid.next(0,0,43); int c2=global.grid.next(0,0,44); int c3=global.grid.next(0,0,179); int c4=global.grid.next(0,0,199); if(c1 > 0 || c2 > 0 || c3 > 0 || c4 > 0) global.setInfo("Match all animals"); else{ if(global.playsound)sound.play(); global.grid.set(global.grid.next(0,0,225),1); global.doboard=true; } } }