Public Member Functions | |
FrameTrigger (GameCanvas g, int frameDelay) | |
Constructor. | |
void | stopTrigger () |
Stops the trigger from functioning. | |
void | startTrigger () |
starts the trigger | |
void | run () |
Starts the trigger running. | |
Public Attributes | |
GameCanvas | game_ |
The GameCanvas where we call advanceFrame. | |
Private Attributes | |
int | frameDelay_ |
Time is miliseconds between frames. | |
boolean | stopped |
Value which is true if the thread is to be stopped. |
|
Constructor.
|
|
Starts the trigger running.
|
|
starts the trigger
|
|
Stops the trigger from functioning. (stops execution of the thread) |
|
Time is miliseconds between frames.
|
|
The GameCanvas where we call advanceFrame.
|
|
Value which is true if the thread is to be stopped.
|