All Packages Class Hierarchy This Package Previous Next Index
Class pinball.part.BallReturn
java.lang.Object
|
+----pinball.part.BallReturn
- public class BallReturn
- extends Object
Used to detect that the ball has gone out of play.
-
awaitingResult
- Is the ball return waiting for a read to have taken place.
-
ballInDrain
- Value for when the ball is in the drain.
-
BALLINDRAIN
- Code to detect ball's in the drain.
-
ballIsInDrain
- Is the ball in the drain.
-
data
- Data from the port.
-
drain
- Used to control the ballReturn.
-
lastTimePoll
- The last time the ball return polled the machine.
-
pollTime
- Number of milliseconds between polls.
-
returnBall
- Value to eject the ball from the drain.
-
RETURNBALL
- Code used to return the ball.
-
BallReturn(DataIO)
-
Controls the ball return of the pinball machine.
-
ballInDrain()
- Checks if the ball is in the drain.
-
reset()
- Make the ball return plunger go back down.
-
returnBall()
-
Return the ball to the system.
drain
private static transient DataIO drain
- Used to control the ballReturn.
ballInDrain
private BitSet ballInDrain
- Value for when the ball is in the drain.
returnBall
private BitSet returnBall
- Value to eject the ball from the drain.
ballIsInDrain
private boolean ballIsInDrain
- Is the ball in the drain.
data
private byte data[]
- Data from the port.
BALLINDRAIN
private final int BALLINDRAIN
- Code to detect ball's in the drain.
RETURNBALL
private final int RETURNBALL
- Code used to return the ball.
awaitingResult
private boolean awaitingResult
- Is the ball return waiting for a read to have taken place.
lastTimePoll
private long lastTimePoll
- The last time the ball return polled the machine.
pollTime
private long pollTime
- Number of milliseconds between polls.
BallReturn
public BallReturn(DataIO dataIO)
- Controls the ball return of the pinball machine.
- Parameters:
- dataIO - the device to talk to for controlling the drain.
returnBall
public void returnBall()
- Return the ball to the system. Flushes the input and output of the port.
reset
public void reset()
- Make the ball return plunger go back down.
ballInDrain
public boolean ballInDrain()
- Checks if the ball is in the drain.
- Parameters:
- return - ball in drain status.
All Packages Class Hierarchy This Package Previous Next Index