50 lines
715 B
C++
50 lines
715 B
C++
#ifndef _PUREDELAY_HPP_
|
|
#define _PUREDELAY_HPP_
|
|
#include <common/windows.hpp>
|
|
#include <common/fileio.hpp>
|
|
|
|
class PureDelay
|
|
{
|
|
public:
|
|
PureDelay(void);
|
|
~PureDelay();
|
|
DWORD readDelay(FileIO &musFile);
|
|
DWORD currentTimeDelay(void)const;
|
|
DWORD deltaTicks(void)const;
|
|
void resetDelay(void);
|
|
private:
|
|
DWORD mCurrentTimeDelay;
|
|
DWORD mDeltaTicks;
|
|
};
|
|
|
|
inline
|
|
PureDelay::PureDelay(void)
|
|
: mCurrentTimeDelay(0L), mDeltaTicks(0L)
|
|
{
|
|
}
|
|
|
|
inline
|
|
PureDelay::~PureDelay()
|
|
{
|
|
}
|
|
|
|
inline
|
|
DWORD PureDelay::currentTimeDelay(void)const
|
|
{
|
|
return mCurrentTimeDelay;
|
|
}
|
|
|
|
inline
|
|
DWORD PureDelay::deltaTicks(void)const
|
|
{
|
|
return mDeltaTicks;
|
|
}
|
|
|
|
inline
|
|
void PureDelay::resetDelay(void)
|
|
{
|
|
mCurrentTimeDelay=0;
|
|
mDeltaTicks=0;
|
|
}
|
|
#endif
|