|
Wing Commander
Reconstructed Win32 source (1996)
|
Communication menus and video transmissions. More...
#include "wc1.h"Go to the source code of this file.
Variables | |
| short | nCommMenuChoiceCount = -1 |
| short | nCommMenuReuseMode = 0 |
| unsigned char | bMessageSpeed = 2 |
| static signed char | cPendingCommMenuAction = 1 |
| unsigned char | bRadioSilence = 0 |
| unsigned char | bVideoImagesSuppressed = 0 |
| unsigned char | bCommVideoEnabled = 1 |
| const char * | apszKilrathiAceNames [4] |
| static const char * | apszCommMenuText [13] |
| signed char | cCommMenuRecipient = -1 |
| short | nCommSpeakerObject = 0 |
| short | nCommSpeakerRating = 0 |
| short | nCommPortraitIndex = -1 |
| struct Shape * | apObjShapeArray [SPACE_OBJECT_COUNT] |
| ShortVector | stRotationInput |
| short | asShipWingLeaderArray [16] |
| short | aasShipArmor [10][4] |
| short | asShipWpnEnergyList [10] |
| signed char | acFormationMemberLists [16] |
| signed char | acShipIonDriveDmg [16] |
| short | anShipMissionShips [16] |
| FixedVector | vToTgt |
| short | asCannedCommands [16] |
Communication menus and video transmissions.
Address range 430bc0-4318ef.
Definition in file comm.c.
| void AppendCommMenuChoice | ( | const char * | text, |
| short | command ) |
Definition at line 111 of file comm.c.
References abCommMenuChoiceCommands, AppendCommMenuChoice(), apszCommMenuChoiceTextTable, nCommMenuChoiceCount, and nCommMenuReuseMode.
Referenced by AppendCommMenuChoice(), BuildCommunicationRecipientMenu(), PlaySfxWaveFileByNumber(), and SendCommMenuChoice().
Definition at line 244 of file comm.c.
References acShipRating, acShipTargetTable, aeObjectTypeList, aeShipObjectiveList, aeShipSide, any_enemy(), aObjectTypeData, apszKilrathiAceNames, apWingmanPilotsList, bLandingAuthorized, bRadioSilence, BuildCommunicationCommandMenu(), PilotRecord::callsign, cCommMenuRecipient, CloseCommChoiceMenu(), ObjectTypeData::displayName, evaluate_damage(), have_target(), IsCommChoiceMenuOpen(), IsCommMenuIdle(), nAutoEngageTimer, nCommMenuReuseMode, nYourWingman, OBJECT_TYPE_TIGERS_CLAW, OBJECTIVE_HOLD_FORMATION, OpenCommMenuForTarget(), ResetCommMenuChoices(), SendCommMenuChoice(), SIDE_KILRATHI, and szCommMenuHeadingBuf.
Referenced by BuildCommunicationCommandMenu(), PlaySfxWaveFileByNumber(), and RefreshCommunicationMenu().
Definition at line 204 of file comm.c.
References acShipRating, acShipTargetTable, aeObjectClass, aeObjectTypeList, aeShipSide, any_enemy(), aObjectTypeData, AppendCommMenuChoice(), apWingmanPilotsList, BuildCommunicationRecipientMenu(), have_target(), nCommMenuReuseMode, nYourWingman, OBJECT_CLASS_SHIP, OBJECT_TYPE_TIGERS_CLAW, OpenCommMenuForTarget(), ResetCommMenuChoices(), SelectCommRecipient(), SendCommMenuChoice(), SIDE_IMPERIAL, SIDE_KILRATHI, and wingman_dead().
Referenced by BuildCommunicationRecipientMenu(), PlaySfxWaveFileByNumber(), and RefreshCommunicationMenu().
| unsigned short CanOpenCommMenu | ( | void | ) |
Definition at line 187 of file comm.c.
References CanOpenCommMenu(), have_target(), and wingman_dead().
Referenced by CanOpenCommMenu(), HandleCommunicationMenuRequest(), and PlaySfxWaveFileByNumber().
| unsigned int Chosen_communicate_option | ( | short | choice | ) |
Definition at line 364 of file comm.c.
References abCommMenuChoiceCommands, acShipTargetTable, cCommMenuRecipient, Chosen_communicate_option(), CloseCommChoiceMenu(), GetPendingMenuAction(), nYourWingman, PlaySfxWaveFileByNumber(), RefreshCommunicationMenu(), request(), and SelectCommRecipient().
Referenced by Chosen_communicate_option(), HandleSpaceFlightControls(), and PlaySfxWaveFileByNumber().
Definition at line 164 of file comm.c.
References CloseCommChoiceMenu(), exit_squadron(), get_mode(), pop_mode(), and ShutdownEventManager().
Referenced by BuildCommunicationCommandMenu(), Chosen_communicate_option(), CloseCommChoiceMenu(), HandleCommunicationMenuRequest(), HandleSpaceFlightControls(), and PlaySfxWaveFileByNumber().
Definition at line 427 of file comm.c.
References clear_message_time(), EndCommMenu(), EndCommSessionWithWingman(), get_mode(), and pszPendingHudMessage.
Referenced by check_message(), EndCommMenu(), GetScreenUpdateFlag(), HandleSpaceFlightControls(), InflightComputer(), initialize_cockpit(), PlaySfxWaveFileByNumber(), SetHudTextColour(), and vdu_pop_all().
Definition at line 416 of file comm.c.
References apCommunicationPortraitShapesTable, EndCommSessionWithWingman(), FreeCommDisplayResources(), get_mode(), malf_noise(), nCommPortraitIndex, and pop_mode().
Referenced by EndCommMenu(), EndCommSessionWithWingman(), PlaySfxWaveFileByNumber(), and vid_transmit().
| char * ExpandCommMessageTokens | ( | const char * | text | ) |
Definition at line 472 of file comm.c.
References apszPilotRankNames, PilotRecord::callsign, CampaignState::currentPilot, DosStrcat(), DosStrchr(), DosStrlen(), ExpandCommMessageTokens(), PilotRecord::name, PilotRecord::rank, stCampaignState, and szTxtWorkspaceBuffer.
Referenced by ExpandCommMessageTokens(), PlaySfxWaveFileByNumber(), and real_vid_transmit().
Definition at line 403 of file comm.c.
References apCommunicationPortraitShapesTable, FreeCommDisplayResources(), FreePacketAndClear(), nCommPortraitIndex, nCommSpeakerObject, nCommSpeakerRating, pCommStaticShape, pConfedCommBackground, and pKilrathiCommBackground.
Referenced by EndCommSessionWithWingman(), free_cockpit(), FreeCommDisplayResources(), and PlaySfxWaveFileByNumber().
| short get_face | ( | short | rating, |
| unsigned int | side ) |
Definition at line 62 of file comm.c.
References get_face(), and SIDE_KILRATHI.
Referenced by get_face(), init_personalities(), PlaySfxWaveFileByNumber(), and real_vid_transmit().
| short GetPendingMenuAction | ( | void | ) |
Definition at line 145 of file comm.c.
References cPendingCommMenuAction, and GetPendingMenuAction().
Referenced by Chosen_communicate_option(), GetPendingMenuAction(), PlaySfxWaveFileByNumber(), and RefreshCommunicationMenu().
Definition at line 328 of file comm.c.
References CanOpenCommMenu(), CloseCommChoiceMenu(), HandleCommunicationMenuRequest(), IsCommChoiceMenuOpen(), message_showing(), OpenCommRecipientMenu(), RefreshCommunicationMenu(), and ResetCommMenuChoices().
Referenced by HandleCommunicationMenuRequest(), PlaySfxWaveFileByNumber(), and show_communications_disp().
| short have_target | ( | void | ) |
Definition at line 181 of file comm.c.
References acShipTargetTable, have_target(), and unactive().
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), CanOpenCommMenu(), have_target(), and PlaySfxWaveFileByNumber().
| short IsCommChoiceMenuOpen | ( | void | ) |
Definition at line 139 of file comm.c.
References get_mode(), and IsCommChoiceMenuOpen().
Referenced by BuildCommunicationCommandMenu(), HandleCommunicationMenuRequest(), IsCommChoiceMenuOpen(), PlaySfxWaveFileByNumber(), RefreshCommunicationMenu(), and show_communications_disp().
| short IsCommMenuIdle | ( | void | ) |
Definition at line 105 of file comm.c.
References IsCommMenuIdle(), and nCommMenuChoiceCount.
Referenced by BuildCommunicationCommandMenu(), IsCommMenuIdle(), and PlaySfxWaveFileByNumber().
| short LoadCommDisplayResources | ( | short | rating, |
| enum Side | side ) |
Definition at line 444 of file comm.c.
References FetchDiskPacketRetrying(), LoadCommDisplayResources(), pCommStaticShape, pConfedCommBackground, pKilrathiCommBackground, SIDE_IMPERIAL, and SIDE_KILRATHI.
Referenced by LoadCommDisplayResources(), PlaySfxWaveFileByNumber(), and real_vid_transmit().
| void LoadCommPortraitShape | ( | short | face, |
| signed char | alternate ) |
Definition at line 72 of file comm.c.
References apCommunicationPortraitShapesTable, FetchDiskPacketRetrying(), and LoadCommPortraitShape().
Referenced by get_pilot_talk(), LoadCommPortraitShape(), PlaySfxWaveFileByNumber(), and real_vid_transmit().
| void OpenCommMenuForTarget | ( | const char * | heading, |
| const char * | message ) |
Definition at line 132 of file comm.c.
References CockpitMessage(), cYellowColour, OpenCommMenuForTarget(), and pszCommMenuHeading.
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), OpenCommMenuForTarget(), and PlaySfxWaveFileByNumber().
Definition at line 157 of file comm.c.
References OpenCommRecipientMenu(), push_mode(), and SetPendingMenuAction().
Referenced by HandleCommunicationMenuRequest(), OpenCommRecipientMenu(), and PlaySfxWaveFileByNumber().
| void real_vid_transmit | ( | short | obj, |
| short | message ) |
Definition at line 515 of file comm.c.
References aapszPilotSpeeches, acShipRating, aeObjectTypeList, aeShipSide, aObjectTypeData, apCommunicationPortraitShapesTable, apszKilrathiAceNames, apWingmanPilotsList, bCommVideoEnabled, bVideoImagesSuppressed, DrawSpriteDefault(), ExpandCommMessageTokens(), get_face(), Viewport::left, LoadCommDisplayResources(), LoadCommPortraitShape(), malf_noise(), MeasureMessageWidth(), nCommPortraitIndex, nCommSpeakerObject, nCommSpeakerRating, pConfedCommBackground, pKilrathiCommBackground, push_mode(), real_vid_transmit(), ShowCentredPrompt(), SIDE_IMPERIAL, stRightVduViewport, and Viewport::top.
Referenced by PlaySfxWaveFileByNumber(), real_vid_transmit(), and vid_equiv().
Definition at line 315 of file comm.c.
References BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), GetPendingMenuAction(), InvalidateVduMode(), IsCommChoiceMenuOpen(), nCommMenuReuseMode, and RefreshCommunicationMenu().
Referenced by Chosen_communicate_option(), HandleCommunicationMenuRequest(), PlaySfxWaveFileByNumber(), RefreshCommunicationMenu(), and talk_equiv().
| void ResetCommMenuChoices | ( | short | reuse | ) |
Definition at line 89 of file comm.c.
References abCommMenuChoiceCommands, apszCommMenuChoiceTextTable, nCommMenuChoiceCount, nCommMenuReuseMode, and ResetCommMenuChoices().
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), HandleCommunicationMenuRequest(), PlaySfxWaveFileByNumber(), and ResetCommMenuChoices().
| void SelectCommRecipient | ( | short | recipient | ) |
Definition at line 197 of file comm.c.
References cCommMenuRecipient, SelectCommRecipient(), and SetPendingMenuAction().
Referenced by BuildCommunicationRecipientMenu(), Chosen_communicate_option(), PlaySfxWaveFileByNumber(), and SelectCommRecipient().
| void SendCommMenuChoice | ( | short | i | ) |
Definition at line 126 of file comm.c.
References AppendCommMenuChoice(), apszCommMenuText, and SendCommMenuChoice().
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), PlaySfxWaveFileByNumber(), and SendCommMenuChoice().
| void SetPendingMenuAction | ( | unsigned char | v | ) |
Definition at line 151 of file comm.c.
References cPendingCommMenuAction, and SetPendingMenuAction().
Referenced by OpenCommRecipientMenu(), PlaySfxWaveFileByNumber(), SelectCommRecipient(), and SetPendingMenuAction().
Definition at line 341 of file comm.c.
References apszCommMenuChoiceTextTable, DrawFormattedText(), DrawSpriteDefault(), DrawTextAt(), HandleCommunicationMenuRequest(), IsCommChoiceMenuOpen(), Viewport::left, nCommMenuChoiceCount, nCommMenuReuseMode, pCommMenuPointerShape, pszCommMenuHeading, set_new_vdu(), show_communications_disp(), stRightVduTxtContext, stRightVduViewport, and Viewport::top.
Referenced by PlaySfxWaveFileByNumber(), SelectCockpitVduMode(), show_communications_disp(), and update_VDUs().
| void ShowCentredPrompt | ( | char * | text, |
| unsigned short | arg ) |
Definition at line 436 of file comm.c.
References cYellowColour, DosStrcpy(), SetHudMessageText(), ShowCentredPrompt(), and szHudMessageBuf.
Referenced by PlaySfxWaveFileByNumber(), real_vid_transmit(), and ShowCentredPrompt().
Definition at line 397 of file comm.c.
References RefreshCommunicationMenu(), and talk_equiv().
Referenced by PlaySfxWaveFileByNumber(), SelectCockpitVduMode(), talk_equiv(), and update_VDUs().
| short wingman_dead | ( | void | ) |
Definition at line 175 of file comm.c.
References nYourWingman, and wingman_dead().
Referenced by BuildCommunicationRecipientMenu(), CanOpenCommMenu(), PlaySfxWaveFileByNumber(), and wingman_dead().
| short aasShipArmor[10][4] |
Definition at line 53 of file comm.c.
Referenced by calculate_damage_level(), evaluate_damage(), inflict_damage(), set_objects_data(), show_target_disp(), and update_bars().
| signed char acFormationMemberLists[16] |
Definition at line 55 of file comm.c.
Referenced by build_squad_list(), build_target_list(), find_squad_center(), fire_turrets(), init_formation_burst(), and select_safe_target().
| signed char acShipIonDriveDmg[16] |
Definition at line 56 of file comm.c.
Referenced by damage_ion_drive(), recalc_max_velocity(), set_objects_data(), and Set_up_ship_info().
| short anShipMissionShips[16] |
Definition at line 57 of file comm.c.
Referenced by check_destroy_target(), check_goal(), defend_mission(), escort_mission(), Explosion(), flag_reached(), get_follow_point(), inherit_leader_mission(), init_intelligence_data(), new_space_music_changes(), rendezvous_mission(), send_message(), Set_up_ship_info(), strike_mission(), and triumph().
| struct Shape* apObjShapeArray[SPACE_OBJECT_COUNT] |
Definition at line 48 of file comm.c.
Referenced by CreateCannedSceneObject(), draw_nav_pointer(), draw_sorted_objects_to_buffer(), draw_target_box(), easy2see(), free_ship(), FreeConstellationObject(), get_right_shape(), InitializeConstellationObject(), intro_drawbackgroundships(), load_ship(), release_all_capital_ship_shapes(), release_capital_ship_shapes(), remove_object(), set_objects_data(), set_up_action_sphere(), ShipExplosion(), and ShowCarrierLaunchSequence().
|
static |
Definition at line 26 of file comm.c.
Referenced by SendCommMenuChoice().
| const char* apszKilrathiAceNames[4] |
Definition at line 19 of file comm.c.
Referenced by BuildCommunicationCommandMenu(), real_vid_transmit(), and show_target_disp().
| short asCannedCommands[16] |
Definition at line 59 of file comm.c.
Referenced by advance_canned_sequence(), Set_up_ship_info(), and update_canned_sequence().
| short asShipWingLeaderArray[16] |
Definition at line 51 of file comm.c.
Referenced by build_squad_list(), imperial_formation(), inherit_leader(), inherit_leader_mission(), kilrathi_wingman(), maintain_formation(), player_wingman(), run_away(), and Set_up_ship_info().
| short asShipWpnEnergyList[10] |
Definition at line 54 of file comm.c.
Referenced by fire_players_lasers(), fire_weapon(), replenish_weapon_energy_bank(), set_objects_data(), and update_lights().
| unsigned char bCommVideoEnabled = 1 |
Definition at line 16 of file comm.c.
Referenced by InitializeCockpitResources(), and real_vid_transmit().
| unsigned char bMessageSpeed = 2 |
Definition at line 12 of file comm.c.
Referenced by MeasureMessageWidth(), and SetMessageDisplaySpeed().
| unsigned char bRadioSilence = 0 |
Definition at line 14 of file comm.c.
Referenced by BuildCommunicationCommandMenu(), InitializeCockpitResources(), request(), and send_message().
| unsigned char bVideoImagesSuppressed = 0 |
Definition at line 15 of file comm.c.
Referenced by HandleSpaceFlightControls(), real_vid_transmit(), and vid_transmit().
| signed char cCommMenuRecipient = -1 |
Definition at line 41 of file comm.c.
Referenced by BuildCommunicationCommandMenu(), Chosen_communicate_option(), and SelectCommRecipient().
|
static |
Definition at line 13 of file comm.c.
Referenced by GetPendingMenuAction(), and SetPendingMenuAction().
| short nCommMenuChoiceCount = -1 |
Definition at line 10 of file comm.c.
Referenced by AppendCommMenuChoice(), HandleSpaceFlightControls(), IsCommMenuIdle(), ResetCommMenuChoices(), and show_communications_disp().
| short nCommMenuReuseMode = 0 |
Definition at line 11 of file comm.c.
Referenced by AppendCommMenuChoice(), BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), RefreshCommunicationMenu(), ResetCommMenuChoices(), and show_communications_disp().
| short nCommPortraitIndex = -1 |
Definition at line 44 of file comm.c.
Referenced by EndCommSessionWithWingman(), FreeCommDisplayResources(), real_vid_transmit(), and vid_transmit().
| short nCommSpeakerObject = 0 |
Definition at line 42 of file comm.c.
Referenced by FreeCommDisplayResources(), npc_communication(), overlay_head_up_display(), real_vid_transmit(), and vid_transmit().
| short nCommSpeakerRating = 0 |
Definition at line 43 of file comm.c.
Referenced by FreeCommDisplayResources(), and real_vid_transmit().
| ShortVector stRotationInput |
Definition at line 50 of file comm.c.
Referenced by determine_pilot_hand(), player_input(), players_flight_dynamics(), and process_player_input().
| FixedVector vToTgt |
Definition at line 58 of file comm.c.
Referenced by chase_location(), distance_from_point(), FF_missile_intelligence(), get_facing_range_from_point(), goto_formation(), heat_seeking_missile_intelligence(), object_intelligence(), and ShipAiState35().