32#if OOLITE_MAC_COCOA_UI
33#import <Quartz/Quartz.h>
36#define MINIMUM_GAME_TICK 0.25
39#define MINIMUM_ANIMATION_TICK 0.0041667
45#define OO_USE_FULLSCREEN_CONTROLLER OOLITE_MAC_COCOA_UI
49#if OOLITE_MAC_COCOA_UI
82#if OO_USE_FULLSCREEN_CONTROLLER
90 unsigned int width, height;
93 NSDictionary* originalDisplayMode;
94 NSDictionary* fullscreenDisplayMode;
96 BOOL stayInFullScreenMode;
97 BOOL _finishedLaunching;
103- (void)applicationDidFinishLaunching:(NSNotification*)notification;
104- (BOOL)finishedLaunching;
107- (void)setGamePaused:(BOOL)value;
118- (void)setEcoQoS:(BOOL)efficiencyModeRequested;
122- (void)setMouseInteractionModeForFlight;
123- (void)setMouseInteractionModeForUIWithMouseInteraction:(BOOL)interaction;
125- (void)performGameTick:(
id)sender;
127#if OOLITE_MAC_COCOA_UI
128- (IBAction)showLogAction:(
id)sender;
129- (IBAction)showLogFolderAction:(
id)sender;
130- (IBAction)showSnapshotsAction:(
id)sender;
131- (IBAction)showAddOnsAction:(
id)sender;
132- (void)recenterVirtualJoystick;
135- (void)exitAppWithContext:(NSString*)context;
136- (void)exitAppCommandQ;
139- (void)setPlayerFileToLoad:(NSString*)filename;
142- (void)setPlayerFileDirectory:(NSString*)filename;
147- (void)logProgress:(NSString*)message;
149- (void)debugLogProgress:(NSString*)format, ... OO_TAKES_FORMAT_STRING(1, 2);
150- (void)debugLogProgress:(NSString*)format arguments:(va_list)arguments OO_TAKES_FORMAT_STRING(1, 0);
151- (void)debugPushProgressMessage:(NSString*)format, ... OO_TAKES_FORMAT_STRING(1, 2);
152- (void)debugPopProgressMessage;
162- (void)windowDidResize:(NSNotification*)aNotification;
164- (NSURL*)snapshotsURLCreatingIfNeeded:(BOOL)create;
168@interface GameController (FullScreen)
170#if OO_USE_FULLSCREEN_CONTROLLER
171#if OOLITE_MAC_COCOA_UI
172- (IBAction)toggleFullScreenAction:(
id)sender;
175- (void)setFullScreenMode:(BOOL)value;
181- (BOOL)setDisplayWidth:(
unsigned int)d_width Height:(
unsigned int)d_height Refresh:(
unsigned int)d_refresh;
182- (NSDictionary*)findDisplayModeForWidth:(
unsigned int)d_width Height:(
unsigned int)d_height Refresh:(
unsigned int)d_refresh;
186- (void)pauseFullScreenModeToPerform:(
SEL)selector onTarget:(
id)target;
194#define OO_DEBUG_PROGRESS(...) [[GameController sharedController] debugLogProgress:__VA_ARGS__]
195#define OO_DEBUG_PUSH_PROGRESS(...) [[GameController sharedController] debugPushProgressMessage:__VA_ARGS__]
196#define OO_DEBUG_POP_PROGRESS() [[GameController sharedController] debugPopProgressMessage]
198#define OO_DEBUG_PROGRESS(...) \
201#define OO_DEBUG_PUSH_PROGRESS(...) \
204#define OO_DEBUG_POP_PROGRESS() \
void exitFullScreenMode()
NSUInteger indexOfCurrentDisplayMode()
IBOutlet NSTextField * splashProgressTextField
IBOutlet NSWindow * gameWindow
NSString * playerFileToLoad
NSMutableArray * expansionPathsToInclude
OOMouseInteractionMode _resumeMode
NSTimeInterval last_timeInterval
NSString * playerFileDirectory
void stopAnimationTimer()
NSTimeInterval _animationTimerInterval
OOMouseInteractionMode _mouseMode
void startAnimationTimer()
IBOutlet MyOpenGLView * gameView
void loadPlayerIfRequired()
IBOutlet PDFView * helpView
IBOutlet NSView * splashView
OOFullScreenController * _fullScreenController
IBOutlet NSMenu * dockMenu