Advertisement
Filipinex

CMacroPlast

Mar 19th, 2024
648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. import greenfoot.*;  
  2.  
  3. public class CMacroPlast extends CTrash
  4. {
  5.     public CMacroPlast()
  6.     {
  7.         super(2);
  8.     }
  9.    
  10.     public void ApplyOnFish(CFish fish)
  11.     {
  12.         //ak sa dotkne ryby
  13.         fish.TunrOffEating();//zamedzi sa moznost jedenia
  14.         this.getWorld().removeObject(this); //zmizne plast
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement