model.fish
Class GenericFish

java.lang.Object
  extended by sysModel.fish.AFish
      extended by model.fish.GenericFish
All Implemented Interfaces:
java.lang.Cloneable, java.util.Observer
Direct Known Subclasses:
SlowFish

public class GenericFish
extends AFish

Class for a generic fish.

Author:
Mathias G. Ricken

Field Summary
 
Fields inherited from class sysModel.fish.AFish
_fishColor, _fishDisplay, _probOfBreeding, _probOfDying
 
Constructor Summary
GenericFish(java.awt.Color fishColor)
          Create a new generic fish.
 
Method Summary
protected  void move()
          Carry out movement behavior for the fish.
 
Methods inherited from class sysModel.fish.AFish
act, age, breed, clone, die, draw, getColor, paint, setLocalEnvironment, setProbOfBreeding, setProbOfDying, toString, tryBreedFwd, tryMoveFwd, turnLeft, turnLeft, turnRight, turnRight, update
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericFish

public GenericFish(java.awt.Color fishColor)
Create a new generic fish.

Parameters:
fishColor - color of the fish
Method Detail

move

protected void move()
Carry out movement behavior for the fish.

Specified by:
move in class AFish