├── Ac.dsp
├── Ac.plg
├── Cfilearchiver.dsp
├── Cfilearchiver.plg
├── Cryptstring.dsp
├── Cryptstring.plg
├── FS2AutoRun.ico
├── Fonttool.dsp
├── Fonttool.plg
├── Fred2.dsp
├── Fred2.plg
├── Freespace2.dsp
├── Freespace2.plg
├── HelpEd.dsp
├── HelpEd.exe
├── HelpEd.plg
├── Nebedit.dsp
├── Nebedit.plg
├── Pofview.dsp
├── Pofview.plg
├── Scramble.dsp
├── Scramble.plg
├── code
├── AC
│ ├── ac.cpp
│ ├── ac.h
│ ├── ac_stubs.cpp
│ ├── convert.cpp
│ └── convert.h
├── Anim
│ ├── AnimPlay.cpp
│ ├── AnimPlay.h
│ ├── PackUnpack.cpp
│ └── PackUnpack.h
├── Asteroid
│ ├── Asteroid.cpp
│ └── Asteroid.h
├── Bmpman
│ ├── BmpMan.cpp
│ └── BmpMan.h
├── CFile
│ ├── CfileArchive.cpp
│ ├── CfileArchive.h
│ ├── CfileList.cpp
│ ├── CfileSystem.cpp
│ ├── CfileSystem.h
│ ├── cfile.cpp
│ └── cfile.h
├── CMeasure
│ ├── CMeasure.cpp
│ └── CMeasure.h
├── Cfilearchiver
│ └── CfileArchiver.cpp
├── Cmdline
│ ├── cmdline.cpp
│ └── cmdline.h
├── ControlConfig
│ ├── ControlsConfig.cpp
│ ├── ControlsConfig.h
│ └── ControlsConfigCommon.cpp
├── Cryptstring
│ └── cryptstring.cpp
├── Cutscene
│ ├── Cutscenes.cpp
│ └── Cutscenes.h
├── Debris
│ ├── Debris.cpp
│ └── Debris.h
├── DebugConsole
│ └── Console.cpp
├── Demo
│ ├── Demo.cpp
│ └── Demo.h
├── DirectX
│ ├── vD3d.h
│ ├── vD3dcaps.h
│ ├── vD3dtypes.h
│ ├── vDdraw.h
│ ├── vDdraw.lib
│ ├── vDinput.h
│ ├── vDinput.lib
│ ├── vDsound.h
│ ├── vDsound.lib
│ ├── vDxguid.lib
│ ├── vasync.h
│ ├── vd3di.h
│ ├── vd3drm.h
│ ├── vd3drmdef.h
│ ├── vd3drmobj.h
│ ├── vd3drmwin.h
│ ├── vd3dvec.inl
│ ├── vdplay.h
│ ├── vdplobby.h
│ ├── vdsetup.h
│ └── vdvp.h
├── ExceptionHandler
│ ├── ExceptionHandler.cpp
│ └── ExceptionHandler.h
├── FRED2
│ ├── AddVariableDlg.cpp
│ ├── AddVariableDlg.h
│ ├── AdjustGridDlg.cpp
│ ├── AdjustGridDlg.h
│ ├── AsteroidEditorDlg.cpp
│ ├── AsteroidEditorDlg.h
│ ├── BgBitmapDlg.cpp
│ ├── BgBitmapDlg.h
│ ├── BriefingEditorDlg.cpp
│ ├── BriefingEditorDlg.h
│ ├── CampaignEditorDlg.cpp
│ ├── CampaignEditorDlg.h
│ ├── CampaignFilelistBox.cpp
│ ├── CampaignFilelistBox.h
│ ├── CampaignTreeView.cpp
│ ├── CampaignTreeView.h
│ ├── CampaignTreeWnd.cpp
│ ├── CampaignTreeWnd.h
│ ├── CmdBrief.cpp
│ ├── CmdBrief.h
│ ├── CreateWingDlg.cpp
│ ├── CreateWingDlg.h
│ ├── DebriefingEditorDlg.cpp
│ ├── DebriefingEditorDlg.h
│ ├── DumpStats.cpp
│ ├── DumpStats.h
│ ├── EventEditor.cpp
│ ├── EventEditor.h
│ ├── FRED.APS
│ ├── FRED.cpp
│ ├── FRED.h
│ ├── FRED.rc
│ ├── FREDDoc.cpp
│ ├── FREDDoc.h
│ ├── FREDView.cpp
│ ├── FREDView.h
│ ├── FredRender.cpp
│ ├── FredRender.h
│ ├── FredStubs.cpp
│ ├── Grid.cpp
│ ├── Grid.h
│ ├── IgnoreOrdersDlg.cpp
│ ├── IgnoreOrdersDlg.h
│ ├── InitialShips.cpp
│ ├── InitialShips.h
│ ├── InitialStatus.cpp
│ ├── InitialStatus.h
│ ├── MainFrm.cpp
│ ├── MainFrm.h
│ ├── MakeHelp.bat
│ ├── Management.cpp
│ ├── Management.h
│ ├── MessageEditorDlg.cpp
│ ├── MessageEditorDlg.h
│ ├── MissionGoalsDlg.cpp
│ ├── MissionGoalsDlg.h
│ ├── MissionNotesDlg.cpp
│ ├── MissionNotesDlg.h
│ ├── MissionSave.cpp
│ ├── MissionSave.h
│ ├── ModifyVariableDlg.cpp
│ ├── ModifyVariableDlg.h
│ ├── OperatorArgTypeSelect.cpp
│ ├── OperatorArgTypeSelect.h
│ ├── OrientEditor.cpp
│ ├── OrientEditor.h
│ ├── PlayerStartEditor.cpp
│ ├── PlayerStartEditor.h
│ ├── PrefsDlg.cpp
│ ├── PrefsDlg.h
│ ├── ReinforcementEditorDlg.cpp
│ ├── ReinforcementEditorDlg.h
│ ├── Sexp_tree.cpp
│ ├── Sexp_tree.h
│ ├── ShieldSysDlg.cpp
│ ├── ShieldSysDlg.h
│ ├── ShipCheckListBox.cpp
│ ├── ShipCheckListBox.h
│ ├── ShipClassEditorDlg.cpp
│ ├── ShipClassEditorDlg.h
│ ├── ShipEditorDlg.cpp
│ ├── ShipEditorDlg.h
│ ├── ShipFlagsDlg.cpp
│ ├── ShipFlagsDlg.h
│ ├── ShipGoalsDlg.cpp
│ ├── ShipGoalsDlg.h
│ ├── ShipSpecialDamage.cpp
│ ├── ShipSpecialDamage.h
│ ├── StarfieldEditor.cpp
│ ├── StarfieldEditor.h
│ ├── StdAfx.cpp
│ ├── TextViewDlg.cpp
│ ├── TextViewDlg.h
│ ├── WaypointPathDlg.cpp
│ ├── WaypointPathDlg.h
│ ├── WeaponEditorDlg.cpp
│ ├── WeaponEditorDlg.h
│ ├── dialog1.cpp
│ ├── dialog1.h
│ ├── editor.h
│ ├── hlp
│ │ ├── AFXHELP.HM
│ │ ├── AfxCore.rtf
│ │ ├── AfxPrint.rtf
│ │ ├── AppExit.bmp
│ │ ├── Bullet.bmp
│ │ ├── CurArw2.bmp
│ │ ├── CurArw4.bmp
│ │ ├── CurHelp.bmp
│ │ ├── EditCopy.bmp
│ │ ├── EditCut.bmp
│ │ ├── EditPast.bmp
│ │ ├── EditUndo.bmp
│ │ ├── FileNew.bmp
│ │ ├── FileOpen.bmp
│ │ ├── FilePrnt.bmp
│ │ ├── FileSave.bmp
│ │ ├── Fred.hpj
│ │ ├── HlpSBar.bmp
│ │ ├── HlpTBar.bmp
│ │ ├── RecFirst.bmp
│ │ ├── RecLast.bmp
│ │ ├── RecNext.bmp
│ │ ├── RecPrev.bmp
│ │ ├── ScMenu.bmp
│ │ ├── Scmax.bmp
│ │ ├── Scmin.bmp
│ │ ├── fred.hm
│ │ └── help.log
│ ├── res
│ │ ├── FRED.ico
│ │ ├── FRED.rc2
│ │ ├── FREDDoc.ico
│ │ ├── Toolbar.bmp
│ │ ├── bitmap1.bmp
│ │ ├── black_do.bmp
│ │ ├── bmp00001.bmp
│ │ ├── chained.bmp
│ │ ├── chained_directive.bmp
│ │ ├── cursor1.cur
│ │ ├── cursor2.cur
│ │ ├── data.bmp
│ │ ├── green_do.bmp
│ │ ├── root.bmp
│ │ ├── root_directive.bmp
│ │ ├── toolbar1.bmp
│ │ └── variable.bmp
│ ├── resource.h
│ ├── resource.hm
│ ├── ship_select.cpp
│ ├── ship_select.h
│ ├── stdafx.h
│ ├── wing.cpp
│ ├── wing.h
│ ├── wing_editor.cpp
│ └── wing_editor.h
├── FREESPACE2
│ ├── FreeSpace.cpp
│ ├── FreeSpace.h
│ ├── FreeSpace.rc
│ ├── FreespaceResource.h
│ ├── LevelPaging.cpp
│ ├── LevelPaging.h
│ ├── app_icon.ico
│ ├── goal_com.bmp
│ ├── goal_fail.bmp
│ ├── goal_inc.bmp
│ ├── goal_none.bmp
│ └── goal_ord.bmp
├── Fireball
│ ├── FireBalls.cpp
│ ├── FireBalls.h
│ └── WarpInEffect.cpp
├── Fonttool
│ ├── FontCreate.cpp
│ ├── FontKern.cpp
│ ├── FontKernCopy.cpp
│ ├── FontStubs.cpp
│ ├── FontTool.cpp
│ ├── FontTool.h
│ └── FontTool.pcx
├── GameHelp
│ ├── ContextHelp.cpp
│ ├── ContextHelp.h
│ ├── GameplayHelp.cpp
│ └── GameplayHelp.h
├── GameSequence
│ ├── GameSequence.cpp
│ └── GameSequence.h
├── Gamesnd
│ ├── EventMusic.cpp
│ ├── EventMusic.h
│ ├── GameSnd.cpp
│ └── GameSnd.h
├── Glide
│ ├── 3DFX.H
│ ├── FXDLL.H
│ ├── FXGLOB.H
│ ├── FXOS.H
│ ├── Glide.cpp
│ ├── SST1VID.H
│ ├── glide.h
│ ├── glidesys.h
│ └── glideutl.h
├── GlobalIncs
│ ├── AlphaColors.cpp
│ ├── AlphaColors.h
│ ├── LinkList.h
│ ├── PsTypes.h
│ ├── SystemVars.cpp
│ ├── SystemVars.h
│ ├── WinDebug.cpp
│ ├── crypt.cpp
│ ├── crypt.h
│ ├── version.cpp
│ └── version.h
├── Graphics
│ ├── 2d.cpp
│ ├── 2d.h
│ ├── Bitblt.cpp
│ ├── Bitblt.h
│ ├── Circle.cpp
│ ├── Circle.h
│ ├── Colors.cpp
│ ├── Colors.h
│ ├── Font.cpp
│ ├── Font.h
│ ├── GrD3D.cpp
│ ├── GrD3D.h
│ ├── GrD3DInternal.h
│ ├── GrD3DRender.cpp
│ ├── GrD3DTexture.cpp
│ ├── GrDirectDraw.cpp
│ ├── GrDirectDraw.h
│ ├── GrGlide.cpp
│ ├── GrGlide.h
│ ├── GrGlideInternal.h
│ ├── GrGlideTexture.cpp
│ ├── GrInternal.h
│ ├── GrOpenGL.cpp
│ ├── GrOpenGL.h
│ ├── GrSoft.cpp
│ ├── GrSoft.h
│ ├── GrZbuffer.cpp
│ ├── GrZbuffer.h
│ ├── Gradient.cpp
│ ├── Gradient.h
│ ├── Line.cpp
│ ├── Line.h
│ ├── Pixel.cpp
│ ├── Pixel.h
│ ├── Rect.cpp
│ ├── Rect.h
│ ├── Scaler.cpp
│ ├── Scaler.h
│ ├── Shade.cpp
│ ├── Shade.h
│ ├── TMAPPER.H
│ ├── TmapGenericScans.cpp
│ ├── TmapScanTiled128x128.cpp
│ ├── TmapScanTiled16x16.cpp
│ ├── TmapScanTiled256x256.cpp
│ ├── TmapScanTiled32x32.cpp
│ ├── TmapScanTiled64x64.cpp
│ ├── TmapScanline.cpp
│ ├── TmapScanline.h
│ ├── Tmapper.cpp
│ └── aaline.cpp
├── HelpEd
│ ├── HelpEd.cpp
│ ├── HelpEd.h
│ ├── HelpEd.rc
│ ├── HelpEdDoc.cpp
│ ├── HelpEdDoc.h
│ ├── HelpEdLine.cpp
│ ├── HelpEdLine.h
│ ├── HelpEdView.cpp
│ ├── HelpEdView.h
│ ├── MainFrm.cpp
│ ├── MainFrm.h
│ ├── Resource.h
│ ├── StdAfx.cpp
│ ├── StdAfx.h
│ ├── Tga.cpp
│ ├── Tga.h
│ └── res
│ │ ├── HelpEd.ico
│ │ ├── HelpEd.rc2
│ │ ├── HelpEdDoc.ico
│ │ └── Toolbar.bmp
├── Hud
│ ├── HUD.cpp
│ ├── HUD.h
│ ├── HUDObserver.cpp
│ ├── HUDObserver.h
│ ├── HUDWingmanStatus.cpp
│ ├── HUDWingmanStatus.h
│ ├── HUDbrackets.cpp
│ ├── HUDbrackets.h
│ ├── HUDconfig.cpp
│ ├── HUDconfig.h
│ ├── HUDescort.cpp
│ ├── HUDescort.h
│ ├── HUDets.cpp
│ ├── HUDets.h
│ ├── HUDgauges.h
│ ├── HUDlock.cpp
│ ├── HUDlock.h
│ ├── HUDmessage.cpp
│ ├── HUDmessage.h
│ ├── HUDresource.cpp
│ ├── HUDresource.h
│ ├── HUDreticle.cpp
│ ├── HUDreticle.h
│ ├── HUDshield.cpp
│ ├── HUDshield.h
│ ├── HUDsquadmsg.cpp
│ ├── HUDsquadmsg.h
│ ├── HUDtarget.cpp
│ ├── HUDtarget.h
│ ├── HUDtargetbox.cpp
│ ├── HUDtargetbox.h
│ ├── HudArtillery.cpp
│ └── HudArtillery.h
├── Inetfile
│ ├── CFtp.cpp
│ ├── CFtp.h
│ ├── Chttpget.cpp
│ ├── Chttpget.h
│ ├── inetgetfile.cpp
│ └── inetgetfile.h
├── Io
│ ├── Joy.cpp
│ ├── Joy.h
│ ├── Joy_ff.cpp
│ ├── Joy_ff.h
│ ├── Key.cpp
│ ├── Key.h
│ ├── KeyControl.cpp
│ ├── KeyControl.h
│ ├── Mouse.cpp
│ ├── Mouse.h
│ ├── Timer.cpp
│ ├── Timer.h
│ ├── sw_error.hpp
│ ├── sw_force.h
│ ├── sw_guid.hpp
│ └── swff_lib.cpp
├── JumpNode
│ ├── JumpNode.cpp
│ └── JumpNode.h
├── Lighting
│ ├── Lighting.cpp
│ └── Lighting.h
├── Localization
│ ├── fhash.cpp
│ ├── fhash.h
│ ├── localize.cpp
│ └── localize.h
├── Math
│ ├── Fix.cpp
│ ├── Floating.cpp
│ ├── Floating.h
│ ├── Fvi.cpp
│ ├── Fvi.h
│ ├── StaticRand.cpp
│ ├── StaticRand.h
│ ├── VecMat.cpp
│ ├── VecMat.h
│ ├── fix.h
│ ├── spline.cpp
│ └── spline.h
├── MenuUI
│ ├── Barracks.cpp
│ ├── Barracks.h
│ ├── Credits.cpp
│ ├── Credits.h
│ ├── MainHallMenu.cpp
│ ├── MainHallMenu.h
│ ├── MainHallTemp.cpp
│ ├── MainHallTemp.h
│ ├── OptionsMenu.cpp
│ ├── OptionsMenu.h
│ ├── OptionsMenuMulti.cpp
│ ├── OptionsMenuMulti.h
│ ├── PlayerMenu.cpp
│ ├── PlayerMenu.h
│ ├── ReadyRoom.cpp
│ ├── ReadyRoom.h
│ ├── SnazzyUI.cpp
│ ├── SnazzyUI.h
│ ├── TechMenu.cpp
│ ├── TechMenu.h
│ ├── TrainingMenu.cpp
│ ├── TrainingMenu.h
│ ├── fishtank.cpp
│ └── fishtank.h
├── Mission
│ ├── MissionBriefCommon.cpp
│ ├── MissionBriefCommon.h
│ ├── MissionCampaign.cpp
│ ├── MissionCampaign.h
│ ├── MissionGoals.cpp
│ ├── MissionGoals.h
│ ├── MissionGrid.cpp
│ ├── MissionGrid.h
│ ├── MissionHotKey.cpp
│ ├── MissionHotKey.h
│ ├── MissionLoad.cpp
│ ├── MissionLoad.h
│ ├── MissionLog.cpp
│ ├── MissionLog.h
│ ├── MissionMessage.cpp
│ ├── MissionMessage.h
│ ├── MissionParse.cpp
│ ├── MissionParse.h
│ ├── MissionTraining.cpp
│ └── MissionTraining.h
├── MissionUI
│ ├── Chatbox.cpp
│ ├── Chatbox.h
│ ├── MissionBrief.cpp
│ ├── MissionBrief.h
│ ├── MissionCmdBrief.cpp
│ ├── MissionCmdBrief.h
│ ├── MissionDebrief.cpp
│ ├── MissionDebrief.h
│ ├── MissionLoopBrief.cpp
│ ├── MissionLoopBrief.h
│ ├── MissionPause.cpp
│ ├── MissionPause.h
│ ├── MissionRecommend.cpp
│ ├── MissionRecommend.h
│ ├── MissionScreenCommon.cpp
│ ├── MissionScreenCommon.h
│ ├── MissionShipChoice.cpp
│ ├── MissionShipChoice.h
│ ├── MissionStats.cpp
│ ├── MissionStats.h
│ ├── MissionWeaponChoice.cpp
│ ├── MissionWeaponChoice.h
│ ├── RedAlert.cpp
│ └── RedAlert.h
├── Model
│ ├── MODEL.H
│ ├── ModelCollide.cpp
│ ├── ModelInterp.cpp
│ ├── ModelOctant.cpp
│ ├── ModelRead.cpp
│ └── ModelsInc.h
├── Nebula
│ ├── Neb.cpp
│ ├── Neb.h
│ ├── NebLightning.cpp
│ └── NebLightning.h
├── Network
│ ├── Multi.cpp
│ ├── Multi.h
│ ├── MultiMsgs.cpp
│ ├── MultiTeamSelect.cpp
│ ├── MultiTeamSelect.h
│ ├── MultiUI.cpp
│ ├── MultiUI.h
│ ├── MultiUtil.cpp
│ ├── MultiUtil.h
│ ├── PsNet.cpp
│ ├── PsNet.h
│ ├── Psnet2.cpp
│ ├── Psnet2.h
│ ├── multi_campaign.cpp
│ ├── multi_campaign.h
│ ├── multi_data.cpp
│ ├── multi_data.h
│ ├── multi_dogfight.cpp
│ ├── multi_dogfight.h
│ ├── multi_endgame.cpp
│ ├── multi_endgame.h
│ ├── multi_ingame.cpp
│ ├── multi_ingame.h
│ ├── multi_kick.cpp
│ ├── multi_kick.h
│ ├── multi_log.cpp
│ ├── multi_log.h
│ ├── multi_obj.cpp
│ ├── multi_obj.h
│ ├── multi_observer.cpp
│ ├── multi_observer.h
│ ├── multi_oo.cpp
│ ├── multi_oo.h
│ ├── multi_options.cpp
│ ├── multi_options.h
│ ├── multi_pause.cpp
│ ├── multi_pause.h
│ ├── multi_pinfo.cpp
│ ├── multi_pinfo.h
│ ├── multi_ping.cpp
│ ├── multi_ping.h
│ ├── multi_pmsg.cpp
│ ├── multi_pmsg.h
│ ├── multi_rate.cpp
│ ├── multi_rate.h
│ ├── multi_respawn.cpp
│ ├── multi_respawn.h
│ ├── multi_team.cpp
│ ├── multi_team.h
│ ├── multi_update.cpp
│ ├── multi_update.h
│ ├── multi_voice.cpp
│ ├── multi_voice.h
│ ├── multi_xfer.cpp
│ ├── multi_xfer.h
│ ├── multilag.cpp
│ ├── multilag.h
│ ├── multimsgs.h
│ ├── stand_gui.cpp
│ └── stand_gui.h
├── Object
│ ├── CollideDebrisShip.cpp
│ ├── CollideDebrisWeapon.cpp
│ ├── CollideShipShip.cpp
│ ├── CollideShipWeapon.cpp
│ ├── CollideWeaponWeapon.cpp
│ ├── ObjCollide.cpp
│ ├── ObjCollide.h
│ ├── Object.cpp
│ ├── Object.h
│ ├── ObjectSnd.cpp
│ ├── ObjectSnd.h
│ └── ObjectSort.cpp
├── Observer
│ ├── Observer.cpp
│ └── Observer.h
├── OsApi
│ ├── MONOPUB.H
│ ├── OsApi.cpp
│ ├── OsApi.h
│ ├── OsRegistry.cpp
│ ├── OsRegistry.h
│ ├── OutWnd.cpp
│ └── OutWnd.h
├── Palman
│ ├── PalMan.cpp
│ └── PalMan.h
├── Parse
│ ├── Encrypt.cpp
│ ├── Encrypt.h
│ ├── PARSELO.CPP
│ ├── SEXP.CPP
│ ├── SEXP.H
│ └── parselo.h
├── Particle
│ ├── Particle.cpp
│ └── Particle.h
├── PcxUtils
│ ├── pcxutils.cpp
│ └── pcxutils.h
├── Physics
│ ├── Physics.cpp
│ └── Physics.h
├── Playerman
│ ├── ManagePilot.cpp
│ ├── ManagePilot.h
│ ├── Player.h
│ └── PlayerControl.cpp
├── Popup
│ ├── Popup.cpp
│ ├── Popup.h
│ ├── PopupDead.cpp
│ └── PopupDead.h
├── Radar
│ ├── Radar.cpp
│ └── Radar.h
├── Render
│ ├── 3D.H
│ ├── 3dClipper.cpp
│ ├── 3dInternal.h
│ ├── 3dLaser.cpp
│ ├── 3dMath.cpp
│ ├── 3dSetup.cpp
│ └── 3ddraw.cpp
├── Scramble
│ ├── scramble.cpp
│ └── scramble.h
├── Ship
│ ├── AWACS.cpp
│ ├── AWACS.h
│ ├── Afterburner.cpp
│ ├── Afterburner.h
│ ├── AiBig.cpp
│ ├── AiBig.h
│ ├── AiCode.cpp
│ ├── AiGoals.cpp
│ ├── AiGoals.h
│ ├── AiLocal.h
│ ├── Shield.cpp
│ ├── Ship.cpp
│ ├── Ship.h
│ ├── ShipContrails.cpp
│ ├── ShipContrails.h
│ ├── ShipFX.cpp
│ ├── ShipFX.h
│ ├── ShipHit.cpp
│ ├── ShipHit.h
│ ├── SubsysDamage.h
│ ├── ai.cpp
│ └── ai.h
├── Sound
│ ├── AudioStr.cpp
│ ├── AudioStr.h
│ ├── RBAudio.cpp
│ ├── RBAudio.h
│ ├── Sound.cpp
│ ├── Sound.h
│ ├── WinMIDI.cpp
│ ├── WinMIDI.h
│ ├── acm.cpp
│ ├── acm.h
│ ├── channel.h
│ ├── ds.cpp
│ ├── ds.h
│ ├── ds3d.cpp
│ ├── ds3d.h
│ ├── dscap.cpp
│ ├── dscap.h
│ ├── midifile.cpp
│ ├── midifile.h
│ ├── midiseq.h
│ ├── rtvoice.cpp
│ ├── rtvoice.h
│ └── winmidi_base.cpp
├── Starfield
│ ├── Nebula.cpp
│ ├── Nebula.h
│ ├── StarField.cpp
│ ├── StarField.h
│ ├── Supernova.cpp
│ └── Supernova.h
├── Stats
│ ├── Medals.cpp
│ ├── Medals.h
│ ├── Scoring.cpp
│ ├── Scoring.h
│ ├── Stats.cpp
│ └── Stats.h
├── TgaUtils
│ ├── TgaUtils.cpp
│ └── TgaUtils.h
├── UI
│ ├── BUTTON.cpp
│ ├── CHECKBOX.cpp
│ ├── GADGET.cpp
│ ├── INPUTBOX.cpp
│ ├── KEYTRAP.cpp
│ ├── LISTBOX.cpp
│ ├── RADIO.cpp
│ ├── SCROLL.cpp
│ ├── SLIDER2.cpp
│ ├── UI.H
│ ├── UIDRAW.cpp
│ ├── UIMOUSE.cpp
│ ├── UiDefs.h
│ ├── WINDOW.cpp
│ ├── icon.cpp
│ └── slider.cpp
├── VCodec
│ ├── CODEC1.CPP
│ └── CODEC1.H
├── Weapon
│ ├── Beam.cpp
│ ├── Beam.h
│ ├── Corkscrew.cpp
│ ├── Corkscrew.h
│ ├── Emp.cpp
│ ├── Emp.h
│ ├── Flak.cpp
│ ├── Flak.h
│ ├── MuzzleFlash.cpp
│ ├── MuzzleFlash.h
│ ├── Shockwave.cpp
│ ├── Shockwave.h
│ ├── Swarm.cpp
│ ├── Swarm.h
│ ├── Trails.cpp
│ ├── Trails.h
│ ├── Weapon.h
│ └── Weapons.cpp
├── code.dsp
├── nebedit
│ ├── NebEdit.cpp
│ └── Nebstubs.cpp
└── pofview
│ ├── ChildFrm.cpp
│ ├── ChildFrm.h
│ ├── MainFrm.cpp
│ ├── MainFrm.h
│ ├── ObjectTree.cpp
│ ├── ObjectTree.h
│ ├── PofView.cpp
│ ├── PofView.h
│ ├── PofView.rc
│ ├── PofViewDoc.cpp
│ ├── PofViewDoc.h
│ ├── PofViewStubs.cpp
│ ├── PofViewView.cpp
│ ├── PofViewView.h
│ ├── StdAfx.cpp
│ ├── StdAfx.h
│ ├── res
│ ├── PofView.ico
│ ├── PofView.rc2
│ ├── PofViewDoc.ico
│ └── Toolbar.bmp
│ └── resource.h
├── freespace2.dsw
├── freespace2.opt
├── fs.log
├── guided_tour.txt
├── interesting_stats.txt
└── release_log.txt
/Cfilearchiver.plg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Build Log
5 |
6 | --------------------Configuration: Cfilearchiver - Win32 Debug--------------------
7 |
8 | Command Lines
9 | Creating temporary file "C:\DOCUME~1\daveb\LOCALS~1\Temp\RSP342.tmp" with contents
10 | [
11 | /nologo /G5 /MLd /W4 /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fo"CFileArchiverDebug/" /Fd"CFileArchiverDebug/" /FD /GZ /c
12 | "C:\projects\freespace2_public\code\Cfilearchiver\CfileArchiver.cpp"
13 | ]
14 | Creating command line "cwcl.exe @C:\DOCUME~1\daveb\LOCALS~1\Temp\RSP342.tmp"
15 | Creating temporary file "C:\DOCUME~1\daveb\LOCALS~1\Temp\RSP343.tmp" with contents
16 | [
17 | kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Cfilearchiver.pdb" /debug /machine:I386 /out:"Cfilearchiver.exe" /pdbtype:sept
18 | .\CFileArchiverDebug\CfileArchiver.obj
19 | ]
20 | Creating command line "cwlink.exe @C:\DOCUME~1\daveb\LOCALS~1\Temp\RSP343.tmp"
21 | Output Window
22 | Compiling...
23 | CfileArchiver.cpp
24 | Linking...
25 |
26 |
27 |
28 | Results
29 | Cfilearchiver.exe - 0 error(s), 0 warning(s)
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/FS2AutoRun.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/FS2AutoRun.ico
--------------------------------------------------------------------------------
/HelpEd.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/HelpEd.exe
--------------------------------------------------------------------------------
/code/AC/ac.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/AC/ac.h $
12 | * $Revision: 2 $
13 | * $Date: 10/23/98 6:03p $
14 | * $Author: Dave $
15 | *
16 | * Header file for console version of anim converter
17 | *
18 | * $Log: /Freespace2/code/AC/ac.h $
19 | *
20 | * 2 10/23/98 6:03p Dave
21 | *
22 | * 1 10/23/98 5:04p Dave
23 | *
24 | * 1 10/23/98 4:32p Dave
25 | *
26 | * 1 2/19/97 7:26p Lawrance
27 | *
28 | * $NoKeywords: $
29 | */
30 |
31 |
32 | #ifndef __AC_H__
33 | #define __AC_H__
34 |
35 |
36 | #endif /* __AC_H__ */
--------------------------------------------------------------------------------
/code/ControlConfig/ControlsConfigCommon.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/ControlConfig/ControlsConfigCommon.cpp
--------------------------------------------------------------------------------
/code/Cryptstring/cryptstring.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Cryptstring/cryptstring.cpp $
12 | * $Revision: 2 $
13 | * $Date: 10/23/98 6:21p $
14 | * $Author: Dave $
15 | *
16 | * Applet for crypting strings.
17 | *
18 | * $Log: /Freespace2/code/Cryptstring/cryptstring.cpp $
19 | *
20 | * 2 10/23/98 6:21p Dave
21 | *
22 | * $NoKeywords: $
23 | */
24 |
25 | #include
26 | #include
27 | #include
28 | #include "crypt.h"
29 |
30 | int main(int argc, char **argv)
31 | {
32 | int i;
33 | char *crypt_string;
34 |
35 | if ( argc == 1 ) {
36 | printf("Usage: cryptstring ...\n");
37 | printf("Output will be \n");
38 | exit(1);
39 | }
40 |
41 | for ( i = 1; i < argc; i++ ) {
42 | char *s;
43 |
44 | s = argv[i];
45 | // if the length of the string is greater than the number of crypted symbols we
46 | // return, then pass only the maximum length
47 | if ( strlen(s) > CRYPT_STRING_LENGTH )
48 | s += (strlen(s) - CRYPT_STRING_LENGTH);
49 |
50 | crypt_string = jcrypt(s);
51 | printf("%s\n", crypt_string);
52 | }
53 |
54 | return 0;
55 | }
56 |
57 | char *jcrypt (char *plainstring)
58 | {
59 | int i,t,len;
60 | static char cryptstring[CRYPT_STRING_LENGTH + 1];
61 |
62 | len=strlen (plainstring);
63 | if (len > CRYPT_STRING_LENGTH)
64 | len = CRYPT_STRING_LENGTH;
65 |
66 | for (i = 0;i < len; i++) {
67 | cryptstring[i]=0;
68 |
69 | for (t = 0; t < len; t++) {
70 | cryptstring[i]^=(plainstring[t] ^ plainstring[i%(t+1)]);
71 | cryptstring[i]%=90;
72 | cryptstring[i]+=33;
73 | }
74 | }
75 |
76 | cryptstring[i]=0;
77 | return ((char *)cryptstring);
78 | }
79 |
--------------------------------------------------------------------------------
/code/DirectX/vDdraw.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/DirectX/vDdraw.lib
--------------------------------------------------------------------------------
/code/DirectX/vDinput.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/DirectX/vDinput.lib
--------------------------------------------------------------------------------
/code/DirectX/vDsound.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/DirectX/vDsound.lib
--------------------------------------------------------------------------------
/code/DirectX/vDxguid.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/DirectX/vDxguid.lib
--------------------------------------------------------------------------------
/code/DirectX/vd3drmwin.h:
--------------------------------------------------------------------------------
1 | /*==========================================================================;
2 | *
3 | * Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved.
4 | *
5 | * File: d3drm.h
6 | * Content: Direct3DRM include file
7 | *
8 | ***************************************************************************/
9 |
10 | #ifndef __D3DRMWIN_H__
11 | #define __D3DRMWIN_H__
12 |
13 | #ifndef WIN32
14 | #define WIN32
15 | #endif
16 |
17 | #include "vd3drm.h"
18 | #include "vddraw.h"
19 | #include "vd3d.h"
20 |
21 | /*
22 | * GUIDS used by Direct3DRM Windows interface
23 | */
24 | DEFINE_GUID(IID_IDirect3DRMWinDevice, 0xc5016cc0, 0xd273, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
25 |
26 | WIN_TYPES(IDirect3DRMWinDevice, DIRECT3DRMWINDEVICE);
27 |
28 | #undef INTERFACE
29 | #define INTERFACE IDirect3DRMWinDevice
30 |
31 | DECLARE_INTERFACE_(IDirect3DRMWinDevice, IDirect3DRMObject)
32 | {
33 | IUNKNOWN_METHODS(PURE);
34 | IDIRECT3DRMOBJECT_METHODS(PURE);
35 |
36 | /*
37 | * IDirect3DRMWinDevice methods
38 | */
39 |
40 | /* Repaint the window with the last frame which was rendered. */
41 | STDMETHOD(HandlePaint)(THIS_ HDC hdc) PURE;
42 |
43 | /* Respond to a WM_ACTIVATE message. */
44 | STDMETHOD(HandleActivate)(THIS_ WORD wparam) PURE;
45 | };
46 |
47 |
48 | #endif
49 |
--------------------------------------------------------------------------------
/code/ExceptionHandler/ExceptionHandler.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/ExceptionHandler/ExceptionHandler.cpp
--------------------------------------------------------------------------------
/code/ExceptionHandler/ExceptionHandler.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/ExceptionHandler/ExceptionHandler.h $
12 | * $Revision: 1 $
13 | * $Date: 6/29/99 7:42p $
14 | * $Author: Dave $
15 | *
16 | * Header file for program exception handling
17 | *
18 | * $Log: /Freespace2/code/ExceptionHandler/ExceptionHandler.h $
19 | *
20 | * 1 6/29/99 7:42p Dave
21 | *
22 | * 2 1/18/99 4:34p Allender
23 | * added the exception handler routines from Game Developer for structured
24 | * exception handling in vsdk code
25 | *
26 | * $NoKeywords: $
27 | */
28 |
29 | #pragma once // Include this file only once
30 |
31 | #ifndef __EXCEPTION_HANDLER_H
32 | #define __EXCEPTION_HANDLER_H
33 |
34 | // --------------------
35 | //
36 | // Defines
37 | //
38 | // --------------------
39 |
40 |
41 | // --------------------
42 | //
43 | // Enumerated types
44 | //
45 | // --------------------
46 |
47 |
48 | // --------------------
49 | //
50 | // Structures
51 | //
52 | // --------------------
53 |
54 | // this is a forward declaration so we don't need to include windows.h
55 |
56 | typedef struct _EXCEPTION_POINTERS EXCEPTION_POINTERS, *PEXCEPTION_POINTERS;
57 |
58 | // --------------------
59 | //
60 | // Classes
61 | //
62 | // --------------------
63 |
64 |
65 | // --------------------
66 | //
67 | // Variables
68 | //
69 | // --------------------
70 |
71 |
72 | // --------------------
73 | //
74 | // Prototypes
75 | //
76 | // --------------------
77 |
78 | int __cdecl RecordExceptionInfo(PEXCEPTION_POINTERS data, const char *Message);
79 |
80 | // --------------------
81 | //
82 | // Helper Macros
83 | //
84 | // --------------------
85 |
86 |
87 | #endif // __EXCEPTION_HANDLER_H
88 |
--------------------------------------------------------------------------------
/code/FRED2/AddVariableDlg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | #if !defined(AFX_ADDVARIABLEDLG_H__0F668CB5_AAEE_11D2_A899_0060088FAE88__INCLUDED_)
11 | #define AFX_ADDVARIABLEDLG_H__0F668CB5_AAEE_11D2_A899_0060088FAE88__INCLUDED_
12 |
13 | #if _MSC_VER > 1000
14 | #pragma once
15 | #endif // _MSC_VER > 1000
16 | // AddVariableDlg.h : header file
17 | //
18 |
19 | /////////////////////////////////////////////////////////////////////////////
20 | // CAddVariableDlg dialog
21 |
22 | class CAddVariableDlg : public CDialog
23 | {
24 | // Construction
25 | public:
26 | CAddVariableDlg(CWnd* pParent = NULL); // standard constructor
27 |
28 | // Dialog Data
29 | //{{AFX_DATA(CAddVariableDlg)
30 | enum { IDD = IDD_ADD_VARIABLE };
31 | CString m_default_value;
32 | CString m_variable_name;
33 | bool m_name_validated;
34 | bool m_data_validated;
35 | bool m_type_number;
36 | bool m_create;
37 | int m_sexp_var_index;
38 | //}}AFX_DATA
39 |
40 |
41 | // Overrides
42 | // ClassWizard generated virtual function overrides
43 | //{{AFX_VIRTUAL(CAddVariableDlg)
44 | protected:
45 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
46 | //}}AFX_VIRTUAL
47 |
48 | // Implementation
49 | protected:
50 |
51 | // Generated message map functions
52 | //{{AFX_MSG(CAddVariableDlg)
53 | virtual void OnOK();
54 | virtual BOOL OnInitDialog();
55 | afx_msg void validate_variable_name(int set_focus);
56 | afx_msg void validate_data(int set_focus);
57 | afx_msg void OnTypeNumber();
58 | afx_msg void OnTypeString();
59 | afx_msg void set_variable_type();
60 | //}}AFX_MSG
61 | DECLARE_MESSAGE_MAP()
62 | };
63 |
64 | //{{AFX_INSERT_LOCATION}}
65 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
66 |
67 | #endif // !defined(AFX_ADDVARIABLEDLG_H__0F668CB5_AAEE_11D2_A899_0060088FAE88__INCLUDED_)
68 |
--------------------------------------------------------------------------------
/code/FRED2/AdjustGridDlg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/FRED2/AdjustGridDlg.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 6:28p $
14 | * $Author: Dave $
15 | *
16 | * Editor to allow one to change Fred's grid orientation and position.
17 | *
18 | * $Log: /Freespace2/code/FRED2/AdjustGridDlg.h $
19 | *
20 | * 2 10/07/98 6:28p Dave
21 | * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
22 | * Fred. Globalized mission and campaign file extensions. Removed Silent
23 | * Threat specific code.
24 | *
25 | * 1 10/07/98 3:01p Dave
26 | *
27 | * 1 10/07/98 2:59p Dave
28 | *
29 | * 3 8/18/97 10:01p Hoffoss
30 | * Improved dialog by graying out fields that don't have any effect on
31 | * current plane setting.
32 | *
33 | * 2 8/18/97 9:31p Hoffoss
34 | * Added grid adjustment dialog and shield system editor dialog.
35 | *
36 | * $NoKeywords: $
37 | */
38 |
39 | /////////////////////////////////////////////////////////////////////////////
40 | // adjust_grid_dlg dialog
41 |
42 | class adjust_grid_dlg : public CDialog
43 | {
44 | // Construction
45 | public:
46 | void OnOK();
47 | adjust_grid_dlg(CWnd* pParent = NULL); // standard constructor
48 |
49 | // Dialog Data
50 | //{{AFX_DATA(adjust_grid_dlg)
51 | enum { IDD = IDD_ADJUST_GRID };
52 | CSpinButtonCtrl m_spinz;
53 | CSpinButtonCtrl m_spiny;
54 | CSpinButtonCtrl m_spinx;
55 | int m_x;
56 | int m_y;
57 | int m_z;
58 | //}}AFX_DATA
59 |
60 | // Overrides
61 | // ClassWizard generated virtual function overrides
62 | //{{AFX_VIRTUAL(adjust_grid_dlg)
63 | protected:
64 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
65 | //}}AFX_VIRTUAL
66 |
67 | // Implementation
68 | protected:
69 |
70 | // Generated message map functions
71 | //{{AFX_MSG(adjust_grid_dlg)
72 | virtual BOOL OnInitDialog();
73 | afx_msg void OnXyPlane();
74 | afx_msg void OnXzPlane();
75 | afx_msg void OnYzPlane();
76 | //}}AFX_MSG
77 | DECLARE_MESSAGE_MAP()
78 | };
79 |
--------------------------------------------------------------------------------
/code/FRED2/CampaignFilelistBox.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // CampaignFilelistBox.h : header file
11 | //
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 | // campaign_filelist_box window
15 |
16 | class campaign_filelist_box : public CListBox
17 | {
18 | // Construction
19 | public:
20 | void initialize();
21 | campaign_filelist_box();
22 |
23 | // Attributes
24 | public:
25 |
26 | // Operations
27 | public:
28 |
29 | // Overrides
30 | // ClassWizard generated virtual function overrides
31 | //{{AFX_VIRTUAL(campaign_filelist_box)
32 | //}}AFX_VIRTUAL
33 |
34 | // Implementation
35 | public:
36 | virtual ~campaign_filelist_box();
37 |
38 | // Generated message map functions
39 | protected:
40 | //{{AFX_MSG(campaign_filelist_box)
41 | afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
42 | //}}AFX_MSG
43 |
44 | DECLARE_MESSAGE_MAP()
45 | };
46 |
47 | /////////////////////////////////////////////////////////////////////////////
48 |
--------------------------------------------------------------------------------
/code/FRED2/CreateWingDlg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // CreateWingDlg.h : header file
11 | //
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 | // create_wing_dlg dialog
15 |
16 | class create_wing_dlg : public CDialog
17 | {
18 | // Construction
19 | public:
20 | void OnOK();
21 | create_wing_dlg(CWnd* pParent = NULL); // standard constructor
22 |
23 | // Dialog Data
24 | //{{AFX_DATA(create_wing_dlg)
25 | enum { IDD = IDD_WING_CREATE };
26 | CString m_name;
27 | //}}AFX_DATA
28 |
29 |
30 | // Overrides
31 | // ClassWizard generated virtual function overrides
32 | //{{AFX_VIRTUAL(create_wing_dlg)
33 | protected:
34 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
35 | //}}AFX_VIRTUAL
36 |
37 | // Implementation
38 | protected:
39 |
40 | // Generated message map functions
41 | //{{AFX_MSG(create_wing_dlg)
42 | // NOTE: the ClassWizard will add member functions here
43 | //}}AFX_MSG
44 | DECLARE_MESSAGE_MAP()
45 | };
46 |
--------------------------------------------------------------------------------
/code/FRED2/DumpStats.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | #if !defined(AFX_DUMPSTATS_H__04996431_1A80_11D3_A923_0060088FAE88__INCLUDED_)
11 | #define AFX_DUMPSTATS_H__04996431_1A80_11D3_A923_0060088FAE88__INCLUDED_
12 |
13 | #if _MSC_VER > 1000
14 | #pragma once
15 | #endif // _MSC_VER > 1000
16 | // DumpStats.h : header file
17 | //
18 |
19 | /////////////////////////////////////////////////////////////////////////////
20 | // DumpStats dialog
21 |
22 | class DumpStats : public CDialog
23 | {
24 | // Construction
25 | public:
26 | DumpStats(CWnd* pParent = NULL); // standard constructor
27 | void get_mission_stats(CString &buffer);
28 | void get_background_stats(CString &buffer);
29 | void get_object_stats(CString &buffer);
30 | void get_objectives_and_goals(CString &buffer);
31 | void get_ship_weapon_selection(CString &buffer);
32 | void get_messaging_info(CString &buffer);
33 | void get_species_ship_breakdown(CString &buffer);
34 | void get_default_ship_loadouts(CString &buffer);
35 |
36 | // Dialog Data
37 | //{{AFX_DATA(DumpStats)
38 | enum { IDD = IDD_DUMP_STATS };
39 | // NOTE: the ClassWizard will add data members here
40 | //}}AFX_DATA
41 |
42 |
43 | // Overrides
44 | // ClassWizard generated virtual function overrides
45 | //{{AFX_VIRTUAL(DumpStats)
46 | protected:
47 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
48 | //}}AFX_VIRTUAL
49 |
50 | // Implementation
51 | protected:
52 |
53 | // Generated message map functions
54 | //{{AFX_MSG(DumpStats)
55 | virtual BOOL OnInitDialog();
56 | afx_msg void OnDumpToFile();
57 | //}}AFX_MSG
58 | DECLARE_MESSAGE_MAP()
59 | };
60 |
61 | //{{AFX_INSERT_LOCATION}}
62 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
63 |
64 | #endif // !defined(AFX_DUMPSTATS_H__04996431_1A80_11D3_A923_0060088FAE88__INCLUDED_)
65 |
--------------------------------------------------------------------------------
/code/FRED2/FRED.APS:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/FRED.APS
--------------------------------------------------------------------------------
/code/FRED2/FRED.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/FRED.rc
--------------------------------------------------------------------------------
/code/FRED2/InitialShips.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // InitialShips.h : header file
11 | //
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 | // InitialShips dialog
15 |
16 | #define INITIAL_SHIPS 1
17 | #define INITIAL_WEAPONS 2
18 |
19 | #define MAX_INITIAL_CHECKBOXES 30
20 |
21 | class InitialShips : public CDialog
22 | {
23 | // Construction
24 | public:
25 | int m_initial_items;
26 | InitialShips(CWnd* pParent = NULL); // standard constructor
27 |
28 | // Dialog Data
29 | //{{AFX_DATA(InitialShips)
30 | enum { IDD = IDD_INITIAL_SHIPS };
31 | CCheckListBox m_initial_list;
32 | //}}AFX_DATA
33 |
34 |
35 | // Overrides
36 | // ClassWizard generated virtual function overrides
37 | //{{AFX_VIRTUAL(InitialShips)
38 | protected:
39 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
40 | //}}AFX_VIRTUAL
41 |
42 | // Implementation
43 | protected:
44 |
45 | // Generated message map functions
46 | //{{AFX_MSG(InitialShips)
47 | virtual BOOL OnInitDialog();
48 | virtual void OnOK();
49 | //}}AFX_MSG
50 | DECLARE_MESSAGE_MAP()
51 | private:
52 | int m_list_count;
53 | };
54 |
--------------------------------------------------------------------------------
/code/FRED2/InitialStatus.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // InitialStatus.h : header file
11 | //
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 | // initial_status dialog
15 |
16 | class initial_status : public CDialog
17 | {
18 | // Construction
19 | public:
20 | void undock(int obj);
21 | void OnOK();
22 | int inited;
23 | void change_subsys();
24 | initial_status(CWnd* pParent = NULL); // standard constructor
25 | void initialize_docker_points();
26 | void initialize_dockee_points();
27 |
28 | int m_ship;
29 | int m_docked_with;
30 | int m_multi_edit;
31 |
32 | // Dialog Data
33 | //{{AFX_DATA(initial_status)
34 | enum { IDD = IDD_INITIAL_STATUS };
35 | CSpinButtonCtrl m_hull_spin;
36 | CSpinButtonCtrl m_velocity_spin;
37 | CSpinButtonCtrl m_shields_spin;
38 | CSpinButtonCtrl m_damage_spin;
39 | int m_damage;
40 | int m_docked;
41 | int m_shields;
42 | int m_velocity;
43 | int m_hull;
44 | int m_dockee_point;
45 | int m_docker_point;
46 | BOOL m_has_shields;
47 | int m_locked;
48 | CString m_cargo_name;
49 | //}}AFX_DATA
50 |
51 |
52 | // Overrides
53 | // ClassWizard generated virtual function overrides
54 | //{{AFX_VIRTUAL(initial_status)
55 | protected:
56 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
57 | //}}AFX_VIRTUAL
58 |
59 | // Implementation
60 | protected:
61 |
62 | // Generated message map functions
63 | //{{AFX_MSG(initial_status)
64 | virtual BOOL OnInitDialog();
65 | afx_msg void OnSelchangeSubsys();
66 | afx_msg void OnSelchangeDocked();
67 | afx_msg void OnSelchangeDockerPoint();
68 | afx_msg void OnHasShields();
69 | afx_msg void OnLocked();
70 | //}}AFX_MSG
71 | DECLARE_MESSAGE_MAP()
72 |
73 | private:
74 | void reset_arrival_to_false( int shipnum );
75 | int cur_subsys;
76 | int m_docker_index;
77 | int m_dockee_index;
78 | };
79 |
--------------------------------------------------------------------------------
/code/FRED2/MakeHelp.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | REM -- First make map file from Microsoft Visual C++ generated resource.h
3 | echo // MAKEHELP.BAT generated Help Map file. Used by FRED.HPJ. >"hlp\fred.hm"
4 | echo. >>"hlp\fred.hm"
5 | echo // Commands (ID_* and IDM_*) >>"hlp\fred.hm"
6 | makehm ID_,HID_,0x10000 IDM_,HIDM_,0x10000 resource.h >>"hlp\fred.hm"
7 | echo. >>"hlp\fred.hm"
8 | echo // Prompts (IDP_*) >>"hlp\fred.hm"
9 | makehm IDP_,HIDP_,0x30000 resource.h >>"hlp\fred.hm"
10 | echo. >>"hlp\fred.hm"
11 | echo // Resources (IDR_*) >>"hlp\fred.hm"
12 | makehm IDR_,HIDR_,0x20000 resource.h >>"hlp\fred.hm"
13 | echo. >>"hlp\fred.hm"
14 | echo // Dialogs (IDD_*) >>"hlp\fred.hm"
15 | makehm IDD_,HIDD_,0x20000 resource.h >>"hlp\fred.hm"
16 | echo. >>"hlp\fred.hm"
17 | echo // Frame Controls (IDW_*) >>"hlp\fred.hm"
18 | makehm IDW_,HIDW_,0x50000 resource.h >>"hlp\fred.hm"
19 | REM -- Make help for Project FRED
20 |
21 |
22 | echo Building Win32 Help files
23 | start /wait hcrtf -x "hlp\fred.hpj"
24 | echo.
25 | if exist Debug\nul copy "hlp\fred.hlp" Debug
26 | if exist Debug\nul copy "hlp\fred.cnt" Debug
27 | if exist Release\nul copy "hlp\fred.hlp" Release
28 | if exist Release\nul copy "hlp\fred.cnt" Release
29 | echo.
30 |
31 |
32 |
--------------------------------------------------------------------------------
/code/FRED2/ShieldSysDlg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/FRED2/ShieldSysDlg.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 6:28p $
14 | * $Author: Dave $
15 | *
16 | * Shield generator system editor. This dialog allows one to indicate whether all ships
17 | * (on a certain team or of a certain type) have a shield system or not.
18 | *
19 | * $Log: /Freespace2/code/FRED2/ShieldSysDlg.h $
20 | *
21 | * 2 10/07/98 6:28p Dave
22 | * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
23 | * Fred. Globalized mission and campaign file extensions. Removed Silent
24 | * Threat specific code.
25 | *
26 | * 1 10/07/98 3:01p Dave
27 | *
28 | * 1 10/07/98 3:00p Dave
29 | *
30 | * 2 8/18/97 9:31p Hoffoss
31 | * Added grid adjustment dialog and shield system editor dialog.
32 | *
33 | * $NoKeywords: $
34 | */
35 |
36 | extern int Shield_sys_teams[MAX_TEAM_NAMES];
37 | extern int Shield_sys_types[MAX_SHIP_TYPES];
38 |
39 | /////////////////////////////////////////////////////////////////////////////
40 | // shield_sys_dlg dialog
41 |
42 | class shield_sys_dlg : public CDialog
43 | {
44 | // Construction
45 | public:
46 | void set_team();
47 | void set_type();
48 | shield_sys_dlg(CWnd* pParent = NULL); // standard constructor
49 |
50 | // Dialog Data
51 | //{{AFX_DATA(shield_sys_dlg)
52 | enum { IDD = IDD_SHIELD_SYS };
53 | int m_team;
54 | int m_type;
55 | //}}AFX_DATA
56 |
57 | // Overrides
58 | // ClassWizard generated virtual function overrides
59 | //{{AFX_VIRTUAL(shield_sys_dlg)
60 | protected:
61 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
62 | //}}AFX_VIRTUAL
63 |
64 | // Implementation
65 | protected:
66 |
67 | // Generated message map functions
68 | //{{AFX_MSG(shield_sys_dlg)
69 | virtual void OnOK();
70 | virtual BOOL OnInitDialog();
71 | afx_msg void OnSelchangeTeam();
72 | afx_msg void OnSelchangeType();
73 | //}}AFX_MSG
74 | DECLARE_MESSAGE_MAP()
75 | };
76 |
--------------------------------------------------------------------------------
/code/FRED2/ShipCheckListBox.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/FRED2/ShipCheckListBox.cpp $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 6:28p $
14 | * $Author: Dave $
15 | *
16 | * A custom check list box class that allows space bar to toggle the state of all
17 | * the selected checkboxes.
18 | *
19 | * $Log: /Freespace2/code/FRED2/ShipCheckListBox.cpp $
20 | *
21 | * 2 10/07/98 6:28p Dave
22 | * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
23 | * Fred. Globalized mission and campaign file extensions. Removed Silent
24 | * Threat specific code.
25 | *
26 | * 1 10/07/98 3:01p Dave
27 | *
28 | * 1 10/07/98 3:00p Dave
29 | *
30 | * 4 2/17/97 5:28p Hoffoss
31 | * Checked RCS headers, added them were missing, changing description to
32 | * something better, etc where needed.
33 | *
34 | * $NoKeywords: $
35 | */
36 |
37 | #include "stdafx.h"
38 | #include "ShipCheckListBox.h"
39 |
40 | BEGIN_MESSAGE_MAP(ShipCheckListBox, CCheckListBox)
41 | //{{AFX_MSG_MAP(CCheckListBox)
42 | ON_WM_KEYDOWN()
43 | //}}AFX_MSG_MAP
44 | END_MESSAGE_MAP()
45 |
46 | BOOL ShipCheckListBox::Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID)
47 | {
48 | BOOL b;
49 |
50 | b = CCheckListBox::Create(LBS_OWNERDRAWFIXED | dwStyle, rect, pParentWnd, nID);
51 | SetCheckStyle(BS_AUTOCHECKBOX);
52 | return b;
53 | }
54 |
55 | void ShipCheckListBox::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
56 | {
57 | if (nChar == VK_SPACE)
58 | {
59 | int i, list_size;
60 |
61 | list_size = GetCount();
62 | for (i=0; i 0)
64 | {
65 | if (GetCheck(i))
66 | SetCheck(i, 0);
67 | else
68 | SetCheck(i, 1);
69 | }
70 |
71 | } else
72 | CCheckListBox::OnKeyDown(nChar, nRepCnt, nFlags);
73 | }
74 |
--------------------------------------------------------------------------------
/code/FRED2/ShipCheckListBox.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/FRED2/ShipCheckListBox.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 6:28p $
14 | * $Author: Dave $
15 | *
16 | * A custom check list box class that allows space bar to toggle the state of all
17 | * the selected checkboxes.
18 | *
19 | * $Log: /Freespace2/code/FRED2/ShipCheckListBox.h $
20 | *
21 | * 2 10/07/98 6:28p Dave
22 | * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
23 | * Fred. Globalized mission and campaign file extensions. Removed Silent
24 | * Threat specific code.
25 | *
26 | * 1 10/07/98 3:01p Dave
27 | *
28 | * 1 10/07/98 3:00p Dave
29 | *
30 | * 5 2/17/97 5:28p Hoffoss
31 | * Checked RCS headers, added them were missing, changing description to
32 | * something better, etc where needed.
33 | *
34 | * $NoKeywords: $
35 | */
36 |
37 | #ifndef _SHIPCHECKLISTBOX_H
38 | #define _SHIPCHECKLISTBOX_H
39 |
40 | class ShipCheckListBox : public CCheckListBox
41 | {
42 | public:
43 | BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
44 |
45 | protected:
46 | //{{AFX_MSG(CCheckListBox)
47 | afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
48 | //}}AFX_MSG
49 |
50 | DECLARE_MESSAGE_MAP()
51 | };
52 |
53 | #endif
--------------------------------------------------------------------------------
/code/FRED2/ShipSpecialDamage.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | #if !defined(AFX_SHIPSPECIALDAMAGE_H__89610237_C0F4_11D2_A8B6_0060088FAE88__INCLUDED_)
11 | #define AFX_SHIPSPECIALDAMAGE_H__89610237_C0F4_11D2_A8B6_0060088FAE88__INCLUDED_
12 |
13 | #if _MSC_VER > 1000
14 | #pragma once
15 | #endif // _MSC_VER > 1000
16 | // ShipSpecialDamage.h : header file
17 | //
18 |
19 | /////////////////////////////////////////////////////////////////////////////
20 | // ShipSpecialDamage dialog
21 |
22 | class ShipSpecialDamage : public CDialog
23 | {
24 | // Construction
25 | public:
26 | ShipSpecialDamage(CWnd* pParent = NULL); // standard constructor
27 |
28 | // Dialog Data
29 | //{{AFX_DATA(ShipSpecialDamage)
30 | enum { IDD = IDD_SPECIAL_DAMAGE };
31 | int m_shock_enabled;
32 | BOOL m_special_exp_enabled;
33 | int m_inner_rad;
34 | int m_outer_rad;
35 | int m_damage;
36 | int m_shock_speed;
37 | int m_blast;
38 | int m_ship_num;
39 | //}}AFX_DATA
40 |
41 |
42 | // Overrides
43 | // ClassWizard generated virtual function overrides
44 | //{{AFX_VIRTUAL(ShipSpecialDamage)
45 | protected:
46 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
47 | //}}AFX_VIRTUAL
48 |
49 | // Implementation
50 | protected:
51 |
52 | // Generated message map functions
53 | //{{AFX_MSG(ShipSpecialDamage)
54 | afx_msg void OnEnableShockwave();
55 | afx_msg void OnEnableSpecialExp();
56 | virtual BOOL OnInitDialog();
57 | afx_msg void DoGray();
58 | virtual void OnCancel();
59 | virtual void OnOK();
60 | //}}AFX_MSG
61 | DECLARE_MESSAGE_MAP()
62 | };
63 |
64 | //{{AFX_INSERT_LOCATION}}
65 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
66 |
67 | #endif // !defined(AFX_SHIPSPECIALDAMAGE_H__89610237_C0F4_11D2_A8B6_0060088FAE88__INCLUDED_)
68 |
--------------------------------------------------------------------------------
/code/FRED2/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/FRED2/StdAfx.cpp $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 6:28p $
14 | * $Author: Dave $
15 | *
16 | // stdafx.cpp : source file that includes just the standard includes
17 | // FRED.pch will be the pre-compiled header
18 | // stdafx.obj will contain the pre-compiled type information
19 | *
20 | * Above is the MFC generated notes on this file. Basically, you don't need
21 | * do touch anything here.
22 | *
23 | * $Log: /Freespace2/code/FRED2/StdAfx.cpp $
24 | *
25 | * 2 10/07/98 6:28p Dave
26 | * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
27 | * Fred. Globalized mission and campaign file extensions. Removed Silent
28 | * Threat specific code.
29 | *
30 | * 1 10/07/98 3:01p Dave
31 | *
32 | * 1 10/07/98 3:00p Dave
33 | *
34 | * 2 2/17/97 5:28p Hoffoss
35 | * Checked RCS headers, added them were missing, changing description to
36 | * something better, etc where needed.
37 | *
38 | * $NoKeywords: $
39 | */
40 |
41 | #include "stdafx.h"
42 |
43 |
--------------------------------------------------------------------------------
/code/FRED2/TextViewDlg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // TextViewDlg.h : header file
11 | //
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 | // text_view_dlg dialog
15 |
16 | class text_view_dlg : public CDialog
17 | {
18 | // Construction
19 | public:
20 | void set(int ship);
21 | text_view_dlg(CWnd* pParent = NULL); // standard constructor
22 |
23 | // Dialog Data
24 | //{{AFX_DATA(text_view_dlg)
25 | enum { IDD = IDD_TEXT_VIEW };
26 | CString m_edit;
27 | //}}AFX_DATA
28 |
29 |
30 | // Overrides
31 | // ClassWizard generated virtual function overrides
32 | //{{AFX_VIRTUAL(text_view_dlg)
33 | protected:
34 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
35 | //}}AFX_VIRTUAL
36 |
37 | // Implementation
38 | protected:
39 |
40 | // Generated message map functions
41 | //{{AFX_MSG(text_view_dlg)
42 | afx_msg void OnSetfocusEdit1();
43 | //}}AFX_MSG
44 | DECLARE_MESSAGE_MAP()
45 | };
46 |
--------------------------------------------------------------------------------
/code/FRED2/dialog1.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/FRED2/dialog1.cpp $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 6:28p $
14 | * $Author: Dave $
15 | *
16 | * key usage summary screen (actually a dialog box, but it's not very interactive)
17 | *
18 | * $Log: /Freespace2/code/FRED2/dialog1.cpp $
19 | *
20 | * 2 10/07/98 6:28p Dave
21 | * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
22 | * Fred. Globalized mission and campaign file extensions. Removed Silent
23 | * Threat specific code.
24 | *
25 | * 1 10/07/98 3:01p Dave
26 | *
27 | * 1 10/07/98 3:00p Dave
28 | *
29 | * 2 2/17/97 5:28p Hoffoss
30 | * Checked RCS headers, added them were missing, changing description to
31 | * something better, etc where needed.
32 | *
33 | * $NoKeywords: $
34 | */
35 |
36 | #include "stdafx.h"
37 | #include "fred.h"
38 | #include "dialog1.h"
39 |
40 | #ifdef _DEBUG
41 | #define new DEBUG_NEW
42 | #undef THIS_FILE
43 | static char THIS_FILE[] = __FILE__;
44 | #endif
45 |
46 | /////////////////////////////////////////////////////////////////////////////
47 | // dialog1 dialog
48 |
49 | dialog1::dialog1(CWnd* pParent /*=NULL*/)
50 | : CDialog(dialog1::IDD, pParent)
51 | {
52 | //{{AFX_DATA_INIT(dialog1)
53 | // NOTE: the ClassWizard will add member initialization here
54 | //}}AFX_DATA_INIT
55 | }
56 |
57 | void dialog1::DoDataExchange(CDataExchange* pDX)
58 | {
59 | CDialog::DoDataExchange(pDX);
60 | //{{AFX_DATA_MAP(dialog1)
61 | // NOTE: the ClassWizard will add DDX and DDV calls here
62 | //}}AFX_DATA_MAP
63 | }
64 |
65 | BEGIN_MESSAGE_MAP(dialog1, CDialog)
66 | //{{AFX_MSG_MAP(dialog1)
67 | // NOTE: the ClassWizard will add message map macros here
68 | //}}AFX_MSG_MAP
69 | END_MESSAGE_MAP()
70 |
71 | /////////////////////////////////////////////////////////////////////////////
72 | // dialog1 message handlers
73 |
--------------------------------------------------------------------------------
/code/FRED2/dialog1.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/FRED2/dialog1.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 6:28p $
14 | * $Author: Dave $
15 | *
16 | * key usage summary screen (actually a dialog box, but it's not very interactive)
17 | *
18 | * $Log: /Freespace2/code/FRED2/dialog1.h $
19 | *
20 | * 2 10/07/98 6:28p Dave
21 | * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
22 | * Fred. Globalized mission and campaign file extensions. Removed Silent
23 | * Threat specific code.
24 | *
25 | * 1 10/07/98 3:01p Dave
26 | *
27 | * 1 10/07/98 3:00p Dave
28 | *
29 | * 2 2/17/97 5:28p Hoffoss
30 | * Checked RCS headers, added them were missing, changing description to
31 | * something better, etc where needed.
32 | *
33 | * $NoKeywords: $
34 | */
35 |
36 | /////////////////////////////////////////////////////////////////////////////
37 | // dialog1 dialog
38 |
39 | class dialog1 : public CDialog
40 | {
41 | // Construction
42 | public:
43 | dialog1(CWnd* pParent = NULL); // standard constructor
44 |
45 | // Dialog Data
46 | //{{AFX_DATA(dialog1)
47 | enum { IDD = IDD_HELP_INPUT_INTERFACE };
48 | // NOTE: the ClassWizard will add data members here
49 | //}}AFX_DATA
50 |
51 |
52 | // Overrides
53 | // ClassWizard generated virtual function overrides
54 | //{{AFX_VIRTUAL(dialog1)
55 | protected:
56 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
57 | //}}AFX_VIRTUAL
58 |
59 | // Implementation
60 | protected:
61 |
62 | // Generated message map functions
63 | //{{AFX_MSG(dialog1)
64 | // NOTE: the ClassWizard will add member functions here
65 | //}}AFX_MSG
66 | DECLARE_MESSAGE_MAP()
67 | };
68 |
--------------------------------------------------------------------------------
/code/FRED2/editor.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | #ifndef _EDITOR_H
11 | #define _EDITOR_H
12 |
13 | /*
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 | */
18 |
19 | #include "physics.h"
20 | #include "3d.h"
21 | #include "MissionGrid.h"
22 |
23 | #define MAX_GRID_POINTS 1000
24 |
25 | void create_object(int objnum, vector *pos);
26 |
27 | // This stuff properly belongs in editor.h, but I gave up trying to figure out how
28 | // to add an include file to the project.
29 |
30 | extern void test_form_wing(int x);
31 |
32 | extern int select_object(int cx, int cy);
33 | extern void game_init();
34 |
35 | extern matrix Grid_gmatrix;
36 | extern vector Grid_center;
37 |
38 | extern int Show_stars;
39 | extern void rpd_line(vector *v0, vector *v1);
40 |
41 |
42 | /*
43 | #ifdef __cplusplus
44 | }
45 | #endif
46 | */
47 |
48 | #endif
--------------------------------------------------------------------------------
/code/FRED2/hlp/AppExit.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/AppExit.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/Bullet.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/Bullet.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/CurArw2.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/CurArw2.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/CurArw4.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/CurArw4.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/CurHelp.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/CurHelp.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/EditCopy.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/EditCopy.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/EditCut.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/EditCut.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/EditPast.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/EditPast.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/EditUndo.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/EditUndo.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/FileNew.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/FileNew.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/FileOpen.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/FileOpen.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/FilePrnt.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/FilePrnt.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/FileSave.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/FileSave.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/HlpSBar.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/HlpSBar.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/HlpTBar.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/HlpTBar.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/RecFirst.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/RecFirst.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/RecLast.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/RecLast.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/RecNext.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/RecNext.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/RecPrev.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/RecPrev.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/ScMenu.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/ScMenu.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/Scmax.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/Scmax.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/Scmin.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/Scmin.bmp
--------------------------------------------------------------------------------
/code/FRED2/hlp/help.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/hlp/help.log
--------------------------------------------------------------------------------
/code/FRED2/res/FRED.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/FRED.ico
--------------------------------------------------------------------------------
/code/FRED2/res/FRED.rc2:
--------------------------------------------------------------------------------
1 | //
2 | // FRED.RC2 - resources Microsoft Visual C++ does not edit directly
3 | //
4 |
5 | #ifdef APSTUDIO_INVOKED
6 | #error this file is not editable by Microsoft Visual C++
7 | #endif //APSTUDIO_INVOKED
8 |
9 |
10 | /////////////////////////////////////////////////////////////////////////////
11 | // Add manually edited resources here...
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 |
--------------------------------------------------------------------------------
/code/FRED2/res/FREDDoc.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/FREDDoc.ico
--------------------------------------------------------------------------------
/code/FRED2/res/Toolbar.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/Toolbar.bmp
--------------------------------------------------------------------------------
/code/FRED2/res/bitmap1.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/bitmap1.bmp
--------------------------------------------------------------------------------
/code/FRED2/res/black_do.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/black_do.bmp
--------------------------------------------------------------------------------
/code/FRED2/res/bmp00001.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/bmp00001.bmp
--------------------------------------------------------------------------------
/code/FRED2/res/chained.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/chained.bmp
--------------------------------------------------------------------------------
/code/FRED2/res/chained_directive.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/chained_directive.bmp
--------------------------------------------------------------------------------
/code/FRED2/res/cursor1.cur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/cursor1.cur
--------------------------------------------------------------------------------
/code/FRED2/res/cursor2.cur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/cursor2.cur
--------------------------------------------------------------------------------
/code/FRED2/res/data.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/data.bmp
--------------------------------------------------------------------------------
/code/FRED2/res/green_do.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/green_do.bmp
--------------------------------------------------------------------------------
/code/FRED2/res/root.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/root.bmp
--------------------------------------------------------------------------------
/code/FRED2/res/root_directive.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/root_directive.bmp
--------------------------------------------------------------------------------
/code/FRED2/res/toolbar1.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/toolbar1.bmp
--------------------------------------------------------------------------------
/code/FRED2/res/variable.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FRED2/res/variable.bmp
--------------------------------------------------------------------------------
/code/FRED2/resource.hm:
--------------------------------------------------------------------------------
1 | // Microsoft Developer Studio generated Help ID include file.
2 | // Used by FRED.rc
3 | //
4 | #define HIDC_BUTTON_NEW_EVENT 0x80cb04f1
5 | #define HIDC_BUTTON_NEW_GOAL 0x80b3049f
6 |
--------------------------------------------------------------------------------
/code/FRED2/stdafx.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/FRED2/stdafx.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 6:28p $
14 | * $Author: Dave $
15 | *
16 | // stdafx.h : include file for standard system include files,
17 | // or project specific include files that are used frequently, but
18 | // are changed infrequently
19 | *
20 | * Above is the MFC generated notes on this file. Basically, you probably don't need
21 | * do touch anything here.
22 | *
23 | * $Log: /Freespace2/code/FRED2/stdafx.h $
24 | *
25 | * 2 10/07/98 6:28p Dave
26 | * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
27 | * Fred. Globalized mission and campaign file extensions. Removed Silent
28 | * Threat specific code.
29 | *
30 | * 1 10/07/98 3:01p Dave
31 | *
32 | * 1 10/07/98 3:00p Dave
33 | *
34 | * 2 2/17/97 5:28p Hoffoss
35 | * Checked RCS headers, added them were missing, changing description to
36 | * something better, etc where needed.
37 | *
38 | * $NoKeywords: $
39 | */
40 |
41 | // #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
42 |
43 | #include // MFC core and standard components
44 | #include // MFC extensions
45 | #ifndef _AFX_NO_AFXCMN_SUPPORT
46 | #include // MFC support for Windows 95 Common Controls
47 | #endif // _AFX_NO_AFXCMN_SUPPORT
48 |
--------------------------------------------------------------------------------
/code/FRED2/wing.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/FRED2/wing.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 6:28p $
14 | * $Author: Dave $
15 | *
16 | * Wing management functions for dealing with wing related operations
17 | *
18 | * $Log: /Freespace2/code/FRED2/wing.h $
19 | *
20 | * 2 10/07/98 6:28p Dave
21 | * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
22 | * Fred. Globalized mission and campaign file extensions. Removed Silent
23 | * Threat specific code.
24 | *
25 | * 1 10/07/98 3:02p Dave
26 | *
27 | * 1 10/07/98 3:00p Dave
28 | *
29 | * 7 8/16/97 4:51p Hoffoss
30 | * Fixed bugs with wing deletion and removing ships from a wing.
31 | *
32 | * 6 8/12/97 1:55a Hoffoss
33 | * Made extensive changes to object reference checking and handling for
34 | * object deletion call.
35 | *
36 | * 5 6/18/97 2:36p Hoffoss
37 | * Wing ship numbering starts at 1 instead of 0, and changed form wing to
38 | * allow reforming a wing.
39 | *
40 | * 4 2/17/97 5:28p Hoffoss
41 | * Checked RCS headers, added them were missing, changing description to
42 | * something better, etc where needed.
43 | *
44 | * 3 1/24/97 4:14p Hoffoss
45 | * Added error checking to Fred.
46 | *
47 | * 2 11/26/96 2:40p Hoffoss
48 | * Wing toolbar buttons supported.
49 | *
50 | * 1 11/05/96 9:14a Hoffoss
51 | *
52 | * $NoKeywords: $
53 | */
54 |
55 | #include "Management.h"
56 |
57 | int create_wing();
58 | void remove_wing(int wing_num);
59 | void remove_ship_from_wing(int ship, int min = 1);
60 | void mark_wing(int wing);
61 | int delete_wing(int wing = cur_wing, int bypass = 0);
62 |
--------------------------------------------------------------------------------
/code/FREESPACE2/FreeSpace.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FREESPACE2/FreeSpace.cpp
--------------------------------------------------------------------------------
/code/FREESPACE2/FreeSpace.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FREESPACE2/FreeSpace.rc
--------------------------------------------------------------------------------
/code/FREESPACE2/LevelPaging.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/FREESPACE2/LevelPaging.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:54a $
14 | * $Author: Dave $
15 | *
16 | * Code to page in all the bitmaps at the beginning of a level.
17 | *
18 | * $Log: /Freespace2/code/FREESPACE2/LevelPaging.h $
19 | *
20 | * 2 10/07/98 10:54a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:48a Dave
24 | *
25 | * 1 3/26/98 5:14p John
26 | *
27 | * $NoKeywords: $
28 | */
29 |
30 | #ifndef _LEVELPAGING_H
31 | #define _LEVELPAGING_H
32 |
33 | // Call this and it calls the page in code for all the subsystems
34 | void level_page_in();
35 |
36 | #endif //_LEVELPAGING_H
37 |
38 |
--------------------------------------------------------------------------------
/code/FREESPACE2/app_icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FREESPACE2/app_icon.ico
--------------------------------------------------------------------------------
/code/FREESPACE2/goal_com.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FREESPACE2/goal_com.bmp
--------------------------------------------------------------------------------
/code/FREESPACE2/goal_fail.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FREESPACE2/goal_fail.bmp
--------------------------------------------------------------------------------
/code/FREESPACE2/goal_inc.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FREESPACE2/goal_inc.bmp
--------------------------------------------------------------------------------
/code/FREESPACE2/goal_none.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FREESPACE2/goal_none.bmp
--------------------------------------------------------------------------------
/code/FREESPACE2/goal_ord.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/FREESPACE2/goal_ord.bmp
--------------------------------------------------------------------------------
/code/Fonttool/FontKern.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/Fonttool/FontKern.cpp
--------------------------------------------------------------------------------
/code/Fonttool/FontKernCopy.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Fonttool/FontKernCopy.cpp $
12 | * $Revision: 2 $
13 | * $Date: 10/24/98 5:15p $
14 | * $Author: Dave $
15 | *
16 | * Tool for copying font kerning info
17 | *
18 | * $Log: /Freespace2/code/Fonttool/FontKernCopy.cpp $
19 | *
20 | * 2 10/24/98 5:15p Dave
21 | *
22 | * 1 10/24/98 4:58p Dave
23 | *
24 | * 2 6/05/97 4:53p John
25 | * First rev of new antialiased font stuff.
26 | *
27 | * 1 6/02/97 4:04p John
28 | *
29 | * $NoKeywords: $
30 | */
31 |
32 | #include
33 | #include
34 | #include
35 | #include
36 | #include
37 |
38 | #include "PsTypes.h"
39 | #include "OsApi.h"
40 | #include "Cfile.h"
41 | #include "2d.h"
42 | #include "key.h"
43 | #include "mouse.h"
44 | #include "PalMan.h"
45 | #include "timer.h"
46 |
47 | #include "FontTool.h"
48 |
49 | font fnt1, fnt2;
50 |
51 | void fonttool_kerning_copy( char *fname1, char *fname2 )
52 | {
53 | printf( "Copying kerning data from %s to %s\n", fname1, fname2 );
54 |
55 | fonttool_read( fname1, &fnt1 );
56 | fonttool_read( fname2, &fnt2 );
57 | fonttool_copy_kern( &fnt1, &fnt2 );
58 |
59 | fonttool_dump( fname2, &fnt2 );
60 |
61 | exit(0);
62 | }
63 |
64 |
--------------------------------------------------------------------------------
/code/Fonttool/FontTool.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Fonttool/FontTool.h $
12 | * $Revision: 2 $
13 | * $Date: 10/24/98 5:15p $
14 | * $Author: Dave $
15 | *
16 | * Include file for font creating/kerning tools
17 | *
18 | * $Log: /Freespace2/code/Fonttool/FontTool.h $
19 | *
20 | * 2 10/24/98 5:15p Dave
21 | *
22 | * 1 10/24/98 4:58p Dave
23 | *
24 | * 2 6/05/97 4:53p John
25 | * First rev of new antialiased font stuff.
26 | *
27 | * 1 6/02/97 4:04p John
28 | *
29 | * $NoKeywords: $
30 | */
31 |
32 | #ifndef _FONTTOOL_H
33 | #define _FONTTOOL_H
34 |
35 | #include "2d.h"
36 | #include "font.h"
37 |
38 | void fonttool_edit_kerning(char *fname1);
39 | void fonttool_kerning_copy( char *fname1, char *fname2 );
40 | void fonttool_create_font(char *pcx_filename, char *font_filename);
41 |
42 | void fonttool_read( char *fname2, font *fnt2 );
43 | void fonttool_copy_kern( font *fnt1, font *fnt2 );
44 | void fonttool_dump( char *fname1, font *fnt1 );
45 | void fonttool_remove_kerning( font *fnt );
46 | void fonttool_resync_kerning(font *fnt);
47 |
48 |
49 | #endif
50 |
--------------------------------------------------------------------------------
/code/Fonttool/FontTool.pcx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/Fonttool/FontTool.pcx
--------------------------------------------------------------------------------
/code/GameHelp/GameplayHelp.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/GameHelp/GameplayHelp.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:52a $
14 | * $Author: Dave $
15 | *
16 | * Header for displaying in-game help
17 | *
18 | * $Log: /Freespace2/code/GameHelp/GameplayHelp.h $
19 | *
20 | * 2 10/07/98 10:52a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:48a Dave
24 | *
25 | * 2 3/09/98 9:54p Lawrance
26 | * integrate new art for gameplay help
27 | *
28 | * 1 3/09/98 5:05p Lawrance
29 | *
30 | * $NoKeywords: $
31 | */
32 |
33 | #ifndef __GAMEPLAY_HELP_H__
34 | #define __GAMEPLAY_HELP_H__
35 |
36 | void gameplay_help_init();
37 | void gameplay_help_close();
38 | void gameplay_help_do_frame(float frametime);
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/code/Glide/FXGLOB.H:
--------------------------------------------------------------------------------
1 | /*
2 | ** Copyright (c) 1995, 3Dfx Interactive, Inc.
3 | ** All Rights Reserved.
4 | **
5 | **
6 | ** $ Revision: $
7 | ** $ Date: $
8 | **
9 | */
10 |
11 |
12 | #ifndef _FXGLOB_H_
13 | #define _FXGLOB_H_
14 |
15 |
16 | void fxGlobify( int *argc, char ***argv );
17 |
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/code/Glide/FXOS.H:
--------------------------------------------------------------------------------
1 | /*
2 | ** Copyright (c) 1995, 3Dfx Interactive, Inc.
3 | ** All Rights Reserved.
4 | **
5 | ** $ Revision: $
6 | ** $ Date: $
7 | **
8 | */
9 |
10 |
11 | #ifndef _FXOS_H_
12 | #define _FXOS_H_
13 |
14 | #include
15 |
16 | # ifdef __cplusplus
17 | extern "C" {
18 | # endif
19 |
20 | # ifdef WIN32
21 | void sleep(int secs);
22 | #define gethostname fxGethostname
23 |
24 | int gethostname(char *name, int namelen);
25 |
26 | # endif
27 |
28 | float fxTime(void);
29 | float timer(int flag);
30 |
31 | FILE *fxFopenPath(const char *filename, const char *mode,
32 | const char *path, const char **pprefix);
33 |
34 | # ifdef __cplusplus
35 | }
36 | # endif
37 |
38 | #endif
39 |
--------------------------------------------------------------------------------
/code/GlobalIncs/AlphaColors.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | #ifndef _GLOBAL_ALPHACOLORS_HEADER_FILE
11 | #define _GLOBAL_ALPHACOLORS_HEADER_FILE
12 |
13 | // -----------------------------------------------------------------------------------
14 | // ALPHA DEFINES/VARS
15 | //
16 |
17 | // Colors for UI
18 | // See Freespace.cpp for usage
19 |
20 | // The following colors are for text drawing:
21 | // normal text
22 | #define Color_text_normal Color_white
23 | // text highlighted while down still down on a line
24 | #define Color_text_subselected Color_blue
25 | // text highlighted as the selected line
26 | #define Color_text_selected Color_bright_blue
27 | // text that indicates an error
28 | #define Color_text_error Color_red
29 | // text that indicates an error, and line is selected or subselected
30 | #define Color_text_error_hi Color_bright_red
31 | // text that indicates line is active item
32 | #define Color_text_active Color_bright_white
33 | // text that indicates line is active item, and line is selected or subselected
34 | #define Color_text_active_hi Color_bright_white
35 | // text drawn as a heading for a section or title, etc
36 | #define Color_text_heading Color_violet_gray
37 |
38 | #define Color_bright Color_bright_blue
39 | #define Color_normal Color_white
40 | extern color Color_black, Color_grey, Color_blue, Color_bright_blue, Color_violet_gray;
41 | extern color Color_green, Color_bright_green, Color_bright_white, Color_white;
42 | extern color Color_red, Color_bright_red, Color_yellow, Color_bright_yellow, Color_dim_red;
43 |
44 | extern color Color_ui_light_green, Color_ui_green;
45 | extern color Color_ui_light_pink, Color_ui_pink;
46 |
47 | // netplayer colors
48 | extern color *Color_netplayer[12];
49 |
50 | // -----------------------------------------------------------------------------------
51 | // ALPHA FUNCTIONS
52 | //
53 |
54 | // initialize all alpha colors (call at startup)
55 | void alpha_colors_init();
56 |
57 |
58 | #endif
--------------------------------------------------------------------------------
/code/GlobalIncs/crypt.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/GlobalIncs/crypt.cpp $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:52a $
14 | * $Author: Dave $
15 | *
16 | * Files for cypting stuff
17 | *
18 | * $Log: /Freespace2/code/GlobalIncs/crypt.cpp $
19 | *
20 | * 2 10/07/98 10:52a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:48a Dave
24 | *
25 | * 2 3/30/98 9:33p Allender
26 | * string encryption stuff for cheat codes
27 | *
28 | * $NoKeywords: $
29 | */
30 |
31 | #include
32 | #include "crypt.h"
33 |
34 | char *jcrypt (char *plainstring)
35 | {
36 | int i,t,len;
37 | static char cryptstring[CRYPT_STRING_LENGTH + 1];
38 |
39 | len=strlen (plainstring);
40 | if (len > CRYPT_STRING_LENGTH)
41 | len = CRYPT_STRING_LENGTH;
42 |
43 | for (i = 0;i < len; i++) {
44 | cryptstring[i]=0;
45 |
46 | for (t = 0; t < len; t++) {
47 | cryptstring[i]^=(plainstring[t] ^ plainstring[i%(t+1)]);
48 | cryptstring[i]%=90;
49 | cryptstring[i]+=33;
50 | }
51 | }
52 |
53 | cryptstring[i]=0;
54 | return ((char *)cryptstring);
55 | }
56 |
--------------------------------------------------------------------------------
/code/GlobalIncs/crypt.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/GlobalIncs/crypt.h $
12 | * $Revision: 3 $
13 | * $Date: 8/05/99 2:05a $
14 | * $Author: Dave $
15 | *
16 | * Header for crypt stuff
17 | *
18 | * $Log: /Freespace2/code/GlobalIncs/crypt.h $
19 | *
20 | * 3 8/05/99 2:05a Dave
21 | * Fixes. Optimized detail level stuff.
22 | *
23 | * 2 10/07/98 10:52a Dave
24 | * Initial checkin.
25 | *
26 | * 1 10/07/98 10:48a Dave
27 | *
28 | * 3 5/19/98 12:19p Mike
29 | * Cheat codes!
30 | *
31 | * 2 3/30/98 9:33p Allender
32 | * string encryption stuff for cheat codes
33 | *
34 | * 1 3/30/98 3:20p Allender
35 | *
36 | * $NoKeywords: $
37 | */
38 |
39 | #ifndef _CRYPT_H
40 | #define _CRYPT_H
41 |
42 | // define for the length of a crypted string
43 | #define CRYPT_STRING_LENGTH 17
44 |
45 | char *jcrypt (char *plainstring);
46 |
47 | #endif
48 |
--------------------------------------------------------------------------------
/code/Graphics/Bitblt.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/Bitblt.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:52a $
14 | * $Author: Dave $
15 | *
16 | * Include file for software bitblt type stuff
17 | *
18 | * $Log: /Freespace2/code/Graphics/Bitblt.h $
19 | *
20 | * 2 10/07/98 10:52a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:48a Dave
24 | *
25 | * 2 4/14/98 12:15p John
26 | * Made 16-bpp movies work.
27 | *
28 | * 1 3/25/98 8:07p John
29 | * Split software renderer into Win32 and DirectX
30 | *
31 | * $NoKeywords: $
32 | */
33 |
34 | #ifndef _BITBLT_H
35 | #define _BITBLT_H
36 |
37 | void grx_bitmap(int x,int y);
38 | void grx_bitmap_ex(int x,int y,int w,int h,int sx,int sy);
39 | void grx_aabitmap(int x,int y);
40 | void grx_aabitmap_ex(int x,int y,int w,int h,int sx,int sy);
41 |
42 | #endif //_BITBLT_H
43 |
--------------------------------------------------------------------------------
/code/Graphics/Circle.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/Circle.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:52a $
14 | * $Author: Dave $
15 | *
16 | * Header file for circle.cpp
17 | *
18 | * $Log: /Freespace2/code/Graphics/Circle.h $
19 | *
20 | * 2 10/07/98 10:52a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:48a Dave
24 | *
25 | * 5 3/10/98 4:18p John
26 | * Cleaned up graphics lib. Took out most unused gr functions. Made D3D
27 | * & Glide have popups and print screen. Took out all >8bpp software
28 | * support. Made Fred zbuffer. Made zbuffer allocate dynamically to
29 | * support Fred. Made zbuffering key off of functions rather than one
30 | * global variable.
31 | *
32 | * 4 10/26/96 1:40p John
33 | * Added some now primitives to the 2d library and
34 | * cleaned up some old ones.
35 | *
36 | * $NoKeywords: $
37 | */
38 |
39 | #ifndef _CIRCLE_H
40 | #define _CIRCLE_H
41 |
42 | extern void gr8_circle( int xc, int yc, int d );
43 |
44 | #endif
45 |
--------------------------------------------------------------------------------
/code/Graphics/Colors.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/Colors.h $
12 | * $Revision: 5 $
13 | * $Date: 1/14/99 12:48a $
14 | * $Author: Dave $
15 | *
16 | * Functions to deal with colors & alphacolors
17 | *
18 | * $Log: /Freespace2/code/Graphics/Colors.h $
19 | *
20 | * 5 1/14/99 12:48a Dave
21 | * Todo list bug fixes. Made a pass at putting briefing icons back into
22 | * FRED. Sort of works :(
23 | *
24 | * 4 11/30/98 5:31p Dave
25 | * Fixed up Fred support for software mode.
26 | *
27 | * 3 11/30/98 1:07p Dave
28 | * 16 bit conversion, first run.
29 | *
30 | * 2 10/07/98 10:52a Dave
31 | * Initial checkin.
32 | *
33 | * 1 10/07/98 10:49a Dave
34 | *
35 | * 2 2/07/98 7:50p John
36 | * Added code so that we can use the old blending type of alphacolors if
37 | * we want to. Made the stars use them.
38 | *
39 | * 1 6/17/97 12:01p John
40 | *
41 | * $NoKeywords: $
42 | */
43 |
44 | #ifndef _COLORS_H
45 | #define _COLORS_H
46 |
47 | struct alphacolor_old;
48 |
49 | void grx_init_alphacolors();
50 | void grx_init_color( color *clr, int r, int g, int b );
51 | void grx_init_alphacolor( color *clr, int r, int g, int b, int alpha, int type );
52 | void grx_set_color( int r, int g, int b );
53 | void grx_set_color_fast( color *clr );
54 | void grx_get_color( int *r, int *g, int *b );
55 |
56 | void calc_alphacolor_old(alphacolor_old *ac);
57 |
58 | #endif
59 |
--------------------------------------------------------------------------------
/code/Graphics/GrD3D.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/GrD3D.h $
12 | * $Revision: 6 $
13 | * $Date: 9/13/99 11:25p $
14 | * $Author: Dave $
15 | *
16 | * Include file for our Direct3D renderer
17 | *
18 | * $Log: /Freespace2/code/Graphics/GrD3D.h $
19 | *
20 | * 6 9/13/99 11:25p Dave
21 | * Fixed problem with mode-switching and D3D movies.
22 | *
23 | * 5 9/04/99 8:00p Dave
24 | * Fixed up 1024 and 32 bit movie support.
25 | *
26 | * 4 6/29/99 10:35a Dave
27 | * Interface polygon bitmaps! Whee!
28 | *
29 | * 3 1/15/99 11:29a Neilk
30 | * Fixed D3D screen/texture pixel formatting problem.
31 | *
32 | * 2 10/07/98 10:52a Dave
33 | * Initial checkin.
34 | *
35 | * 1 10/07/98 10:49a Dave
36 | *
37 | * 2 5/12/97 12:27p John
38 | * Restructured Graphics Library to add support for multiple renderers.
39 | *
40 | * 1 5/01/97 2:17p John
41 | *
42 | * $NoKeywords: $
43 | */
44 |
45 | #ifndef _GRD3D_H
46 | #define _GRD3D_H
47 |
48 | void gr_d3d_init();
49 | void gr_d3d_cleanup();
50 |
51 | // call this to safely fill in the texture shift and scale values for the specified texture type (Gr_t_*)
52 | void gr_d3d_get_tex_format(int alpha);
53 |
54 | // bitmap functions
55 | void gr_d3d_bitmap(int x, int y);
56 | void gr_d3d_bitmap_ex(int x, int y, int w, int h, int sx, int sy);
57 |
58 | // create all rendering objects (surfaces, d3d device, viewport, etc)
59 | int gr_d3d_create_rendering_objects(int clear);
60 | void gr_d3d_release_rendering_objects();
61 |
62 |
63 | void gr_d3d_set_initial_render_state();
64 |
65 | #endif
66 |
--------------------------------------------------------------------------------
/code/Graphics/GrDirectDraw.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/GrDirectDraw.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:52a $
14 | * $Author: Dave $
15 | *
16 | * Include file for software 8-bpp rendering using DirectDraw
17 | *
18 | * $Log: /Freespace2/code/Graphics/GrDirectDraw.h $
19 | *
20 | * 2 10/07/98 10:52a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 1 3/25/98 8:07p John
26 | * Split software renderer into Win32 and DirectX
27 | *
28 | * $NoKeywords: $
29 | */
30 |
31 |
32 | #ifndef _GRDIRECTDRAW_H
33 | #define _GRDIRECTDRAW_H
34 |
35 | void gr_directdraw_init();
36 | void gr_directdraw_cleanup();
37 |
38 | #endif //_GRDIRECTDRAW_H
39 |
--------------------------------------------------------------------------------
/code/Graphics/GrGlide.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/GrGlide.h $
12 | * $Revision: 3 $
13 | * $Date: 6/29/99 10:35a $
14 | * $Author: Dave $
15 | *
16 | * Include file for a 3DFX's Glide graphics lib
17 | *
18 | * $Log: /Freespace2/code/Graphics/GrGlide.h $
19 | *
20 | * 3 6/29/99 10:35a Dave
21 | * Interface polygon bitmaps! Whee!
22 | *
23 | * 2 10/07/98 10:53a Dave
24 | * Initial checkin.
25 | *
26 | * 1 10/07/98 10:49a Dave
27 | *
28 | * 1 5/12/97 12:13p John
29 | *
30 | * $NoKeywords: $
31 | */
32 |
33 | #ifndef _GRGLIDE_H
34 | #define _GRGLIDE_H
35 |
36 | void gr_glide_init();
37 | void gr_glide_cleanup();
38 |
39 | void gr_glide_bitmap(int x, int y);
40 | void gr_glide_bitmap_ex(int x, int y, int w, int h, int sx, int sy);
41 |
42 | #endif
43 |
--------------------------------------------------------------------------------
/code/Graphics/GrGlideInternal.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/GrGlideInternal.h $
12 | * $Revision: 4 $
13 | * $Date: 7/09/99 9:51a $
14 | * $Author: Dave $
15 | *
16 | * Common include file for Glide modules
17 | *
18 | * $Log: /Freespace2/code/Graphics/GrGlideInternal.h $
19 | *
20 | * 4 7/09/99 9:51a Dave
21 | * Added thick polyline code.
22 | *
23 | * 3 6/29/99 10:35a Dave
24 | * Interface polygon bitmaps! Whee!
25 | *
26 | * 2 10/07/98 10:53a Dave
27 | * Initial checkin.
28 | *
29 | * 1 10/07/98 10:49a Dave
30 | *
31 | * 4 5/06/98 11:21p John
32 | * Fixed a bitmap bug with Direct3D. Started adding new caching code into
33 | * D3D.
34 | *
35 | * 3 4/09/98 4:38p John
36 | * Made non-darkening and transparent textures work under Glide. Fixed
37 | * bug with Jim's computer not drawing any bitmaps.
38 | *
39 | * 2 4/08/98 8:47a John
40 | * Moved all texture caching into a new module
41 | *
42 | * 1 3/03/98 4:42p John
43 | * Added in Leighton's code to do texture caching on Glide.
44 | *
45 | * $NoKeywords: $
46 | */
47 |
48 | #ifndef _GRGLIDEINTERNAL_H
49 | #define _GRGLIDEINTERNAL_H
50 |
51 | #include "GrInternal.h"
52 |
53 | void glide_tcache_init();
54 | void glide_tcache_cleanup();
55 | void glide_tcache_flush();
56 | void glide_tcache_frame();
57 |
58 | // Bitmap_type see TCACHE_ defines in GrInternal.h
59 | int glide_tcache_set(int bitmap_id, int bitmap_type, float *u_ratio, float *v_ratio, int fail_on_full = 0, int sx = -1, int sy = -1, int force = 0);
60 |
61 | extern int Glide_textures_in;
62 |
63 | #endif //_GRGLIDEINTERNAL_H
--------------------------------------------------------------------------------
/code/Graphics/GrOpenGL.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/GrOpenGL.h $
12 | * $Revision: 3 $
13 | * $Date: 6/29/99 10:35a $
14 | * $Author: Dave $
15 | *
16 | * Include file for OpenGL renderer
17 | *
18 | * $Log: /Freespace2/code/Graphics/GrOpenGL.h $
19 | *
20 | * 3 6/29/99 10:35a Dave
21 | * Interface polygon bitmaps! Whee!
22 | *
23 | * 2 10/07/98 10:53a Dave
24 | * Initial checkin.
25 | *
26 | * 1 10/07/98 10:49a Dave
27 | *
28 | * 1 5/12/97 12:14p John
29 | *
30 | * $NoKeywords: $
31 | */
32 |
33 | #ifndef _GROPENGL_H
34 | #define _GROPENGL_H
35 |
36 | void gr_opengl_init();
37 | void gr_opengl_cleanup();
38 |
39 | void gr_opengl_bitmap(int x, int y);
40 | void gr_opengl_bitmap_ex(int x, int y, int w, int h, int sx, int sy);
41 |
42 | #endif
43 |
--------------------------------------------------------------------------------
/code/Graphics/GrSoft.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/GrSoft.h $
12 | * $Revision: 3 $
13 | * $Date: 6/29/99 10:35a $
14 | * $Author: Dave $
15 | *
16 | * Include file for our software renderer
17 | *
18 | * $Log: /Freespace2/code/Graphics/GrSoft.h $
19 | *
20 | * 3 6/29/99 10:35a Dave
21 | * Interface polygon bitmaps! Whee!
22 | *
23 | * 2 10/07/98 10:53a Dave
24 | * Initial checkin.
25 | *
26 | * 1 10/07/98 10:49a Dave
27 | *
28 | * 2 3/25/98 8:07p John
29 | * Restructured software rendering into two modules; One for windowed
30 | * debug mode and one for DirectX fullscreen.
31 | *
32 | * 1 5/12/97 12:14p John
33 | *
34 | * $NoKeywords: $
35 | */
36 |
37 | #ifndef _GRSOFT_H
38 | #define _GRSOFT_H
39 |
40 | void gr_soft_init();
41 | void gr_soft_cleanup();
42 |
43 |
44 | // Functions/variables common between grsoft and grdirectdraw
45 | extern int Grx_mouse_saved;
46 | void grx_save_mouse_area(int x, int y, int w, int h );
47 | void grx_restore_mouse_area();
48 | void grx_print_screen(char * filename);
49 | int gr8_save_screen();
50 | void gr8_restore_screen(int id);
51 | void gr8_free_screen(int id);
52 | void gr8_dump_frame_start(int first_frame, int frames_between_dumps);
53 | void gr8_dump_frame();
54 | void gr8_dump_frame_stop();
55 | void gr8_set_gamma(float gamma);
56 |
57 | // bitmap functions
58 | void grx_bitmap(int x, int y);
59 | void grx_bitmap_ex(int x, int y, int w, int h, int sx, int sy);
60 |
61 | #endif
62 |
--------------------------------------------------------------------------------
/code/Graphics/GrZbuffer.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/GrZbuffer.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Include for software render zbuffering
17 | *
18 | * $Log: /Freespace2/code/Graphics/GrZbuffer.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 1 3/25/98 8:07p John
26 | * Split software renderer into Win32 and DirectX
27 | *
28 | * $NoKeywords: $
29 | */
30 |
31 | #ifndef _GRZBUFFER_H
32 | #define _GRZBUFFER_H
33 |
34 | // Z-buffer stuff
35 | extern uint *gr_zbuffer;
36 | extern uint gr_zbuffer_offset; // Add this to pixel location to get zbuffer location
37 | extern int gr_zoffset; // add this to w before interpolation
38 |
39 | extern int gr_zbuffering, gr_zbuffering_mode;
40 | extern int gr_global_zbuffering;
41 |
42 | #define GR_Z_RANGE 0x400000 //(2^31)/GR_Z_COUNT
43 | #define GR_Z_COUNT 500 // How many frames between zbuffer clear.
44 | // The bigger, the less precise.
45 |
46 | // If mode is FALSE, turn zbuffer off the entire frame,
47 | // no matter what people pass to gr_zbuffer_set.
48 | void gr8_zbuffer_clear(int mode);
49 | int gr8_zbuffer_get();
50 | int gr8_zbuffer_set(int mode);
51 |
52 |
53 | #endif //_GRZBUFFER_H
54 |
--------------------------------------------------------------------------------
/code/Graphics/Gradient.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/Gradient.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:52a $
14 | * $Author: Dave $
15 | *
16 | * Prototype for Gradient.cpp
17 | *
18 | * $Log: /Freespace2/code/Graphics/Gradient.h $
19 | *
20 | * 2 10/07/98 10:52a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 6 5/06/98 5:30p John
26 | * Removed unused cfilearchiver. Removed/replaced some unused/little used
27 | * graphics functions, namely gradient_h and _v and pixel_sp. Put in new
28 | * DirectX header files and libs that fixed the Direct3D alpha blending
29 | * problems.
30 | *
31 | * 5 3/10/98 4:18p John
32 | * Cleaned up graphics lib. Took out most unused gr functions. Made D3D
33 | * & Glide have popups and print screen. Took out all >8bpp software
34 | * support. Made Fred zbuffer. Made zbuffer allocate dynamically to
35 | * support Fred. Made zbuffering key off of functions rather than one
36 | * global variable.
37 | *
38 | * 4 11/30/97 12:18p John
39 | * added more 24 & 32-bpp primitives
40 | *
41 | * 3 6/11/97 1:12p John
42 | * Started fixing all the text colors in the game.
43 | *
44 | * 2 11/18/96 4:34p Allender
45 | * new 16 bit gradient functions
46 | *
47 | * 1 10/26/96 1:45p John
48 | * Initial skeletion code.
49 | *
50 | * $NoKeywords: $
51 | */
52 |
53 | #ifndef _GRADIENT_H
54 | #define _GRADIENT_H
55 |
56 | extern void gr8_gradient(int x1,int y1,int x2,int y2);
57 |
58 | #endif
59 |
--------------------------------------------------------------------------------
/code/Graphics/Pixel.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/Pixel.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Header file for pixel routines.
17 | *
18 | * $Log: /Freespace2/code/Graphics/Pixel.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 9 5/06/98 5:30p John
26 | * Removed unused cfilearchiver. Removed/replaced some unused/little used
27 | * graphics functions, namely gradient_h and _v and pixel_sp. Put in new
28 | * DirectX header files and libs that fixed the Direct3D alpha blending
29 | * problems.
30 | *
31 | * 8 3/10/98 4:18p John
32 | * Cleaned up graphics lib. Took out most unused gr functions. Made D3D
33 | * & Glide have popups and print screen. Took out all >8bpp software
34 | * support. Made Fred zbuffer. Made zbuffer allocate dynamically to
35 | * support Fred. Made zbuffering key off of functions rather than one
36 | * global variable.
37 | *
38 | * 7 5/29/97 3:10p John
39 | * Took out debug menu.
40 | * Made software scaler draw larger bitmaps.
41 | * Optimized Direct3D some.
42 | *
43 | * 6 5/12/97 12:27p John
44 | * Restructured Graphics Library to add support for multiple renderers.
45 | *
46 | * 5 1/09/97 11:35a John
47 | * Added some 2d functions to get/put screen images.
48 | *
49 | * 4 11/07/96 6:19p John
50 | * Added a bunch of 16bpp primitives so the game sort of runs in 16bpp
51 | * mode.
52 | *
53 | * 3 10/26/96 1:40p John
54 | * Added some now primitives to the 2d library and
55 | * cleaned up some old ones.
56 | *
57 | * $NoKeywords: $
58 | */
59 |
60 | #ifndef _PIXEL_H
61 | #define _PIXEL_H
62 |
63 | extern void gr8_pixel( int x, int y );
64 |
65 | #endif
66 |
--------------------------------------------------------------------------------
/code/Graphics/Rect.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/Rect.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Header file for Rect.h
17 | *
18 | * $Log: /Freespace2/code/Graphics/Rect.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 2 3/10/98 4:18p John
26 | * Cleaned up graphics lib. Took out most unused gr functions. Made D3D
27 | * & Glide have popups and print screen. Took out all >8bpp software
28 | * support. Made Fred zbuffer. Made zbuffer allocate dynamically to
29 | * support Fred. Made zbuffering key off of functions rather than one
30 | * global variable.
31 | *
32 | * 1 10/26/96 1:32p John
33 | * Initial rev
34 | *
35 | * $NoKeywords: $
36 | */
37 |
38 | #ifndef _RECT_H
39 | #define _RECT_H
40 |
41 | extern void grx_rect(int x,int y,int w,int h);
42 |
43 | #endif
44 |
45 |
--------------------------------------------------------------------------------
/code/Graphics/Scaler.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/Scaler.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Header file for bitmap scaler.
17 | *
18 | * $Log: /Freespace2/code/Graphics/Scaler.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 9 3/10/98 4:19p John
26 | * Cleaned up graphics lib. Took out most unused gr functions. Made D3D
27 | * & Glide have popups and print screen. Took out all >8bpp software
28 | * support. Made Fred zbuffer. Made zbuffer allocate dynamically to
29 | * support Fred. Made zbuffering key off of functions rather than one
30 | * global variable.
31 | *
32 | * 8 11/30/97 12:18p John
33 | * added more 24 & 32-bpp primitives
34 | *
35 | * 7 10/15/97 4:48p John
36 | * added 16-bpp aascaler
37 | *
38 | * 6 8/04/97 4:47p John
39 | * added gr_aascaler.
40 | *
41 | * 5 11/07/96 6:19p John
42 | * Added a bunch of 16bpp primitives so the game sort of runs in 16bpp
43 | * mode.
44 | *
45 | * 4 10/26/96 1:40p John
46 | * Added some now primitives to the 2d library and
47 | * cleaned up some old ones.
48 | *
49 | * $NoKeywords: $
50 | */
51 |
52 |
53 | #ifndef _SCALER_H
54 | #define _SCALER_H
55 |
56 | #include "pstypes.h"
57 |
58 |
59 | // Scales current bitmap between va and vb
60 | void gr8_scaler(vertex *va, vertex *vb );
61 | void gr8_aascaler(vertex *va, vertex *vb );
62 |
63 | #endif
64 |
65 |
--------------------------------------------------------------------------------
/code/Graphics/Shade.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Graphics/Shade.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Header file for Shade.cpp
17 | *
18 | * $Log: /Freespace2/code/Graphics/Shade.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 7 3/12/98 5:36p John
26 | * Took out any unused shaders. Made shader code take rgbc instead of
27 | * matrix and vector since noone used it like a matrix and it would have
28 | * been impossible to do in hardware. Made Glide implement a basic
29 | * shader for online help.
30 | *
31 | * 6 3/10/98 4:19p John
32 | * Cleaned up graphics lib. Took out most unused gr functions. Made D3D
33 | * & Glide have popups and print screen. Took out all >8bpp software
34 | * support. Made Fred zbuffer. Made zbuffer allocate dynamically to
35 | * support Fred. Made zbuffering key off of functions rather than one
36 | * global variable.
37 | *
38 | * 5 11/30/97 12:18p John
39 | * added more 24 & 32-bpp primitives
40 | *
41 | * 4 11/18/96 1:48p Allender
42 | * added 16 bit version of (very slow) shader
43 | *
44 | * 3 10/26/96 1:40p John
45 | * Added some now primitives to the 2d library and
46 | * cleaned up some old ones.
47 | *
48 | * $NoKeywords: $
49 | */
50 |
51 | #ifndef _SHADE_H
52 | #define _SHADE_H
53 |
54 | extern void grx_create_shader(shader * shade, float r, float g, float b, float c );
55 | extern void grx_set_shader( shader * shade );
56 | extern void gr8_shade(int x,int y,int w,int h);
57 |
58 | #endif
59 |
--------------------------------------------------------------------------------
/code/HelpEd/HelpEd.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // HelpEd.h : main header file for the HELPED application
11 | //
12 |
13 | #if !defined(AFX_HELPED_H__159085C4_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_)
14 | #define AFX_HELPED_H__159085C4_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_
15 |
16 | #if _MSC_VER > 1000
17 | #pragma once
18 | #endif // _MSC_VER > 1000
19 |
20 | #ifndef __AFXWIN_H__
21 | #error include 'stdafx.h' before including this file for PCH
22 | #endif
23 |
24 | #include "resource.h" // main symbols
25 |
26 | /////////////////////////////////////////////////////////////////////////////
27 | // CHelpEdApp:
28 | // See HelpEd.cpp for the implementation of this class
29 | //
30 |
31 | class CHelpEdApp : public CWinApp
32 | {
33 | public:
34 | CHelpEdApp();
35 |
36 | // Overrides
37 | // ClassWizard generated virtual function overrides
38 | //{{AFX_VIRTUAL(CHelpEdApp)
39 | public:
40 | virtual BOOL InitInstance();
41 | //}}AFX_VIRTUAL
42 |
43 | // Implementation
44 | //{{AFX_MSG(CHelpEdApp)
45 | afx_msg void OnAppAbout();
46 | // NOTE - the ClassWizard will add and remove member functions here.
47 | // DO NOT EDIT what you see in these blocks of generated code !
48 | //}}AFX_MSG
49 | DECLARE_MESSAGE_MAP()
50 | };
51 |
52 |
53 | /////////////////////////////////////////////////////////////////////////////
54 |
55 | //{{AFX_INSERT_LOCATION}}
56 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
57 |
58 | #endif // !defined(AFX_HELPED_H__159085C4_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_)
59 |
--------------------------------------------------------------------------------
/code/HelpEd/HelpEdDoc.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // HelpEdDoc.h : interface of the CHelpEdDoc class
11 | //
12 | /////////////////////////////////////////////////////////////////////////////
13 |
14 | #if !defined(AFX_HELPEDDOC_H__159085CA_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_)
15 | #define AFX_HELPEDDOC_H__159085CA_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_
16 |
17 | #if _MSC_VER > 1000
18 | #pragma once
19 | #endif // _MSC_VER > 1000
20 |
21 | #include "HelpEdLine.h"
22 |
23 | class CHelpEdDoc : public CDocument
24 | {
25 | protected: // create from serialization only
26 | CHelpEdDoc();
27 | DECLARE_DYNCREATE(CHelpEdDoc)
28 |
29 | // Attributes
30 | public:
31 |
32 | // Operations
33 | public:
34 |
35 | // Overrides
36 | // ClassWizard generated virtual function overrides
37 | //{{AFX_VIRTUAL(CHelpEdDoc)
38 | public:
39 | virtual BOOL OnNewDocument();
40 | virtual void Serialize(CArchive& ar);
41 | //}}AFX_VIRTUAL
42 |
43 | // Implementation
44 | public:
45 | int get_line_count();
46 | HelpEdLine * AddLine(CPoint pointFrom, CPoint pointTo);
47 | virtual ~CHelpEdDoc();
48 | #ifdef _DEBUG
49 | virtual void AssertValid() const;
50 | virtual void Dump(CDumpContext& dc) const;
51 | #endif
52 |
53 | protected:
54 |
55 | // Generated message map functions
56 | protected:
57 | //{{AFX_MSG(CHelpEdDoc)
58 | // NOTE - the ClassWizard will add and remove member functions here.
59 | // DO NOT EDIT what you see in these blocks of generated code !
60 | //}}AFX_MSG
61 | DECLARE_MESSAGE_MAP()
62 | private:
63 | CObArray line_array;
64 | };
65 |
66 | /////////////////////////////////////////////////////////////////////////////
67 |
68 | //{{AFX_INSERT_LOCATION}}
69 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
70 |
71 | #endif // !defined(AFX_HELPEDDOC_H__159085CA_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_)
72 |
--------------------------------------------------------------------------------
/code/HelpEd/HelpEdLine.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // HelpEdLine.cpp: implementation of the HelpEdLine class.
11 | //
12 | //////////////////////////////////////////////////////////////////////
13 |
14 | #include "stdafx.h"
15 | #include "HelpEd.h"
16 | #include "HelpEdLine.h"
17 |
18 | #ifdef _DEBUG
19 | #undef THIS_FILE
20 | static char THIS_FILE[]=__FILE__;
21 | #define new DEBUG_NEW
22 | #endif
23 |
24 | //////////////////////////////////////////////////////////////////////
25 | // Construction/Destruction
26 | //////////////////////////////////////////////////////////////////////
27 |
28 | HelpEdLine::HelpEdLine()
29 | {
30 |
31 | }
32 |
33 | HelpEdLine::~HelpEdLine()
34 | {
35 |
36 | }
37 |
38 | HelpEdLine::HelpEdLine(CPoint point_from, CPoint point_to)
39 | {
40 | // intiliaze start and ending of a line
41 | line_start = point_from;
42 | line_end = point_to;
43 | }
44 |
45 | void HelpEdLine::Draw(CDC *pDC)
46 | {
47 | // draw the line
48 | pDC->MoveTo(line_start);
49 | pDC->LineTo(line_end);
50 | }
51 |
--------------------------------------------------------------------------------
/code/HelpEd/HelpEdLine.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // HelpEdLine.h: interface for the HelpEdLine class.
11 | //
12 | //////////////////////////////////////////////////////////////////////
13 |
14 | #if !defined(AFX_HELPEDLINE_H__159085D7_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_)
15 | #define AFX_HELPEDLINE_H__159085D7_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_
16 |
17 | #if _MSC_VER > 1000
18 | #pragma once
19 | #endif // _MSC_VER > 1000
20 |
21 | class HelpEdLine : public CObject
22 | {
23 | public:
24 | void Draw(CDC *pDC);
25 | HelpEdLine(CPoint point_from, CPoint point_to);
26 | HelpEdLine();
27 | virtual ~HelpEdLine();
28 |
29 | private:
30 | CPoint line_end;
31 | CPoint line_start;
32 | };
33 |
34 | #endif // !defined(AFX_HELPEDLINE_H__159085D7_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_)
35 |
--------------------------------------------------------------------------------
/code/HelpEd/MainFrm.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // MainFrm.h : interface of the CMainFrame class
11 | //
12 | /////////////////////////////////////////////////////////////////////////////
13 |
14 | #if !defined(AFX_MAINFRM_H__159085C8_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_)
15 | #define AFX_MAINFRM_H__159085C8_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_
16 |
17 | #if _MSC_VER > 1000
18 | #pragma once
19 | #endif // _MSC_VER > 1000
20 |
21 | class CMainFrame : public CFrameWnd
22 | {
23 |
24 | protected: // create from serialization only
25 | CMainFrame();
26 | DECLARE_DYNCREATE(CMainFrame)
27 |
28 | // Attributes
29 | public:
30 |
31 | // Operations
32 | public:
33 |
34 | // Overrides
35 | // ClassWizard generated virtual function overrides
36 | //{{AFX_VIRTUAL(CMainFrame)
37 | public:
38 | virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
39 | //}}AFX_VIRTUAL
40 |
41 | // Implementation
42 | public:
43 | virtual ~CMainFrame();
44 | #ifdef _DEBUG
45 | virtual void AssertValid() const;
46 | virtual void Dump(CDumpContext& dc) const;
47 | #endif
48 |
49 | protected: // control bar embedded members
50 | CToolBar m_wndToolBar;
51 | CReBar m_wndReBar;
52 | CDialogBar m_wndDlgBar;
53 |
54 | // Generated message map functions
55 | protected:
56 | //{{AFX_MSG(CMainFrame)
57 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
58 | // NOTE - the ClassWizard will add and remove member functions here.
59 | // DO NOT EDIT what you see in these blocks of generated code!
60 | //}}AFX_MSG
61 | DECLARE_MESSAGE_MAP()
62 | };
63 |
64 | /////////////////////////////////////////////////////////////////////////////
65 |
66 | //{{AFX_INSERT_LOCATION}}
67 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
68 |
69 | #endif // !defined(AFX_MAINFRM_H__159085C8_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_)
70 |
--------------------------------------------------------------------------------
/code/HelpEd/Resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Visual C++ generated include file.
3 | // Used by HELPED.RC
4 | //
5 | #define IDD_ABOUTBOX 100
6 | #define IDR_MAINFRAME 128
7 | #define IDR_TABLETYPE 129
8 |
9 | // Next default values for new objects
10 | //
11 | #ifdef APSTUDIO_INVOKED
12 | #ifndef APSTUDIO_READONLY_SYMBOLS
13 | #define _APS_3D_CONTROLS 1
14 | #define _APS_NEXT_RESOURCE_VALUE 130
15 | #define _APS_NEXT_CONTROL_VALUE 1000
16 | #define _APS_NEXT_SYMED_VALUE 101
17 | #define _APS_NEXT_COMMAND_VALUE 32771
18 | #endif
19 | #endif
20 |
--------------------------------------------------------------------------------
/code/HelpEd/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // stdafx.cpp : source file that includes just the standard includes
11 | // HelpEd.pch will be the pre-compiled header
12 | // stdafx.obj will contain the pre-compiled type information
13 |
14 | #include "stdafx.h"
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/code/HelpEd/StdAfx.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // stdafx.h : include file for standard system include files,
11 | // or project specific include files that are used frequently, but
12 | // are changed infrequently
13 | //
14 |
15 | #if !defined(AFX_STDAFX_H__159085C6_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_)
16 | #define AFX_STDAFX_H__159085C6_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_
17 |
18 | #if _MSC_VER > 1000
19 | #pragma once
20 | #endif // _MSC_VER > 1000
21 |
22 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
23 |
24 | #include // MFC core and standard components
25 | #include // MFC extensions
26 | #include // MFC support for Internet Explorer 4 Common Controls
27 | #ifndef _AFX_NO_AFXCMN_SUPPORT
28 | #include // MFC support for Windows Common Controls
29 | #endif // _AFX_NO_AFXCMN_SUPPORT
30 |
31 |
32 | //{{AFX_INSERT_LOCATION}}
33 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
34 |
35 | #endif // !defined(AFX_STDAFX_H__159085C6_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_)
36 |
--------------------------------------------------------------------------------
/code/HelpEd/Tga.cpp:
--------------------------------------------------------------------------------
1 | // Tga.cpp: implementation of the CTga class.
2 | //
3 | //////////////////////////////////////////////////////////////////////
4 |
5 | #include "stdafx.h"
6 | #include "HelpEd.h"
7 | #include "Tga.h"
8 |
9 | #ifdef _DEBUG
10 | #undef THIS_FILE
11 | static char THIS_FILE[]=__FILE__;
12 | #define new DEBUG_NEW
13 | #endif
14 |
15 | //////////////////////////////////////////////////////////////////////
16 | // Construction/Destruction
17 | //////////////////////////////////////////////////////////////////////
18 |
19 | CTga::CTga()
20 | {
21 |
22 | }
23 |
24 | CTga::~CTga()
25 | {
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/code/HelpEd/Tga.h:
--------------------------------------------------------------------------------
1 | // Tga.h: interface for the CTga class.
2 | //
3 | //////////////////////////////////////////////////////////////////////
4 |
5 | #if !defined(AFX_TGA_H__7A2F74A2_D0C9_11D2_9904_00A0CC39C0BE__INCLUDED_)
6 | #define AFX_TGA_H__7A2F74A2_D0C9_11D2_9904_00A0CC39C0BE__INCLUDED_
7 |
8 | #if _MSC_VER > 1000
9 | #pragma once
10 | #endif // _MSC_VER > 1000
11 |
12 | class CTga : public CObject
13 | {
14 | public:
15 | CTga();
16 | virtual ~CTga();
17 |
18 | };
19 |
20 | #endif // !defined(AFX_TGA_H__7A2F74A2_D0C9_11D2_9904_00A0CC39C0BE__INCLUDED_)
21 |
--------------------------------------------------------------------------------
/code/HelpEd/res/HelpEd.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/HelpEd/res/HelpEd.ico
--------------------------------------------------------------------------------
/code/HelpEd/res/HelpEd.rc2:
--------------------------------------------------------------------------------
1 | //
2 | // HELPED.RC2 - resources Microsoft Visual C++ does not edit directly
3 | //
4 |
5 | #ifdef APSTUDIO_INVOKED
6 | #error this file is not editable by Microsoft Visual C++
7 | #endif //APSTUDIO_INVOKED
8 |
9 |
10 | /////////////////////////////////////////////////////////////////////////////
11 | // Add manually edited resources here...
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 |
--------------------------------------------------------------------------------
/code/HelpEd/res/HelpEdDoc.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/HelpEd/res/HelpEdDoc.ico
--------------------------------------------------------------------------------
/code/HelpEd/res/Toolbar.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/HelpEd/res/Toolbar.bmp
--------------------------------------------------------------------------------
/code/Hud/HUDObserver.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Hud/HUDObserver.cpp $
12 | * $Revision: 4 $
13 | * $Date: 12/21/98 5:02p $
14 | * $Author: Dave $
15 | *
16 | * $NoKeywords: $
17 | *
18 | */
19 |
20 | #include "HUD.h"
21 | #include "HUDObserver.h"
22 | #include "Freespace.h"
23 | #include "multi.h"
24 | #include "font.h"
25 | #include "MissionGoals.h"
26 | #include "3d.h"
27 | #include "linklist.h"
28 | #include "Debris.h"
29 | #include "Hudtargetbox.h"
30 | #include "Sound.h"
31 | #include "GameSnd.h"
32 | #include "Radar.h"
33 | #include "HUDconfig.h"
34 | #include "AlphaColors.h"
35 |
36 | // use these to redirect Player_ship and Player_ai when switching into ai mode
37 | ship Hud_obs_ship;
38 | ai_info Hud_obs_ai;
39 |
40 |
41 | // initialize observer hud stuff
42 | void hud_observer_init(ship *shipp,ai_info *aip)
43 | {
44 | // setup the pseduo ship and ai
45 | memcpy(&Hud_obs_ship,shipp,sizeof(ship));
46 | memcpy(&Hud_obs_ai,aip,sizeof(ai_info));
47 |
48 | HUD_config.is_observer = 1;
49 | HUD_config.show_flags = HUD_observer_default_flags;
50 | HUD_config.show_flags2 = HUD_observer_default_flags2;
51 |
52 | HUD_config.popup_flags = 0x0;
53 | HUD_config.popup_flags2 = 0x0;
54 |
55 | // shutdown any playing static animations
56 | hud_targetbox_static_init();
57 | }
58 |
59 | void hud_obs_render_player(int loc,net_player *pl)
60 | {
61 | }
62 |
63 | void hud_obs_render_players_all()
64 | {
65 | int idx,count;
66 |
67 | // render kills and stats information for all players
68 | count = 0;
69 | for(idx=0;idxflags & NETINFO_FLAG_OBSERVER));
79 |
80 | // render individual player text
81 | hud_obs_render_players_all();
82 | }
83 |
--------------------------------------------------------------------------------
/code/Hud/HUDObserver.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Hud/HUDObserver.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * $NoKeywords: $
17 | *
18 | */
19 |
20 | #ifndef _HUD_OBSERVER_FILE
21 | #define _HUD_OBSERVER_FILE
22 |
23 | #include "HUD.h"
24 |
25 | // prototypes
26 | struct ship;
27 | struct ai_info;
28 |
29 | // use these to redirect Player_ship and Player_ai when switching into ai mode
30 | extern ship Hud_obs_ship;
31 | extern ai_info Hud_obs_ai;
32 |
33 | // initialize observer hud stuff
34 | void hud_observer_init(ship *shipp,ai_info *aip);
35 |
36 | // render any specific observer stuff
37 | void hud_render_observer();
38 |
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/code/Hud/HUDWingmanStatus.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Hud/HUDWingmanStatus.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Header for the wingman status gauge
17 | *
18 | * $Log: /Freespace2/code/Hud/HUDWingmanStatus.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 4 3/31/98 11:46p Lawrance
26 | * Fix several bugs related to departing ships.
27 | *
28 | * 3 3/22/98 11:13p Allender
29 | * work with respawning -- save parse object so ship can be correctly
30 | * restored. Restore wingman status information so gauge updates
31 | * correctly
32 | *
33 | * 2 3/14/98 4:59p Lawrance
34 | * Totally rework HUD wingman status gauge to work with 5 arbitrary wings
35 | *
36 | * 1 3/14/98 8:23a Lawrance
37 | *
38 | * $NoKeywords: $
39 | */
40 |
41 | #ifndef __HUDWINGMAN_STATUS_H__
42 | #define __HUDWINGMAN_STATUS_H__
43 |
44 | void hud_init_wingman_status_gauge();
45 | void hud_wingman_status_update();
46 | void hud_wingman_status_render();
47 | void hud_wingman_status_init_flash();
48 | int hud_wingman_status_maybe_flash(int wing_index, int wing_pos);
49 | void hud_set_wingman_status_dead(int wing_index, int wing_pos);
50 | void hud_set_wingman_status_departed(int wing_index, int wing_pos);
51 | void hud_set_wingman_status_alive( int wing_index, int wing_pos);
52 | void hud_set_wingman_status_none( int wing_index, int wing_pos);
53 | void hud_wingman_status_start_flash(int wing_index, int wing_pos);
54 | void hud_wingman_status_set_index(int shipnum);
55 |
56 | #endif
--------------------------------------------------------------------------------
/code/Hud/HUDets.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Hud/HUDets.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Header file that supports code to manage and display the Energy Transfer System (ETS)
17 | *
18 | * $Log: /Freespace2/code/Hud/HUDets.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 7 8/11/97 10:51a Lawrance
26 | * fix problem that was not setting correct weapon energy when
27 | * change_ship_type() was called
28 | *
29 | * 6 4/03/97 5:29p Mike
30 | *
31 | * 5 2/25/97 4:12p Lawrance
32 | * using frametime to calculate energy recharge
33 | *
34 | * 4 1/01/97 7:34p Lawrance
35 | * added cheat (Del+W) which keeps weapon energy at max levels.
36 | *
37 | * 3 12/24/96 4:31p Lawrance
38 | * refining energy transfer system
39 | *
40 | * 2 12/22/96 3:41p Lawrance
41 | * ETS system working
42 | *
43 | * $NoKeywords: $
44 | */
45 |
46 |
47 | #ifndef _HUD_ETS_H
48 | #define _HUD_ETS_H
49 |
50 | #include "object.h"
51 |
52 | #define ETS_RECHARGE_RATE 4.0f // Recharge this percent of total shields/second
53 |
54 | extern float Energy_levels[];
55 | extern int Weapon_energy_cheat;
56 |
57 |
58 | enum SYSTEM_TYPE {WEAPONS, SHIELDS, ENGINES};
59 |
60 | void update_ets(object* obj, float fl_frametime);
61 | void ets_init_ship(object* obj);
62 | void ai_manage_ets(object* obj);
63 |
64 | void hud_init_ets();
65 | void hud_show_ets();
66 |
67 | void increase_recharge_rate(object* obj, SYSTEM_TYPE enum_value);
68 | void decrease_recharge_rate(object* obj, SYSTEM_TYPE enum_value);
69 | void set_default_recharge_rates(object* obj);
70 |
71 | void transfer_energy_to_shields(object* obj);
72 | void transfer_energy_to_weapons(object* obj);
73 |
74 |
75 | #endif
76 |
--------------------------------------------------------------------------------
/code/Hud/HUDresource.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/Hud/HUDresource.cpp
--------------------------------------------------------------------------------
/code/Hud/HUDresource.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/Hud/HUDresource.h
--------------------------------------------------------------------------------
/code/Hud/HUDreticle.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Hud/HUDreticle.h $
12 | * $Revision: 3 $
13 | * $Date: 12/21/98 5:02p $
14 | * $Author: Dave $
15 | *
16 | * Header file for functions to draw and manage the reticle
17 | *
18 | * $Log: /Freespace2/code/Hud/HUDreticle.h $
19 | *
20 | * 3 12/21/98 5:02p Dave
21 | * Modified all hud elements to be multi-resolution friendly.
22 | *
23 | * 2 10/07/98 10:53a Dave
24 | * Initial checkin.
25 | *
26 | * 1 10/07/98 10:49a Dave
27 | *
28 | * 5 4/08/98 10:34p Allender
29 | * make threat indicators work in multiplayer. Fix socket problem (once
30 | * and for all???)
31 | *
32 | * 4 11/04/97 7:49p Lawrance
33 | * integrating new HUD reticle and shield icons
34 | *
35 | * 3 12/08/96 1:54a Lawrance
36 | * integrating hud configuration
37 | *
38 | * 2 10/28/96 4:54p Lawrance
39 | * moving #defines to header file since other files need to reference them
40 | *
41 | * 1 10/24/96 11:50a Lawrance
42 | *
43 | * $NoKeywords: $
44 | *
45 | */
46 |
47 | #ifndef _HUDRETICLE_H
48 | #define _HUDRETICLE_H
49 |
50 | #include "Player.h"
51 |
52 | extern int Outer_circle_radius[GR_NUM_RESOLUTIONS];
53 | extern int Hud_reticle_center[GR_NUM_RESOLUTIONS][2];
54 |
55 | void hud_init_reticle();
56 | void hud_update_reticle( player *pp );
57 | void hud_show_reticle();
58 |
59 | void hud_draw_outer_reticle();
60 | void hud_draw_center_reticle();
61 | void hud_draw_throttle_gauge();
62 | void hud_draw_target_throttle_gauge();
63 |
64 |
65 |
66 | #endif
67 |
--------------------------------------------------------------------------------
/code/Hud/HudArtillery.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Hud/HudArtillery.h $
12 | * $Revision: 2 $
13 | * $Date: 4/20/99 6:39p $
14 | * $Author: Dave $
15 | *
16 | *
17 | * $Log: /Freespace2/code/Hud/HudArtillery.h $
18 | *
19 | * 2 4/20/99 6:39p Dave
20 | * Almost done with artillery targeting. Added support for downloading
21 | * images on the PXO screen.
22 | *
23 | * 1 4/20/99 12:00a Dave
24 | *
25 | *
26 | * $NoKeywords: $
27 | */
28 |
29 | #ifndef _FS2_HUD_ARTILLERY_HEADER_FILE
30 | #define _FS2_HUD_ARTILLERY_HEADER_FILE
31 |
32 | // -----------------------------------------------------------------------------------------------------------------------
33 | // ARTILLERY DEFINES/VARS
34 | //
35 |
36 |
37 | // -----------------------------------------------------------------------------------------------------------------------
38 | // ARTILLERY FUNCTIONS
39 | //
40 |
41 | // level init
42 | void hud_init_artillery();
43 |
44 | // update all hud artillery related stuff
45 | void hud_artillery_update();
46 |
47 | // render all hud artillery related stuff
48 | void hud_artillery_render();
49 |
50 | #endif
--------------------------------------------------------------------------------
/code/Io/Joy_ff.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Io/Joy_ff.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Code for joystick Force Feedback.
17 | *
18 | * $Log: /Freespace2/code/Io/Joy_ff.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 4 5/08/98 5:31p Hoffoss
26 | * Isolated the joystick force feedback code more from dependence on other
27 | * libraries.
28 | *
29 | * 3 5/07/98 12:24a Hoffoss
30 | * Finished up sidewinder force feedback support.
31 | *
32 | * 2 5/04/98 11:08p Hoffoss
33 | * Expanded on Force Feedback code, and moved it all into Joy_ff.cpp.
34 | * Updated references everywhere to it.
35 | *
36 | * $NoKeywords: $
37 | */
38 |
39 | #ifndef __JOY_FF_H__
40 | #define __JOY_FF_H__
41 |
42 | int joy_ff_init();
43 | void joy_ff_shutdown();
44 | void joy_ff_stop_effects();
45 | void joy_ff_mission_init(vector v);
46 | void joy_reacquire_ff();
47 | void joy_unacquire_ff();
48 | void joy_ff_play_vector_effect(vector *v, float scaler);
49 | void joy_ff_play_dir_effect(float x, float y);
50 | void joy_ff_play_primary_shoot(int gain);
51 | void joy_ff_play_secondary_shoot(int gain);
52 | void joy_ff_adjust_handling(int speed);
53 | void joy_ff_docked();
54 | void joy_ff_play_reload_effect();
55 | void joy_ff_afterburn_on();
56 | void joy_ff_afterburn_off();
57 | void joy_ff_explode();
58 | void joy_ff_fly_by(int mag);
59 | void joy_ff_deathroll();
60 |
61 | #endif
62 |
--------------------------------------------------------------------------------
/code/Io/swff_lib.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/Io/swff_lib.cpp
--------------------------------------------------------------------------------
/code/JumpNode/JumpNode.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/JumpNode/JumpNode.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Header for everything to do with jump nodes
17 | *
18 | * $Log: /Freespace2/code/JumpNode/JumpNode.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 2 3/21/98 7:36p Lawrance
26 | * Move jump nodes to own lib.
27 | *
28 | * 1 3/21/98 3:53p Lawrance
29 | *
30 | * $NoKeywords: $
31 | */
32 |
33 | #ifndef __JUMPNODE_H__
34 | #define __JUMPNODE_H__
35 |
36 | #include "ParseLo.h"
37 |
38 | #define MAX_JUMP_NODES 3
39 |
40 | typedef struct {
41 | int modelnum;
42 | int objnum; // objnum of this jump node
43 | char name[NAME_LENGTH];
44 | } jump_node_struct;
45 |
46 | extern int Num_jump_nodes;
47 | extern jump_node_struct Jump_nodes[MAX_JUMP_NODES];
48 |
49 | int jumpnode_create(vector *pos);
50 | void jumpnode_render(object *jumpnode_objp, vector *pos, vector *view_pos = NULL);
51 | void jumpnode_render_all(); // called by FRED
52 |
53 | #endif
54 |
--------------------------------------------------------------------------------
/code/Localization/fhash.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Localization/fhash.h $
12 | * $Revision: 4 $
13 | * $Date: 12/01/98 4:46p $
14 | * $Author: Dave $
15 | *
16 | *
17 | * $Log: /Freespace2/code/Localization/fhash.h $
18 | *
19 | * 4 12/01/98 4:46p Dave
20 | * Put in targa bitmap support (16 bit).
21 | *
22 | * $NoKeywords: $
23 | */
24 |
25 | #ifndef _FRED_XSTR_HASH_TABLE_HEADER_FILE
26 | #define _FRED_XSTR_HASH_TABLE_HEADER_FILE
27 |
28 | // -----------------------------------------------------------------------------------------------
29 | // HASH DEFINES/VARS
30 | //
31 |
32 |
33 | // -----------------------------------------------------------------------------------------------
34 | // HASH FUNCTIONS
35 | //
36 |
37 | // initialize the hash table
38 | void fhash_init();
39 |
40 | // set the hash table to be active for parsing
41 | void fhash_activate();
42 |
43 | // set the hash table to be inactive for parsing
44 | void fhash_deactivate();
45 |
46 | // if the hash table is active
47 | int fhash_active();
48 |
49 | // flush out the hash table, freeing up everything
50 | void fhash_flush();
51 |
52 | // add a string with the given id# to the has table
53 | void fhash_add_str(char *str, int id);
54 |
55 | // determine if the passed string exists in the table
56 | // returns : -2 if the string doesn't exit, or >= -1 as the string id # otherwise
57 | int fhash_string_exists(char *str);
58 |
59 | #endif
--------------------------------------------------------------------------------
/code/Math/Fix.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Math/Fix.cpp $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Code to deal with 16.16 fixed point numbers.
17 | *
18 | * $Log: /Freespace2/code/Math/Fix.cpp $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 2 2/17/97 5:18p John
26 | * Added a bunch of RCS headers to a bunch of old files that don't have
27 | * them.
28 | *
29 | * $NoKeywords: $
30 | */
31 |
32 |
33 | #include
34 |
35 | #include "PsTypes.h"
36 | #include "fix.h"
37 |
38 | fix fixmul(fix a, fix b)
39 | {
40 | longlong tmp;
41 | tmp = (longlong)a * (longlong)b;
42 | return (fix)(tmp>>16);
43 | }
44 |
45 | fix fixdiv(fix a, fix b)
46 | {
47 | return MulDiv(a,65536,b);
48 | }
49 |
50 | fix fixmuldiv(fix a, fix b,fix c)
51 | {
52 | return MulDiv(a,b,c);
53 | }
54 |
--------------------------------------------------------------------------------
/code/Math/StaticRand.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Math/StaticRand.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * header for Static Random functions
17 | *
18 | * $Log: /Freespace2/code/Math/StaticRand.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 4 3/17/98 12:16a Allender
26 | * asteroids in multiplayer -- minor problems with position being correct
27 | *
28 | * 3 12/30/97 5:46p Lawrance
29 | * Rename rnd() to rand_alt().
30 | *
31 | * 2 12/30/97 4:27p Lawrance
32 | * Add new rnd() function that doesn't affect rand() sequence.
33 | *
34 | * 1 8/08/97 3:38p Allender
35 | *
36 | */
37 |
38 | #ifndef _STATIC_RAND_H
39 |
40 | #define SEMIRAND_MAX_LOG 4
41 | #define SEMIRAND_MAX (2 << SEMIRAND_MAX_LOG) // Do not change this! Change SEMIRAND_MAX_LOG!
42 |
43 | extern int Semirand[SEMIRAND_MAX]; // this array is saved by the ai code on save/restore
44 |
45 | extern void init_semirand();
46 | extern int static_rand(int num);
47 | extern float static_randf(int num);
48 | extern void static_randvec(int num, vector *vp);
49 | extern float static_randf_range(int num, float min, float max);
50 |
51 | // Alternate random number generator that doesn't affect rand() sequence
52 |
53 | void srand_alt(int seed); // Seed the random number generator
54 | int rand_alt(); // Get a random integer between 1 and RND_MAX
55 | float frand_alt(); // Get a random float between 0 and 1.0
56 |
57 | #endif
58 |
--------------------------------------------------------------------------------
/code/Math/fix.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Math/fix.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Routines for fixed point math
17 | *
18 | * $Log: /Freespace2/code/Math/fix.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 4 2/17/97 5:18p John
26 | * Added a bunch of RCS headers to a bunch of old files that don't have
27 | * them.
28 | *
29 | * $NoKeywords: $
30 | */
31 |
32 | #ifndef _FIX_H
33 | #define _FIX_H
34 |
35 | //#include "PsTypes.h"
36 |
37 | #define F1_0 65536
38 | #define f1_0 65536
39 |
40 | fix fixmul(fix a, fix b);
41 | fix fixdiv(fix a, fix b);
42 | fix fixmuldiv(fix a, fix b, fix c);
43 |
44 | #define f2i(a) ((int)((a)>>16))
45 | #define i2f(a) ((fix)((a)<<16))
46 |
47 | #endif
48 |
--------------------------------------------------------------------------------
/code/MenuUI/Barracks.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/MenuUI/Barracks.h $
12 | * $Revision: 3 $
13 | * $Date: 2/02/99 11:58a $
14 | * $Author: Neilk $
15 | *
16 | * C source file for implementing barracks
17 | *
18 | * $Log: /Freespace2/code/MenuUI/Barracks.h $
19 | *
20 | * 3 2/02/99 11:58a Neilk
21 | * added vss revision/log comments
22 | *
23 | * $NoKeywords: $
24 | */
25 |
26 | #ifndef _BARRACKS_H
27 | #define _BARRACKS_H
28 |
29 | // initialize the barracks
30 | void barracks_init();
31 |
32 | // do a frame for the barrracks
33 | void barracks_do_frame(float frametime);
34 |
35 | // close the barracks
36 | void barracks_close();
37 |
38 | #endif // _BARRACKS_H
--------------------------------------------------------------------------------
/code/MenuUI/Credits.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/MenuUI/Credits.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * C header file for displaying game credits
17 | *
18 | * $Log: /Freespace2/code/MenuUI/Credits.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 3 8/31/97 6:38p Lawrance
26 | * pass in frametime to do_frame loop
27 | *
28 | * 2 4/22/97 11:06a Lawrance
29 | * credits music playing, credits screen is a separate state
30 | *
31 | * $NoKeywords: $
32 | */
33 |
34 | #ifndef __CREDITS_H__
35 | #define __CREDITS_H__
36 |
37 | void credits_init();
38 | void credits_do_frame(float frametime);
39 | void credits_close();
40 |
41 | #endif /* __CREDITS_H__ */
42 |
--------------------------------------------------------------------------------
/code/MenuUI/MainHallTemp.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/MenuUI/MainHallTemp.h $
12 | * $Revision: 2 $
13 | * $Date: 6/03/99 10:15p $
14 | * $Author: Dave $
15 | *
16 | * Header file for main-hall menu code
17 | *
18 | * $Log: /Freespace2/code/MenuUI/MainHallTemp.h $
19 | *
20 | * 2 6/03/99 10:15p Dave
21 | * Put in temporary main hall screen.
22 | *
23 | * $NoKeywords: $
24 | *
25 | */
26 |
27 | #ifndef __TEMP_MAIN_HALL_MENU_HEADER_FILE
28 | #define __TEMP_MAIN_HALL_MENU_HEADER_FILE
29 |
30 | // ------------------------------------------------------------------------------------------------------------------------
31 | // TEMP MAIN HALL DEFINES/VARS
32 | //
33 |
34 |
35 | // ------------------------------------------------------------------------------------------------------------------------
36 | // TEMP MAIN HALL FUNCTIONS
37 | //
38 |
39 | // initialize the temporary main hall
40 | void mht_init();
41 |
42 | // do a frame for the main hall
43 | void mht_do();
44 |
45 | // close the temporary main hall
46 | void mht_close();
47 |
48 | #endif
--------------------------------------------------------------------------------
/code/MenuUI/ReadyRoom.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/MenuUI/ReadyRoom.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Ready Room code, which is the UI screen for selecting Campaign/mission to play next mainly.
17 | *
18 | * $Log: /Freespace2/code/MenuUI/ReadyRoom.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 5 4/02/98 5:40p Hoffoss
26 | * Added the Load Mission screen to FreeSpace.
27 | *
28 | * 4 3/02/98 5:22p Hoffoss
29 | * Removed ready room and added campaign room.
30 | *
31 | * 3 3/02/98 3:39p Hoffoss
32 | * Added new Campaign Room screen.
33 | *
34 | * 2 11/16/97 1:11p Hoffoss
35 | * Coded up readyroom screen, first pass.
36 | *
37 | * 1 11/15/97 7:30p Hoffoss
38 | *
39 | * $NoKeywords: $
40 | */
41 |
42 | void sim_room_init();
43 | void sim_room_close();
44 | void sim_room_do_frame(float frametime);
45 |
46 | // called by main menu to continue on with current campaign (if there is one).
47 | int readyroom_continue_campaign();
48 |
49 | void campaign_room_init();
50 | void campaign_room_close();
51 | void campaign_room_do_frame(float frametime);
52 |
--------------------------------------------------------------------------------
/code/MenuUI/TrainingMenu.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/MenuUI/TrainingMenu.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Header file for code that controls the Training menu
17 | *
18 | * $Log: /Freespace2/code/MenuUI/TrainingMenu.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 7 8/31/97 6:38p Lawrance
26 | * pass in frametime to do_frame loop
27 | *
28 | * 6 11/21/96 7:14p Lawrance
29 | * converted menu code to use a file (menu.tbl) to get the data for the
30 | * menu
31 | *
32 | * 5 11/13/96 4:02p Lawrance
33 | * complete over-haul of the menu system and the states associated with
34 | * them
35 | *
36 | * 4 11/13/96 8:32a Lawrance
37 | * streamlined menu code
38 | *
39 | * 3 11/06/96 8:54a Lawrance
40 | * added revision templates, made more efficient
41 | *
42 | * $NoKeywords: $
43 | *
44 | */
45 |
46 | #ifndef _TRAININGMENU_H
47 | #define _TRAININGMENU_H
48 |
49 | #define TRAINING_MENU_MAX_CHOICES 3 // keep up to date if any more choices added!
50 |
51 | // these are the colour values of the pixels that form the different training menu regions
52 | #define TRAINING_MENU_TRAINING_MISSIONS_MASK 1
53 | #define TRAINING_MENU_REPLAY_MISSIONS_MASK 2
54 | #define TRAINING_MENU_RETURN_MASK 3
55 |
56 | // function prototypes
57 | //
58 | void training_menu_init();
59 | void training_menu_close();
60 | void training_menu_do_frame(float frametime);
61 |
62 | #endif
--------------------------------------------------------------------------------
/code/MenuUI/fishtank.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/MenuUI/fishtank.h $
12 | * $Revision: 2 $
13 | * $Date: 8/26/99 9:45a $
14 | * $Author: Dave $
15 | *
16 | * bloop
17 | *
18 | * $Log: /Freespace2/code/MenuUI/fishtank.h $
19 | *
20 | * 2 8/26/99 9:45a Dave
21 | * First pass at easter eggs and cheats.
22 | *
23 | *
24 | * $NoKeywords: $
25 | */
26 |
27 | #ifndef __FISHTANK_H__
28 | #define __FISHTANK_H__
29 |
30 | void fishtank_start();
31 | void fishtank_stop();
32 | void fishtank_process();
33 |
34 | #endif /* __CREDITS_H__ */
35 |
--------------------------------------------------------------------------------
/code/Mission/MissionLoad.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Mission/MissionLoad.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Mission load header file
17 | *
18 | * $Log: /Freespace2/code/Mission/MissionLoad.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 20 2/23/98 6:55p Lawrance
26 | * Rip out obsolete code.
27 | *
28 | * 19 6/26/97 5:53p Lawrance
29 | * save recently played missions, allow player to choose from list
30 | *
31 | * 18 4/25/97 11:31a Allender
32 | * Campaign state now saved in campaign save file in player directory.
33 | * Made some global variables follow naming convention. Solidified
34 | * continuing campaigns based on new structure
35 | *
36 | * $NoKeywords: $
37 | */
38 |
39 | #ifndef _MISSIONLOAD_H
40 | #define _MISSIONLOAD_H
41 |
42 | // -----------------------------------------------
43 | // For recording most recent missions played
44 | // -----------------------------------------------
45 | #define MAX_RECENT_MISSIONS 10
46 | extern char Recent_missions[MAX_RECENT_MISSIONS][MAX_FILENAME_LEN];
47 | extern int Num_recent_missions;
48 |
49 | // Mission_load takes no parameters.
50 | // It expects the following variables to be set correctly:
51 | // Game_current_mission_filename
52 |
53 | int mission_load();
54 | void mission_init();
55 |
56 | // Functions for mission load menu
57 | void mission_load_menu_init();
58 | void mission_load_menu_close();
59 | void mission_load_menu_do();
60 |
61 | #endif
62 |
--------------------------------------------------------------------------------
/code/Mission/MissionTraining.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Mission/MissionTraining.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Special code for training missions. Stuff like displaying training messages in
17 | * the special training window, listing the training objectives, etc.
18 | *
19 | * $Log: /Freespace2/code/Mission/MissionTraining.h $
20 | *
21 | * 2 10/07/98 10:53a Dave
22 | * Initial checkin.
23 | *
24 | * 1 10/07/98 10:49a Dave
25 | *
26 | * 7 4/16/98 4:33p Hoffoss
27 | * Added support for detecting instructor terminating training due to
28 | * player shooting at him.
29 | *
30 | * 6 4/15/98 5:25p Lawrance
31 | * extern Training_msg_visible
32 | *
33 | * 5 1/05/98 4:04p Hoffoss
34 | * Changed training-msg sexp operator to allow it to control the length of
35 | * time a message is displayed for.
36 | *
37 | * 4 10/17/97 6:39p Hoffoss
38 | * Added delayability to key-pressed operator and training-msg operator.
39 | *
40 | * 3 10/10/97 6:15p Hoffoss
41 | * Implemented a training objective list display.
42 | *
43 | * 2 10/09/97 4:44p Hoffoss
44 | * Dimmed training window glass and made it less transparent, added flags
45 | * to events, set he stage for detecting current events.
46 | *
47 | * 1 10/09/97 2:41p Hoffoss
48 | *
49 | * $NoKeywords: $
50 | */
51 |
52 | extern int Training_msg_method;
53 | extern int Training_num_lines;
54 | extern int Training_msg_visible;
55 | extern int Training_failure;
56 |
57 | void training_mission_init();
58 | void training_mission_shutdown();
59 | void training_check_objectives();
60 | void message_training_que(char *text, int timestamp, int length = -1);
61 | void message_training_setup(int num, int length = -1);
62 | void message_training_display();
63 | void message_translate_tokens(char *buf, char *text);
64 | void training_fail();
65 |
--------------------------------------------------------------------------------
/code/MissionUI/MissionLoopBrief.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/MissionUI/MissionLoopBrief.h $
12 | * $Revision: 2 $
13 | * $Date: 8/27/99 12:04a $
14 | * $Author: Dave $
15 | *
16 | * Campaign Loop briefing screen
17 | *
18 | * $Log: /Freespace2/code/MissionUI/MissionLoopBrief.h $
19 | *
20 | * 2 8/27/99 12:04a Dave
21 | * Campaign loop screen.
22 | *
23 | *
24 | * $NoKeywords: $
25 | */
26 |
27 | #ifndef __FS2_CAMPAIGN_LOOP_BRIEF_HEADER_FILE
28 | #define __FS2_CAMPAIGN_LOOP_BRIEF_HEADER_FILE
29 |
30 | // ---------------------------------------------------------------------------------------------------------------------------------------
31 | // MISSION LOOP BRIEF DEFINES/VARS
32 | //
33 |
34 |
35 | // ---------------------------------------------------------------------------------------------------------------------------------------
36 | // MISSION LOOP BRIEF FUNCTIONS
37 | //
38 |
39 | // init
40 | void loop_brief_init();
41 |
42 | // do
43 | void loop_brief_do();
44 |
45 | // close
46 | void loop_brief_close();
47 |
48 | #endif
--------------------------------------------------------------------------------
/code/MissionUI/MissionPause.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/MissionUI/MissionPause.h $
12 | * $Revision: 3 $
13 | * $Date: 6/09/99 2:17p $
14 | * $Author: Dave $
15 | *
16 | *
17 | * $Log: /Freespace2/code/MissionUI/MissionPause.h $
18 | *
19 | * 3 6/09/99 2:17p Dave
20 | * Fixed up pleasewait bitmap rendering.
21 | *
22 | *
23 | * $NoKeywords: $
24 | */
25 |
26 | #ifndef _MISSION_PAUSE_HEADER_FILE
27 | #define _MISSION_PAUSE_HEADER_FILE
28 |
29 | #include "2d.h"
30 |
31 | // ----------------------------------------------------------------------------------------------------------------
32 | // PAUSE DEFINES/VARS
33 | //
34 |
35 | // pause bitmap display stuff
36 | extern int Please_wait_coords[GR_NUM_RESOLUTIONS][4];
37 |
38 |
39 | // ----------------------------------------------------------------------------------------------------------------
40 | // PAUSE FUNCTIONS
41 | //
42 |
43 | // initialize the pause screen
44 | void pause_init(int multi);
45 |
46 | // pause do frame - will handle running multiplayer operations if necessary
47 | void pause_do(int multi);
48 |
49 | // close the pause screen
50 | void pause_close(int multi);
51 |
52 | // debug pause init
53 | void pause_debug_init();
54 |
55 | // debug pause do frame
56 | void pause_debug_do();
57 |
58 | // debug pause close
59 | void pause_debug_close();
60 |
61 | #endif
--------------------------------------------------------------------------------
/code/MissionUI/MissionRecommend.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/MissionUI/MissionRecommend.cpp $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * C module for the post-mission recommendation interface
17 | *
18 | * $Log: /Freespace2/code/MissionUI/MissionRecommend.cpp $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:49a Dave
24 | *
25 | * 1 9/30/97 9:26a Lawrance
26 | *
27 | * $NoKeywords: $
28 | */
--------------------------------------------------------------------------------
/code/MissionUI/MissionRecommend.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/MissionUI/MissionRecommend.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Header file for the post-mission recommendation interface
17 | *
18 | * $Log: /Freespace2/code/MissionUI/MissionRecommend.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:50a Dave
24 | *
25 | * 2 9/30/97 8:49p Lawrance
26 | * implementing an integrated debriefing screen
27 | *
28 | * 1 9/30/97 9:26a Lawrance
29 | *
30 | * $NoKeywords: $
31 | */
32 |
33 | #ifndef __FREESPACE_MISSIONRECOMMEND_H__
34 | #define __FREESPACE_MISSIONRECOMMEND_H__
35 |
36 | #endif
37 |
--------------------------------------------------------------------------------
/code/MissionUI/MissionStats.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/MissionUI/MissionStats.cpp $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * C module for the post-mission stats interface
17 | *
18 | * $Log: /Freespace2/code/MissionUI/MissionStats.cpp $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:50a Dave
24 | *
25 | * 1 9/30/97 9:25a Lawrance
26 | *
27 | * $NoKeywords: $
28 | */
--------------------------------------------------------------------------------
/code/MissionUI/MissionStats.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/MissionUI/MissionStats.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Header file for the post-mission stats interface
17 | *
18 | * $Log: /Freespace2/code/MissionUI/MissionStats.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:50a Dave
24 | *
25 | * 1 9/30/97 9:25a Lawrance
26 | *
27 | * $NoKeywords: $
28 | */
29 |
30 | #ifndef __FREESPACE_MISSIONSTATS_H__
31 | #define __FREESPACE_MISSIONSTATS_H__
32 |
33 | #endif
34 |
--------------------------------------------------------------------------------
/code/MissionUI/RedAlert.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/MissionUI/RedAlert.h $
12 | * $Revision: 3 $
13 | * $Date: 9/06/99 6:38p $
14 | * $Author: Dave $
15 | *
16 | * Header file for Red Alert mission interface and code
17 | *
18 | * $Log: /Freespace2/code/MissionUI/RedAlert.h $
19 | *
20 | * 3 9/06/99 6:38p Dave
21 | * Improved CD detection code.
22 | *
23 | * 2 10/07/98 10:53a Dave
24 | * Initial checkin.
25 | *
26 | * 1 10/07/98 10:50a Dave
27 | *
28 | * 7 5/05/98 6:19p Lawrance
29 | * Fix problems with "retry mission" for red alerts
30 | *
31 | * 6 5/04/98 6:06p Lawrance
32 | * Make red alert mode work!
33 | *
34 | * 5 3/28/98 2:53p Allender
35 | * added hud gauge when entering a red alert mission
36 | *
37 | * 4 3/09/98 4:30p Allender
38 | * multiplayer secondary weapon changes. red-alert and cargo-known-delay
39 | * sexpressions. Add time cargo revealed to ship structure
40 | *
41 | * 3 3/09/98 4:23p Lawrance
42 | * Replay mission, full save/restore of wingman status
43 | *
44 | * 2 3/09/98 12:13a Lawrance
45 | * Add support for Red Alert missions
46 | *
47 | * 1 3/08/98 4:54p Lawrance
48 | *
49 | * $NoKeywords: $
50 | */
51 |
52 | #ifndef __REDALERT_H__
53 | #define __REDALERT_H__
54 |
55 | #include "cfile.h"
56 |
57 | void red_alert_start_mission();
58 |
59 | void red_alert_init();
60 | void red_alert_close();
61 | void red_alert_do_frame(float frametime);
62 | int red_alert_mission();
63 | void red_alert_set_status(int status);
64 | int red_alert_check_status();
65 |
66 | void red_alert_store_wingman_status();
67 | void red_alert_bash_wingman_status();
68 | void red_alert_write_wingman_status(CFILE *fp);
69 | void red_alert_read_wingman_status(CFILE *fp, int version);
70 |
71 | #endif
72 |
--------------------------------------------------------------------------------
/code/Model/ModelRead.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/Model/ModelRead.cpp
--------------------------------------------------------------------------------
/code/Network/multi_dogfight.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Network/multi_dogfight.h $
12 | * $Revision: 2 $
13 | * $Date: 2/23/99 2:29p $
14 | * $Author: Dave $
15 | *
16 | * $Log: /Freespace2/code/Network/multi_dogfight.h $
17 | *
18 | * 2 2/23/99 2:29p Dave
19 | * First run of oldschool dogfight mode.
20 | *
21 | * $NoKeywords: $
22 | */
23 |
24 | #ifndef __FS2_MULTIPLAYER_DOGFIGHT_HEADER_FILE
25 | #define __FS2_MULTIPLAYER_DOGFIGHT_HEADER_FILE
26 |
27 | // ----------------------------------------------------------------------------------------------------
28 | // MULTI DOGFIGHT DEFINES/VARS
29 | //
30 |
31 | struct net_player;
32 | struct object;
33 |
34 |
35 | // ----------------------------------------------------------------------------------------------------
36 | // MULTI DOGFIGHT FUNCTIONS
37 | //
38 |
39 | // call once per level just before entering the mission
40 | void multi_df_level_pre_enter();
41 |
42 | // evaluate a kill in dogfight by a netplayer
43 | void multi_df_eval_kill(net_player *killer, object *dead_obj);
44 |
45 | // debrief
46 | void multi_df_debrief_init();
47 |
48 | // do frame
49 | void multi_df_debrief_do();
50 |
51 | // close
52 | void multi_df_debrief_close();
53 |
54 | #endif
--------------------------------------------------------------------------------
/code/Network/multi_log.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Network/multi_log.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Header file to support multiplayer logging functions
17 | *
18 | * $Log: /Freespace2/code/Network/multi_log.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:50a Dave
24 | *
25 | * 2 8/20/98 5:31p Dave
26 | * Put in handy multiplayer logfile system. Now need to put in useful
27 | * applications of it all over the code.
28 | *
29 | * 1 8/20/98 2:00p Dave
30 | *
31 | *
32 | * $NoKeywords: $
33 | */
34 |
35 | #ifndef _FREESPACE_MULTIPLAYER_LOGFILE_HEADER_FILE
36 | #define _FREESPACE_MULTIPLAYER_LOGFILE_HEADER_FILE
37 |
38 | // ----------------------------------------------------------------------------------------------------
39 | // MULTI LOGFILE DEFINES/VARS
40 | //
41 |
42 |
43 | // ----------------------------------------------------------------------------------------------------
44 | // MULTI LOGFILE FUNCTIONS
45 | //
46 |
47 | // initialize the multi logfile
48 | void multi_log_init();
49 |
50 | // close down the multi logfile
51 | void multi_log_close();
52 |
53 | // give some processing time to the logfile system so it can check up on stuff
54 | void multi_log_process();
55 |
56 | // printf function itself called by the ml_printf macro
57 | void ml_printf(char *format, ...);
58 |
59 | // string print function
60 | void ml_string(char *string, int add_time = 1);
61 |
62 | #endif
63 |
--------------------------------------------------------------------------------
/code/Network/multi_pinfo.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Network/multi_pinfo.h $
12 | * $Revision: 3 $
13 | * $Date: 1/30/99 1:29a $
14 | * $Author: Dave $
15 | *
16 | * $Log: /Freespace2/code/Network/multi_pinfo.h $
17 | *
18 | * 3 1/30/99 1:29a Dave
19 | * Fixed nebula thumbnail problem. Full support for 1024x768 choose pilot
20 | * screen. Fixed beam weapon death messages.
21 | *
22 | * 2 10/07/98 10:53a Dave
23 | * Initial checkin.
24 | *
25 | * 1 10/07/98 10:50a Dave
26 | *
27 | * 2 4/20/98 6:04p Dave
28 | * Implement multidata cache flushing and xferring mission files to
29 | * multidata. Make sure observers can't change hud config. Fix pilot image
30 | * viewing in popup. Put in game status field. Tweaked multi options.
31 | *
32 | * 1 3/05/98 8:20p Dave
33 | *
34 | * $NoKeywords: $
35 | */
36 |
37 | #ifndef _MULTI_PLAYER_INFO_HEADER_FILE
38 | #define _MULTI_PLAYER_INFO_HEADER_FILE
39 |
40 | // ---------------------------------------------------------------------------------------
41 | // MULTI PLAYER INFO DEFINES/VARS
42 | //
43 |
44 | // prototypes
45 | struct net_player;
46 |
47 |
48 | // ---------------------------------------------------------------------------------------
49 | // MULTI PLAYER INFO FUNCTIONS
50 | //
51 |
52 | // fire up the player info popup
53 | void multi_pinfo_popup(net_player *np);
54 |
55 | // is the pilot info popup currently active?
56 | int multi_pinfo_popup_active();
57 |
58 | // kill the currently active popup (if any)
59 | void multi_pinfo_popup_kill();
60 |
61 | // notify the popup that a player has left
62 | void multi_pinfo_notify_drop(net_player *np);
63 |
64 | #endif
--------------------------------------------------------------------------------
/code/Network/multi_rate.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Network/multi_rate.h $
12 | * $Revision: 2 $
13 | * $Date: 3/09/99 6:24p $
14 | * $Author: Dave $
15 | *
16 | * $Log: /Freespace2/code/Network/multi_rate.h $
17 | *
18 | * 2 3/09/99 6:24p Dave
19 | * More work on object update revamping. Identified several sources of
20 | * unnecessary bandwidth.
21 | *
22 | *
23 | * $NoKeywords: $
24 | */
25 |
26 | #ifndef _FS2_MULTI_DATA_RATE_HEADER_FILE
27 | #define _FS2_MULTI_DATA_RATE_HEADER_FILE
28 |
29 | // -----------------------------------------------------------------------------------------------------------------------
30 | // MULTI RATE DEFINES/VARS
31 | //
32 |
33 | #define MAX_RATE_TYPE_LEN 50 // max length of a type string
34 | #define MAX_RATE_PLAYERS 12 // how many player we'll keep track of
35 | #define MAX_RATE_TYPES 32 // how many types we'll keep track of per player
36 |
37 | // -----------------------------------------------------------------------------------------------------------------------
38 | // MULTI RATE FUNCTIONS
39 | //
40 |
41 | // notify of a player join
42 | void multi_rate_reset(int np_index);
43 |
44 | // add data of the specified type to datarate processing, returns 0 on fail (if we ran out of types, etc, etc)
45 | int multi_rate_add(int np_index, char *type, int size);
46 |
47 | // process. call _before_ doing network operations each frame
48 | void multi_rate_process();
49 |
50 | // display
51 | void multi_rate_display(int np_index, int x, int y);
52 |
53 | #endif
--------------------------------------------------------------------------------
/code/Network/multi_update.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Network/multi_update.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * $Log: /Freespace2/code/Network/multi_update.h $
17 | *
18 | * 2 10/07/98 10:53a Dave
19 | * Initial checkin.
20 | *
21 | * 1 10/07/98 10:50a Dave
22 | *
23 | * 2 7/09/98 4:51p Dave
24 | * First revision of PXO autoupdate check system.
25 | *
26 | * 1 7/09/98 2:09p Dave
27 | *
28 | *
29 | * $NoKeywords: $
30 | */
31 |
32 | #ifndef _FREESPACE_AUTOUPDATE_THINGIE_HEADER_FILE
33 | #define _FREESPACE_AUTOUPDATE_THINGIE_HEADER_FILE
34 |
35 | // -------------------------------------------------------------------------------------------------------------------
36 | // MULTI UPDATE DEFINES/VARS
37 | //
38 |
39 | // operation return codes
40 | #define MULTI_UPDATE_CONTINUE 0 // continue to next screen
41 | #define MULTI_UPDATE_SHUTTING_DOWN 1 // freespace is exiting to the launcher
42 | #define MULTI_UPDATE_MAIN_MENU 2 // caller should move back to the main menu
43 |
44 |
45 | // -------------------------------------------------------------------------------------------------------------------
46 | // MULTI UPDATE FUNCTIONS
47 | //
48 |
49 | // check to see if the version of FS on this machine is not recent. run in a popup
50 | // if the versions don't check out, bail to the launcher
51 | // see MULTI_UPDATE_* return codes, above
52 | int multi_update_gobaby();
53 |
54 |
55 | #endif
--------------------------------------------------------------------------------
/code/Observer/Observer.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Observer/Observer.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * $NoKeywords: $
17 | */
18 |
19 | #ifndef _OBSERVER_HEADER_FILE
20 | #define _OBSERVER_HEADER_FILE
21 |
22 | #include "object.h"
23 | #include "vecmat.h"
24 |
25 | #define OBS_MAX_VEL_X (85.0f) // side to side
26 | #define OBS_MAX_VEL_Y (85.0f) // side to side
27 | #define OBS_MAX_VEL_Z (85.0f) // forwards and backwards
28 |
29 |
30 | #define OBS_FLAG_USED (1<<1)
31 |
32 | typedef struct observer {
33 | int objnum;
34 |
35 | int target_objnum; // not used as of yet
36 | int flags;
37 | } observer;
38 |
39 | #define MAX_OBSERVER_OBS 17
40 | extern observer Observers[MAX_OBSERVER_OBS];
41 |
42 | extern int Num_observer_obs;
43 |
44 | void observer_init();
45 | int observer_create(matrix *orient, vector *pos); // returns objnum
46 | void observer_delete(object *obj);
47 |
48 | // get the eye position and orientation for the passed observer object
49 | void observer_get_eye(vector *eye_pos, matrix *eye_orient, object *obj);
50 |
51 | #endif
--------------------------------------------------------------------------------
/code/OsApi/MONOPUB.H:
--------------------------------------------------------------------------------
1 | /*++
2 |
3 | Copyright (c) 1993 Microsoft Corporation
4 |
5 | Module Name:
6 |
7 | monopub.h
8 |
9 | Abstract:
10 |
11 | This module contains the PUBLIC (viewable by driver & Win32 apps)
12 | definitions for the IOCTLs supported by the MONO device driver.
13 |
14 | Environment:
15 |
16 | Kernel & User mode
17 |
18 | Revision History:
19 |
20 | 03-22-93 : created
21 |
22 | --*/
23 |
24 |
25 |
26 | //
27 | // Define the various device type values. Note that values used by Microsoft
28 | // Corporation are in the range 0-32767, and 32768-65535 are reserved for use
29 | // by customers.
30 | //
31 |
32 | #define FILE_DEVICE_MONO 0x00008100
33 |
34 |
35 |
36 | //
37 | // Macro definition for defining IOCTL and FSCTL function control codes. Note
38 | // that function codes 0-2047 are reserved for Microsoft Corporation, and
39 | // 2048-4095 are reserved for customers.
40 | //
41 |
42 | #define MONO_IOCTL_INDEX 0x810
43 |
44 |
45 |
46 | //
47 | // The MONO device driver IOCTLs
48 | //
49 |
50 | #define IOCTL_MONO_PRINT CTL_CODE(FILE_DEVICE_MONO, \
51 | MONO_IOCTL_INDEX, \
52 | METHOD_BUFFERED, \
53 | FILE_ANY_ACCESS)
54 |
55 | #define IOCTL_MONO_CLEAR_SCREEN CTL_CODE(FILE_DEVICE_MONO, \
56 | MONO_IOCTL_INDEX + 1, \
57 | METHOD_BUFFERED, \
58 | FILE_ANY_ACCESS)
59 |
--------------------------------------------------------------------------------
/code/OsApi/OutWnd.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | #ifndef _OUTWND_H
11 | #define _OUTWND_H
12 |
13 | #define FILTER_NAME_LENGTH 30
14 |
15 | void load_filter_info(void);
16 | void outwnd_init(int display_under_freespace_window=0);
17 | void outwnd_close();
18 | void outwnd_printf(char *id, char *format, ...);
19 | void outwnd_printf2(char *format, ...);
20 |
21 | #ifndef NDEBUG
22 | extern int Log_debug_output_to_file;
23 | #endif
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/code/Parse/Encrypt.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/parse/Encrypt.h $
12 | * $Revision: 3 $
13 | * $Date: 3/25/99 11:26a $
14 | * $Author: Dave $
15 | *
16 | * Header for encryption code common to FreeSpace and related tools
17 | *
18 | * $Log: /Freespace2/code/parse/Encrypt.h $
19 | *
20 | * 3 3/25/99 11:26a Dave
21 | * Beefed up encryption scheme so that even someone viewing the
22 | * disassembly would have a hard time cracking it.
23 | *
24 | * 2 10/07/98 10:53a Dave
25 | * Initial checkin.
26 | *
27 | * 1 10/07/98 10:50a Dave
28 | *
29 | * 4 8/09/98 4:44p Lawrance
30 | * support alternate encryption scheme (doesn't pack chars into 7 bits)
31 | *
32 | * 3 3/31/98 4:57p Lawrance
33 | * Add signature at the beginning of encrypted files
34 | *
35 | * 2 3/31/98 1:14a Lawrance
36 | * Get .tbl and mission file encryption working.
37 | *
38 | * 1 3/30/98 11:02p Lawrance
39 | *
40 | * $NoKeywords: $
41 | */
42 |
43 | #ifndef __ENCRYPT_H__
44 | #define __ENCRYPT_H__
45 |
46 | // initialize encryption
47 | void encrypt_init();
48 |
49 | // Return 1 if the file is encrypted, otherwise return 0
50 | int is_encrpyted(char *scrambled_text);
51 |
52 | // Encrpyt text data
53 | void encrypt(char *text, int text_len, char *scrambled_text, int *scrambled_len, int use_8bit);
54 |
55 | // Decrypt scrambled_text
56 | void unencrypt(char *scrambled_text, int scrambled_len, char *text, int *text_len);
57 |
58 | #endif
59 |
60 |
--------------------------------------------------------------------------------
/code/Parse/PARSELO.CPP:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/Parse/PARSELO.CPP
--------------------------------------------------------------------------------
/code/Popup/PopupDead.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Popup/PopupDead.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Header for the death popup
17 | *
18 | * $Log: /Freespace2/code/Popup/PopupDead.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:51a Dave
24 | *
25 | * 3 4/22/98 4:59p Allender
26 | * new multiplayer dead popup. big changes to the comm menu system for
27 | * team vs. team. Start of debriefing stuff for team vs. team Make form
28 | * on my wing work with individual ships who have high priority orders
29 | *
30 | * 2 2/10/98 11:20p Lawrance
31 | * Implement separate dead popup system
32 | *
33 | * 1 2/10/98 6:02p Lawrance
34 | *
35 | * $NoKeywords: $
36 | */
37 |
38 | #ifndef __POPUPDEAD_H__
39 | #define __POPUPDEAD_H__
40 |
41 | // return values for popup_do_frame for multiplayer
42 | #define POPUPDEAD_DO_RESPAWN 0
43 | #define POPUPDEAD_DO_OBSERVER 1
44 | #define POPUPDEAD_DO_MAIN_HALL 2
45 |
46 | void popupdead_start();
47 | void popupdead_close();
48 | int popupdead_do_frame(float frametime);
49 | int popupdead_is_active();
50 |
51 | #endif
52 |
--------------------------------------------------------------------------------
/code/Radar/Radar.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Radar/Radar.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Prototypes for radar code
17 | *
18 | * $Log: /Freespace2/code/Radar/Radar.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:51a Dave
24 | *
25 | * 10 12/29/97 4:22p Lawrance
26 | * Draw NEUTRAL radar dots after FRIENDLY.. clean up some radar code.
27 | *
28 | * 9 11/06/97 5:02p Dave
29 | * Finished reworking standalone multiplayer sequencing. Added
30 | * configurable observer-mode HUD
31 | *
32 | * 8 11/05/97 11:21p Lawrance
33 | * implement new radar gauge
34 | *
35 | * 7 10/11/97 6:38p Lawrance
36 | * implementing damage effects to radar
37 | *
38 | * 6 3/25/97 3:55p Lawrance
39 | * allowing debris to be targeted and shown on radar
40 | *
41 | * 5 2/17/97 5:18p John
42 | * Added a bunch of RCS headers to a bunch of old files that don't have
43 | * them.
44 | *
45 | * $NoKeywords: $
46 | */
47 |
48 | #ifndef _RADAR_H
49 | #define _RADAR_H
50 |
51 | extern int Radar_static_looping;
52 |
53 | extern void radar_init();
54 | extern void radar_plot_object( object *objp );
55 | extern void radar_frame_init();
56 | extern void radar_mission_init();
57 | extern void radar_frame_render(float frametime);
58 |
59 | // observer hud rendering code uses this function
60 | void radar_draw_blips_sorted(int distort=0);
61 | void radar_draw_range();
62 | void radar_blit_gauge();
63 |
64 | #endif
65 |
66 |
--------------------------------------------------------------------------------
/code/Render/3dInternal.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Render/3dInternal.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Used internally by the 3d renderer lib
17 | *
18 | * $Log: /Freespace2/code/Render/3dInternal.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:51a Dave
24 | *
25 | * 5 3/16/98 4:51p John
26 | * Added low-level code to clip all polygons against an arbritary plane.
27 | * Took out all old model_interp_zclip and used this new method instead.
28 | *
29 | * 4 4/29/97 9:55a John
30 | *
31 | * 3 2/17/97 5:18p John
32 | * Added a bunch of RCS headers to a bunch of old files that don't have
33 | * them.
34 | *
35 | * $NoKeywords: $
36 | */
37 |
38 | #ifndef _3DINTERNAL_H
39 | #define _3DINTERNAL_H
40 |
41 | #include "3d.h"
42 |
43 | extern int Canvas_width,Canvas_height; //the actual width & height
44 | extern float Canv_w2,Canv_h2; //fixed-point width,height/2
45 |
46 | extern vector Window_scale;
47 | extern int free_point_num;
48 |
49 | extern float View_zoom;
50 | extern vector View_position,Matrix_scale;
51 | extern matrix View_matrix,Unscaled_matrix;
52 |
53 |
54 | //vertex buffers for polygon drawing and clipping
55 | extern vertex *Vbuf0[];
56 | extern vertex *Vbuf1[];
57 |
58 | extern void free_temp_point(vertex *p);
59 | extern vertex **clip_polygon(vertex **src,vertex **dest,int *nv,ccodes *cc,uint flags);
60 | extern void init_free_points(void);
61 | extern void clip_line(vertex **p0,vertex **p1,ubyte codes_or, uint flags);
62 |
63 | extern int G3_count;
64 |
65 | extern int G3_user_clip;
66 | extern vector G3_user_clip_normal;
67 | extern vector G3_user_clip_point;
68 |
69 | // Returns TRUE if point is behind user plane
70 | extern int g3_point_behind_user_plane( vector *pnt );
71 |
72 | #endif
73 |
--------------------------------------------------------------------------------
/code/Scramble/scramble.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /freespace2/code/Scramble/scramble.h $
12 | * $Revision: 2 $
13 | * $Date: 10/24/98 11:41p $
14 | * $Author: Dave $
15 | *
16 | * Header file for file scrambler
17 | *
18 | * $Log: /freespace2/code/Scramble/scramble.h $
19 | *
20 | * 2 10/24/98 11:41p Dave
21 | *
22 | * 1 10/24/98 11:31p Dave
23 | *
24 | * 4 4/14/98 1:39p Lawrance
25 | * Add command line switches to preprocess ship and weapon tables
26 | *
27 | * 3 3/31/98 1:14a Lawrance
28 | * Get .tbl and mission file encryption working.
29 | *
30 | * 2 3/30/98 5:51p Lawrance
31 | * file encryption and decryption
32 | *
33 | * 1 3/30/98 5:19p Lawrance
34 | *
35 | * $NoKeywords: $
36 | */
37 |
38 | #ifndef __SCRAMBLE_H__
39 | #define __SCRAMBLE_H__
40 |
41 | #define PREPROCESS_SHIPS_TBL 0
42 | #define PREPROCESS_WEAPONS_TBL 1
43 |
44 | void scramble_file(char *src_filename, char *dest_filename = NULL, int preprocess = -1);
45 | void unscramble_file(char *src_filename, char *dest_filename = NULL);
46 |
47 | #endif
48 |
--------------------------------------------------------------------------------
/code/Ship/AWACS.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Ship/AWACS.h $
12 | * $Revision: 4 $
13 | * $Date: 6/02/99 12:52p $
14 | * $Author: Andsager $
15 | *
16 | * all sorts of cool stuff about ships
17 | *
18 | * $Log: /Freespace2/code/Ship/AWACS.h $
19 | *
20 | * 4 6/02/99 12:52p Andsager
21 | * Added team-wide ship visibility. Implemented for player.
22 | *
23 | * 3 1/25/99 5:03a Dave
24 | * First run of stealth, AWACS and TAG missile support. New mission type
25 | * :)
26 | *
27 | * 2 1/08/99 2:08p Dave
28 | * Fixed software rendering for pofview. Super early support for AWACS and
29 | * beam weapons.
30 | *
31 | *
32 | * $NoKeywords: $
33 | */
34 |
35 | #ifndef __FS2_AWACS_HEADER_FILE
36 | #define __FS2_AWACS_HEADER_FILE
37 |
38 | // ----------------------------------------------------------------------------------------------------
39 | // AWACS DEFINES/VARS
40 | //
41 |
42 | // DAVE'S OFFICIAL DEFINITION OF AWACS
43 |
44 | // total awacs levels for all teams
45 | extern float Awacs_team[MAX_TEAMS]; // total AWACS capabilities for each team
46 | extern float Awacs_level; // Awacs_friendly - Awacs_hostile
47 |
48 | // ----------------------------------------------------------------------------------------------------
49 | // AWACS FUNCTIONS
50 | //
51 |
52 | // call when initializing level, before parsing mission
53 | void awacs_level_init();
54 |
55 | // call every frame to process AWACS details
56 | void awacs_process();
57 |
58 | // get the total AWACS level for target to viewer
59 | // < 0.0f : untargetable
60 | // 0.0 - 1.0f : marginally targetable
61 | // 1.0f : fully targetable as normal
62 | float awacs_get_level(object *target, ship *viewer, int use_awacs=1);
63 |
64 | // Determine if ship is visible by team
65 | // return 1 if ship is fully visible
66 | // return 0 if ship is only partly visible
67 | int ship_is_visible_by_team(int ship_num, int team);
68 |
69 |
70 | #endif
--------------------------------------------------------------------------------
/code/Ship/Afterburner.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Ship/Afterburner.h $
12 | * $Revision: 3 $
13 | * $Date: 11/05/98 5:55p $
14 | * $Author: Dave $
15 | *
16 | * Header file for managing the afterburners
17 | *
18 | * $Log: /Freespace2/code/Ship/Afterburner.h $
19 | *
20 | * 3 11/05/98 5:55p Dave
21 | * Big pass at reducing #includes
22 | *
23 | * 2 10/07/98 10:53a Dave
24 | * Initial checkin.
25 | *
26 | * 1 10/07/98 10:51a Dave
27 | *
28 | * 6 2/26/98 10:07p Hoffoss
29 | * Rewrote state saving and restoring to fix bugs and simplify the code.
30 | *
31 | * 5 8/05/97 10:48a Lawrance
32 | * save afterburner data for the player
33 | *
34 | * 4 7/27/97 5:14p Lawrance
35 | * add afterburners to the player control info
36 | *
37 | * 3 7/16/97 4:42p Mike
38 | * Make afterburner shake viewer, not ship.
39 | * Shake for limited time.
40 | * Add timestamp_until() function to timer library.
41 | *
42 | * 2 7/11/97 8:57a Lawrance
43 | * make afterburner work same for player and AI ships
44 | *
45 | * 1 7/10/97 2:24p Lawrance
46 | *
47 | * $NoKeywords: $
48 | */
49 |
50 | #ifndef __AFTERBURNER_H__
51 | #define __AFTERBURNER_H__
52 |
53 | #define AFTERBURNER_MIN_DELAY 1000
54 | #define ABURN_DECAY_TIME 1500 // time in ms ship shakes after afterburner pressed
55 |
56 | #include "cfile.h"
57 | #include "object.h"
58 |
59 | void afterburners_start(object *objp);
60 | void afterburners_stop(object *objp, int key_released = 0);
61 | void afterburner_stop_sounds();
62 | void afterburners_update(object *objp, float fl_frametime);
63 | void afterburner_level_init();
64 |
65 | #endif /* __AFTERBURNER_H__ */
66 |
67 |
--------------------------------------------------------------------------------
/code/Ship/AiLocal.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | #ifndef _AILOCAL_H
11 | #define _AILOCAL_H
12 |
13 | // -- Don't put anything in here --
14 | // Put it in ai.h!
15 |
16 | #endif
17 |
--------------------------------------------------------------------------------
/code/Ship/ShipContrails.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Ship/ShipContrails.h $
12 | * $Revision: 2 $
13 | * $Date: 11/14/98 5:33p $
14 | * $Author: Dave $
15 | *
16 | * all sorts of cool stuff about ships
17 | *
18 | * $Log: /Freespace2/code/Ship/ShipContrails.h $
19 | *
20 | * 2 11/14/98 5:33p Dave
21 | * Lots of nebula work. Put in ship contrails.
22 | *
23 | * 1 11/14/98 3:40p Dave
24 | *
25 | * 1 11/13/98 3:28p Dave
26 | *
27 | *
28 | * $NoKeywords: $
29 | */
30 |
31 | #ifndef _FREESPACE2_SHIP_CONTRAIL_HEADER_FILE
32 | #define _FREESPACE2_SHIP_CONTRAIL_HEADER_FILE
33 |
34 | // ----------------------------------------------------------------------------------------------
35 | // CONTRAIL DEFINES/VARS
36 | //
37 |
38 | // prototypes
39 | struct ship;
40 |
41 | // ----------------------------------------------------------------------------------------------
42 | // CONTRAIL FUNCTIONS
43 | //
44 |
45 | // call during level initialization
46 | void ct_level_init();
47 |
48 | // call during level shutdown
49 | void ct_level_close();
50 |
51 | // call when a ship is created to initialize its contrail stuff
52 | void ct_ship_create(ship *shipp);
53 |
54 | // call when a ship is deleted to free up its contrail stuff
55 | void ct_ship_delete(ship *shipp);
56 |
57 | // call each frame for processing a ship's contrails
58 | void ct_ship_process(ship *shipp);
59 |
60 | #endif
--------------------------------------------------------------------------------
/code/Sound/WinMIDI.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Sound/WinMIDI.cpp $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:54a $
14 | * $Author: Dave $
15 | *
16 | * C module for playing and managing MIDI files
17 | *
18 | * $Log: /Freespace2/code/Sound/WinMIDI.cpp $
19 | *
20 | * 2 10/07/98 10:54a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:51a Dave
24 | *
25 | * 3 1/19/98 11:37p Lawrance
26 | * Fixing Optimization build warnings
27 | *
28 | *
29 | * $NoKeywords: $
30 | */
31 |
--------------------------------------------------------------------------------
/code/Sound/WinMIDI.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Sound/WinMIDI.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:54a $
14 | * $Author: Dave $
15 | *
16 | * Header file for playing and managing MIDI files
17 | *
18 | * $Log: /Freespace2/code/Sound/WinMIDI.h $
19 | *
20 | * 2 10/07/98 10:54a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:51a Dave
24 | *
25 | * 3 1/19/98 11:37p Lawrance
26 | * Fixing Optimization build warnings
27 | *
28 | *
29 | * $NoKeywords: $
30 | */
31 |
32 | #ifndef __WINMIDI_H__
33 | #define __WINMIDI_H__
34 |
35 | #endif /* __WINMIDI_H__ */
36 |
--------------------------------------------------------------------------------
/code/Sound/acm.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Sound/acm.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:53a $
14 | * $Author: Dave $
15 | *
16 | * Header file for interface to Audio Compression Manager functions
17 | *
18 | * $Log: /Freespace2/code/Sound/acm.h $
19 | *
20 | * 2 10/07/98 10:53a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:51a Dave
24 | *
25 | * 5 2/18/98 5:49p Lawrance
26 | * Even if the ADPCM codec is unavailable, allow game to continue.
27 | *
28 | * 4 11/28/97 2:09p Lawrance
29 | * Overhaul how ADPCM conversion works... use much less memory... safer
30 | * too.
31 | *
32 | * 3 11/22/97 11:32p Lawrance
33 | * decompress ADPCM data into 8 bit (not 16bit) for regular sounds (ie not
34 | * music)
35 | *
36 | * 2 5/29/97 12:03p Lawrance
37 | * creation of file to hold AudioCompressionManager specific code
38 | *
39 | * $NoKeywords: $
40 | */
41 |
42 | #ifndef __FREESPACE_ACM_H__
43 | #define __FREESPACE_ACM_H__
44 |
45 | #include
46 | #include
47 | #include "pstypes.h"
48 |
49 | int ACM_convert_ADPCM_to_PCM(WAVEFORMATEX *pwfxSrc, ubyte *src, int src_len, ubyte **dest, int max_dest_bytes, int *dest_len, unsigned int *src_bytes_used, unsigned short dest_bps=16);
50 | int ACM_init();
51 | void ACM_close();
52 | int ACM_is_inited();
53 |
54 |
55 | int ACM_stream_open(WAVEFORMATEX *pwfxSrc, WAVEFORMATEX *pwfxDest, void **stream, int dest_bps=16);
56 | int ACM_stream_close(void *stream);
57 | int ACM_query_source_size(void *stream, int dest_len);
58 | int ACM_query_dest_size(void *stream, int src_len);
59 |
60 | int ACM_convert(void *stream, ubyte *src, int src_len, ubyte *dest, int max_dest_bytes, unsigned int *dest_len, unsigned int *src_bytes_used);
61 |
62 |
63 | #endif /* __ACM_H__ */
--------------------------------------------------------------------------------
/code/Sound/ds3d.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Sound/ds3d.h $
12 | * $Revision: 3 $
13 | * $Date: 5/23/99 8:11p $
14 | * $Author: Alanl $
15 | *
16 | * Header file for interface to DirectSound3D
17 | *
18 | * $Log: /Freespace2/code/Sound/ds3d.h $
19 | *
20 | * 3 5/23/99 8:11p Alanl
21 | * Added support for EAX
22 | *
23 | * 2 10/07/98 10:54a Dave
24 | * Initial checkin.
25 | *
26 | * 1 10/07/98 10:51a Dave
27 | *
28 | * 8 4/19/98 9:31p Lawrance
29 | * Use Aureal_enabled flag
30 | *
31 | * 7 7/28/97 11:39a Lawrance
32 | * allow individual volume scaling on 3D buffers
33 | *
34 | * 6 6/09/97 11:50p Lawrance
35 | * integrating DirectSound3D
36 | *
37 | * 5 6/08/97 5:59p Lawrance
38 | * integrate DirectSound3D into sound system
39 | *
40 | * 4 6/02/97 1:45p Lawrance
41 | * implementing hardware mixing
42 | *
43 | * 3 5/29/97 4:02p Lawrance
44 | * listener interface in place
45 | *
46 | * 2 5/29/97 12:03p Lawrance
47 | * creation of file to hold DirectSound3D specific code
48 | *
49 | * $NoKeywords: $
50 | */
51 |
52 | #ifndef __DS3D_H__
53 | #define __DS3D_H__
54 |
55 | int ds3d_init(int voice_manager_required);
56 | void ds3d_close();
57 | int ds3d_update_listener(vector *pos, vector *vel, matrix *orient);
58 | int ds3d_update_buffer(int channel, float min, float max, vector *pos, vector *vel);
59 | int ds3d_set_sound_cone(int channel, int inner_angle, int outer_angle, int vol);
60 |
61 | #endif /* __DS3D_H__ */
--------------------------------------------------------------------------------
/code/Sound/dscap.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Sound/dscap.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:54a $
14 | * $Author: Dave $
15 | *
16 | * Header file for DirectSoundCapture code
17 | *
18 | * $Log: /Freespace2/code/Sound/dscap.h $
19 | *
20 | * 2 10/07/98 10:54a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:51a Dave
24 | *
25 | * 4 2/15/98 11:10p Lawrance
26 | * more work on real-time voice system
27 | *
28 | * 3 2/15/98 4:43p Lawrance
29 | * work on real-time voice
30 | *
31 | * 2 2/03/98 11:53p Lawrance
32 | * Adding support for DirectSoundCapture
33 | *
34 | * 1 2/03/98 4:48p Lawrance
35 | *
36 | * $NoKeywords: $
37 | */
38 |
39 | #ifndef __DSCAP_H__
40 | #define __DSCAP_H__
41 |
42 | int dscap_init();
43 | void dscap_close();
44 | int dscap_supported();
45 | int dscap_create_buffer(int freq, int bits_per_sample, int nchannels, int nseconds);
46 | void dscap_release_buffer();
47 |
48 | int dscap_start_record();
49 | int dscap_stop_record();
50 | int dscap_max_buffersize();
51 | int dscap_get_raw_data(unsigned char *outbuf, unsigned int max_size);
52 |
53 |
54 | #endif // __DSCAP_H__
55 |
--------------------------------------------------------------------------------
/code/Sound/midifile.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Sound/midifile.cpp $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:54a $
14 | * $Author: Dave $
15 | *
16 | * C module to handle MIDI file reading and manipulation
17 | *
18 | * $Log: /Freespace2/code/Sound/midifile.cpp $
19 | *
20 | * 2 10/07/98 10:54a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:51a Dave
24 | *
25 | * 4 1/19/98 11:37p Lawrance
26 | * Fixing Optimization build warnings
27 | *
28 | *
29 | * $NoKeywords: $
30 | */
31 |
32 |
--------------------------------------------------------------------------------
/code/Sound/midifile.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Sound/midifile.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:54a $
14 | * $Author: Dave $
15 | *
16 | * Header file to support MIDI file reading and manipulation
17 | *
18 | * $Log: /Freespace2/code/Sound/midifile.h $
19 | *
20 | * 2 10/07/98 10:54a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:51a Dave
24 | *
25 | * 2 1/19/98 11:37p Lawrance
26 | * Fixing Optimization build warnings
27 | *
28 |
29 | *
30 | * $NoKeywords: $
31 | */
32 |
33 | #ifndef __MSTREAM_H__
34 | #define __MSTREAM_H__
35 |
36 | #endif
37 |
38 |
--------------------------------------------------------------------------------
/code/Sound/winmidi_base.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Sound/winmidi_base.cpp $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:54a $
14 | * $Author: Dave $
15 | *
16 | * C module that contains mid-level MIDI functions for streaming data
17 | *
18 | * $Log: /Freespace2/code/Sound/winmidi_base.cpp $
19 | *
20 | * 2 10/07/98 10:54a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:51a Dave
24 | *
25 | * 3 1/19/98 11:37p Lawrance
26 | * Fixing Optimization build warnings
27 | *
28 | *
29 | * $NoKeywords: $
30 | */
31 |
--------------------------------------------------------------------------------
/code/Starfield/Nebula.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Starfield/Nebula.h $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:54a $
14 | * $Author: Dave $
15 | *
16 | * Include file for nebula stuff
17 | *
18 | * $Log: /Freespace2/code/Starfield/Nebula.h $
19 | *
20 | * 2 10/07/98 10:54a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:51a Dave
24 | *
25 | * 4 11/25/97 11:40a Hoffoss
26 | * Added support for nebula placement editing.
27 | *
28 | * 3 11/24/97 12:04p John
29 | *
30 | * 2 11/16/97 2:29p John
31 | * added versioning to nebulas; put nebula code into freespace.
32 | *
33 | * 1 11/16/97 1:14p John
34 | *
35 | * $NoKeywords: $
36 | */
37 |
38 | #ifndef _NEBULA_H
39 | #define _NEBULA_H
40 |
41 | // mainly only needed by Fred
42 | extern int Nebula_pitch;
43 | extern int Nebula_bank;
44 | extern int Nebula_heading;
45 |
46 | // You shouldn't pass the extension for filename.
47 | // PBH = Pitch, Bank, Heading. Pass NULL for default orientation.
48 | void nebula_init( char *filename, int pitch, int bank, int heading );
49 | void nebula_init( char *filename, angles *pbh = NULL );
50 | void nebula_close();
51 | void nebula_render();
52 |
53 | #endif //_NEBULA_H
--------------------------------------------------------------------------------
/code/TgaUtils/TgaUtils.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/TgaUtils/TgaUtils.h $
12 | * $Revision: 3 $
13 | * $Date: 3/20/99 3:46p $
14 | * $Author: Dave $
15 | *
16 | *
17 | * $Log: /Freespace2/code/TgaUtils/TgaUtils.h $
18 | *
19 | * 3 3/20/99 3:46p Dave
20 | * Added support for model-based background nebulae. Added 3 new
21 | * sexpressions.
22 | *
23 | * 2 12/01/98 4:46p Dave
24 | * Put in targa bitmap support (16 bit).
25 | *
26 | * $NoKeywords: $
27 | */
28 |
29 |
30 | #ifndef __TARGA_H
31 | #define __TARGA_H
32 |
33 | // --------------------
34 | //
35 | // Defines
36 | //
37 | // --------------------
38 |
39 | #define TARGA_ERROR_NONE 0
40 | #define TARGA_ERROR_READING 1
41 | #define TARGA_ERROR_WRITING 2
42 |
43 | // --------------------
44 | //
45 | // Prototypes
46 | //
47 | // --------------------
48 |
49 | int targa_read_header(char *filename, int *w, int *h, int *bpp, ubyte *palette=NULL );
50 | int targa_read_bitmap(char *filename, ubyte *data, ubyte *palette, int dest_size );
51 | int targa_write_bitmap(char *filename, ubyte *data, ubyte *palette, int w, int h, int bpp);
52 |
53 | // The following are used by the tools\vani code.
54 | int targa_compress(char *out, char *in, int outsize, int pixsize, int bytecount);
55 | int targa_uncompress( ubyte *dst, ubyte *src, int bitmap_width, int bytes_per_pixel );
56 |
57 | #endif // __TARGA_H
58 |
--------------------------------------------------------------------------------
/code/UI/KEYTRAP.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/UI/KEYTRAP.cpp $
12 | * $Revision: 2 $
13 | * $Date: 10/07/98 10:54a $
14 | * $Author: Dave $
15 | *
16 | * Routines for gadgets that trap keypresses.
17 | *
18 | * $Log: /Freespace2/code/UI/KEYTRAP.cpp $
19 | *
20 | * 2 10/07/98 10:54a Dave
21 | * Initial checkin.
22 | *
23 | * 1 10/07/98 10:51a Dave
24 | *
25 | * 2 1/14/98 6:43p Hoffoss
26 | * Massive changes to UI code. A lot cleaner and better now. Did all
27 | * this to get the new UI_DOT_SLIDER to work properly, which the old code
28 | * wasn't flexible enough to handle.
29 | *
30 | * 1 11/14/96 6:55p John
31 | *
32 | * $NoKeywords: $
33 | */
34 |
35 | #include "UiDefs.h"
36 | #include "Ui.h"
37 |
38 |
39 | void UI_KEYTRAP::create(UI_WINDOW *wnd, int key, void (*_user_function)(void) )
40 | {
41 | base_create( wnd, UI_KIND_BUTTON, 0, 0, 0, 0 );
42 |
43 | pressed_down = 0;
44 | set_hotkey(key);
45 | set_callback(_user_function);
46 |
47 | parent = this; // Ugly. This keeps KEYTRAPS from getting keyboard control.
48 | };
49 |
50 | void UI_KEYTRAP::draw()
51 | {
52 | }
53 |
54 | void UI_KEYTRAP::process(int focus)
55 | {
56 | pressed_down = 0;
57 |
58 | if (disabled_flag) {
59 | return;
60 | }
61 |
62 | if (my_wnd->keypress == hotkey) {
63 | pressed_down = 1;
64 | my_wnd->last_keypress = 0;
65 | }
66 |
67 | if (pressed_down && user_function) {
68 | user_function();
69 | }
70 | }
71 |
72 | int UI_KEYTRAP::pressed()
73 | {
74 | return pressed_down;
75 | }
76 |
--------------------------------------------------------------------------------
/code/Weapon/Corkscrew.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Weapon/Corkscrew.h $
12 | * $Revision: 3 $
13 | * $Date: 10/26/98 9:42a $
14 | * $Author: Dave $
15 | *
16 | * Header file for managing corkscrew missiles
17 | *
18 | * $NoKeywords: $
19 | */
20 |
21 |
22 | #ifndef __FREESPACE_CORKSCREW_H__
23 | #define __FREESPACE_CORKSCREW_H__
24 |
25 | #include "object.h"
26 | #include "weapon.h"
27 |
28 | extern int Corkscrew_num_missiles_fired;
29 |
30 | void cscrew_level_init();
31 | void cscrew_delete(int index);
32 | int cscrew_create(object *obj);
33 |
34 | // pre process the corkscrew weapon by putting him in the "center" of his corkscrew
35 | void cscrew_process_pre(object *objp);
36 |
37 | // post process the corkscrew weapon by putting him back to the right spot on his corkscrew
38 | void cscrew_process_post(object *objp);
39 |
40 | // maybe fire another corkscrew-style missile
41 | void cscrew_maybe_fire_missile(int shipnum);
42 |
43 | #endif /* __FREESPACE_CORKSCREW_H__ */
--------------------------------------------------------------------------------
/code/Weapon/MuzzleFlash.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Weapon/MuzzleFlash.h $
12 | * $Revision: 4 $
13 | * $Date: 5/18/99 1:30p $
14 | * $Author: Dave $
15 | *
16 | * all sorts of cool stuff about ships
17 | *
18 | * $Log: /Freespace2/code/Weapon/MuzzleFlash.h $
19 | *
20 | * 4 5/18/99 1:30p Dave
21 | * Added muzzle flash table stuff.
22 | *
23 | * 3 3/19/99 9:52a Dave
24 | * Checkin to repair massive source safe crash. Also added support for
25 | * pof-style nebulae, and some new weapons code.
26 | *
27 | * 2 1/08/99 2:08p Dave
28 | * Fixed software rendering for pofview. Super early support for AWACS and
29 | * beam weapons.
30 | *
31 | *
32 | * $NoKeywords: $
33 | */
34 |
35 | #ifndef __FS2_MUZZLEFLASH_HEADER_FILE
36 | #define __FS2_MUZZLEFLASH_HEADER_FILE
37 |
38 | // ---------------------------------------------------------------------------------------------------------------------
39 | // MUZZLE FLASH DEFINES/VARS
40 | //
41 |
42 | // prototypes
43 | struct object;
44 |
45 | // muzzle flash types
46 | #define MAX_MUZZLE_FLASH_TYPES 10
47 | extern int Num_mflash_types;
48 |
49 | // ---------------------------------------------------------------------------------------------------------------------
50 | // MUZZLE FLASH FUNCTIONS
51 | //
52 |
53 | // initialize muzzle flash stuff for the whole game
54 | void mflash_game_init();
55 |
56 | // initialize muzzle flash stuff for the level
57 | void mflash_level_init();
58 |
59 | // shutdown stuff for the level
60 | void mflash_level_close();
61 |
62 | // create a muzzle flash on the guy
63 | void mflash_create(vector *gun_pos, vector *gun_dir, int mflash_type);
64 |
65 | // process muzzle flash stuff
66 | void mflash_process_all();
67 |
68 | // render all muzzle flashes
69 | void mflash_render_all();
70 |
71 | // lookup type by name
72 | int mflash_lookup(char *name);
73 |
74 | #endif
--------------------------------------------------------------------------------
/code/Weapon/Swarm.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | /*
11 | * $Logfile: /Freespace2/code/Weapon/Swarm.h $
12 | * $Revision: 5 $
13 | * $Date: 5/20/99 7:00p $
14 | * $Author: Dave $
15 | *
16 | * Header file for managing swarm missiles
17 | *
18 | * $Log: /Freespace2/code/Weapon/Swarm.h $
19 | *
20 | * 5 5/20/99 7:00p Dave
21 | * Added alternate type names for ships. Changed swarm missile table
22 | * entries.
23 | *
24 | * 4 1/29/99 2:25p Andsager
25 | * Added turret_swarm_missiles
26 | *
27 | * 3 11/05/98 5:55p Dave
28 | * Big pass at reducing #includes
29 | *
30 | * 2 10/07/98 10:54a Dave
31 | * Initial checkin.
32 | *
33 | * 1 10/07/98 10:51a Dave
34 | *
35 | * 3 2/26/98 10:08p Hoffoss
36 | * Rewrote state saving and restoring to fix bugs and simplify the code.
37 | *
38 | * 2 8/10/97 6:16p Lawrance
39 | * split off swarm missile code into a separate file
40 | *
41 | * $NoKeywords: $
42 | */
43 |
44 |
45 | #ifndef __FREESPACE_SWARM_H__
46 | #define __FREESPACE_SWARM_H__
47 |
48 | #include "object.h"
49 | #include "cfile.h"
50 | #include "ship.h"
51 |
52 | #define SWARM_DEFAULT_NUM_MISSILES_FIRED 4 // number of swarm missiles that launch when fired
53 |
54 | void swarm_level_init();
55 | void swarm_delete(int index);
56 | int swarm_create();
57 | void swarm_update_direction(object *objp, float frametime);
58 | void swarm_maybe_fire_missile(int shipnum);
59 |
60 | int turret_swarm_create();
61 | void turret_swarm_delete(int i);
62 | void turret_swarm_set_up_info(int parent_objnum, ship_subsys *turret, int turret_weapon_class);
63 | void turret_swarm_check_validity();
64 |
65 | #endif /* __FREESPACE_SWARM_H__ */
--------------------------------------------------------------------------------
/code/pofview/ChildFrm.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // ChildFrm.cpp : implementation of the CChildFrame class
11 | //
12 |
13 | #include "stdafx.h"
14 | #include "PofView.h"
15 |
16 | #include "ChildFrm.h"
17 |
18 | #ifdef _DEBUG
19 | #define new DEBUG_NEW
20 | #undef THIS_FILE
21 | static char THIS_FILE[] = __FILE__;
22 | #endif
23 |
24 | /////////////////////////////////////////////////////////////////////////////
25 | // CChildFrame
26 |
27 | IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWnd)
28 |
29 | BEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWnd)
30 | //{{AFX_MSG_MAP(CChildFrame)
31 | // NOTE - the ClassWizard will add and remove mapping macros here.
32 | // DO NOT EDIT what you see in these blocks of generated code !
33 | //}}AFX_MSG_MAP
34 | END_MESSAGE_MAP()
35 |
36 | /////////////////////////////////////////////////////////////////////////////
37 | // CChildFrame construction/destruction
38 |
39 | CChildFrame::CChildFrame()
40 | {
41 | // TODO: add member initialization code here
42 |
43 | }
44 |
45 | CChildFrame::~CChildFrame()
46 | {
47 | }
48 |
49 |
50 | /////////////////////////////////////////////////////////////////////////////
51 | // CChildFrame diagnostics
52 |
53 | #ifdef _DEBUG
54 | void CChildFrame::AssertValid() const
55 | {
56 | CMDIChildWnd::AssertValid();
57 | }
58 |
59 | void CChildFrame::Dump(CDumpContext& dc) const
60 | {
61 | CMDIChildWnd::Dump(dc);
62 | }
63 |
64 | #endif //_DEBUG
65 |
66 | /////////////////////////////////////////////////////////////////////////////
67 | // CChildFrame message handlers
68 |
69 | BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
70 | {
71 | // TODO: Add your specialized code here and/or call the base class
72 |
73 | cs.cx = 640;
74 | cs.cy = 480;
75 |
76 | return CMDIChildWnd::PreCreateWindow(cs);
77 | }
78 |
--------------------------------------------------------------------------------
/code/pofview/ChildFrm.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // ChildFrm.h : interface of the CChildFrame class
11 | //
12 | /////////////////////////////////////////////////////////////////////////////
13 |
14 | class CChildFrame : public CMDIChildWnd
15 | {
16 | DECLARE_DYNCREATE(CChildFrame)
17 | public:
18 | CChildFrame();
19 |
20 | // Attributes
21 | public:
22 |
23 | // Operations
24 | public:
25 |
26 | // Overrides
27 | // ClassWizard generated virtual function overrides
28 | //{{AFX_VIRTUAL(CChildFrame)
29 | protected:
30 | virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
31 | //}}AFX_VIRTUAL
32 |
33 | // Implementation
34 | public:
35 | virtual ~CChildFrame();
36 | #ifdef _DEBUG
37 | virtual void AssertValid() const;
38 | virtual void Dump(CDumpContext& dc) const;
39 | #endif
40 |
41 | // Generated message map functions
42 | protected:
43 | //{{AFX_MSG(CChildFrame)
44 | // NOTE - the ClassWizard will add and remove member functions here.
45 | // DO NOT EDIT what you see in these blocks of generated code!
46 | //}}AFX_MSG
47 | DECLARE_MESSAGE_MAP()
48 | };
49 |
50 | /////////////////////////////////////////////////////////////////////////////
51 |
--------------------------------------------------------------------------------
/code/pofview/MainFrm.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // MainFrm.h : interface of the CMainFrame class
11 | //
12 | /////////////////////////////////////////////////////////////////////////////
13 |
14 | class CMainFrame : public CMDIFrameWnd
15 | {
16 | DECLARE_DYNAMIC(CMainFrame)
17 | public:
18 | CMainFrame();
19 |
20 | // Attributes
21 | public:
22 |
23 | // Operations
24 | public:
25 |
26 | // Overrides
27 | // ClassWizard generated virtual function overrides
28 | //{{AFX_VIRTUAL(CMainFrame)
29 | virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
30 | //}}AFX_VIRTUAL
31 |
32 | // Implementation
33 | public:
34 | virtual ~CMainFrame();
35 | #ifdef _DEBUG
36 | virtual void AssertValid() const;
37 | virtual void Dump(CDumpContext& dc) const;
38 | #endif
39 |
40 | protected: // control bar embedded members
41 | CStatusBar m_wndStatusBar;
42 | CToolBar m_wndToolBar;
43 |
44 | // Generated message map functions
45 | protected:
46 | //{{AFX_MSG(CMainFrame)
47 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
48 | // NOTE - the ClassWizard will add and remove member functions here.
49 | // DO NOT EDIT what you see in these blocks of generated code!
50 | //}}AFX_MSG
51 | DECLARE_MESSAGE_MAP()
52 | };
53 |
54 | /////////////////////////////////////////////////////////////////////////////
55 |
--------------------------------------------------------------------------------
/code/pofview/ObjectTree.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // ObjectTree.h : header file
11 | //
12 | #ifndef _OBJECTTREE_H
13 | #define _OBJECTTREE_H
14 |
15 | #include "model.h"
16 |
17 | /////////////////////////////////////////////////////////////////////////////
18 | // CObjectTree dialog
19 |
20 | class CObjectTree : public CDialog
21 | {
22 | // Construction
23 | public:
24 | char m_title[128];
25 |
26 | void MyCreate(void * pv);
27 | void add_model(polymodel *pm, int submodel, HTREEITEM parent );
28 | void ExpandAll();
29 | void CollapseAll();
30 |
31 | CObjectTree(CWnd* pParent = NULL); // standard constructor
32 |
33 | // Dialog Data
34 | //{{AFX_DATA(CObjectTree)
35 | enum { IDD = IDD_DIALOG1 };
36 | CStatic m_txt_pof_info;
37 | CStatic m_txt_detail6;
38 | CStatic m_txt_detail5;
39 | CStatic m_txt_detail4;
40 | CStatic m_txt_detail3;
41 | CStatic m_txt_detail1;
42 | CStatic m_txt_detail2;
43 | CStatic m_txt_bspgen_version;
44 | CStatic m_txt_movement_axis;
45 | CStatic m_txt_movement_type;
46 | CStatic m_txt_name;
47 | CStatic m_txt_num_polies;
48 | CStatic m_txt_num_verts;
49 | CTreeCtrl m_tree;
50 | //}}AFX_DATA
51 |
52 |
53 | void * m_pv;
54 |
55 |
56 | // Overrides
57 | // ClassWizard generated virtual function overrides
58 | //{{AFX_VIRTUAL(CObjectTree)
59 | protected:
60 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
61 | //}}AFX_VIRTUAL
62 |
63 | // Implementation
64 | protected:
65 |
66 | // Generated message map functions
67 | //{{AFX_MSG(CObjectTree)
68 | virtual BOOL OnInitDialog();
69 | afx_msg void OnSelchangedTree1(NMHDR* pNMHDR, LRESULT* pResult);
70 | //}}AFX_MSG
71 | DECLARE_MESSAGE_MAP()
72 | };
73 |
74 | #endif
75 |
--------------------------------------------------------------------------------
/code/pofview/PofView.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // PofView.h : main header file for the POFVIEW application
11 | //
12 |
13 | #ifndef _POFVIEW_H
14 | #define _POFVIEW_H
15 |
16 | #ifndef __AFXWIN_H__
17 | #error include 'stdafx.h' before including this file for PCH
18 | #endif
19 |
20 | #include "resource.h" // main symbols
21 |
22 | /////////////////////////////////////////////////////////////////////////////
23 | // CPofViewApp:
24 | // See PofView.cpp for the implementation of this class
25 | //
26 |
27 | extern float model_thrust;
28 | extern int model_afterburner;
29 |
30 | class CPofViewApp : public CWinApp
31 | {
32 | public:
33 | virtual BOOL OnIdle(LONG lCount);
34 | CPofViewApp();
35 |
36 |
37 | int m_timer;
38 |
39 | // Overrides
40 | // ClassWizard generated virtual function overrides
41 | //{{AFX_VIRTUAL(CPofViewApp)
42 | public:
43 | virtual BOOL InitInstance();
44 | virtual int ExitInstance();
45 | //}}AFX_VIRTUAL
46 |
47 | // Implementation
48 |
49 | //{{AFX_MSG(CPofViewApp)
50 | afx_msg void OnAppAbout();
51 | // NOTE - the ClassWizard will add and remove member functions here.
52 | // DO NOT EDIT what you see in these blocks of generated code !
53 | //}}AFX_MSG
54 | DECLARE_MESSAGE_MAP()
55 | };
56 |
57 |
58 | /////////////////////////////////////////////////////////////////////////////
59 | #endif
60 |
--------------------------------------------------------------------------------
/code/pofview/PofView.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/pofview/PofView.rc
--------------------------------------------------------------------------------
/code/pofview/PofViewDoc.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // PofViewDoc.h : interface of the CPofViewDoc class
11 | //
12 | /////////////////////////////////////////////////////////////////////////////
13 |
14 | class CPofViewDoc : public CDocument
15 | {
16 | protected: // create from serialization only
17 | CPofViewDoc();
18 | DECLARE_DYNCREATE(CPofViewDoc)
19 |
20 | // Attributes
21 | public:
22 | int m_model_num;
23 |
24 | // Operations
25 | public:
26 |
27 | // Overrides
28 | // ClassWizard generated virtual function overrides
29 | //{{AFX_VIRTUAL(CPofViewDoc)
30 | public:
31 | virtual BOOL OnNewDocument();
32 | virtual void Serialize(CArchive& ar);
33 | //}}AFX_VIRTUAL
34 |
35 | // Implementation
36 | public:
37 | virtual ~CPofViewDoc();
38 | #ifdef _DEBUG
39 | virtual void AssertValid() const;
40 | virtual void Dump(CDumpContext& dc) const;
41 | #endif
42 |
43 | protected:
44 |
45 | // Generated message map functions
46 | protected:
47 | //{{AFX_MSG(CPofViewDoc)
48 | // NOTE - the ClassWizard will add and remove member functions here.
49 | // DO NOT EDIT what you see in these blocks of generated code !
50 | //}}AFX_MSG
51 | DECLARE_MESSAGE_MAP()
52 | };
53 |
54 | /////////////////////////////////////////////////////////////////////////////
55 |
--------------------------------------------------------------------------------
/code/pofview/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // stdafx.cpp : source file that includes just the standard includes
11 | // PofView.pch will be the pre-compiled header
12 | // stdafx.obj will contain the pre-compiled type information
13 |
14 | #include "stdafx.h"
15 |
16 |
--------------------------------------------------------------------------------
/code/pofview/StdAfx.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) Volition, Inc. 1999. All rights reserved.
3 | *
4 | * All source code herein is the property of Volition, Inc. You may not sell
5 | * or otherwise commercially exploit the source or things you created based on the
6 | * source.
7 | *
8 | */
9 |
10 | // stdafx.h : include file for standard system include files,
11 | // or project specific include files that are used frequently, but
12 | // are changed infrequently
13 | //
14 |
15 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
16 |
17 | #include // MFC core and standard components
18 | #include // MFC extensions
19 | #ifndef _AFX_NO_AFXCMN_SUPPORT
20 | #include // MFC support for Windows Common Controls
21 | #endif // _AFX_NO_AFXCMN_SUPPORT
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/code/pofview/res/PofView.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/pofview/res/PofView.ico
--------------------------------------------------------------------------------
/code/pofview/res/PofView.rc2:
--------------------------------------------------------------------------------
1 | //
2 | // POFVIEW.RC2 - resources Microsoft Visual C++ does not edit directly
3 | //
4 |
5 | #ifdef APSTUDIO_INVOKED
6 | #error this file is not editable by Microsoft Visual C++
7 | #endif //APSTUDIO_INVOKED
8 |
9 |
10 | /////////////////////////////////////////////////////////////////////////////
11 | // Add manually edited resources here...
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 |
--------------------------------------------------------------------------------
/code/pofview/res/PofViewDoc.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/pofview/res/PofViewDoc.ico
--------------------------------------------------------------------------------
/code/pofview/res/Toolbar.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/code/pofview/res/Toolbar.bmp
--------------------------------------------------------------------------------
/freespace2.opt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/freespace2.opt
--------------------------------------------------------------------------------
/fs.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/videogamepreservation/freespace2/60787ca0068156211436f7716a1d1ee27c88048e/fs.log
--------------------------------------------------------------------------------
/interesting_stats.txt:
--------------------------------------------------------------------------------
1 | Copyright (C) Volition, Inc. 1999. All rights reserved.
2 |
3 | All source code herein is the property of Volition, Inc. You may not sell
4 | or otherwise commercially exploit the source or things you created based on the
5 | source.
6 |
7 | Counts for various words in the code
8 | ------------------------------------
9 |
10 | fixed : 2169
11 |
12 | bogus : 350
13 | hack : 157
14 | whee : 145
15 | cool : 76
16 | stupid : 57
17 | tweak : 43
18 | broken : 41
19 | dumb : 28
20 | fish : 25
21 | broke : 22
22 | nasty : 21
23 | yay : 21
24 | efficient : 20
25 | complex : 20
26 | ugly : 13
27 | nicely : 13
28 | great : 11
29 | silly : 9
30 | fixme : 9
31 | smart : 8
32 | ugh : 7
33 | confused : 6
34 | insane : 5
35 | whoops : 4
36 | awesome : 3
37 | fancy : 2
38 | horrible : 2
39 | brute force : 2
40 | sucks : 2
41 | hateful : 1
42 | speedy : 1
43 | badly : 1
44 | painful : 1
45 | intense : 1
46 |
47 | Total lines of source :
48 |
49 | .cpp files : 394,813
50 | .h files : 64,187
51 | total : 459,000
52 |
53 |
54 | Total lines of source, not counting comments :
55 |
56 | .cpp files : 287,553
57 | .h files : 36,163
58 | total : 323,716
--------------------------------------------------------------------------------
/release_log.txt:
--------------------------------------------------------------------------------
1 | Copyright (C) Volition, Inc. 1999. All rights reserved.
2 |
3 | All source code herein is the property of Volition, Inc. You may not sell
4 | or otherwise commercially exploit the source or things you created based on the
5 | source.
6 |
7 |
8 | 4/20/02 : Added very basic windowed D3D mode to help those who don't have access to 2 monitors
9 | for Glide debugging. Hooked it in as the -window commandline parameter.
10 |
11 | 4/21/02 : Removed updatelauncher, stamper, movieplayer, autorun, fs2launch projects.
12 | 4/21/02 : Added some stubs to Pofview to get it compiling.
13 | 4/21/02 : Added stubs to Nebedit to get it compiling. Added Nebedit_running to ensure software mode startup.
14 | 4/21/02 : Added stubs to fonttool to get it compiling.
15 | 4/21/02 : Added stubs to AC to get it compiling.
16 | 4/21/02 : Hacked out movieplayer and all references to it.
17 | 4/21/02 : Hacked out amd 3d-now specific stuff.
18 | 4/21/02 : Hacked out PXO code.
19 |
20 | 4/22/02 : Removed stamper stuff. Cleaned out remaining unused files.
21 | 4/22/02 : Final pass checking all builds.
22 |
23 | 4/24/02 : Added word statistics for "hack" and "fixme" at the request of jefff.
24 | 4/24/02 : Added more notes to guided_tour.txt
--------------------------------------------------------------------------------