Class Sessile

java.lang.Object
  |
  +--Animal
        |
        +--Sessile
Direct Known Subclasses:
LongLivedSessile, ShortLivedSessile

public abstract class Sessile
extends Animal

abstract class which defines makeMove() for all sessile animals


Constructor Summary
Sessile()
           
 
Method Summary
 Location makeMove(Location l, World w)
          function returns new Location (position) to move to for an animal; if there is nowhere legal to move, then the function returns null; if an animal is sessile, then the function returns null;
 
Methods inherited from class Animal
getAge, getmaxAge, getPrintChar, incrAge, setmaxAge, timeToDie
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sessile

public Sessile()
Method Detail

makeMove

public Location makeMove(Location l,
                         World w)
Description copied from class: Animal
function returns new Location (position) to move to for an animal; if there is nowhere legal to move, then the function returns null; if an animal is sessile, then the function returns null;
Overrides:
makeMove in class Animal
Tags copied from class: Animal
Returns:
Location for move