1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#include "class.h"
class con_timer : public Class
{
public:
class Element
{
public:
Class *obj;
int inttime;
};
private:
Container<con_timer::Element> m_Elements;
bool m_bDirty;
int m_inttime;
public:
con_timer();
void AddElement(Class *e, int inttime);
void RemoveElement(Class *e);
Class *GetNextElement(int& foundTime);
void SetDirty(void);
bool IsDirty(void);
void SetTime(int inttime);
#if defined(ARCHIVE_SUPPORTED)
static void ArchiveElement(class Archiver& arc, Element *e);
void Archive(class Archiver &arc) override;
#endif
};
inline void con_timer::SetDirty(void)
{
m_bDirty = true;
};
inline bool con_timer::IsDirty(void)
{
return m_bDirty;
};
inline void con_timer::SetTime(int inttime)
{
m_inttime = inttime;
m_bDirty = true;
}
|