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;
103 BOOL _finishedLaunching;
109- (void) applicationDidFinishLaunching:(NSNotification *)notification;
110- (BOOL) finishedLaunching;
112- (BOOL) isGamePaused;
113- (void) setGamePaused:(BOOL)value;
117- (void) setMouseInteractionModeForFlight;
118- (void) setMouseInteractionModeForUIWithMouseInteraction:(BOOL)interaction;
120- (void) performGameTick:(
id)sender;
123- (IBAction) showLogAction:(
id)sender;
124- (IBAction) showLogFolderAction:(
id)sender;
125- (IBAction) showSnapshotsAction:(
id)sender;
126- (IBAction) showAddOnsAction:(
id)sender;
127- (void) recenterVirtualJoystick;
130- (void) exitAppWithContext:(NSString *)context;
131- (void) exitAppCommandQ;
134- (void) setPlayerFileToLoad:(NSString *)filename;
137- (void) setPlayerFileDirectory:(NSString *)filename;
142- (void) logProgress:(NSString *)message;
144- (void) debugLogProgress:(NSString *)format, ... OO_TAKES_FORMAT_STRING(1, 2);
145- (void) debugLogProgress:(NSString *)format arguments:(va_list)arguments OO_TAKES_FORMAT_STRING(1, 0);
146- (void) debugPushProgressMessage:(NSString *)format, ... OO_TAKES_FORMAT_STRING(1, 2);
147- (void) debugPopProgressMessage;
157- (void)windowDidResize:(NSNotification *)aNotification;
159- (void)setUpBasicOpenGLStateWithSize:(NSSize)viewSize;
161- (NSURL *) snapshotsURLCreatingIfNeeded:(BOOL)create;
166@interface GameController (FullScreen)
168#if OO_USE_FULLSCREEN_CONTROLLER
170- (IBAction) toggleFullScreenAction:(
id)sender;
173- (void) setFullScreenMode:(BOOL)value;
179- (BOOL) setDisplayWidth:(
unsigned int) d_width Height:(
unsigned int)d_height Refresh:(
unsigned int) d_refresh;
180- (NSDictionary *) findDisplayModeForWidth:(
unsigned int)d_width Height:(
unsigned int) d_height Refresh:(
unsigned int) d_refresh;
184- (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(...) do {} while (0)
199#define OO_DEBUG_PUSH_PROGRESS(...) do {} while (0)
200#define OO_DEBUG_POP_PROGRESS() do {} while (0)
IBOutlet NSTextField * splashProgressTextField
IBOutlet NSWindow * gameWindow
NSString * playerFileToLoad
NSMutableArray * expansionPathsToInclude
OOMouseInteractionMode _resumeMode
NSTimeInterval last_timeInterval
NSString * playerFileDirectory
void stopAnimationTimer()
NSTimeInterval _animationTimerInterval
void exitFullScreenMode()
OOMouseInteractionMode _mouseMode
void startAnimationTimer()
NSUInteger indexOfCurrentDisplayMode()
IBOutlet MyOpenGLView * gameView
void loadPlayerIfRequired()
IBOutlet PDFView * helpView
IBOutlet NSView * splashView
OOFullScreenController * _fullScreenController
IBOutlet NSMenu * dockMenu