|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jdwsoftware.wfh.model.Location
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
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 |
public Location()
public Location(float x, float y)
x
- X locationy
- Y locationMethod Detail |
public float getX()
public void setX(float x)
x
- new X locationpublic float getY()
public void setY(float y)
y
- new Y locationpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |