mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-17 07:03:02 -04:00
Added serverUtility library
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// RecentMaxSyncedValue.h
|
||||
//
|
||||
// Copyright 2004 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#ifndef INCLUDED_RecentMaxSyncedValue_H
|
||||
#define INCLUDED_RecentMaxSyncedValue_H
|
||||
|
||||
class RecentMaxSyncedValue
|
||||
{
|
||||
public:
|
||||
RecentMaxSyncedValue(float value, int checkIntervalMs, int fudgeIntervalMs);
|
||||
float getLastSetValue() const;
|
||||
float getRecentMaximum(uint32 curSyncStamp);
|
||||
void setValue(float value, uint32 curSyncStamp);
|
||||
|
||||
private:
|
||||
RecentMaxSyncedValue();
|
||||
RecentMaxSyncedValue(RecentMaxSyncedValue const &);
|
||||
RecentMaxSyncedValue &operator=(RecentMaxSyncedValue const &);
|
||||
|
||||
float m_maximum;
|
||||
float m_oldMaximum;
|
||||
uint32 m_changeSyncStamp;
|
||||
int const m_checkIntervalMs;
|
||||
int const m_fudgeIntervalMs;
|
||||
};
|
||||
|
||||
// ======================================================================
|
||||
|
||||
#endif // INCLUDED_RecentMaxSyncedValue_H
|
||||
|
||||
Reference in New Issue
Block a user