![]() |
Oolite 1.91.0.7659-250410-0031890
|
#include <GameController.h>
Class Methods | |
(GameController *) | + sharedController |
(static id) | + GetPreference [implementation] |
(static void) | + SetPreference [implementation] |
(static void) | + RemovePreference [implementation] |
Private Attributes | |
IBOutlet NSTextField * | splashProgressTextField |
IBOutlet NSView * | splashView |
IBOutlet NSWindow * | gameWindow |
IBOutlet PDFView * | helpView |
IBOutlet NSMenu * | dockMenu |
IBOutlet MyOpenGLView * | gameView |
NSTimeInterval | last_timeInterval |
double | delta_t |
int | my_mouse_x |
int | my_mouse_y |
NSString * | playerFileDirectory |
NSString * | playerFileToLoad |
NSMutableArray * | expansionPathsToInclude |
NSTimer * | timer |
NSTimeInterval | _animationTimerInterval |
NSDate * | _splashStart |
SEL | pauseSelector |
NSObject * | pauseTarget |
BOOL | gameIsPaused |
OOMouseInteractionMode | _mouseMode |
OOMouseInteractionMode | _resumeMode |
OOFullScreenController * | _fullScreenController |
Definition at line 52 of file GameController.h.
|
implementation |
Definition at line 567 of file GameController.m.
|
implementation |
Definition at line 787 of file GameController.m.
References expansionPathsToInclude, nil, setPlayerFileDirectory:, and setPlayerFileToLoad:.
- (void) applicationDidFinishLaunching: | (NSNotification *) | notification |
Definition at line 204 of file GameController.m.
References _splashStart, ResourceManager::addExternalPath:, beginSplashScreen, endSplashScreen, exitAppWithContext:, expansionPathsToInclude, loadPlayerIfRequired, logProgress:, nil, OOLog, reportUnhandledStartupException:, setFullScreenMode:, OOJoystickManager::setStickHandlerClass:, setUpDisplayModes, SetUpSparkle(), OOOXZManager::sharedManager, and startAnimationTimer.
Referenced by main().
|
implementation |
Definition at line 632 of file GameController.m.
References dockMenu.
|
implementation |
Definition at line 821 of file GameController.m.
References OOCacheManager::finishOngoingFlush, OOLoggingTerminate(), and OOCacheManager::sharedCache.
|
implementation |
Definition at line 770 of file GameController.m.
References awakeFromNib, and nil.
Referenced by awakeFromNib.
- (void) beginSplashScreen |
Definition at line 298 of file GameController.m.
References beginSplashScreen, gameView, MyOpenGLView::init, MyOpenGLView::initSplashScreen, MyOpenGLView::setGameController:, and MyOpenGLView::updateScreen.
Referenced by applicationDidFinishLaunching:, beginSplashScreen, and playerFileDirectory.
|
implementation |
Definition at line 108 of file GameController.m.
References dealloc.
Referenced by dealloc.
|
implementation |
Provided by category GameController(FullScreen).
Definition at line 156 of file GameController+FullScreen.m.
Referenced by gameView, PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, and PlayerEntity::setGuiToGameOptionsScreen.
|
implementation |
Provided by category GameController(OOPrivate).
Definition at line 337 of file GameController.m.
References GameController(OOPrivate)::doPerformGameTick, EXPECT_NOT, MINIMUM_GAME_TICK, OOJSFrameCallbacksInvoke(), OOLog, PLAYER, and OOSound::update.
Referenced by GameController(OOPrivate)::doPerformGameTick, and performGameTick:.
- (void) endSplashScreen |
Definition at line 749 of file GameController.m.
References endSplashScreen, MyOpenGLView::endSplashScreen, nil, OOLogSetDisplayMessagesInClass(), splashProgressTextField, and splashView.
Referenced by applicationDidFinishLaunching:, endSplashScreen, and playerFileDirectory.
- (void) exitAppCommandQ |
Definition at line 858 of file GameController.m.
References exitAppCommandQ, and exitAppWithContext:.
Referenced by exitAppCommandQ.
- (void) exitAppWithContext: | (NSString *) | context |
Definition at line 813 of file GameController.m.
References OoliteApp::setExitContext:.
Referenced by applicationDidFinishLaunching:, exitAppCommandQ, OOStandardsInternal(), PlayerEntity(OOControlsPrivate)::pollApplicationControls, and MyOpenGLView::pollControls.
|
implementation |
Provided by category GameController(FullScreen).
Definition at line 123 of file GameController+FullScreen.m.
Referenced by gameView, and PlayerEntity(OOControlsPrivate)::pollApplicationControls.
|
implementation |
Provided by category GameController(FullScreen).
Definition at line 150 of file GameController+FullScreen.m.
- (MyOpenGLView *) gameView |
References displayModes, exitFullScreenMode, gameView, indexOfCurrentDisplayMode, inFullScreenMode, and setUpDisplayModes.
|
implementation |
Definition at line 426 of file GameController.m.
References nil.
Referenced by snapshotsURLCreatingIfNeeded:.
|
implementation |
Provided by category GameController(FullScreen).
Definition at line 162 of file GameController+FullScreen.m.
Referenced by gameView, PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, and PlayerEntity::setGuiToGameOptionsScreen.
|
implementation |
Provided by category GameController(FullScreen).
Definition at line 100 of file GameController+FullScreen.m.
Referenced by Universe::gameSettings, gameView, PlayerEntity(OOControlsPrivate)::pollApplicationControls, setMouseInteractionMode:, and GameController(FullScreen)::toggleFullScreenAction:.
|
implementation |
Definition at line 83 of file GameController.m.
References _animationTimerInterval, _splashStart, delta_t, init, last_timeInterval, nil, ranrot_srand(), and sSharedController.
Referenced by init.
|
implementation |
Definition at line 560 of file GameController.m.
- (BOOL) isGamePaused |
Definition at line 126 of file GameController.m.
References gameIsPaused, and isGamePaused.
Referenced by isGamePaused, and Universe::setViewDirection:.
- (void) loadPlayerIfRequired |
Definition at line 284 of file GameController.m.
References loadPlayerIfRequired, logProgress:, nil, and playerFileToLoad.
Referenced by applicationDidFinishLaunching:, Universe::handleGameOver, loadPlayerIfRequired, and playerFileDirectory.
- (void) logProgress: | (NSString *) | message |
Definition at line 659 of file GameController.m.
References _splashStart, OOLog, and UNIVERSE.
Referenced by applicationDidFinishLaunching:, Universe::initWithGameView:, loadPlayerIfRequired, NoteVerificationStage(), PlayerEntity::setUpAndConfirmOK:saveGame:, and Universe::setUpSpace.
- (OOMouseInteractionMode) mouseInteractionMode |
Definition at line 150 of file GameController.m.
References _mouseMode, and mouseInteractionMode.
Referenced by mouseInteractionMode, and setGamePaused:.
|
implementation |
Definition at line 582 of file GameController.m.
Referenced by showAddOnsAction:.
|
implementation |
Provided by category GameController(FullScreen).
Definition at line 168 of file GameController+FullScreen.m.
Referenced by PlayerEntity(OOControlsPrivate)::pollApplicationControls, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, and MyOpenGLView::update.
- (void) performGameTick: | (id) | sender |
Definition at line 316 of file GameController.m.
References doPerformGameTick, and MyOpenGLView::pollControls.
- (NSString *) playerFileDirectory |
References beginSplashScreen, endSplashScreen, loadPlayerIfRequired, playerFileDirectory, startAnimationTimer, and stopAnimationTimer.
- (NSString *) playerFileToLoad |
References playerFileToLoad.
- (void) recenterVirtualJoystick |
Definition at line 405 of file GameController.m.
References my_mouse_x, my_mouse_y, and recenterVirtualJoystick.
Referenced by recenterVirtualJoystick, and MyOpenGLView(Internal)::recenterVirtualJoystick.
|
implementation |
Definition at line 441 of file GameController.m.
Referenced by snapshotsURLCreatingIfNeeded:.
|
implementation |
Provided by category GameController(OOPrivate).
Definition at line 922 of file GameController.m.
References OOLog.
Referenced by applicationDidFinishLaunching:.
|
implementation |
Provided by category GameController(FullScreen).
Definition at line 129 of file GameController+FullScreen.m.
Referenced by PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys.
|
implementation |
Provided by category GameController(FullScreen).
Definition at line 106 of file GameController+FullScreen.m.
Referenced by applicationDidFinishLaunching:, GameController(FullScreen)::exitFullScreenMode, and GameController(FullScreen)::toggleFullScreenAction:.
- (void) setGamePaused: | (BOOL) | value |
Definition at line 132 of file GameController.m.
References _resumeMode, gameIsPaused, mouseInteractionMode, setMouseInteractionMode:, and setMouseInteractionModeForUIWithMouseInteraction:.
Referenced by Universe::handleOoliteException:, Universe::pauseGame, PlayerEntity(OOControlsPrivate)::pollApplicationControls, PlayerEntity(OOControlsPrivate)::pollDockedControls:, Universe::reinitAndShowDemo:, and StationDockPlayer().
- (void) setGameView: | (MyOpenGLView *) | view |
Definition at line 195 of file GameController.m.
References gameView, and MyOpenGLView::setGameController:.
- (void) setMouseInteractionMode: | (OOMouseInteractionMode) | mode |
Definition at line 156 of file GameController.m.
References _mouseMode, gameView, inFullScreenMode, MyOpenGLView::noteMouseInteractionModeChangedFrom:to:, OOFullScreenController::noteMouseInteractionModeChangedFrom:to:, OOLog, and OOStringFromMouseInteractionMode().
Referenced by setGamePaused:.
- (void) setMouseInteractionModeForFlight |
Definition at line 177 of file GameController.m.
References setMouseInteractionModeForFlight.
Referenced by PlayerEntity(OOControlsPrivate)::pollApplicationControls, setMouseInteractionModeForFlight, and Universe::setViewDirection:.
- (void) setMouseInteractionModeForUIWithMouseInteraction: | (BOOL) | interaction |
Definition at line 183 of file GameController.m.
Referenced by Universe::enterGUIViewModeWithMouseInteraction:, Universe::reinitAndShowDemo:, setGamePaused:, and Universe::setViewDirection:.
- (void) setPlayerFileDirectory: | (NSString *) | filename |
Definition at line 904 of file GameController.m.
References nil, and playerFileDirectory.
Referenced by application:openFile:.
- (void) setPlayerFileToLoad: | (NSString *) | filename |
Definition at line 876 of file GameController.m.
References nil, and playerFileToLoad.
Referenced by application:openFile:, main(), and Universe::reinitAndShowDemo:.
|
implementation |
Definition at line 435 of file GameController.m.
Referenced by snapshotsURLCreatingIfNeeded:.
- (void) setUpBasicOpenGLStateWithSize: | (NSSize) | viewSize |
Definition at line 934 of file GameController.m.
References MAX_CLEAR_DEPTH, OOGL, OOGLFrustum(), OOGLResetProjection(), OOOpenGLExtensionManager::sharedManager, and UNIVERSE.
Referenced by MyOpenGLView::initialiseGLWithSize:useVideoMode:.
|
implementation |
Provided by category GameController(FullScreen).
Definition at line 49 of file GameController+FullScreen.m.
Referenced by applicationDidFinishLaunching:, and gameView.
+ (GameController *) sharedController |
Definition at line 73 of file GameController.m.
References nil, sharedController, and sSharedController.
Referenced by Universe::initWithGameView:, NoteVerificationStage(), OOStandardsInternal(), MyOpenGLView(Internal)::recenterVirtualJoystick, PlayerEntity::setUpAndConfirmOK:saveGame:, Universe::setUpSpace, and sharedController.
- (IBAction) showAddOnsAction: | (id) | sender |
Definition at line 531 of file GameController.m.
References openPath:, and ResourceManager::userRootPaths.
- (IBAction) showLogAction: | (id) | sender |
Definition at line 413 of file GameController.m.
- (IBAction) showLogFolderAction: | (id) | sender |
Definition at line 419 of file GameController.m.
- (IBAction) showSnapshotsAction: | (id) | sender |
Definition at line 525 of file GameController.m.
References snapshotsURLCreatingIfNeeded:.
- (NSURL *) snapshotsURLCreatingIfNeeded: | (BOOL) | create |
Definition at line 450 of file GameController.m.
References count, DESC, GetPreference, JAPersistentFileReferenceFromURL(), JAURLFromPersistentFileReference(), kJAPersistentFileReferenceWithoutMounting, kJAPersistentFileReferenceWithoutUI, kSnapshotsDirNameKey, kSnapshotsDirRefKey, nil, RemovePreference, and SetPreference.
Referenced by showSnapshotsAction:.
- (void) startAnimationTimer |
Definition at line 375 of file GameController.m.
References _animationTimerInterval, nil, startAnimationTimer, and timer.
Referenced by applicationDidFinishLaunching:, playerFileDirectory, PlayerEntity::setUpAndConfirmOK:saveGame:, and startAnimationTimer.
- (void) stopAnimationTimer |
Definition at line 392 of file GameController.m.
References nil, stopAnimationTimer, and timer.
Referenced by playerFileDirectory, PlayerEntity::setUpAndConfirmOK:saveGame:, and stopAnimationTimer.
|
implementation |
Definition at line 998 of file GameController.m.
References pauseSelector, pauseTarget, and suppressClangStuff.
Referenced by suppressClangStuff.
|
implementation |
Provided by category GameController(FullScreen).
Definition at line 86 of file GameController+FullScreen.m.
Referenced by GameController(FullScreen)::toggleFullScreenCalledForWindow:withSender:.
|
implementation |
Provided by category GameController(FullScreen).
Definition at line 92 of file GameController+FullScreen.m.
|
implementation |
Definition at line 588 of file GameController.m.
References _fullScreenController, nil, OOLogHandlerGetLogBasePath(), and ResourceManager::useAddOns.
- (void) windowDidResize: | (NSNotification *) | aNotification |
Definition at line 864 of file GameController.m.
References MyOpenGLView::updateScreen.
|
private |
Definition at line 75 of file GameController.h.
Referenced by init, and startAnimationTimer.
|
private |
Definition at line 89 of file GameController.h.
Referenced by validateMenuItem:.
|
private |
Definition at line 84 of file GameController.h.
Referenced by mouseInteractionMode, and setMouseInteractionMode:.
|
private |
Definition at line 85 of file GameController.h.
Referenced by setGamePaused:.
|
private |
Definition at line 77 of file GameController.h.
Referenced by applicationDidFinishLaunching:, init, and logProgress:.
|
private |
Definition at line 66 of file GameController.h.
Referenced by init.
|
private |
Definition at line 60 of file GameController.h.
Referenced by applicationDockMenu:.
|
private |
Definition at line 72 of file GameController.h.
Referenced by application:openFile:, and applicationDidFinishLaunching:.
|
private |
Definition at line 82 of file GameController.h.
Referenced by isGamePaused, and setGamePaused:.
|
private |
Definition at line 189 of file GameController.m.
Referenced by beginSplashScreen, gameView, OoliteApp::sendEvent:, setGameView:, and setMouseInteractionMode:.
|
private |
Definition at line 58 of file GameController.h.
|
private |
Definition at line 59 of file GameController.h.
|
private |
Definition at line 65 of file GameController.h.
Referenced by init.
|
private |
Definition at line 68 of file GameController.h.
Referenced by recenterVirtualJoystick.
|
private |
Definition at line 68 of file GameController.h.
Referenced by recenterVirtualJoystick.
|
private |
Definition at line 79 of file GameController.h.
Referenced by suppressClangStuff.
|
private |
Definition at line 80 of file GameController.h.
Referenced by suppressClangStuff.
|
private |
Definition at line 886 of file GameController.m.
Referenced by playerFileDirectory, and setPlayerFileDirectory:.
|
private |
Definition at line 870 of file GameController.m.
Referenced by loadPlayerIfRequired, playerFileToLoad, PlayerEntity(LoadSave)::quicksavePlayer, PlayerEntity::setGuiToLoadSaveScreen, and setPlayerFileToLoad:.
|
private |
Definition at line 56 of file GameController.h.
Referenced by endSplashScreen.
|
private |
Definition at line 57 of file GameController.h.
Referenced by endSplashScreen.
|
private |
Definition at line 74 of file GameController.h.
Referenced by startAnimationTimer, and stopAnimationTimer.