screen.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef _screens_h_
  2. #define _screens_h_
  3. //////////////////////////////////////////////////////////////////////////////
  4. //
  5. // Screen
  6. //
  7. //////////////////////////////////////////////////////////////////////////////
  8. class Screen : public IObject {
  9. public:
  10. virtual Image* GetImage() { return NULL; }
  11. virtual Pane* GetPane() { return NULL; }
  12. virtual WinPoint GetSize() { return WinPoint(800, 600); }
  13. virtual void OnFrame() {}
  14. };
  15. //////////////////////////////////////////////////////////////////////////////
  16. //
  17. // Screen Constructors
  18. //
  19. //////////////////////////////////////////////////////////////////////////////
  20. TRef<Screen> CreateTeamScreen(Modeler* pmodeler);
  21. TRef<Screen> CreateGameScreen(Modeler* pmodeler);
  22. TRef<Screen> CreateIntroScreen(Modeler* pmodeler);
  23. TRef<Screen> CreateNewGameScreen(Modeler* pmodeler);
  24. TRef<Screen> CreateGameOverScreen(Modeler* pmodeler);
  25. TRef<Screen> CreateLeaderBoardScreen(Modeler* pmodeler, ZString strCharacter);
  26. TRef<Screen> CreateZoneEventsScreen(Modeler* pmodeler);
  27. TRef<Screen> CreateZoneClubScreen(Modeler* pmodeler, Number * ptime);
  28. TRef<Screen> CreateSquadsScreen(Modeler* pmodeler, const char * szNameDudeX, int idZoneDudeX, const char * szSquad);
  29. TRef<Screen> CreateCharInfoScreen(Modeler* pmodeler, int idZone); // if id is NA, current player is used
  30. TRef<Screen> CreateHangarScreen(Modeler* pmodeler, const ZString& strNamespace);
  31. TRef<Screen> CreateTrainingScreen(Modeler* pmodeler);
  32. TRef<Screen> CreateTrainingSlideshow (Modeler* pmodeler, const ZString& strNamespace, int iMissionIndex);
  33. TRef<Screen> CreatePostTrainingSlideshow (Modeler* pmodeler, const ZString& strNamespace);
  34. TRef<Screen> CreateGameStartingScreen(Modeler* pmodeler);
  35. TRef<Screen> CreateVideoScreen(Modeler* pmodeler, bool bIntroOnly);
  36. TRef<IPopup> CreateMissionParametersPopup(Modeler* pmodeler);
  37. extern bool g_bQuickstart;
  38. extern bool g_bReloaded; // as in after AutoUpdate
  39. extern int g_civStart;
  40. extern char g_szCharName[c_cbName];
  41. extern char g_szCharPW[c_cbName];
  42. void LaunchFromHangar();
  43. #endif