Definition at line 63 of file GameController.m.
◆ doPerformGameTick
| - (void) doPerformGameTick |
|
|
|
Extends class GameController.
Definition at line 339 of file GameController.m.
340{
341 @try {
342 if (gameIsPaused)
343 delta_t = 0.0;
344 else {
345 delta_t = [NSDate timeIntervalSinceReferenceDate] - last_timeInterval;
346 last_timeInterval += delta_t;
349 }
350
351 [UNIVERSE update:delta_t];
353 [UNIVERSE reinitAndShowDemo:YES];
354 }
356 if (!gameIsPaused) {
358 }
359 }
360 @catch (id exception) {
361 OOLog(
@"exception.backtrace",
@"%@", [exception callStackSymbols]);
362 }
363
364 @
365 try {
366 [gameView updateScreen];
367 }
368 @catch (id exception) {
369 }
370}
#define MINIMUM_GAME_TICK
void OOJSFrameCallbacksInvoke(OOTimeDelta delta)
#define OOLog(class, format,...)
References doPerformGameTick, EXPECT_NOT, MINIMUM_GAME_TICK, OOJSFrameCallbacksInvoke(), OOLog, PLAYER, and OOSound::update.
Referenced by doPerformGameTick, and GameController::performGameTick:.
◆ reportUnhandledStartupException:
| - (void) reportUnhandledStartupException: |
|
(NSException *) | exception |
|
Extends class GameController.
Definition at line 861 of file GameController.m.
861 :(NSException*)exception
862{
863 OOLog(
@"startup.exception",
@"***** Unhandled exception during startup: %@ (%@).", [exception name], [exception reason]);
864
865#if OOLITE_MAC_COCOA_UI
866
867
868 NSRunCriticalAlertPanel(@"Oolite failed to start up, because an unhandled exception occurred.", @"An exception of type %@ occurred. If this problem persists, please file a bug report.", @"OK", NULL, NULL, [exception name]);
869#endif
870}
References OOLog.
Referenced by GameController::applicationDidFinishLaunching:.
The documentation for this category was generated from the following file: