35#import <Quartz/Quartz.h>
38#define MINIMUM_GAME_TICK 0.25
41#define MINIMUM_ANIMATION_TICK 0.0041667
49#define OO_USE_FULLSCREEN_CONTROLLER OOLITE_MAC_OS_X
88#if OO_USE_FULLSCREEN_CONTROLLER
96 unsigned int width, height;
99 NSDictionary *originalDisplayMode;
100 NSDictionary *fullscreenDisplayMode;
102 BOOL stayInFullScreenMode;
108- (void) applicationDidFinishLaunching:(NSNotification *)notification;
110- (BOOL) isGamePaused;
111- (void) setGamePaused:(BOOL)value;
115- (void) setMouseInteractionModeForFlight;
116- (void) setMouseInteractionModeForUIWithMouseInteraction:(BOOL)interaction;
118- (void) performGameTick:(
id)sender;
121- (IBAction) showLogAction:(
id)sender;
122- (IBAction) showLogFolderAction:(
id)sender;
123- (IBAction) showSnapshotsAction:(
id)sender;
124- (IBAction) showAddOnsAction:(
id)sender;
125- (void) recenterVirtualJoystick;
128- (void) exitAppWithContext:(NSString *)context;
129- (void) exitAppCommandQ;
131- (NSString *) playerFileToLoad;
132- (void) setPlayerFileToLoad:(NSString *)filename;
134- (NSString *) playerFileDirectory;
135- (void) setPlayerFileDirectory:(NSString *)filename;
137- (void) loadPlayerIfRequired;
139- (void) beginSplashScreen;
140- (void) logProgress:(NSString *)message;
142- (void) debugLogProgress:(NSString *)format, ... OO_TAKES_FORMAT_STRING(1, 2);
143- (void) debugLogProgress:(NSString *)format arguments:(va_list)arguments OO_TAKES_FORMAT_STRING(1, 0);
144- (void) debugPushProgressMessage:(NSString *)format, ... OO_TAKES_FORMAT_STRING(1, 2);
145- (void) debugPopProgressMessage;
147- (void) endSplashScreen;
149- (void) startAnimationTimer;
150- (void) stopAnimationTimer;
155- (void)windowDidResize:(NSNotification *)aNotification;
157- (void)setUpBasicOpenGLStateWithSize:(NSSize)viewSize;
159- (NSURL *) snapshotsURLCreatingIfNeeded:(BOOL)create;
164@interface GameController (FullScreen)
166#if OO_USE_FULLSCREEN_CONTROLLER
168- (IBAction) toggleFullScreenAction:(
id)sender;
171- (void) setFullScreenMode:(BOOL)value;
177- (BOOL) setDisplayWidth:(
unsigned int) d_width Height:(
unsigned int)d_height Refresh:(
unsigned int) d_refresh;
178- (NSDictionary *) findDisplayModeForWidth:(
unsigned int)d_width Height:(
unsigned int) d_height Refresh:(
unsigned int) d_refresh;
182- (void) pauseFullScreenModeToPerform:(
SEL) selector onTarget:(
id) target;
192#define OO_DEBUG_PROGRESS(...) [[GameController sharedController] debugLogProgress:__VA_ARGS__]
193#define OO_DEBUG_PUSH_PROGRESS(...) [[GameController sharedController] debugPushProgressMessage:__VA_ARGS__]
194#define OO_DEBUG_POP_PROGRESS() [[GameController sharedController] debugPopProgressMessage]
196#define OO_DEBUG_PROGRESS(...) do {} while (0)
197#define OO_DEBUG_PUSH_PROGRESS(...) do {} while (0)
198#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