Class Fox

Fox

public class Fox

Represents a fox.

Version:
October 12, 2001
Author:
David Matuszek

Constructor Summary
Fox(Model model, int row, int column)
          Constructs a Fox in the given model, at the given position in the field.
 
Method Summary
(package private)  int decideMove()
          Controls the movement of the fox.
 

Constructor Detail

Fox

public Fox(Model model,
           int row,
           int column)
Constructs a Fox in the given model, at the given position in the field.
Parameters:
model - the model that controls this fox.
row - the row of the field containing this fox.
column - the column of the field containing this fox.
Method Detail

decideMove

int decideMove()
Controls the movement of the fox.
Returns:
the direction in which the fox wishes to move.


Generated by BlueJ