Wing Commander
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
logic.c File Reference

Ship mission logic, resource ownership and scene animation. More...

#include <sys/types.h>
#include "wc1.h"
#include <crtdbg.h>

Go to the source code of this file.

Macros

#define WC1_LOGIC_SOURCE

Functions

short ace_status (short ace, unsigned char bits)
void unflag_ace (short ace, unsigned char bits)
void flag_ace (short ace, unsigned char bits)
void kill_ace (short ace)
void ace_greeting (short obj)
void prepare_ace (short ace)
short signed_random (short range)
int alert_flag (short ship, unsigned int bits)
unsigned int HasSpeechBuffer (void)
unsigned short set_alert (short i, unsigned int bits)
void clear_alert (short i)
void start_collision_alert (short obj, short other)
void try2end_collision_alert (short obj)
short normal_speed (short obj)
short real_crash_time (short obj, short other)
void clear_crash_cache (void)
short crash_time (short obj, short other)
unsigned int unactive (short ship)
short detect_collisions (short obj)
int are_alive (short obj)
int trim_goals (short obj, short amount)
int report_kilrathi_rout (int mode)
void maneuver_complete (short ship)
int being_tailed (short obj, short other)
unsigned int build_squad_list (short leader)
unsigned int find_squad_center (FixedVector *center)
unsigned int reset_objective (short ship, enum ShipObjective objective)
unsigned int reset_tactic (short ship, enum ShipTactic tactic)
void zero_vector (FixedVector *vector)
short find_ship_index (short missionShip)
unsigned int reset_mission_type (short obj, enum ShipMissionType missionType)
short try2rout (short obj)
signed char no_goal (short ship)
int any_enemy_tail (short obj)
unsigned int alter_tactic (short ship, enum ShipTactic tactic)
short detect_enemy_tail (short obj)
int is_ship_tailing_player_target (short obj)
int missile_on_tail (short obj)
short select_weighted_value (short *choices)
unsigned int init_formation_burst (short obj)
unsigned int change_mission_type (short obj, enum ShipMissionType missionType)
unsigned int alter_objective (short ship, enum ShipObjective objective)
void reset_maneuver (short ship, short maneuver)
void try2reset_maneuver (short obj, short maneuver)
unsigned int set_special (short ship, enum SpecialManeuver special)
unsigned int approach_zero_speed (short ship)
unsigned int approach_min_speed (short obj)
unsigned int approach_half_speed (short obj)
unsigned int approach_cruise_speed (short ship)
unsigned int approach_full_speed (short ship)
unsigned int approach_ship_speed (short obj, short other)
unsigned int get_front_spot (short obj, unsigned short distance, FixedVector *point)
unsigned int get_rear_spot (short obj, unsigned short distance, FixedVector *point)
unsigned int close_behind (volatile short range)
short distance_from_point (short obj, const FixedVector *point)
void get_facing_range_from_object (short obj, short other)
short MinShort (short a, short b)
void fire (short obj, short target)
unsigned int IsVectorWithinRange (FixedVector *vector, short range)
unsigned int ships_within_range (short obj, short other, short range)
short build_target_list (short obj, short range)
int in_danger (short obj)
void inherit_leader_mission (short obj)
short skill_rating (short obj)
unsigned int dead_ship (short missionShip)
short find_ships_sphere (short missionShip)
unsigned int get_follow_point (short obj, FixedVector *point)
short FindNearestNavPoint (short ship)
int hostile_sphere (short obj, short navPoint)
int explode (short attacker, short victim)
short visited (short objective)
short find_weapon (short obj, enum ObjectType weaponType)
void * FetchDiskPacketRetrying (short logicalFile, short section, short flags)
void FreePacketAndClear (void *slot, unsigned short releaseFlags)
void __stdcall PromptInsertNumberedDisk (short logicalFile)
unsigned int __stdcall GetPacketSize (const char *filename, short section)
void __stdcall SetPaletteEntry (short index, short *rgb)
void ClearViewport (Viewport *viewport, short colour)
void DrawSpriteDefault (Viewport *viewport, short x, short y, struct Shape *shape, short frame)
void ReleasePacketHandle (void *handle)
short scan_for_enemy (short obj, unsigned short range)
int any_enemy (short obj, short range)
short nearest_enemy_range (short obj)
int FindEnemyAimingWithinRange (short obj, short range)
unsigned int FireOnAlternateTurns (short obj)
void fire_when_ready (short obj, short aimed)
int attacker_in_range (short obj, unsigned short range)
unsigned int target_within_range (short obj)
int select_safe_target (short obj)
void inherit_leader (short obj)
int gone_ship (short missionShip)
int skill_check (short obj, short difficulty)
int locate_ship (short missionShip, FixedVector *point)
unsigned int get_first_follow_point (short obj, FixedVector *point)
int abandoned (short obj, short other)
void engage (short obj, short target, enum ShipObjective objective)
int target_valid (short obj)
unsigned int triumph (short obj)
short find_ratio (short inputMinimum, short inputMaximum, short input, short outputMinimum, short outputMaximum)
short evaluate_damage (short obj)
short mine_available (short obj)
int LoadShapeSet (PacketResourceDescriptor *resources, unsigned short flags, short defaultLogicalFile)
int FreeShapeSet (PacketResourceDescriptor *resources, unsigned short releaseFlags)
int LoadPacketResourceList (PacketResourceDescriptor *resources, short flags, int availableBytes)
unsigned int ResetCockpitPaletteEntries (void)
unsigned int initialize_cockpit (int requestedMode)
unsigned int InitializeConstellationObject (const ConstellationObjectDefinition *definition, short object)
unsigned int FreeConstellationObject (short object)
unsigned int init_constellation (short scene)
unsigned int free_constellation (void)
void init_vdus (void)
unsigned int InitializeCockpitResources (signed char mode)
unsigned int free_cockpit (void)
unsigned int init_3Space_objects (short scene)
unsigned int load_common_3Space_objects (void)
unsigned int remove_all_3d_objects (void)
unsigned int free_3Space (void)
unsigned int free_3Space_objects (void)
unsigned int init_inflight_music (void)
unsigned int free_inflight_music (void)
unsigned int PreloadMusicTrackHook (short track)
unsigned int ReleaseMusicTrackHook (short track)
unsigned short LoadSceneAnimationResources (short scene, short variant)
void ReleaseSceneAnimationResources (void)
signed char *__stdcall FindSceneAnimationCommand (signed char *script, signed char command)
short __stdcall SceneAnimationGoalReached (short delta, short current, short goal)
unsigned short __stdcall UpdateSceneAnimationObject (SceneAnimationObject *object, Viewport *viewport)
void PlaySceneAnimation (char *text, short animation, short duration)

Variables

PacketResourceDescriptor aCommon3SpaceResources [12]
PacketResourceDescriptor aMissionResourceDescriptors [5]
PacketResourceDescriptor aCockpitResourceDescriptors [19]
PacketResourceDescriptor aCockpitSecondaryResources [5]
PacketResourceDescriptor aCockpitPrimaryResources [8]
unsigned int bIntroSceneResourcesActive = 1
short asConstellationObjectIndices [4]
int bCockpitResourcesActive = 0
int b3SpaceObjectsActive = 0
short asSceneAnimationLogicalFiles [8]
short bSceneAnimationWaitCommand = 0
unsigned char * pSceneAnimationSceneDataPtr
struct Shape * pCurrentSceneAnimationPrimaryShape
unsigned char * pSceneAnimationTextData
unsigned char * pSceneAnimationPacketPtr
SceneAnimationObject * pSceneAnimationObjects
short nSceneAnimationDelayFrames
unsigned char * pSceneAnimationDefinitionsPtr
struct Shape * pSceneAnimationSecondaryShape
signed char cCockpitLogicalFile
struct Shape * apCockpitShapesList [4]
struct Shape * pCinematicViewBackdropPtr
struct Shape * pLogicRearViewBackdropPtr
int bCurrentPlayerDestroyed
short nPlayerKillTotal

Detailed Description

Ship mission logic, resource ownership and scene animation.

Address range 422010-42572f; its interior boundaries are provisional. The preceding startup unit has a separate pool of initialized data and string literals.

Definition in file logic.c.

Macro Definition Documentation

◆ WC1_LOGIC_SOURCE

#define WC1_LOGIC_SOURCE

Definition at line 19 of file logic.c.

Function Documentation

◆ abandoned()

◆ ace_greeting()

void ace_greeting ( short obj)

Definition at line 142 of file logic.c.

References ace_greeting(), ace_status(), aiPilotLevel, flag_ace(), and send_message().

Referenced by ace_greeting(), and engage().

◆ ace_status()

short ace_status ( short ace,
unsigned char bits )

◆ alert_flag()

int alert_flag ( short ship,
unsigned int bits )

◆ alter_objective()

unsigned int alter_objective ( short ship,
enum ShipObjective objective )

Definition at line 685 of file logic.c.

References aeShipObjectiveList, alter_objective(), alter_tactic(), steady_object(), and TACTIC_NONE.

Referenced by alter_objective(), and request().

◆ alter_tactic()

unsigned int alter_tactic ( short ship,
enum ShipTactic tactic )

Definition at line 704 of file logic.c.

References aeShipTacticArray, alter_tactic(), MANEUVER_NONE, and reset_maneuver().

Referenced by alter_objective(), alter_tactic(), and patrol_area().

◆ any_enemy()

◆ any_enemy_tail()

◆ approach_cruise_speed()

◆ approach_full_speed()

◆ approach_half_speed()

◆ approach_min_speed()

unsigned int approach_min_speed ( short obj)

Definition at line 753 of file logic.c.

References approach_min_speed(), and approach_speed().

Referenced by approach_min_speed(), and goto_formation().

◆ approach_ship_speed()

unsigned int approach_ship_speed ( short obj,
short other )

◆ approach_zero_speed()

unsigned int approach_zero_speed ( short ship)

◆ are_alive()

int are_alive ( short obj)

Definition at line 363 of file logic.c.

References aeShipObjectiveList, are_alive(), OBJECTIVE_WANDER, and unactive().

Referenced by are_alive().

◆ attacker_in_range()

◆ being_tailed()

int being_tailed ( short obj,
short other )

◆ build_squad_list()

unsigned int build_squad_list ( short leader)

Definition at line 593 of file logic.c.

References acFormationMemberLists, asShipWingLeaderArray, and build_squad_list().

Referenced by build_squad_list(), and init_formation_burst().

◆ build_target_list()

◆ change_mission_type()

unsigned int change_mission_type ( short obj,
enum ShipMissionType missionType )

◆ clear_alert()

◆ clear_crash_cache()

void clear_crash_cache ( void )

Definition at line 295 of file logic.c.

References asCollisionPartnerTable, and clear_crash_cache().

Referenced by clear_crash_cache(), and update_objects_in_space().

◆ ClearViewport()

void ClearViewport ( Viewport * viewport,
short colour )

Definition at line 963 of file gr.c.

◆ close_behind()

unsigned int close_behind ( volatile short range)

Definition at line 814 of file logic.c.

References close_behind(), nTargetFacingValue, and nTgtRange.

◆ crash_time()

short crash_time ( short obj,
short other )

◆ dead_ship()

unsigned int dead_ship ( short missionShip)

Definition at line 1126 of file logic.c.

References aMissionShips, and dead_ship().

Referenced by close_behind(), dead_ship(), locate_ship(), and triumph().

◆ detect_collisions()

short detect_collisions ( short obj)

◆ detect_enemy_tail()

◆ distance_from_point()

short distance_from_point ( short obj,
const FixedVector * point )

Definition at line 655 of file geom.c.

◆ DrawSpriteDefault()

void DrawSpriteDefault ( Viewport * viewport,
short x,
short y,
struct Shape * shape,
short frame )

Definition at line 660 of file gr.c.

◆ engage()

◆ evaluate_damage()

◆ explode()

int explode ( short attacker,
short victim )

Definition at line 1340 of file ship.c.

◆ FetchDiskPacketRetrying()

void * FetchDiskPacketRetrying ( short logicalFile,
short section,
short flags )

Definition at line 126 of file disk.c.

◆ find_ratio()

short find_ratio ( short inputMinimum,
short inputMaximum,
short input,
short outputMinimum,
short outputMaximum )

◆ find_ship_index()

◆ find_ships_sphere()

short find_ships_sphere ( short missionShip)

◆ find_squad_center()

unsigned int find_squad_center ( FixedVector * center)

◆ find_weapon()

short find_weapon ( short obj,
enum ObjectType weaponType )

Definition at line 1888 of file ship.c.

◆ FindEnemyAimingWithinRange()

◆ FindNearestNavPoint()

short FindNearestNavPoint ( short ship)

Definition at line 1967 of file main.c.

◆ FindSceneAnimationCommand()

signed char *__stdcall FindSceneAnimationCommand ( signed char * script,
signed char command )

◆ fire()

void fire ( short obj,
short target )

Definition at line 1445 of file ship.c.

◆ fire_when_ready()

void fire_when_ready ( short obj,
short aimed )

◆ FireOnAlternateTurns()

unsigned int FireOnAlternateTurns ( short obj)

Definition at line 948 of file logic.c.

References abShipTurnList, acShipTargetTable, fire(), and FireOnAlternateTurns().

Referenced by FireOnAlternateTurns().

◆ flag_ace()

void flag_ace ( short ace,
unsigned char bits )

Definition at line 127 of file logic.c.

References CampaignState::aceFlags, flag_ace(), and stCampaignState.

Referenced by ace_greeting(), flag_ace(), kill_ace(), and prepare_ace().

◆ free_3Space()

◆ free_3Space_objects()

◆ free_cockpit()

◆ free_constellation()

◆ free_inflight_music()

◆ FreeConstellationObject()

unsigned int FreeConstellationObject ( short object)

◆ FreePacketAndClear()

void FreePacketAndClear ( void * slot,
unsigned short releaseFlags )

Definition at line 37 of file mathutil.c.

◆ FreeShapeSet()

int FreeShapeSet ( PacketResourceDescriptor * resources,
unsigned short releaseFlags )

◆ get_facing_range_from_object()

void get_facing_range_from_object ( short obj,
short other )

Definition at line 691 of file geom.c.

◆ get_first_follow_point()

unsigned int get_first_follow_point ( short obj,
FixedVector * point )

◆ get_follow_point()

◆ get_front_spot()

unsigned int get_front_spot ( short obj,
unsigned short distance,
FixedVector * point )

Definition at line 794 of file logic.c.

References AddFixedVectors(), aShipFwdVec, aShipPositionsArray, get_front_spot(), and ScaleFixedVector().

Referenced by get_front_spot(), and Mchill().

◆ get_rear_spot()

unsigned int get_rear_spot ( short obj,
unsigned short distance,
FixedVector * point )

Definition at line 804 of file logic.c.

References AddFixedVectors(), aShipFwdVec, aShipPositionsArray, get_rear_spot(), and ScaleFixedVector().

Referenced by get_rear_spot().

◆ GetPacketSize()

unsigned int __stdcall GetPacketSize ( const char * filename,
short section )

Definition at line 368 of file screen.c.

◆ gone_ship()

int gone_ship ( short missionShip)

Definition at line 1134 of file logic.c.

References aMissionShips, and gone_ship().

Referenced by check_destroy_target(), check_goal(), close_behind(), and gone_ship().

◆ HasSpeechBuffer()

unsigned int HasSpeechBuffer ( void )

Definition at line 176 of file logic.c.

References anShipAlertFlags, and HasSpeechBuffer().

Referenced by HasSpeechBuffer().

◆ hostile_sphere()

int hostile_sphere ( short obj,
short navPoint )

◆ in_danger()

◆ inherit_leader()

void inherit_leader ( short obj)

◆ inherit_leader_mission()

◆ init_3Space_objects()

◆ init_constellation()

◆ init_formation_burst()

◆ init_inflight_music()

unsigned int init_inflight_music ( void )

◆ init_vdus()

◆ initialize_cockpit()

◆ InitializeCockpitResources()

unsigned int InitializeCockpitResources ( signed char mode)

Definition at line 1741 of file logic.c.

References aCockpitPrimaryResources, aCockpitSecondaryResources, AllocateTaggedMemory(), AllocateViewport(), aObjectTypeData, aShipWeaponsTable, bCockpitResourcesActive, bCommVideoEnabled, ShortRect::bottom, bRadioSilence, cBlackColour, cCockpitLogicalFile, cCurrentCockpitView, clear_cockpit_damage(), ClearHudGunReadouts(), cPrimaryTextColour, free_cockpit(), GetScreenUpdateFlag(), init_personalities(), init_vdus(), InitializeCockpitReadout(), InitializeCockpitResources(), InitializeTextContextFromFont(), ShortRect::left, Viewport::left, CockpitLayout::leftVduBounds, LoadPacketAllocated(), LoadShapeSet(), MaxShort(), MeasureShapeFrameStorage(), nCockpitExplosionFrame, nMemoryConfig, nSceneResourceBudgetValue, OBJECT_CLASS_MISSILE, pCockpitExplosionBackground, pCockpitExplosionShape, pCockpitWeaponShapePtr, pCurrentPilotHandShapePtr, pCurrentScreenViewportPkt, pDamageDisplayBackground, CockpitLayout::pilotHandBounds, pRadarMarkerBackground, pReleaseWeaponDisplayBackground, pTgtLockShapePtr, CockpitLayout::readoutOrigins, reset_cockpit(), ResetScannerContacts(), ShortRect::right, CockpitLayout::rightVduBounds, SetTextContext(), SetTextCursor(), SetViewportRect(), stCockpitBar, stCockpitLayout, stCurrentCockpitReadoutTextCtx, stLeftVdu, stPilotHandBackdropView, stPilotHandComposite, stPilotHandView, stRightVduViewport, stScreenView, ShortRect::top, TextContext::viewport, ShortPoint::x, and ShortPoint::y.

Referenced by close_behind(), init_mission(), InitializeCockpitResources(), and RunAnimationDemoLoop().

◆ InitializeConstellationObject()

◆ is_ship_tailing_player_target()

int is_ship_tailing_player_target ( short obj)

◆ IsVectorWithinRange()

unsigned int IsVectorWithinRange ( FixedVector * vector,
short range )

Definition at line 1212 of file eventmgr.c.

◆ kill_ace()

void kill_ace ( short ace)

Definition at line 133 of file logic.c.

References ace_status(), flag_ace(), kill_ace(), and unflag_ace().

Referenced by kill_ace(), and personality_killed().

◆ load_common_3Space_objects()

◆ LoadPacketResourceList()

◆ LoadSceneAnimationResources()

◆ LoadShapeSet()

◆ locate_ship()

◆ maneuver_complete()

void maneuver_complete ( short ship)

Definition at line 90 of file fl.c.

◆ mine_available()

short mine_available ( short obj)

◆ MinShort()

short MinShort ( short a,
short b )

Definition at line 20 of file mathutil.c.

◆ missile_on_tail()

int missile_on_tail ( short obj)

◆ nearest_enemy_range()

◆ no_goal()

◆ normal_speed()

◆ PlaySceneAnimation()

◆ PreloadMusicTrackHook()

◆ prepare_ace()

void prepare_ace ( short ace)

Definition at line 153 of file logic.c.

References flag_ace(), prepare_ace(), and unflag_ace().

Referenced by init_personalities(), and prepare_ace().

◆ PromptInsertNumberedDisk()

void __stdcall PromptInsertNumberedDisk ( short logicalFile)

Definition at line 322 of file disk.c.

◆ real_crash_time()

◆ ReleaseMusicTrackHook()

◆ ReleasePacketHandle()

void ReleasePacketHandle ( void * handle)

Definition at line 50 of file ending.c.

◆ ReleaseSceneAnimationResources()

◆ remove_all_3d_objects()

unsigned int remove_all_3d_objects ( void )

◆ report_kilrathi_rout()

◆ reset_maneuver()

◆ reset_mission_type()

◆ reset_objective()

◆ reset_tactic()

◆ ResetCockpitPaletteEntries()

◆ scan_for_enemy()

◆ SceneAnimationGoalReached()

short __stdcall SceneAnimationGoalReached ( short delta,
short current,
short goal )

◆ select_safe_target()

int select_safe_target ( short obj)

◆ select_weighted_value()

short select_weighted_value ( short * choices)

Definition at line 575 of file logic.c.

References RandomBelowOrEqual(), and select_weighted_value().

Referenced by select_weighted_value().

◆ set_alert()

unsigned short set_alert ( short i,
unsigned int bits )

Definition at line 182 of file logic.c.

References anShipAlertFlags, and set_alert().

Referenced by set_alert(), start_collision_alert(), and try2end_collision_alert().

◆ set_special()

◆ SetPaletteEntry()

void __stdcall SetPaletteEntry ( short index,
short * rgb )

Definition at line 654 of file gr.c.

◆ ships_within_range()

unsigned int ships_within_range ( short obj,
short other,
short range )

◆ signed_random()

short signed_random ( short range)

◆ skill_check()

int skill_check ( short obj,
short difficulty )

◆ skill_rating()

short skill_rating ( short obj)

Definition at line 1144 of file logic.c.

References aiPilotLevel, MaxShort(), and skill_rating().

Referenced by close_behind(), skill_check(), and skill_rating().

◆ start_collision_alert()

◆ target_valid()

int target_valid ( short obj)

◆ target_within_range()

unsigned int target_within_range ( short obj)

Definition at line 1034 of file logic.c.

References acShipTargetTable, ships_within_range(), target_within_range(), and unactive().

Referenced by close_behind(), and target_within_range().

◆ trim_goals()

int trim_goals ( short obj,
short amount )

Definition at line 372 of file logic.c.

References anPitchGoal, anYawTarget, and trim_goals().

Referenced by chase_location(), goto_formation(), orbit_sphere(), patrol_area(), and trim_goals().

◆ triumph()

◆ try2end_collision_alert()

void try2end_collision_alert ( short obj)

◆ try2reset_maneuver()

void try2reset_maneuver ( short obj,
short maneuver )

◆ try2rout()

◆ unactive()

◆ unflag_ace()

void unflag_ace ( short ace,
unsigned char bits )

Definition at line 121 of file logic.c.

References CampaignState::aceFlags, stCampaignState, and unflag_ace().

Referenced by explode(), kill_ace(), prepare_ace(), and unflag_ace().

◆ UpdateSceneAnimationObject()

◆ visited()

short visited ( short objective)

Definition at line 1036 of file cockpt.c.

◆ zero_vector()

void zero_vector ( FixedVector * vector)

Definition at line 280 of file geom.c.

Variable Documentation

◆ aCockpitPrimaryResources

PacketResourceDescriptor aCockpitPrimaryResources[8]
Initial value:
= {
{ &pCockpitPilotShape, -1, 4 },
{ &pCockpitDamageShape, -1, 7 },
{ &apCockpitShapesList[0], -1, 0 },
{ &apCockpitShapesList[1], -1, 1 },
{ &apCockpitShapesList[2], -1, 2 },
{ &apCockpitShapesList[3], -1, 3 },
{ 0, 0, 0 }
}
struct Shape * pCockpitDamageShape
Definition select.c:19
struct Shape * pCockpitWeaponShapePtr
Definition timer.c:16
struct Shape * apCockpitShapesList[4]
Definition logic.c:108
struct Shape * pCockpitPilotShape
Definition cockpt.c:25

Definition at line 77 of file logic.c.

Referenced by free_cockpit(), and InitializeCockpitResources().

◆ aCockpitResourceDescriptors

PacketResourceDescriptor aCockpitResourceDescriptors[19]
Initial value:
= {
{ &pTgtLockShapePtr, 8, 0 },
{ &pConfedCommBackground, 11, 0 },
{ &pCommStaticShape, 11, 11 },
{ 0, 0, 0 }
}
struct Shape * pCockpitExplosionShape
Definition cockpt.c:27
struct Shape * pConfedCommBackground
Definition cockpt.c:81
struct Shape * pCinematicViewBackdropPtr
Definition logic.c:109
struct Shape * pTgtLockShapePtr
Definition pload.c:12
struct Shape * pCommStaticShape
Definition cockpt.c:82
struct Shape * pCurrentPilotHandShapePtr
Definition select.c:15
struct Shape * pKilrathiCommBackground
Definition cockpt.c:83
struct Shape * pCockpitIndicatorShape
Definition timer.c:19
struct Shape * apCommunicationPortraitShapesTable[16]
Definition music.c:96
struct Shape * pLogicRearViewBackdropPtr
Definition logic.c:110

Definition at line 49 of file logic.c.

Referenced by LoadSpaceflightResources().

◆ aCockpitSecondaryResources

PacketResourceDescriptor aCockpitSecondaryResources[5]
Initial value:
= {
{ &pCockpitDamageShape, -1, 7 },
{ &pTgtLockShapePtr, 8, 0 },
{ 0, 0, 0 }
}

Definition at line 70 of file logic.c.

Referenced by free_cockpit(), and InitializeCockpitResources().

◆ aCommon3SpaceResources

PacketResourceDescriptor aCommon3SpaceResources[12]
Initial value:
= {
3, 7 },
3, 8 },
{ 0, 0, 0 }
}
ObjectTypeData aObjectTypeData[OBJECT_TYPE_COUNT]
Definition objdata.c:86
struct Shape * shapeSet
Definition wcdata.h:393
@ OBJECT_TYPE_EXPLOSION0
Definition wcdata.h:103
@ OBJECT_TYPE_NEUTRON_PARTICLE_GUN
Definition wcdata.h:80
@ OBJECT_TYPE_MASS_DRIVER_CANNON
Definition wcdata.h:81
@ OBJECT_TYPE_BLUE_SPARK
Definition wcdata.h:108
@ OBJECT_TYPE_RED_SPARK
Definition wcdata.h:107
@ OBJECT_TYPE_LASER_CANNON
Definition wcdata.h:79
@ OBJECT_TYPE_LASER_SPARK
Definition wcdata.h:106
@ OBJECT_TYPE_DEBRIS_PIPE
Definition wcdata.h:102
@ OBJECT_TYPE_THRUSTERS
Definition wcdata.h:110
@ OBJECT_TYPE_SPARK_TRAIL
Definition wcdata.h:109
@ OBJECT_TYPE_SPACE_MINE
Definition wcdata.h:88

Definition at line 24 of file logic.c.

Referenced by free_3Space_objects(), load_common_3Space_objects(), and LoadSpaceflightResources().

◆ aMissionResourceDescriptors

PacketResourceDescriptor aMissionResourceDescriptors[5]
Initial value:
= {
3, 14 },
3, 5 },
{ 0, 0, 0 }
}
@ OBJECT_TYPE_HYPERSPACE_JUMP_FLASH
Definition wcdata.h:112
@ OBJECT_TYPE_DEBRIS_METAL_SHEET
Definition wcdata.h:98
@ OBJECT_TYPE_EXPLOSION2
Definition wcdata.h:105
@ OBJECT_TYPE_EXPLOSION1
Definition wcdata.h:104

Definition at line 40 of file logic.c.

Referenced by free_3Space_objects(), init_mission(), and LoadSpaceflightResources().

◆ apCockpitShapesList

struct Shape* apCockpitShapesList[4]

Definition at line 108 of file logic.c.

Referenced by initialize_cockpit().

◆ asConstellationObjectIndices

short asConstellationObjectIndices[4]
Initial value:
= {
-1, -1, -1, -1
}

Definition at line 88 of file logic.c.

Referenced by free_constellation(), and init_constellation().

◆ asSceneAnimationLogicalFiles

short asSceneAnimationLogicalFiles[8]
Initial value:
= {
63, 64, 65, 66, 67, 68, 69, 70
}

Definition at line 93 of file logic.c.

Referenced by LoadSceneAnimationResources().

◆ b3SpaceObjectsActive

int b3SpaceObjectsActive = 0

Definition at line 92 of file logic.c.

Referenced by free_3Space(), and init_3Space_objects().

◆ bCockpitResourcesActive

int bCockpitResourcesActive = 0

Definition at line 91 of file logic.c.

Referenced by free_cockpit(), and InitializeCockpitResources().

◆ bCurrentPlayerDestroyed

int bCurrentPlayerDestroyed

Definition at line 111 of file logic.c.

Referenced by explode(), and prepare_mission().

◆ bIntroSceneResourcesActive

unsigned int bIntroSceneResourcesActive = 1

◆ bSceneAnimationWaitCommand

short bSceneAnimationWaitCommand = 0

Definition at line 96 of file logic.c.

Referenced by PlaySceneAnimation(), and UpdateSceneAnimationObject().

◆ cCockpitLogicalFile

◆ nPlayerKillTotal

short nPlayerKillTotal

◆ nSceneAnimationDelayFrames

short nSceneAnimationDelayFrames

Definition at line 104 of file logic.c.

Referenced by PlaySceneAnimation(), and UpdateSceneAnimationObject().

◆ pCinematicViewBackdropPtr

struct Shape* pCinematicViewBackdropPtr

Definition at line 109 of file logic.c.

Referenced by initialize_cockpit().

◆ pCurrentSceneAnimationPrimaryShape

struct Shape* pCurrentSceneAnimationPrimaryShape

◆ pLogicRearViewBackdropPtr

struct Shape* pLogicRearViewBackdropPtr

Definition at line 110 of file logic.c.

Referenced by initialize_cockpit().

◆ pSceneAnimationDefinitionsPtr

unsigned char* pSceneAnimationDefinitionsPtr

◆ pSceneAnimationObjects

SceneAnimationObject* pSceneAnimationObjects

◆ pSceneAnimationPacketPtr

unsigned char* pSceneAnimationPacketPtr

Definition at line 102 of file logic.c.

Referenced by LoadSceneAnimationResources(), and ReleaseSceneAnimationResources().

◆ pSceneAnimationSceneDataPtr

unsigned char* pSceneAnimationSceneDataPtr

Definition at line 99 of file logic.c.

Referenced by LoadSceneAnimationResources(), and ShowMeanwhileTransition().

◆ pSceneAnimationSecondaryShape

struct Shape* pSceneAnimationSecondaryShape

◆ pSceneAnimationTextData

unsigned char* pSceneAnimationTextData

Definition at line 101 of file logic.c.

Referenced by LoadSceneAnimationResources(), and ShowMeanwhileTransition().