MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / PlayBriefing

Function PlayBriefing

Descent3/Briefing.cpp:435–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435bool PlayBriefing(tTelComInfo *tcs) {
436 TelcomRenderSetScreen(0);
437 bool done = false;
438
439 while (!done) {
440 Sound_system.BeginSoundFrame(Telcom_called_from_game);
441
442 if (tcs->state == TCS_POWEROFF || tcs->current_status != TS_MISSION) {
443 // we're done with the loop
444 done = true;
445 }
446 // Process all waiting events for the TelCom (we may only want to handle this once a frame!)
447 TelComHandleAllEvents(tcs);
448
449 TelcomRenderScreen();
450 Descent->defer();
451 if (KEY_STATE(KEY_ESC))
452 tcs->state = TCS_POWEROFF;
453
454 Sound_system.EndSoundFrame();
455 }
456 return true;
457}
458
459void PBAddTextEffect(TCTEXTDESC* desc, char *text, char *description, int id) {
460 if (IsMissionMaskOK(desc->mission_mask_set, desc->mission_mask_unset) && ok_to_parse_screen) {

Callers 1

ParseBriefingFunction · 0.85

Calls 6

TelcomRenderSetScreenFunction · 0.85
TelComHandleAllEventsFunction · 0.85
TelcomRenderScreenFunction · 0.85
BeginSoundFrameMethod · 0.80
EndSoundFrameMethod · 0.80
deferMethod · 0.45

Tested by

no test coverage detected