All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.Location

java.lang.Object
   |
   +----pinball.player.Location

public class Location
extends Object
Used to define the location of an object. Used by flippers at the moment.


Constructor Index

 o Location()
Make a new location.
 o Location(int, int)
Make a new location.

Method Index

 o x()
Get the x location of the object.
 o x(int)
X location.
 o y()
Get the y location of the object.
 o y(int)
Y location.

Constructors

 o Location
 public Location(int x,
                 int y)
Make a new location.

 o Location
 public Location()
Make a new location. Default is -1,-1.

Methods

 o x
 public void x(int x)
X location.

Parameters:
x - set x location.
 o y
 public void y(int y)
Y location.

Parameters:
y - set y location.
 o x
 public int x()
Get the x location of the object.

Returns:
x location.
 o y
 public int y()
Get the y location of the object.

Returns:
y location.

All Packages  Class Hierarchy  This Package  Previous  Next  Index