ChangeableRT.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. #ifndef SE_INCL_CHANGEABLERT_H
  13. #define SE_INCL_CHANGEABLERT_H
  14. #ifdef PRAGMA_ONCE
  15. #pragma once
  16. #endif
  17. /*
  18. * Object that can change in time.
  19. */
  20. class ENGINE_API CChangeableRT {
  21. private:
  22. TIME ch_LastChangeTime; // last time this object has been changed
  23. public:
  24. /* Constructor. */
  25. CChangeableRT(void);
  26. /* Mark that something has changed in this object. */
  27. void MarkChanged(void);
  28. /* Test if some updateable object is up to date with this changeable. */
  29. BOOL IsUpToDate(const CUpdateableRT &ud) const;
  30. };
  31. #endif /* include-once check. */