Class Fish

java.lang.Object
  |
  +--Fish

class Fish
extends java.lang.Object

FishWorld, a point and click game with fishes
Copyright (c) 2001,2002 by Stephan Uhlmann <su@su2.info>
published under the GPL


Field Summary
(package private)  int direction
           
(package private)  int dying
           
(package private)  int height
           
(package private)  int speed
           
(package private)  java.awt.Image swimImage
           
(package private)  int type
           
(package private)  int width
           
(package private)  int x
           
(package private)  int y
           
 
Constructor Summary
(package private) Fish()
          constructor
 
Method Summary
(package private)  boolean isHit(int sx, int sy)
          check whether fish is hit by shot at x/y
(package private)  void kill()
          kills the fish by setting it to "dying"
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

type

int type

direction

int direction

x

int x

y

int y

width

int width

height

int height

speed

int speed

dying

int dying

swimImage

java.awt.Image swimImage
Constructor Detail

Fish

Fish()
constructor
Method Detail

isHit

boolean isHit(int sx,
              int sy)
check whether fish is hit by shot at x/y

kill

void kill()
kills the fish by setting it to "dying"