com.jdwsoftware.wfh.model
Class Location

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

public class Location
extends java.lang.Object

Title: Woody's Fishing Hole

Description: Educational Fishing Game

Copyright: Copyright (C) 2003 JDW Software, LLC

Company: JDW Software, LLC

Simple class stores the x and y locations of another object

Version:
$Revision: 1.4 $
Author:
Jim Woodgate

Constructor Summary
Location()
          Default constructor
Location(float x, float y)
          Constructor with parameters
 
Method Summary
 float getX()
          Get the value of the X location
 float getY()
          Get the value of the Y location
 void setX(float x)
          Set the value of the X location
 void setY(float y)
          Set the value of the Y location
 java.lang.String toString()
          Display the classname and values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Location

public Location()
Default constructor


Location

public Location(float x,
                float y)
Constructor with parameters

Parameters:
x - X location
y - Y location
Method Detail

getX

public float getX()
Get the value of the X location

Returns:
X location

setX

public void setX(float x)
Set the value of the X location

Parameters:
x - new X location

getY

public float getY()
Get the value of the Y location

Returns:
Y location

setY

public void setY(float y)
Set the value of the Y location

Parameters:
y - new Y location

toString

public java.lang.String toString()
Display the classname and values

Overrides:
toString in class java.lang.Object
Returns:
String representation of class