NPL::NPLTimer Struct Reference

List of all members.

Detailed Description

timer struct


Public Member Functions

 NPLTimer (const string &nplFile, const string &sCode, float fInterval)
 
Parameters:
fInterval,: interval in seconds

 NPLTimer (const string &nplFile, const string &sCode, DWORD dwInterval)
 
Parameters:
nInterval,: interval in milliseconds

void Change (int dueTime, int period)
 Changes the start time and the interval between method invocations for a timer, using 32-bit signed integers to measure time intervals.

Public Attributes

string m_nplFile
string m_sCode
DWORD m_nInterval
DWORD m_lastTick


Member Function Documentation

void NPL::NPLTimer::Change ( int  dueTime,
int  period 
)

Changes the start time and the interval between method invocations for a timer, using 32-bit signed integers to measure time intervals.

Parameters:
nIDEvent,: Specifies the timer to be destroyed.For nIDEvent<=0, they are reserved for internal uses can not be killed by this function. This value must be the same as the nIDEvent value passed to the SetTimer function that created the timer.
dueTime,: The amount of time to delay before the invoking the callback method specified when the Timer was constructed, in milliseconds. Specify zero (0) to restart the timer immediately.
period:The time interval between invocations of the callback method specified when the Timer was constructed, in milliseconds.


Generated on Mon Dec 1 14:34:43 2008 for NPL Scripting Reference for ParaEngine by  doxygen 1.5.2