Class Location

java.lang.Object
  |
  +--Location

public class Location
extends java.lang.Object
implements java.io.Serializable

Used to save data from run games. Note that not all fields are accessed by all other classes using this one.

Author:
Karen Stevens
See Also:
Serialized Form

Field Summary
 int index
          Which number was clicked.
 long passed
          Time passed between button clicks.
 long times
          Absolute time button was clicked.
 int x
          X-location of spot clicked.
 int y
          Y-location of spot clicked.
 
Constructor Summary
Location()
          Initialize all variables to zero.
Location(int a, int b, int i, long t, long p)
          Used to load and save data.
 
Method Summary
 void clearData()
          Reset all data to zero.
 void setData(int a, int b, long t)
          Set data to types listed
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

x

public int x
X-location of spot clicked.

y

public int y
Y-location of spot clicked.

index

public int index
Which number was clicked.

times

public long times
Absolute time button was clicked.

passed

public long passed
Time passed between button clicks.
Constructor Detail

Location

public Location()
Initialize all variables to zero.

Location

public Location(int a,
                int b,
                int i,
                long t,
                long p)
Used to load and save data.
Parameters:
a - X-coordinate.
b - Y-coordinate.
i - Index value.
t - Absolute time.
p - Time passed.
Method Detail

clearData

public void clearData()
Reset all data to zero.

setData

public void setData(int a,
                    int b,
                    long t)
Set data to types listed
Parameters:
a - X-coordinate.
b - Y-coordinate.
t - Absolute time.