edu.cmu.etc.jamodrum
Class DiskInputData
java.lang.Object
|
+--edu.cmu.etc.jamodrum.DiskInputData
- public class DiskInputData
- extends java.lang.Object
Any DiskListener
that is registered with the Input object
receives an instance of this class via its DiskListener.diskTurn(DiskInputData inData)
method.
Title: Jam-O-Drum
Description:
Copyright: Copyright (c) 2001
Company:
- Version:
- 1.0
- Author:
- Entertainment Technology Center
Constructor Summary |
DiskInputData(short inDisk,
boolean inClockwise)
This constructor is called by the Input object when passing an event to
its listeners. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mWhichDisk
short mWhichDisk
mTurningClockwise
boolean mTurningClockwise
DiskInputData
public DiskInputData(short inDisk,
boolean inClockwise)
- This constructor is called by the Input object when passing an event to
its listeners. There should be no need to create objects of this type.
getDiskIndex
public short getDiskIndex()
- Returns:
- The index of the disk which is being turned. The index is 1-based.
isTurningClockwise
public boolean isTurningClockwise()
- Returns:
true
if the disk is being turned clockwise, false
if it is being turned counterclockwise.