All Packages Class Hierarchy This Package Previous Next Index
Class pinball.log.BallStat
java.lang.Object

+pinball.log.BallStat
 public class BallStat
 extends Object
The statistics for a ball. Finds the time in play, and number of hits.

BallStat(int, long, int)
 Creats a statistics object for the ball.

hits()
 Get the number of hits.

number()
 Get the ball's number.

time()
 Get the time in ball.
BallStat
public BallStat(int number,
long time,
int hits)
 Creats a statistics object for the ball.
 Parameters:
 number  ball number
 time  time in play
 hits  number of hits for the ball.
number
public int number()
 Get the ball's number.
 Returns:
 ball number.
time
public long time()
 Get the time in ball.
 Returns:
 time in play.
hits
public int hits()
 Get the number of hits.
 Returns:
 amount of hits.
All Packages Class Hierarchy This Package Previous Next Index