|
Wing Commander II
Reconstructed Win32 source (1996)
|
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 |
Fireworks and constellation fields.
Definition in file starfld.c.
Definition at line 108 of file starfld.c.
References Viewport::bottom, ConstellationParticle::deltaX, ConstellationParticle::deltaY, DrawConstellationField(), DrawSpriteDefault(), ConstellationParticle::frame, g_14_nConstellationParticleTotal, g_aConstellationParticlesTable, g_asConstellationFrame, g_asConstellationVelocity, g_nConstellationDirection, g_pConstellationSprite, g_pConstellationWindow, IsConstellationParticleOutsideViewport(), Viewport::left, RandomInRange(), Viewport::right, Viewport::top, ConstellationParticle::x, and ConstellationParticle::y.
Referenced by DrawConstellationField(), RunCampaignContinuePromptLoop(), RunCampaignSelectionFrame(), RunTitleMenuInputLoop(), RunTitleScreen(), and UpdateShipTurretGuns().
Definition at line 55 of file starfld.c.
References Viewport::bottom, ConstellationParticle::deltaX, ConstellationParticle::frame, g_14_nConstellationParticleTotal, g_aConstellationParticlesTable, g_asConstellationFrame, g_asConstellationVelocity, g_nConstellationDirection, g_pConstellationWindow, InitializeConstellationField(), Viewport::left, RandomInRange(), Viewport::right, Viewport::top, ConstellationParticle::x, and ConstellationParticle::y.
Referenced by BarracksScreen(), InitializeConstellationField(), PromptToContinueCampaign(), RunTitleScreen(), and UpdateShipTurretGuns().
Definition at line 17 of file starfld.c.
References g_16_aFireworks, and InitializeFireworks().
Referenced by InitializeFireworks(), ShowVictoryScreen(), and UpdateShipTurretGuns().
| signed char IsConstellationParticleOutsideViewport | ( | ConstellationParticle | particle | ) |
Definition at line 96 of file starfld.c.
References Viewport::bottom, g_pConstellationWindow, IsConstellationParticleOutsideViewport(), Viewport::left, Viewport::right, Viewport::top, ConstellationParticle::x, and ConstellationParticle::y.
Referenced by DrawConstellationField(), IsConstellationParticleOutsideViewport(), and UpdateShipTurretGuns().
| short TheEndFireWorks | ( | Viewport * | viewport, |
| short | count ) |
Definition at line 26 of file starfld.c.
References DrawSpriteDefault(), FlushSoundEffectsAndLog(), FireworkState::frame, g_16_aFireworks, g_1_pTitleFireworkShape, PlaySfxWaveFileByNumber(), FireworkState::soundHandle, TheEndFireWorks(), and void().
Referenced by ShowVictoryScreen(), TheEndFireWorks(), and UpdateShipTurretGuns().
| short g_14_nConstellationParticleTotal |
Definition at line 237 of file starfld.c.
Referenced by DrawConstellationField(), and InitializeConstellationField().
| FireworkState g_16_aFireworks[30] |
Definition at line 233 of file starfld.c.
Referenced by InitializeFireworks(), ShowVictoryScreen(), and TheEndFireWorks().
| short g_1_nCockpitArchiveVariantNumber |
Definition at line 240 of file starfld.c.
Referenced by InitializeCampaignChalkboardScreen(), RunPilotDatabaseMenu(), and RunPilotSaveLoadMenu().
| unsigned char* g_1_pTitleFireworkShape |
Definition at line 234 of file starfld.c.
Referenced by TheEndFireWorks(), and Title_Sequence().
| short g_8_bSceneBackdropClicked |
Definition at line 239 of file starfld.c.
Referenced by PollSceneHotspotInput().
| ConstellationParticle g_aConstellationParticlesTable[18] |
Definition at line 236 of file starfld.c.
Referenced by DrawConstellationField(), and InitializeConstellationField().
| short g_asConstellationFrame[16] |
Definition at line 11 of file starfld.c.
Referenced by DrawConstellationField(), and InitializeConstellationField().
| short g_asConstellationVelocity[16] |
Definition at line 8 of file starfld.c.
Referenced by DrawConstellationField(), and InitializeConstellationField().
| short g_nConstellationDirection = -1 |
Definition at line 14 of file starfld.c.
Referenced by DrawConstellationField(), and InitializeConstellationField().
| Viewport* g_pConstellationWindow |
Definition at line 235 of file starfld.c.
Referenced by DrawConstellationField(), InitializeConstellationField(), and IsConstellationParticleOutsideViewport().