Definition at line 62 of file GameController.m.
◆ doPerformGameTick
- (void) doPerformGameTick |
|
|
|
Extends class GameController.
Definition at line 1010 of file GameController.m.
338{
339 @try
340 {
341 if (gameIsPaused)
342 delta_t = 0.0;
343 else
344 {
345 delta_t = [NSDate timeIntervalSinceReferenceDate] - last_timeInterval;
346 last_timeInterval += delta_t;
349 }
350
351 [UNIVERSE update:delta_t];
353 {
354 [UNIVERSE reinitAndShowDemo:YES];
355 }
357 if (!gameIsPaused)
358 {
360 }
361 }
362 @catch (id exception)
363 {
364 OOLog(
@"exception.backtrace",
@"%@",[exception callStackSymbols]);
365 }
366
367 @try
368 {
369 [gameView display];
370 }
371 @catch (id exception) {}
372}
#define MINIMUM_GAME_TICK
void OOJSFrameCallbacksInvoke(OOTimeDelta delta)
#define OOLog(class, format,...)
◆ reportUnhandledStartupException:
- (void) reportUnhandledStartupException: |
|
(NSException *) | exception |
|
Extends class GameController.
Definition at line 441 of file GameController.m.
922 :(NSException *)exception
923{
924 OOLog(
@"startup.exception",
@"***** Unhandled exception during startup: %@ (%@).", [exception name], [exception reason]);
925
926 #if OOLITE_MAC_OS_X
927
928
929 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]);
930 #endif
931}
The documentation for this category was generated from the following file: