|
Wing Commander
Reconstructed Win32 source (1996)
|
Mission setup, ship resources, formation placement and pilot speech. More...
Go to the source code of this file.
Functions | |
| void | set_sphere_point (const MissionShipRecord *record, FixedVector *position) |
| unsigned int | is_alive (int pilot) |
| unsigned int | check_futurion (short i) |
| unsigned int | init_mission (short series, short mission) |
| void | prepare_mission (void) |
| int | release_all_capital_ship_shapes (void) |
| int | release_capital_ship_shapes (enum ObjectType type) |
| int | load_ship (enum ObjectType type, short slot) |
| int | free_ship (short slot) |
| int | free_all_slots (void) |
| int | load_all_slots (void) |
| void | remove_nav_point_objects (void) |
| short | get_shape_slot (void) |
| int | shape_loaded (enum ObjectType type) |
| int | shape_needed (const MissionNavPoint *navPoint, enum ObjectType type) |
| int | new_sphere_shapes (MissionNavPoint *navPoint) |
| int | set_up_action_sphere (short navPoint) |
| void | free_pilot_talk (short personality) |
| void | FreeAllPilotTalk (void) |
| void | get_pilot_talk (short personality) |
| unsigned int | init_personalities (void) |
| unsigned int | room_for_me (short obj, short minimum) |
| void | approve_xyz (short obj, short minimum, short maximum) |
| void | set_up_next_wave (void) |
| unsigned int | sub_int_vector (const ShortVector *left, const ShortVector *right, ShortVector *difference) |
| unsigned int | set_formation_position (short obj, const MissionShipRecord *record) |
| unsigned int | Set_up_ship_info (short obj, short missionShip, signed char navPoint) |
| unsigned int | is_team_member (short missionShip) |
| void | AddFixedVectors (const FixedVector *left, const FixedVector *right, FixedVector *sum) |
| short | initialize_ship (enum ObjectType type, short owner) |
| unsigned int | find_next_ship_turn_slot (short obj) |
| short | init_ship (short missionShip, short navPoint) |
| unsigned int | init_intelligence_data (short obj) |
| short __stdcall | SampleBothJoysticks (InputDeviceSample *samples, short fallback) |
| int __stdcall | SampleJoystickDevice (InputDeviceSample *samples, short joystick, unsigned short fallback) |
| short | ReadJoystickButtons (void) |
| void | SampleActiveJoystickDevice (void) |
| void | DrawNavTextLine (unsigned char alignment, unsigned short colour, const char *format,...) |
| void | SetNavMapCoordinateScaling (short enabled) |
| void | ScaleNavMapMarkerSize (short *size) |
| void | ScaleNavMapCoordinates (short *x, short *y, short mapX, short mapY) |
| void | nav_getxy (short *x, short *y, int worldX, int worldZ) |
| short | MinShort (short a, short b) |
| short | MaxShort (short a, short b,...) |
| short | find_ship_index (short missionShip) |
| short | mobile_objective (short objective) |
| int | set_new_objective (short pathIndex) |
| void | CheckPoint (short x, short y) |
| void | IncludeNavMapWorldPoint (int worldX, int worldZ) |
| void | SetScale (void) |
| void | Build_objective_list (void) |
Variables | |
| short | nDebriefingPersonality = 0 |
| static int | bInitialFormationSetup = 0 |
| void * | aapPacketReferences [4][0x25] = {0} |
| static ShortVector | aaFormationPositions [5][8] |
| static int | anPilotTurnInterval [18] |
| unsigned char | abSeriesAuxData [0x28] |
| MissionObjectiveSource | aMissionObjectiveSources [16] |
| MissionHeaderDisk | stCurrentMissionHeader |
| CampaignDate * | pCurrentCampaignDate |
| CampaignDate * | pElapsedCampaignDatePtr |
| signed char | cCurrentObjResourceLogicalFile |
| Viewport * | pScrambleView |
| short | nSceneScrambleCanopyFrameValue |
Mission setup, ship resources, formation placement and pilot speech.
Address range 40b670-40d08f. The joystick and navigation-map helpers at its end stay here provisionally: where their original object began is unresolved.
Definition in file mission.c.
| void AddFixedVectors | ( | const FixedVector * | left, |
| const FixedVector * | right, | ||
| FixedVector * | sum ) |
| void approve_xyz | ( | short | obj, |
| short | minimum, | ||
| short | maximum ) |
Definition at line 676 of file mission.c.
References approve_xyz(), aShipPositionsArray, random_radial(), and room_for_me().
Referenced by approve_xyz(), arrive_from_warp(), and set_up_next_wave().
Definition at line 1132 of file mission.c.
References abFlightPathList, aMissionNavPoints, aMissionObjectivesArray, aMissionObjectiveSources, aMissionShips, aObjectTypeData, Build_objective_list(), cCurrentNavPtIdx, cCurrentObjective, cMissionObjectiveCountValue, MissionObjectiveSource::description, MissionObjective::displayName, ObjectTypeData::displayName, MissionObjective::flags, MissionObjective::index, MissionObjectiveSource::index, MissionNavPoint::name, MissionObjective::name, nav_getxy(), MissionNavPoint::position, MissionObjective::position, set_new_objective(), set_sphere_point(), SetNavMapCoordinateScaling(), MissionObjective::type, MissionObjectiveSource::type, MissionShipRecord::type, FixedVector::x, and FixedVector::z.
Referenced by Briefing(), Build_objective_list(), and prepare_mission().
| unsigned int check_futurion | ( | short | i | ) |
Definition at line 89 of file mission.c.
References aeObjectClass, aeShipMissionType, asObjectCounterArray, check_futurion(), MISSION_TYPE_WARP_ARRIVE, and OBJECT_CLASS_FUTURION.
Referenced by check_futurion(), and init_ship().
| void CheckPoint | ( | short | x, |
| short | y ) |
Definition at line 1058 of file mission.c.
References CheckPoint(), MaxShort(), MinShort(), nNavigationMapMinimumCoordX, nNavigationMapMinimumPositionY, nNavMapMaximumPositionX, and nNavMapMaximumPosY.
Referenced by CheckPoint(), IncludeNavMapWorldPoint(), and SetScale().
| void DrawNavTextLine | ( | unsigned char | alignment, |
| unsigned short | colour, | ||
| const char * | format, | ||
| ... ) |
Definition at line 1001 of file mission.c.
References TextContext::alignment, AppendTextCharacter(), TextContext::colour, DrawNavTextLine(), DrawTextString(), FormatTextTokens(), pCurTextContext, TextContext::text, and TextContext::textCursor.
Referenced by DrawNavLocationReadout(), DrawNavTextLine(), and DrawSelectedNavLegendEntry().
| unsigned int find_next_ship_turn_slot | ( | short | obj | ) |
Definition at line 824 of file mission.c.
References acTurnIntervalArray, acTurnRegulatorsArray, aeObjectClass, aiPilotLevel, anPilotTurnInterval, find_next_ship_turn_slot(), and OBJECT_CLASS_SHIP.
Referenced by find_next_ship_turn_slot(), and init_ship().
| int free_all_slots | ( | void | ) |
Definition at line 397 of file mission.c.
References aObjectResourceSlotsArray, free_all_slots(), free_ship(), GetScreenUpdateFlag(), initialize_view_buffer(), and release_all_capital_ship_shapes().
Referenced by death_sequence(), ejection_sequence(), free_all_slots(), GameFlow(), RunTrainSim(), ShowCampaignVictorySequence(), ShowTigerClawEscapeScene(), stranded_sequence(), and Title_Sequence().
| void free_pilot_talk | ( | short | personality | ) |
Definition at line 582 of file mission.c.
References aapszPilotSpeeches, apCommunicationPortraitShapesTable, free_pilot_talk(), and FreePacketAndClear().
Referenced by free_pilot_talk(), FreeAllPilotTalk(), and get_pilot_talk().
| int free_ship | ( | short | slot | ) |
Definition at line 330 of file mission.c.
References aapPacketReferences, aeObjectClass, aeObjectTypeList, ObjectTypeData::animation, aObjectResourceSlotsArray, aObjectTypeData, apObjShapeArray, bCurrentExpandedMemoryAvail, free_ship(), FreePacketAndClear(), OBJECT_CLASS_ASTEROID, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_TYPE_ASTEROID1, OBJECT_TYPE_ASTEROID2, OBJECT_TYPE_ASTEROID3, OBJECT_TYPE_ASTEROID4, OBJECT_TYPE_ASTEROID5, OBJECT_TYPE_ASTEROID6, OBJECT_TYPE_ASTEROID_FIELD, OBJECT_TYPE_MINE_FIELD, OBJECT_TYPE_ROCK_CHUNK, release_capital_ship_shapes(), remove_object(), ObjectTypeData::shape, ObjectTypeData::shapeSet, and SPACE_LAST_MOVING_OBJECT.
Referenced by free_3Space_objects(), free_all_slots(), free_ship(), new_sphere_shapes(), and ShowCarrierLaunchSequence().
Definition at line 600 of file mission.c.
References free_pilot_talk(), and FreeAllPilotTalk().
Referenced by FreeAllPilotTalk().
| void get_pilot_talk | ( | short | personality | ) |
Definition at line 610 of file mission.c.
References aapszPilotSpeeches, AllocateTaggedMemory(), CloseDataFile(), DosStrcpy(), free_pilot_talk(), get_pilot_talk(), LoadCommPortraitShape(), OpenDataFileOrDie(), pDiskFileRecords, PromptInsertNumberedDisk(), ReadDataFileAtOffset(), and ShowModalMessage().
Referenced by get_pilot_talk(), and init_personalities().
| short get_shape_slot | ( | void | ) |
Definition at line 443 of file mission.c.
References aObjectResourceSlotsArray, and get_shape_slot().
Referenced by get_shape_slot(), and new_sphere_shapes().
| void IncludeNavMapWorldPoint | ( | int | worldX, |
| int | worldZ ) |
Definition at line 1071 of file mission.c.
References CheckPoint(), IncludeNavMapWorldPoint(), and nav_getxy().
Referenced by IncludeNavMapWorldPoint(), and SetScale().
| unsigned int init_intelligence_data | ( | short | obj | ) |
Definition at line 893 of file mission.c.
References abShipTurnList, acShipRating, acShipStressList, advance_canned_sequence(), aeShipManeuversTable, aeShipMissionType, aeShipSide, aeShipTacticArray, aeSpecialManeuvers, aiPilotLevel, aMissionNavPoints, anShipMissionShips, apCannedSequenceList, aShipMissionSpotArray, clear_alert(), MissionHeaderDisk::homeMissionShip, init_intelligence_data(), locate_ship(), MANEUVER_WARPING_IN, MISSION_TYPE_CANNED_SEQUENCE, MISSION_TYPE_COME_HOME, MISSION_TYPE_DEFEND, MISSION_TYPE_ESCORT, MISSION_TYPE_GOTO_WARP, MISSION_TYPE_STRIKE, MISSION_TYPE_WARP_ARRIVE, MISSION_TYPE_WINGMAN, nCurrentNavigationPoint, MissionNavPoint::position, RATING_ACE_SPIRIT, RATING_PROVINCIAL, SIDE_KILRATHI, SPECIAL_MANEUVER_NONE, stCurrentMissionHeader, and TACTIC_WARP_IN.
Referenced by init_intelligence_data(), and Set_up_ship_info().
| unsigned int init_mission | ( | short | series, |
| short | mission ) |
Definition at line 99 of file mission.c.
References aMissionResourceDescriptors, aObjectTypeData, init_3Space_objects(), init_mission(), InitializeCockpitResources(), LoadMissionData(), LoadPacketResourceList(), nAvailableGameMemory, nSceneResourceBudgetValue, OBJECT_TYPE_DEBRIS_METAL_SHEET, OBJECT_TYPE_DEBRIS_WING, CampaignState::playerShipType, prepare_mission(), ObjectTypeData::shapeSet, and stCampaignState.
Referenced by GameFlow(), init_mission(), main(), and RunTrainSim().
| unsigned int init_personalities | ( | void | ) |
Definition at line 640 of file mission.c.
References ACTIVE_MISSION_SHIP_COUNT, aMissionShips, get_face(), get_pilot_talk(), init_personalities(), prepare_ace(), SIDE_IMPERIAL, and SIDE_KILRATHI.
Referenced by init_personalities(), and InitializeCockpitResources().
| short init_ship | ( | short | missionShip, |
| short | navPoint ) |
Definition at line 849 of file mission.c.
References add_hazard_field(), AddFixedVectors(), aMissionNavPoints, aMissionShips, MissionShipRecord::behaviour, check_futurion(), find_next_ship_turn_slot(), find_ship_index(), init_ship(), initialize_ship(), is_alive(), is_team_member(), MISSION_TYPE_CANNED_SEQUENCE, MissionShipRecord::missionType, MissionShipRecord::navPoint, OBJECT_TYPE_ASTEROID_FIELD, OBJECT_TYPE_MINE_FIELD, MissionShipBehaviour::pilot, MissionShipRecord::position, Set_up_ship_info(), MissionShipRecord::speed, MissionShipRecord::state, and MissionShipRecord::type.
Referenced by init_ship(), prepare_mission(), set_up_action_sphere(), and set_up_next_wave().
| short initialize_ship | ( | enum ObjectType | type, |
| short | owner ) |
| unsigned int is_alive | ( | int | pilot | ) |
Definition at line 74 of file mission.c.
References ace_status(), is_alive(), nArcadeState, CampaignState::personalityDeathMission, and stCampaignState.
Referenced by init_ship(), is_alive(), and prepare_mission().
| unsigned int is_team_member | ( | short | missionShip | ) |
Definition at line 805 of file mission.c.
References MissionHeaderDisk::initialMissionShips, is_team_member(), MissionHeaderDisk::playerMissionShip, and stCurrentMissionHeader.
Referenced by auto_pilot_sequence(), init_ship(), and is_team_member().
| int load_all_slots | ( | void | ) |
Definition at line 413 of file mission.c.
References aObjectResourceSlotsArray, GetScreenUpdateFlag(), load_all_slots(), load_ship(), and release_all_capital_ship_shapes().
Referenced by death_sequence(), ejection_sequence(), and load_all_slots().
| int load_ship | ( | enum ObjectType | type, |
| short | slot ) |
Definition at line 202 of file mission.c.
References aapPacketReferences, aeObjectClass, aeObjectTypeList, ObjectResourceSlot::animation, ObjectTypeData::animation, aObjectResourceSlotsArray, aObjectTypeData, apObjShapeArray, asCapitalShipViewFramesTable, bCurrentExpandedMemoryAvail, cCurrentObjResourceLogicalFile, FetchDiskPacketRetrying(), FreePacketAndClear(), load_ship(), nMemoryConfig, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, OBJECT_TYPE_ASTEROID1, OBJECT_TYPE_ASTEROID2, OBJECT_TYPE_ASTEROID3, OBJECT_TYPE_ASTEROID4, OBJECT_TYPE_ASTEROID5, OBJECT_TYPE_ASTEROID6, OBJECT_TYPE_ASTEROID_FIELD, OBJECT_TYPE_MINE_FIELD, OBJECT_TYPE_ROCK_CHUNK, ObjectResourceSlot::shape, ObjectTypeData::shape, ObjectResourceSlot::shapeSet, ObjectTypeData::shapeSet, SPACE_LAST_MOVING_OBJECT, and ObjectResourceSlot::type.
Referenced by load_all_slots(), load_common_3Space_objects(), load_ship(), new_sphere_shapes(), and prepare_mission().
| short MaxShort | ( | short | a, |
| short | b, | ||
| ... ) |
Definition at line 29 of file mathutil.c.
| short MinShort | ( | short | a, |
| short | b ) |
Definition at line 20 of file mathutil.c.
| void nav_getxy | ( | short * | x, |
| short * | y, | ||
| int | worldX, | ||
| int | worldZ ) |
Definition at line 1039 of file mission.c.
References nav_getxy(), nNavMapCoordinateScaling, and ScaleNavMapCoordinates().
Referenced by Build_objective_list(), BuildMap(), DrawNavHazardMarker(), DrawNavPlayerMarker(), IncludeNavMapWorldPoint(), nav_getxy(), and SetScale().
| int new_sphere_shapes | ( | MissionNavPoint * | navPoint | ) |
Definition at line 484 of file mission.c.
References aObjectResourceSlotsArray, free_ship(), get_shape_slot(), GetScreenUpdateFlag(), initialize_view_buffer(), load_ship(), new_sphere_shapes(), MissionNavPoint::preloadObjectTypes, release_all_capital_ship_shapes(), shape_loaded(), shape_needed(), and ObjectResourceSlot::type.
Referenced by new_sphere_shapes(), set_up_action_sphere(), and set_up_next_wave().
Definition at line 116 of file mission.c.
References acPlayerComponentDamageList, aMissionShips, bCurrentPlayerDestroyed, MissionShipRecord::behaviour, bInitialFormationSetup, bLandingAuthorized, Build_objective_list(), MissionHeaderDisk::entryNavPoint, find_ships_sphere(), init_ship(), MissionHeaderDisk::initialMissionShips, is_alive(), load_ship(), MISSION_SHIP_SCAN_LIMIT, CampaignState::missionScore, MissionShipRecord::navPoint, nCarrierMissionShipIndexValue, nCurrentWingmanKilledThisMission, nFreeShipSlot, nMissionMedalScoreValue, nPlayerKillTotal, nStartNavPointOverride, nTargetLockMode, nTrainSimActive, nWingmanKillCount, nYourWingman, OBJECT_TYPE_TIGERS_CLAW, MissionShipBehaviour::pilot, MissionHeaderDisk::playerMissionShip, CampaignState::playerShipType, prepare_mission(), set_objects_data(), Set_up_ship_info(), stCampaignState, stCurrentMissionHeader, and MissionShipRecord::type.
Referenced by init_mission(), and prepare_mission().
| short ReadJoystickButtons | ( | void | ) |
Definition at line 982 of file mission.c.
References GetJoystickButtons(), and ReadJoystickButtons().
Referenced by ReadJoystickButtons().
| int release_all_capital_ship_shapes | ( | void | ) |
Definition at line 170 of file mission.c.
References aeObjectClass, apObjShapeArray, asCapitalShipViewFramesTable, FreePacketAndClear(), OBJECT_CLASS_CAPITAL_SHIP, and release_all_capital_ship_shapes().
Referenced by free_all_slots(), load_all_slots(), new_sphere_shapes(), and release_all_capital_ship_shapes().
| int release_capital_ship_shapes | ( | enum ObjectType | type | ) |
Definition at line 185 of file mission.c.
References aeObjectTypeList, aObjectTypeData, apObjShapeArray, asCapitalShipViewFramesTable, FreePacketAndClear(), OBJECT_CLASS_CAPITAL_SHIP, and release_capital_ship_shapes().
Referenced by free_ship(), and release_capital_ship_shapes().
Definition at line 432 of file mission.c.
References remove_nav_point_objects(), and remove_object().
Referenced by remove_nav_point_objects(), and ShowCarrierLaunchSequence().
| unsigned int room_for_me | ( | short | obj, |
| short | minimum ) |
Definition at line 670 of file mission.c.
References room_for_me().
Referenced by approve_xyz(), and room_for_me().
Definition at line 990 of file mission.c.
References aInputDevSamples, nCurrentActiveInputDevice, SampleActiveJoystickDevice(), and SampleJoystickDevice().
Referenced by SampleActiveJoystickDevice().
| short __stdcall SampleBothJoysticks | ( | InputDeviceSample * | samples, |
| short | fallback ) |
Definition at line 945 of file mission.c.
References GetJoystickPosition(), and SampleBothJoysticks().
Referenced by LoadJoystickCalibrationFile(), and SampleBothJoysticks().
| int __stdcall SampleJoystickDevice | ( | InputDeviceSample * | samples, |
| short | joystick, | ||
| unsigned short | fallback ) |
Definition at line 958 of file mission.c.
References InputDeviceSample::buttons, GetJoystickPosition(), nCurrentActiveInputDevice, SampleJoystickDevice(), InputDeviceSample::x, and InputDeviceSample::y.
Referenced by CalibrateJoystickInteractive(), ReadCalibratedJoystick(), SampleActiveJoystickDevice(), SampleJoystickDevice(), UpdateInputDeviceTransitions(), WaitForJoystickButtonPress(), and WaitForJoystickButtonRelease().
| void ScaleNavMapCoordinates | ( | short * | x, |
| short * | y, | ||
| short | mapX, | ||
| short | mapY ) |
Definition at line 1030 of file mission.c.
References nNavMapCenterPositionY, nNavMapCentreX, nNavMapScale, and ScaleNavMapCoordinates().
Referenced by BuildMap(), CentreMouseOnCurrentNavObjective(), nav_getxy(), ScaleNavMapCoordinates(), and SelectNavObjectiveAtPoint().
| void ScaleNavMapMarkerSize | ( | short * | size | ) |
Definition at line 1024 of file mission.c.
References nNavMapScale, and ScaleNavMapMarkerSize().
Referenced by DrawNavHazardMarker(), and ScaleNavMapMarkerSize().
| unsigned int set_formation_position | ( | short | obj, |
| const MissionShipRecord * | record ) |
Definition at line 733 of file mission.c.
References aaFormationPositions, aMissionShips, anShipSpeed, aShipFormationDeltaList, aShipPositionsArray, bInitialFormationSetup, copy_frame(), find_ship_index(), MissionShipRecord::formationIndex, MissionShipRecord::formationSpot, MissionShipRecord::leaderMissionIndex, offset_location(), set_formation_position(), set_sphere_point(), MissionShipRecord::speed, and sub_int_vector().
Referenced by set_formation_position(), and Set_up_ship_info().
| void set_sphere_point | ( | const MissionShipRecord * | record, |
| FixedVector * | position ) |
Definition at line 65 of file mission.c.
References AddFixedVectors(), aMissionNavPoints, MissionShipRecord::navPoint, MissionNavPoint::position, MissionShipRecord::position, and set_sphere_point().
Referenced by Build_objective_list(), set_formation_position(), set_sphere_point(), and Set_up_ship_info().
| int set_up_action_sphere | ( | short | navPoint | ) |
Definition at line 519 of file mission.c.
References acShipSpawnNavPt, aeObjectClass, aeShipMissionType, aMissionNavPoints, aMissionShips, apObjShapeArray, asObjectScreenXList, bLandingAuthorized, clean_up_cockpit(), cMissionObjectiveCountValue, explode(), FreePacketAndClear(), init_ship(), LocateMobileObjective(), MISSION_TYPE_ROUT, MissionNavPoint::missionShips, nCurrentHazardFieldTotal, nCurrentNavigationPoint, nCurrentWave, nEnemySighting, new_sphere_shapes(), nShipMissionIndices, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, remove_all_hazards(), remove_object(), set_up_action_sphere(), MissionShipRecord::state, MissionNavPoint::triggers, and MissionNavPoint::type.
Referenced by ReleaseStaleNavTarget(), RunSpaceFlight(), set_up_action_sphere(), ShowCampaignVictorySequence(), ShowTigerClawEscapeScene(), and Title_Sequence().
Definition at line 687 of file mission.c.
References aMissionNavPoints, approve_xyz(), FigureArcadeTime(), GetArcadeBonus(), init_ship(), MissionNavPoint::missionShips, nArcadeBonusCountdown, nCannedSceneMode, nCurrentNavigationPoint, nCurrentWave, new_sphere_shapes(), nTrainSimActive, set_up_next_wave(), spacetrack(), and MissionNavPoint::type.
Referenced by check_next_wave(), RunTrainSim(), and set_up_next_wave().
| unsigned int Set_up_ship_info | ( | short | obj, |
| short | missionShip, | ||
| signed char | navPoint ) |
Definition at line 765 of file mission.c.
References abShipExhaustHeatList, acPreviousAttackers, acShipCommunicatorArray, acShipDestroyedWeaponCountArray, acShipDmg, acShipIonDriveDmg, acShipPointingModeList, acShipSpawnNavPt, acWingmanMessageStatesArray, aeShipSide, aiPilotLevel, alter_pitch(), alter_roll(), alter_yaw(), aMissionShips, anShipMissionShips, anShipSpeed, apCannedSequenceList, asActionCounts, asCannedCommands, asCapitalShipViewFramesTable, aShipPositionsArray, aShipVelocity, asShipAccumulatedDmg, asShipWingLeaderArray, MissionShipRecord::behaviour, find_ship_index(), init_intelligence_data(), MissionShipRecord::leaderMissionIndex, MissionShipRecord::missionType, nShipMissionIndices, MissionShipBehaviour::pilot, MissionShipRecord::pitch, reset_mission_type(), MissionShipRecord::roll, set_formation_position(), set_sphere_point(), Set_up_ship_info(), MissionShipRecord::side, MissionShipRecord::speed, MissionShipRecord::targetMissionIndex, MissionShipRecord::yaw, and zero_vector().
Referenced by init_ship(), prepare_mission(), and Set_up_ship_info().
| void SetNavMapCoordinateScaling | ( | short | enabled | ) |
Definition at line 1018 of file mission.c.
References nNavMapCoordinateScaling, and SetNavMapCoordinateScaling().
Referenced by Build_objective_list(), SetNavMapCoordinateScaling(), and SetScale().
Definition at line 1081 of file mission.c.
References aMissionObjectivesArray, aShipPositionsArray, CheckPoint(), cMissionObjectiveCountValue, find_ship_index(), IncludeNavMapWorldPoint(), MissionObjective::mapX, MissionObjective::mapY, MaxShort(), mobile_objective(), nav_getxy(), nNavigationMapMinimumCoordX, nNavigationMapMinimumPositionY, nNavMapCenterPositionY, nNavMapCentreX, nNavMapMaximumPositionX, nNavMapMaximumPosY, nNavMapScale, MissionObjective::position, SetNavMapCoordinateScaling(), SetScale(), and FixedVector::z.
Referenced by BuildMap(), and SetScale().
| int shape_loaded | ( | enum ObjectType | type | ) |
Definition at line 456 of file mission.c.
References aObjectResourceSlotsArray, and shape_loaded().
Referenced by new_sphere_shapes(), and shape_loaded().
| int shape_needed | ( | const MissionNavPoint * | navPoint, |
| enum ObjectType | type ) |
Definition at line 470 of file mission.c.
References MissionNavPoint::preloadObjectTypes, and shape_needed().
Referenced by new_sphere_shapes(), and shape_needed().
| unsigned int sub_int_vector | ( | const ShortVector * | left, |
| const ShortVector * | right, | ||
| ShortVector * | difference ) |
Definition at line 722 of file mission.c.
References sub_int_vector(), ShortVector::x, ShortVector::y, and ShortVector::z.
Referenced by set_formation_position(), and sub_int_vector().
|
static |
Definition at line 20 of file mission.c.
Referenced by set_formation_position().
| void* aapPacketReferences[4][0x25] = {0} |
Definition at line 17 of file mission.c.
Referenced by free_ship(), get_right_shape(), load_ship(), and ReleasePacketHandle().
| unsigned char abSeriesAuxData[0x28] |
Definition at line 55 of file mission.c.
Referenced by AddPCName(), DrawNavLocationReadout(), and LoadMissionData().
| MissionObjectiveSource aMissionObjectiveSources[16] |
Definition at line 56 of file mission.c.
Referenced by Build_objective_list(), and LoadMissionData().
|
static |
Definition at line 50 of file mission.c.
Referenced by find_next_ship_turn_slot().
|
static |
Definition at line 16 of file mission.c.
Referenced by prepare_mission(), and set_formation_position().
| signed char cCurrentObjResourceLogicalFile |
Definition at line 60 of file mission.c.
Referenced by load_ship(), and LoadTrainSimOpponentShape().
| short nDebriefingPersonality = 0 |
Definition at line 14 of file mission.c.
Referenced by DrawDebriefingLongShot(), and GameFlow().
| short nSceneScrambleCanopyFrameValue |
Definition at line 62 of file mission.c.
Referenced by DrawScrambleFrame(), landing(), and scramble().
| CampaignDate* pCurrentCampaignDate |
Definition at line 58 of file mission.c.
Referenced by AddPCName(), CorrectPointers(), MoveNewCampaign(), ShowChalkBoard(), and UpdateSeries().
| CampaignDate* pElapsedCampaignDatePtr |
Definition at line 59 of file mission.c.
Referenced by AddPCName(), CorrectPointers(), InflightComputer(), and UpdateInflightNavText().
| Viewport* pScrambleView |
Definition at line 61 of file mission.c.
Referenced by DrawScrambleActor(), landing(), scramble(), and ShowCarrierLaunchSequence().
| MissionHeaderDisk stCurrentMissionHeader |
Definition at line 57 of file mission.c.
Referenced by cleanup_objectives(), coming_home(), DrawNavLocationReadout(), GameFlow(), init_intelligence_data(), is_team_member(), LoadMissionData(), prepare_mission(), and RunSpaceFlight().