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.


Constructor Index

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

Method Index

 o hits()
Get the number of hits.
 o number()
Get the ball's number.
 o time()
Get the time in ball.

Constructors

 o 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.

Methods

 o number
 public int number()
Get the ball's number.

Returns:
ball number.
 o time
 public long time()
Get the time in ball.

Returns:
time in play.
 o hits
 public int hits()
Get the number of hits.

Returns:
amount of hits.

All Packages  Class Hierarchy  This Package  Previous  Next  Index