com.jdwsoftware.wfh.model
Class Fish

java.lang.Object
  |
  +--com.jdwsoftware.wfh.model.Fish

public class Fish
extends java.lang.Object

Title: Woody's Fishing Hole

Description: Educational Fishing Game

Copyright: Copyright (C) 2003 JDW Software, LLC

Company: JDW Software, LLC

Basic fish model. Stores information about the image id to use for this fish, the current location and direction of the fish and the answer this fish is storing

Version:
$Revision: 1.4 $
Author:
Jim Woodgate

Constructor Summary
Fish()
          Default constructor
 
Method Summary
 Direction getDirection()
          Get the direction attribute
 int getImageIndex()
          Get the imageIndex attribute
 Location getLocation()
          Get the location attribute
 java.lang.String getValue()
          Get the value attribute
 void setDirection(Direction direction)
          Set the direction attribute
 void setImageIndex(int imageIndex)
          Set the imageIndex attribute
 void setLocation(Location location)
          Set the location attribute
 void setValue(java.lang.String value)
          Set the value attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fish

public Fish()
Default constructor

Method Detail

getDirection

public Direction getDirection()
Get the direction attribute

Returns:
direction

setDirection

public void setDirection(Direction direction)
Set the direction attribute

Parameters:
direction - new direction attribute

getImageIndex

public int getImageIndex()
Get the imageIndex attribute

Returns:
imageIndex

setImageIndex

public void setImageIndex(int imageIndex)
Set the imageIndex attribute

Parameters:
imageIndex - new imageIndex attribute

getLocation

public Location getLocation()
Get the location attribute

Returns:
location

setLocation

public void setLocation(Location location)
Set the location attribute

Parameters:
location - new location attribute

getValue

public java.lang.String getValue()
Get the value attribute

Returns:
value

setValue

public void setValue(java.lang.String value)
Set the value attribute

Parameters:
value - new value attribute