LevelChange.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_LEVELCHANGE_H
  13. #define SE_INCL_LEVELCHANGE_H
  14. #ifdef PRAGMA_ONCE
  15. #pragma once
  16. #endif
  17. enum LevelChangePhase {
  18. // initial state
  19. LCP_NOCHANGE = 0,
  20. // ->initiation->
  21. LCP_INITIATED,
  22. // ->pre-change signalled->
  23. LCP_SIGNALLED,
  24. // ->change done->
  25. LCP_CHANGED,
  26. // ->post-change signalled->
  27. //LCP_NOCHANGE
  28. };
  29. extern LevelChangePhase _lphCurrent;
  30. class CRememberedLevel {
  31. public:
  32. CListNode rl_lnInSessionState; // for linking in list of all remembered levels
  33. CTString rl_strFileName; // file name of the level
  34. CTMemoryStream rl_strmSessionState; // saved session state
  35. };
  36. #endif /* include-once check. */