Main Page   Packages   Alphabetical List   Compound List   File List   Compound Members  

FrameTrigger Class Reference

List of all members.

Detailed Description

This trigger is responsible for calling advanceFrame() on a GrameCanvas object.


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 & Destructor Documentation

FrameTrigger.FrameTrigger GameCanvas  g,
int  frameDelay
 

Constructor.

Parameters:
g Canvas for wich to trigger frame updates.
frameDelay time in MS between frame updates.


Member Function Documentation

void FrameTrigger.run  ) 
 

Starts the trigger running.

  • To be called by the thead start() function call.

void FrameTrigger.startTrigger  ) 
 

starts the trigger

void FrameTrigger.stopTrigger  ) 
 

Stops the trigger from functioning.

(stops execution of the thread)


Member Data Documentation

int FrameTrigger.frameDelay_ [private]
 

Time is miliseconds between frames.

GameCanvas FrameTrigger.game_
 

The GameCanvas where we call advanceFrame.

boolean FrameTrigger.stopped [private]
 

Value which is true if the thread is to be stopped.


The documentation for this class was generated from the following file:
Generated on Tue May 13 00:53:02 2003 for PACMAN by doxygen1.3