Definition at line 62 of file GameController.m.
◆ doPerformGameTick
| - (void) doPerformGameTick |
|
|
|
Extends class GameController.
Definition at line 346 of file GameController.m.
347{
348 @try
349 {
350 if (gameIsPaused)
351 delta_t = 0.0;
352 else
353 {
354 delta_t = [NSDate timeIntervalSinceReferenceDate] - last_timeInterval;
355 last_timeInterval += delta_t;
358 }
359
360 [UNIVERSE update:delta_t];
362 {
363 [UNIVERSE reinitAndShowDemo:YES];
364 }
366 if (!gameIsPaused)
367 {
369 }
370 }
371 @catch (id exception)
372 {
373 OOLog(
@"exception.backtrace",
@"%@",[exception callStackSymbols]);
374 }
375
376 @try
377 {
378 [gameView display];
379 }
380 @catch (id exception) {}
381}
#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 931 of file GameController.m.
931 :(NSException *)exception
932{
933 OOLog(
@"startup.exception",
@"***** Unhandled exception during startup: %@ (%@).", [exception name], [exception reason]);
934
935 #if OOLITE_MAC_OS_X
936
937
938 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]);
939 #endif
940}
References OOLog.
Referenced by GameController::applicationDidFinishLaunching:.
The documentation for this category was generated from the following file: