|
Wing Commander II
Reconstructed Win32 source (1996)
|
Wingman orders and landing requests. More...
#include "game.h"Go to the source code of this file.
Functions | |
| void | cleanup_objectives (void) |
| short | IsShipRouting (short ship) |
| void | SendWingmanCommandAcknowledgement (short ship, short accepted) |
| short | report_kilrathi_rout (int mode) |
| short | detect_enemy_tail (short obj) |
| short | any_enemy (short obj, short range) |
| void | engage (short obj, short target, short objective) |
| unsigned int | reset_objective (short ship, short objective) |
| unsigned int | alter_objective (short ship, short objective) |
| short | disobey_formation (short ship) |
| short | IsEngagementTargetDisallowed (short ship, short target) |
| short | CanPlayerLand (void) |
| short | triumph (short obj) |
| void | request (short requester, short ship, short command) |
| short | ShouldWingmanAcceptRoutCommand (short ship, short pilot) |
Variables | |
| short | g_bEjectionSequencePending = 0 |
Wingman orders and landing requests.
Definition in file orders.c.
| unsigned int alter_objective | ( | short | ship, |
| short | objective ) |
| short CanPlayerLand | ( | void | ) |
Definition at line 129 of file orders.c.
References achieved(), CanPlayerLand(), g_36_cPilotKillCountValue, g_aeObjectClass, g_aMissionObjectives, g_asShipSide, g_cMissionObjectiveCount, OBJECT_CLASS_SHIP, SIDE_KILRATHI, and visited().
Referenced by CanPlayerLand(), request(), and UpdateShipTurretGuns().
Definition at line 11 of file orders.c.
References achieved(), affect_mission_score(), cleanup_objectives(), distance_from_object(), MissionHeader::entryNavPoint, find_ship_index(), flag_objective(), g_13_stMissionHeaderBlock, g_aMissionNavPoints, g_aMissionObjectives, g_aMissionShips, MissionObjective::index, MISSION_TYPE_COME_HOME, MISSION_TYPE_GOTO_WARP, MISSION_TYPE_WARP_ARRIVE, MissionNavPoint::proximityRadius, sighted(), MissionShipRecord::state, visited(), and MissionHeader::wingmanMissionShip.
Referenced by cleanup_objectives(), request(), and UpdateShipTurretGuns().
| short disobey_formation | ( | short | ship | ) |
Definition at line 102 of file orders.c.
References any_enemy(), detect_enemy_tail(), disobey_formation(), ShipIntelligenceMetadata::formationDisobeyMode, g_nYourWingman, g_stWingmanIntelligence, and report_kilrathi_rout().
Referenced by disobey_formation(), request(), and UpdateShipTurretGuns().
| short IsEngagementTargetDisallowed | ( | short | ship, |
| short | target ) |
Definition at line 121 of file orders.c.
References g_asShipSide, IsEngagementTargetDisallowed(), and IsShipRouting().
Referenced by IsEngagementTargetDisallowed(), request(), and UpdateShipTurretGuns().
| short IsShipRouting | ( | short | ship | ) |
Definition at line 75 of file orders.c.
References g_asShipMissionType, IsShipRouting(), and MISSION_TYPE_ROUT.
Referenced by IsEngagementTargetDisallowed(), IsShipRouting(), request(), and UpdateShipTurretGuns().
| void request | ( | short | requester, |
| short | ship, | ||
| short | command ) |
Definition at line 182 of file orders.c.
References allow_engage(), alter_objective(), CanPlayerLand(), CanShipWeaponDamageTarget(), cleanup_objectives(), disallow_engage(), disobey_formation(), ejection_sequence(), engage(), g_6_nHomeOperationShipIndexValue, g_acShipTarget, g_aeObjectClass, g_aeShipObjective, g_aeSpecialManeuver, g_asPilotLevel, g_asShipIdentified, g_asShipMissionIndex, g_asShipSide, g_bDisplayWingmanTargetData, g_bEjectionAwaitingCommCommand, g_bEjectionSequencePending, g_bEngageAllowed, g_bLandingCommRequestPending, g_bRadioSilence, g_nAutoEngageTimer, g_nEnemyTauntCommandBase, g_nYourWingman, g_ucPendingEjectionTransition, IsEngagementTargetDisallowed(), IsShipRouting(), OBJECT_CLASS_SHIP, OBJECTIVE_BREAK_FORMATION, OBJECTIVE_ENGAGE_ENEMY, OBJECTIVE_HOLD_FORMATION, RandomBelow(), request(), reset_objective(), send_message(), SendWingmanCommandAcknowledgement(), ShipHasTorpedo(), ShouldWingmanAcceptRoutCommand(), SIDE_KILRATHI, SPECIAL_MANEUVER_UNKNOWN_9, and try2rout().
Referenced by Chosen_communicate_option(), IssueQuickCommCommand(), request(), and UpdateShipTurretGuns().
| unsigned int reset_objective | ( | short | ship, |
| short | objective ) |
| void SendWingmanCommandAcknowledgement | ( | short | ship, |
| short | accepted ) |
Definition at line 84 of file orders.c.
References send_message(), and SendWingmanCommandAcknowledgement().
Referenced by request(), SendWingmanCommandAcknowledgement(), and UpdateShipTurretGuns().
| short ShouldWingmanAcceptRoutCommand | ( | short | ship, |
| short | pilot ) |
Definition at line 157 of file orders.c.
References any_enemy(), g_asShipMissionType, g_nYourWingman, g_stWingmanIntelligence, MISSION_TYPE_CANNED_SEQUENCE, ShipIntelligenceMetadata::routDecisionMode, ShouldWingmanAcceptRoutCommand(), and triumph().
Referenced by request(), ShouldWingmanAcceptRoutCommand(), and UpdateShipTurretGuns().
| short g_bEjectionSequencePending = 0 |
Definition at line 8 of file orders.c.
Referenced by check_message(), and request().