org.concord.collisions.engine
Class CCTimer

java.lang.Object
  |
  +--javax.swing.Timer
        |
        +--org.concord.collisions.engine.CCTimer
All Implemented Interfaces:
java.io.Serializable

public class CCTimer
extends javax.swing.Timer

See Also:
Serialized Form

Field Summary
 int messageID
          messageID you can check source of ActionEvent and if it's instance of org.concord.collisions.engine.CCTimer, you can ask messageID field
 
Fields inherited from class javax.swing.Timer
listenerList
 
Constructor Summary
CCTimer(int delay, java.awt.event.ActionListener listener, int messageID)
          creates new instance of CCTimer
 
Methods inherited from class javax.swing.Timer
addActionListener, fireActionPerformed, getDelay, getInitialDelay, getListeners, getLogTimers, isCoalesce, isRepeats, isRunning, removeActionListener, restart, setCoalesce, setDelay, setInitialDelay, setLogTimers, setRepeats, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageID

public int messageID
messageID you can check source of ActionEvent and if it's instance of org.concord.collisions.engine.CCTimer, you can ask messageID field
Constructor Detail

CCTimer

public CCTimer(int delay,
               java.awt.event.ActionListener listener,
               int messageID)
creates new instance of CCTimer
Parameters:
delay - see javax.swing.Timer
listener - see javax.swing.Timer
messageID - message identifier. you can retrieve this value later
See Also:
Timer, ActionListener