All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface gpsys.lawnmower.LawnObserver

public interface LawnObserver
Allows monitoirng of changes to the Lawn.

Author:
Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
See Also:
Lawn

Method Index

 o lawnCutting(int, int)
Called when the square at the specified coordinates is being cut.
 o lawnGrown()
Called when the entire lawn regrows.

Methods

 o lawnGrown
 public abstract void lawnGrown()
Called when the entire lawn regrows.

 o lawnCutting
 public abstract void lawnCutting(int x,
                                  int y)
Called when the square at the specified coordinates is being cut.

Parameters:
x - The X-coordinate of the lawn square being cut.
y - The Y-coordinate of the lawn square being cut.

All Packages  Class Hierarchy  This Package  Previous  Next  Index