Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jdwsoftware.wfh.model
Class Direction  view Direction download Direction.java

java.lang.Object
  extended bycom.jdwsoftware.wfh.model.Direction

public class Direction
extends java.lang.Object

Title: Woody's Fishing Hole

Description: Educational Fishing Game

Copyright: Copyright (C) 2003 JDW Software, LLC

Company: JDW Software, LLC

The current direction the fish is heading.

Version:
$Revision: 1.6 $

Field Summary
private  float _dx
           
private  float _dy
           
private static java.lang.String COPYRIGHT
           
private static java.lang.String VERSION
           
 
Constructor Summary
Direction()
           
Direction(float dx, float dy)
           
 
Method Summary
 float getDX()
           
 float getDY()
           
 void setDX(float dx)
           
 void setDY(float dy)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

private static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

VERSION

private static final java.lang.String VERSION
See Also:
Constant Field Values

_dx

private float _dx

_dy

private float _dy
Constructor Detail

Direction

public Direction()

Direction

public Direction(float dx,
                 float dy)
Method Detail

getDX

public float getDX()

setDX

public void setDX(float dx)

getDY

public float getDY()

setDY

public void setDY(float dy)

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).