|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Animal | +--Sessile
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 |
public Sessile()
Method Detail |
public Location makeMove(Location l, World w)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |