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

Fireworks and constellation fields. More...

#include "game.h"

Go to the source code of this file.

Functions

void InitializeFireworks (void)
short TheEndFireWorks (Viewport *viewport, short count)
void InitializeConstellationField (Viewport *viewport, short direction, short density)
signed char IsConstellationParticleOutsideViewport (ConstellationParticle particle)
void DrawConstellationField (void)

Variables

short g_asConstellationVelocity [16]
short g_asConstellationFrame [16]
short g_nConstellationDirection = -1
FireworkState g_16_aFireworks [30]
unsigned char * g_1_pTitleFireworkShape
Viewport * g_pConstellationWindow
ConstellationParticle g_aConstellationParticlesTable [18]
short g_14_nConstellationParticleTotal
char g_nUnusedStarfldWord
short g_8_bSceneBackdropClicked
short g_1_nCockpitArchiveVariantNumber

Detailed Description

Fireworks and constellation fields.

Definition in file starfld.c.

Function Documentation

◆ DrawConstellationField()

◆ InitializeConstellationField()

◆ InitializeFireworks()

void InitializeFireworks ( void )

Definition at line 17 of file starfld.c.

References g_16_aFireworks, and InitializeFireworks().

Referenced by InitializeFireworks(), ShowVictoryScreen(), and UpdateShipTurretGuns().

◆ IsConstellationParticleOutsideViewport()

◆ TheEndFireWorks()

Variable Documentation

◆ g_14_nConstellationParticleTotal

short g_14_nConstellationParticleTotal

Definition at line 237 of file starfld.c.

Referenced by DrawConstellationField(), and InitializeConstellationField().

◆ g_16_aFireworks

FireworkState g_16_aFireworks[30]

Definition at line 233 of file starfld.c.

Referenced by InitializeFireworks(), ShowVictoryScreen(), and TheEndFireWorks().

◆ g_1_nCockpitArchiveVariantNumber

short g_1_nCockpitArchiveVariantNumber

◆ g_1_pTitleFireworkShape

unsigned char* g_1_pTitleFireworkShape

Definition at line 234 of file starfld.c.

Referenced by TheEndFireWorks(), and Title_Sequence().

◆ g_8_bSceneBackdropClicked

short g_8_bSceneBackdropClicked

Definition at line 239 of file starfld.c.

Referenced by PollSceneHotspotInput().

◆ g_aConstellationParticlesTable

ConstellationParticle g_aConstellationParticlesTable[18]

Definition at line 236 of file starfld.c.

Referenced by DrawConstellationField(), and InitializeConstellationField().

◆ g_asConstellationFrame

short g_asConstellationFrame[16]
Initial value:
= {
0, 16, 16, 0, 4, 4, 20, 20, 24, 8, 8, 24, 28, 12, 12, 28
}

Definition at line 11 of file starfld.c.

Referenced by DrawConstellationField(), and InitializeConstellationField().

◆ g_asConstellationVelocity

short g_asConstellationVelocity[16]
Initial value:
= {
8, 8, 7, 7, 6, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1
}

Definition at line 8 of file starfld.c.

Referenced by DrawConstellationField(), and InitializeConstellationField().

◆ g_nConstellationDirection

short g_nConstellationDirection = -1

Definition at line 14 of file starfld.c.

Referenced by DrawConstellationField(), and InitializeConstellationField().

◆ g_nUnusedStarfldWord

char g_nUnusedStarfldWord

Definition at line 238 of file starfld.c.

◆ g_pConstellationWindow

Viewport* g_pConstellationWindow