35#import <Quartz/Quartz.h>
38#define MINIMUM_GAME_TICK 0.25
46#define OO_USE_FULLSCREEN_CONTROLLER OOLITE_MAC_OS_X
85#if OO_USE_FULLSCREEN_CONTROLLER
93 unsigned int width, height;
96 NSDictionary *originalDisplayMode;
97 NSDictionary *fullscreenDisplayMode;
99 BOOL stayInFullScreenMode;
105- (void) applicationDidFinishLaunching:(NSNotification *)notification;
107- (BOOL) isGamePaused;
108- (void) setGamePaused:(BOOL)value;
112- (void) setMouseInteractionModeForFlight;
113- (void) setMouseInteractionModeForUIWithMouseInteraction:(BOOL)interaction;
115- (void) performGameTick:(
id)sender;
118- (IBAction) showLogAction:(
id)sender;
119- (IBAction) showLogFolderAction:(
id)sender;
120- (IBAction) showSnapshotsAction:(
id)sender;
121- (IBAction) showAddOnsAction:(
id)sender;
122- (void) recenterVirtualJoystick;
125- (void) exitAppWithContext:(NSString *)context;
126- (void) exitAppCommandQ;
128- (NSString *) playerFileToLoad;
129- (void) setPlayerFileToLoad:(NSString *)filename;
131- (NSString *) playerFileDirectory;
132- (void) setPlayerFileDirectory:(NSString *)filename;
134- (void) loadPlayerIfRequired;
136- (void) beginSplashScreen;
137- (void) logProgress:(NSString *)message;
139- (void) debugLogProgress:(NSString *)format, ... OO_TAKES_FORMAT_STRING(1, 2);
140- (void) debugLogProgress:(NSString *)format arguments:(va_list)arguments OO_TAKES_FORMAT_STRING(1, 0);
141- (void) debugPushProgressMessage:(NSString *)format, ... OO_TAKES_FORMAT_STRING(1, 2);
142- (void) debugPopProgressMessage;
144- (void) endSplashScreen;
146- (void) startAnimationTimer;
147- (void) stopAnimationTimer;
152- (void)windowDidResize:(NSNotification *)aNotification;
154- (void)setUpBasicOpenGLStateWithSize:(NSSize)viewSize;
156- (NSURL *) snapshotsURLCreatingIfNeeded:(BOOL)create;
161@interface GameController (FullScreen)
163#if OO_USE_FULLSCREEN_CONTROLLER
165- (IBAction) toggleFullScreenAction:(
id)sender;
168- (void) setFullScreenMode:(BOOL)value;
174- (BOOL) setDisplayWidth:(
unsigned int) d_width Height:(
unsigned int)d_height Refresh:(
unsigned int) d_refresh;
175- (NSDictionary *) findDisplayModeForWidth:(
unsigned int)d_width Height:(
unsigned int) d_height Refresh:(
unsigned int) d_refresh;
179- (void) pauseFullScreenModeToPerform:(
SEL) selector onTarget:(
id) target;
189#define OO_DEBUG_PROGRESS(...) [[GameController sharedController] debugLogProgress:__VA_ARGS__]
190#define OO_DEBUG_PUSH_PROGRESS(...) [[GameController sharedController] debugPushProgressMessage:__VA_ARGS__]
191#define OO_DEBUG_POP_PROGRESS() [[GameController sharedController] debugPopProgressMessage]
193#define OO_DEBUG_PROGRESS(...) do {} while (0)
194#define OO_DEBUG_PUSH_PROGRESS(...) do {} while (0)
195#define OO_DEBUG_POP_PROGRESS() do {} while (0)
void exitFullScreenMode()
NSUInteger indexOfCurrentDisplayMode()
IBOutlet NSTextField * splashProgressTextField
IBOutlet NSWindow * gameWindow
NSString * playerFileToLoad
NSMutableArray * expansionPathsToInclude
OOMouseInteractionMode _resumeMode
NSTimeInterval last_timeInterval
NSString * playerFileDirectory
NSTimeInterval _animationTimerInterval
OOMouseInteractionMode _mouseMode
IBOutlet MyOpenGLView * gameView
IBOutlet PDFView * helpView
IBOutlet NSView * splashView
OOFullScreenController * _fullScreenController
IBOutlet NSMenu * dockMenu