doomAppDelegate.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company.
  3. Copyright (C) 2009 Id Software, Inc.
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License
  6. as published by the Free Software Foundation; either version 2
  7. of the License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  15. */
  16. #import <UIKit/UIKit.h>
  17. #import <UIKit/UIAccelerometer.h>
  18. #import "MenuViewController.h"
  19. @class EAGLView;
  20. @interface gameAppDelegate : NSObject <UIApplicationDelegate, UIAccelerometerDelegate> {
  21. UIWindow *window;
  22. EAGLView *glView;
  23. CADisplayLink * displayLink;
  24. int lastAccelUpdateMsec;
  25. IBOutlet MenuViewController * mainMenuViewController;
  26. IBOutlet MenuViewController * mapMenuViewController;
  27. IBOutlet MenuViewController * creditsMenuViewController;
  28. IBOutlet MenuViewController * legalMenuViewController;
  29. IBOutlet MenuViewController * settingsMenuViewController;
  30. IBOutlet MenuViewController * controlsMenuViewController;
  31. IBOutlet MenuViewController * episodeMenuViewController;
  32. BOOL IBMenuVisible;
  33. }
  34. @property (nonatomic, retain) IBOutlet UIWindow *window;
  35. @property (nonatomic, retain) IBOutlet EAGLView *glView;
  36. @property (nonatomic, retain) IBOutlet CADisplayLink *displayLink;
  37. - (void)restartAccelerometerIfNeeded;
  38. - (void) SelectEpisode: (int) episode;
  39. - (void) PrepareForViewSwap;
  40. - (void) ResumeGame;
  41. - (void) NewGame;
  42. - (void) DemoGame;
  43. - (void) MainMenu;
  44. - (void) CreditsMenu;
  45. - (void) LegalMenu;
  46. - (void) playMap: (int) dataset: (int) episode: (int) map: (int) skill;
  47. - (void) GotoSupport;
  48. - (void) idSoftwareApps;
  49. - (void) SettingsMenu;
  50. - (void) ControlsMenu;
  51. - (void) HUDLayout;
  52. - (void) HideIB;
  53. extern gameAppDelegate * gAppDelegate;
  54. @end