Various include file cleanups

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3198 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2009-10-08 16:23:21 +00:00
parent 3c0b7d77ec
commit 6562296c7c
141 changed files with 446 additions and 224 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ case "$HOST_SYSTEM" in
uqm_NAME="$uqm_NAME.exe"
;;
esac
uqm_CFLAGS="$uqm_CFLAGS -Isrc -Isrc/sc2code -Isrc/sc2code/libs"
uqm_CFLAGS="$uqm_CFLAGS -Isrc -Isrc/sc2code"
if [ "$uqm_HAVE_REGEX" = 0 ]; then
uqm_CFLAGS="$uqm_CFLAGS -Isrc/regex"
fi
+28 -4
View File
@@ -44,7 +44,7 @@ RSC=rc.exe
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /I "." /I ".." /I "..\sc2code" /I "..\sc2code\libs" /I "..\sc2code\ships" /I "..\regex" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D _VW=320 /D _VH=240 /D "HAVE_OPENGL" /D "GFXMODULE_SDL" /D "THREADLIB_SDL" /D "HAVE_OPENAL" /D "HAVE_ZIP" /D "HAVE_JOYSTICK" /D "NETPLAY" /D "ZLIB_DLL" /D "USE_INTERNAL_MIKMOD" /D "USE_PLATFORM_ACCEL" /FD /c
# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /I ".." /I "..\sc2code" /I "..\regex" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D _VW=320 /D _VH=240 /D "HAVE_OPENGL" /D "GFXMODULE_SDL" /D "THREADLIB_SDL" /D "HAVE_OPENAL" /D "HAVE_ZIP" /D "HAVE_JOYSTICK" /D "NETPLAY" /D "ZLIB_DLL" /D "USE_INTERNAL_MIKMOD" /D "USE_PLATFORM_ACCEL" /FD /c
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
@@ -74,7 +74,7 @@ PostBuild_Cmds=rebase -b 0x400000 -x . "../../uqm.exe"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "." /I ".." /I "..\sc2code" /I "..\sc2code\libs" /I "..\sc2code\ships" /I "..\regex" /D "DEBUG" /D "_DEBUG" /D "DEBUG_TRACK_SEM" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D _VW=320 /D _VH=240 /D "HAVE_OPENGL" /D "GFXMODULE_SDL" /D "THREADLIB_SDL" /D "HAVE_OPENAL" /D "HAVE_ZIP" /D "HAVE_JOYSTICK" /D "NETPLAY" /D "ZLIB_DLL" /D "USE_INTERNAL_MIKMOD" /D "USE_PLATFORM_ACCEL" /FR /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I ".." /I "..\sc2code" /I "..\regex" /D "DEBUG" /D "_DEBUG" /D "DEBUG_TRACK_SEM" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D _VW=320 /D _VH=240 /D "HAVE_OPENGL" /D "GFXMODULE_SDL" /D "THREADLIB_SDL" /D "HAVE_OPENAL" /D "HAVE_ZIP" /D "HAVE_JOYSTICK" /D "NETPLAY" /D "ZLIB_DLL" /D "USE_INTERNAL_MIKMOD" /D "USE_PLATFORM_ACCEL" /FR /FD /GZ /c
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
@@ -102,7 +102,7 @@ LINK32=link.exe
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /I "." /I ".." /I "..\sc2code" /I "..\sc2code\libs" /I "..\sc2code\ships" /I "..\regex" /D "DEBUG" /D "_DEBUG" /D "DEBUG_TRACK_SEM" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D _VW=320 /D _VH=240 /D "HAVE_OPENGL" /D "GFXMODULE_SDL" /D "THREADLIB_SDL" /D "HAVE_OPENAL" /D "HAVE_ZIP" /D "ZLIB_DLL" /D "USE_PLATFORM_ACCEL" /FR /FD /GZ /c
# SUBTRACT BASE CPP /YX
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "." /I ".." /I "..\sc2code" /I "..\sc2code\libs" /I "..\sc2code\ships" /I "..\regex" /D "DEBUG" /D "_DEBUG" /D "DEBUG_TRACK_SEM" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D _VW=320 /D _VH=240 /D "HAVE_OPENGL" /D "GFXMODULE_SDL" /D "THREADLIB_SDL" /D "HAVE_OPENAL" /D "HAVE_ZIP" /D "HAVE_JOYSTICK" /D "NETPLAY" /D "ZLIB_DLL" /D "USE_INTERNAL_MIKMOD" /FR /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I ".." /I "..\sc2code" /I "..\regex" /D "DEBUG" /D "_DEBUG" /D "DEBUG_TRACK_SEM" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D _VW=320 /D _VH=240 /D "HAVE_OPENGL" /D "GFXMODULE_SDL" /D "THREADLIB_SDL" /D "HAVE_OPENAL" /D "HAVE_ZIP" /D "HAVE_JOYSTICK" /D "NETPLAY" /D "ZLIB_DLL" /D "USE_INTERNAL_MIKMOD" /FR /FD /GZ /c
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
@@ -130,7 +130,7 @@ LINK32=link.exe
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MD /W3 /GX /Zi /O2 /I "." /I ".." /I "..\sc2code" /I "..\sc2code\libs" /I "..\sc2code\ships" /I "..\regex" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D _VW=320 /D _VH=240 /D "HAVE_OPENGL" /D "GFXMODULE_SDL" /D "THREADLIB_SDL" /D "HAVE_OPENAL" /D "HAVE_ZIP" /D "ZLIB_DLL" /D "USE_PLATFORM_ACCEL" /FD /c
# SUBTRACT BASE CPP /YX
# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /I "." /I ".." /I "..\sc2code" /I "..\sc2code\libs" /I "..\sc2code\ships" /I "..\regex" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D _VW=320 /D _VH=240 /D "HAVE_OPENGL" /D "GFXMODULE_SDL" /D "THREADLIB_SDL" /D "HAVE_OPENAL" /D "HAVE_ZIP" /D "HAVE_JOYSTICK" /D "NETPLAY" /D "ZLIB_DLL" /D "USE_INTERNAL_MIKMOD" /FR /FD /c
# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /I ".." /I "..\sc2code" /I "..\regex" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D _VW=320 /D _VH=240 /D "HAVE_OPENGL" /D "GFXMODULE_SDL" /D "THREADLIB_SDL" /D "HAVE_OPENAL" /D "HAVE_ZIP" /D "HAVE_JOYSTICK" /D "NETPLAY" /D "ZLIB_DLL" /D "USE_INTERNAL_MIKMOD" /FR /FD /c
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
@@ -331,6 +331,10 @@ SOURCE=..\sc2code\libs\graphics\sdl\dcqueue.c
# End Source File
# Begin Source File
SOURCE=..\sc2code\libs\graphics\sdl\dcqueue.h
# End Source File
# Begin Source File
SOURCE=..\sc2code\libs\graphics\sdl\hq2x.c
# End Source File
# Begin Source File
@@ -4116,6 +4120,10 @@ SOURCE=..\sc2code\ipdisp.c
# End Source File
# Begin Source File
SOURCE=..\sc2code\ipdisp.h
# End Source File
# Begin Source File
SOURCE=..\sc2code\ires_ind.h
# End Source File
# Begin Source File
@@ -4200,6 +4208,10 @@ SOURCE=..\sc2code\pickship.c
# End Source File
# Begin Source File
SOURCE=..\sc2code\pickship.h
# End Source File
# Begin Source File
SOURCE=..\sc2code\plandata.c
# End Source File
# Begin Source File
@@ -4208,6 +4220,10 @@ SOURCE=..\sc2code\process.c
# End Source File
# Begin Source File
SOURCE=..\sc2code\process.h
# End Source File
# Begin Source File
SOURCE=..\sc2code\races.h
# End Source File
# Begin Source File
@@ -4268,6 +4284,10 @@ SOURCE=..\sc2code\ship.c
# End Source File
# Begin Source File
SOURCE=..\sc2code\ship.h
# End Source File
# Begin Source File
SOURCE=..\sc2code\shipcont.h
# End Source File
# Begin Source File
@@ -4328,6 +4348,10 @@ SOURCE=..\sc2code\status.c
# End Source File
# Begin Source File
SOURCE=..\sc2code\status.h
# End Source File
# Begin Source File
SOURCE=..\sc2code\tactrans.c
# End Source File
# Begin Source File
+1 -1
View File
@@ -23,7 +23,7 @@
#include "port.h"
#include "libs/graphics/gfx_common.h"
#include "file.h"
#include "libs/file.h"
#include "config.h"
#include "libs/compiler.h"
#include "libs/uio.h"
+5 -3
View File
@@ -21,6 +21,11 @@
#include "battlecontrols.h"
#include "controls.h"
#include "init.h"
#include "element.h"
#include "ship.h"
#include "process.h"
#include "tactrans.h"
// for flee_preprocess()
#include "intel.h"
#ifdef NETPLAY
# include "netplay/netmelee.h"
@@ -39,7 +44,6 @@
#include "libs/mathlib.h"
QUEUE disp_q;
BYTE battle_counter[NUM_SIDES];
// The number of ships still available for battle to each side.
// A ship that has warped out is no longer available.
@@ -81,8 +85,6 @@ DoRunAway (STARSHIP *StarShipPtr)
&& ElementPtr->mass_points != MAX_SHIP_MASS * 10
&& !(ElementPtr->state_flags & APPEARING))
{
extern void flee_preprocess (ELEMENT *);
battle_counter[0]--;
ElementPtr->turn_wait = 3;
+5 -8
View File
@@ -23,8 +23,6 @@
typedef DWORD BattleFrameCounter;
#endif
#include "displist.h"
// for QUEUE
#include "init.h"
// For NUM_SIDES
@@ -35,11 +33,6 @@ typedef struct battlestate_struct {
DWORD NextTime;
} BATTLE_STATE;
extern QUEUE disp_q;
// The maximum number of elements is chosen to provide a slight margin.
// Currently, it is maximum *known used* in Melee + 30
#define MAX_DISPLAY_ELEMENTS 150
extern BYTE battle_counter[NUM_SIDES];
extern BOOLEAN instantVictory;
#if defined (NETPLAY)
@@ -54,5 +47,9 @@ COUNT GetPlayerOrder (COUNT i);
BOOLEAN Battle (void);
#endif /* _BATTLE_H */
#define BATTLE_FRAME_RATE (ONE_SECOND / 24)
extern void BattleSong (BOOLEAN DoPlay);
extern void FreeBattleSong (void);
#endif /* _BATTLE_H */
-16
View File
@@ -23,13 +23,6 @@
#include "displist.h"
#include "libs/compiler.h"
#define CREW_XOFFS 4
#define ENERGY_XOFFS 52
#define GAUGE_YOFFS (SHIP_INFO_HEIGHT - 10)
#define UNIT_WIDTH 2
#define UNIT_HEIGHT 1
#define STAT_WIDTH (1 + UNIT_WIDTH + 1 + UNIT_WIDTH + 1)
#define NAME_OFFSET 5
#define NUM_CAPTAINS_NAMES 16
@@ -67,14 +60,5 @@ extern RACE_DESC *load_ship (SPECIES_ID SpeciesID, BOOLEAN LoadBattleData);
extern void free_ship (RACE_DESC *RaceDescPtr, BOOLEAN FreeIconData,
BOOLEAN FreeBattleData);
extern void DrawCrewFuelString (COORD y, SIZE state);
extern void ClearShipStatus (COORD y);
extern void OutlineShipStatus (COORD y);
extern void InitShipStatus (SHIP_INFO *ShipInfoPtr, BYTE captains_name_index,
RECT *pClipRect);
extern void DeltaStatistics (SHIP_INFO *ShipInfoPtr, SIZE crew_delta,
SIZE energy_delta);
extern void DrawBattleCrewAmount (SHIP_INFO *ShipInfoPtr);
#endif /* _BUILD_H */
+2 -2
View File
@@ -16,12 +16,12 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "battle.h"
#include "master.h"
#include "nameref.h"
#include "reslib.h"
#include "libs/reslib.h"
#include "gamestr.h"
#include "init.h"
#include "element.h"
#include "hyper.h"
#include "planets/lander.h"
#include "starcon.h"
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef _CODERES_H
#define _CODERES_H
#include "reslib.h"
#include "libs/reslib.h"
extern BOOLEAN InstallCodeResType (void);
extern void *LoadCodeResInstance (RESOURCE res);
+1 -1
View File
@@ -21,7 +21,7 @@
#include "comm.h"
#include "commglue.h"
#include "encount.h"
#include "reslib.h"
#include "libs/reslib.h"
#endif /* _COMMALL_H */
+2 -2
View File
@@ -17,8 +17,8 @@
#ifndef CONS_RES_H_
#define CONS_RES_H_
#include "gfxlib.h"
#include "sndlib.h"
#include "libs/gfxlib.h"
#include "libs/sndlib.h"
void load_gravity_well (BYTE selector);
void free_gravity_well (void);
+1 -1
View File
@@ -147,7 +147,7 @@ typedef struct textentry_state
} TEXTENTRY_STATE;
BOOLEAN DoTextEntry (TEXTENTRY_STATE *pTES);
extern BOOLEAN DoTextEntry (TEXTENTRY_STATE *pTES);
#endif
+1 -1
View File
@@ -16,10 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "battle.h"
#include "colors.h"
#include "collide.h"
#include "element.h"
#include "ship.h"
#include "globdata.h"
#include "intel.h"
#include "setup.h"
+2 -1
View File
@@ -17,7 +17,8 @@
*/
#include "demo.h"
#include "declib.h"
#include "libs/declib.h"
#include "setup.h"
#if DEMO_MODE || CREATE_JOURNAL
static DECODE_REF journal_fh;
+2 -2
View File
@@ -21,8 +21,8 @@
#include <assert.h>
#include "port.h"
#include "compiler.h"
#include "misc.h"
#include "libs/compiler.h"
#include "libs/misc.h"
// Note that we MUST use the QUEUE_TABLE variant at this time, because
// certain gameplay elements depend on it. Namely, the maximum number
+6 -55
View File
@@ -19,25 +19,11 @@
#ifndef _ELEMENT_H
#define _ELEMENT_H
#include "battle.h"
#include "displist.h"
#include "units.h"
#include "velocity.h"
#include "libs/gfxlib.h"
#define BATTLE_FRAME_RATE (ONE_SECOND / 24)
#define SHIP_INFO_HEIGHT 65
#define CAPTAIN_XOFFS 4
#define CAPTAIN_YOFFS (SHIP_INFO_HEIGHT + 4)
#define SHIP_STATUS_HEIGHT (STATUS_HEIGHT >> 1)
#define BAD_GUY_YOFFS 0
#define GOOD_GUY_YOFFS SHIP_STATUS_HEIGHT
#define STARCON_TEXT_HEIGHT 7
#define TINY_TEXT_HEIGHT 9
#define BATTLE_CREW_X 10
#define BATTLE_CREW_Y (64 - SAFE_Y)
#define NORMAL_LIFE 1
@@ -157,6 +143,11 @@ struct element
HELEMENT hTarget;
};
extern QUEUE disp_q;
// The maximum number of elements is chosen to provide a slight margin.
// Currently, it is maximum *known used* in Melee + 30
#define MAX_DISPLAY_ELEMENTS 150
#define MAX_DISPLAY_PRIMS 330
extern COUNT DisplayFreeList;
extern PRIMITIVE DisplayArray[MAX_DISPLAY_PRIMS];
@@ -200,19 +191,10 @@ extern void FreeElement (HELEMENT hElement);
#define GetSuccElement(l) _GetSuccLink (l)
extern void RemoveElement (HLINK hLink);
extern void RedrawQueue (BOOLEAN clear);
extern BOOLEAN DeltaEnergy (ELEMENT *ElementPtr, SIZE energy_delta);
extern BOOLEAN DeltaCrew (ELEMENT *ElementPtr, SIZE crew_delta);
extern void PreProcessStatus (ELEMENT *ShipPtr);
extern void PostProcessStatus (ELEMENT *ShipPtr);
// XXX: The following functions should not really be here
extern void spawn_planet (void);
extern void spawn_asteroid (ELEMENT *ElementPtr);
extern void animation_preprocess (ELEMENT *ElementPtr);
extern void do_damage (ELEMENT *ElementPtr, SIZE damage);
extern void collision (ELEMENT *ElementPtr0, POINT *pPt0,
ELEMENT *ElementPtr1, POINT *pPt1);
extern void crew_preprocess (ELEMENT *ElementPtr);
extern void crew_collision (ELEMENT *ElementPtr0, POINT *pPt0,
ELEMENT *ElementPtr1, POINT *pPt1);
@@ -221,42 +203,11 @@ extern void AbandonShip (ELEMENT *ShipPtr, ELEMENT *TargetPtr,
extern BOOLEAN TimeSpaceMatterConflict (ELEMENT *ElementPtr);
extern COUNT PlotIntercept (ELEMENT *ElementPtr0,
ELEMENT *ElementPtr1, COUNT max_turns, COUNT margin_of_error);
extern BOOLEAN LoadKernel (int argc, char *argv[]);
extern void FreeKernel (void);
extern void InitDisplayList (void);
extern void InitGalaxy (void);
extern void MoveGalaxy (VIEW_STATE view_state, SIZE dx, SIZE dy);
extern void ship_preprocess (ELEMENT *ElementPtr);
extern void ship_postprocess (ELEMENT *ElementPtr);
extern void ship_death (ELEMENT *ShipPtr);
extern BOOLEAN hyper_transition (ELEMENT *ElementPtr);
extern BOOLEAN CalculateGravity (ELEMENT *ElementPtr);
extern void SetUpElement (ELEMENT *ElementPtr);
extern void BattleSong (BOOLEAN DoPlay);
extern void FreeBattleSong (void);
extern void InsertPrim (PRIM_LINKS *pLinks, COUNT primIndex, COUNT iPI);
typedef UWORD STATUS_FLAGS;
/* STATUS_FLAGS - heat of battle specific flags */
#define LEFT (1 << 0)
#define RIGHT (1 << 1)
#define THRUST (1 << 2)
#define WEAPON (1 << 3)
#define SPECIAL (1 << 4)
#define LOW_ON_ENERGY (1 << 5)
#define SHIP_BEYOND_MAX_SPEED (1 << 6)
#define SHIP_AT_MAX_SPEED (1 << 7)
#define SHIP_IN_GRAVITY_WELL (1 << 8)
#define PLAY_VICTORY_DITTY (1 << 9)
extern STATUS_FLAGS inertial_thrust (ELEMENT *ElementPtr);
#endif /* _ELEMENT_H */
+1
View File
@@ -28,6 +28,7 @@
#include "gamestr.h"
#include "globdata.h"
#include "init.h"
#include "pickship.h"
#include "intel.h"
#include "nameref.h"
#include "resinst.h"
+1 -1
View File
@@ -26,7 +26,7 @@
#include "nameref.h"
#include "settings.h"
#include "setup.h"
#include "vidlib.h"
#include "libs/vidlib.h"
#include "libs/graphics/gfx_common.h"
#include "libs/inplib.h"
+1
View File
@@ -21,6 +21,7 @@
#include "element.h"
#include "globdata.h"
#include "init.h"
#include "process.h"
#include "units.h"
#include "options.h"
#include "libs/compiler.h"
+1 -1
View File
@@ -25,7 +25,7 @@
#include "encount.h"
#include "planets/lander.h"
#include "gamestr.h"
#include "inplib.h"
#include "libs/inplib.h"
#include "load.h"
#include "options.h"
#include "save.h"
+1 -1
View File
@@ -16,7 +16,7 @@
#ifndef _GAMEOPT_H
#define _GAMEOPT_H
#include "compiler.h"
#include "libs/compiler.h"
#include "libs/gfxlib.h"
extern void ConfirmSaveLoad (STAMP *MsgStamp);
+1 -1
View File
@@ -18,7 +18,7 @@
#include "build.h"
#include "encount.h"
#include "file.h"
#include "libs/file.h"
#include "globdata.h"
#include "intel.h"
#include "sis.h"
+2
View File
@@ -23,6 +23,8 @@
#include "colors.h"
#include "controls.h"
#include "encount.h"
#include "ship.h"
#include "process.h"
#include "globdata.h"
#include "init.h"
#include "nameref.h"
+2
View File
@@ -19,9 +19,11 @@
#ifndef _HYPER_H
#define _HYPER_H
#include "element.h"
extern void FreeHyperData (void);
extern void check_hyperspace_encounter (void);
extern BOOLEAN hyper_transition (ELEMENT *ElementPtr);
#endif /* _HYPER_H */
+5 -2
View File
@@ -19,12 +19,16 @@
#include "build.h"
#include "colors.h"
#include "cons_res.h"
#include "races.h"
#include "element.h"
#include "tactrans.h"
#include "pickship.h"
#include "process.h"
#include "globdata.h"
#include "init.h"
#include "port.h"
#include "resinst.h"
#include "reslib.h"
#include "libs/reslib.h"
#include "nameref.h"
#include "setup.h"
#include "units.h"
@@ -281,7 +285,6 @@ UninitShips (void)
hElement != 0; hElement = hNextElement)
{
ELEMENT *ElementPtr;
extern void new_ship (ELEMENT *ElementPtr);
LockElement (hElement, &ElementPtr);
hNextElement = GetSuccElement (ElementPtr);
+5
View File
@@ -18,6 +18,7 @@
#define _INIT_H
#include "libs/gfxlib.h"
#include "libs/reslib.h"
#define NUM_PLAYERS 2
#define NUM_SIDES 2
@@ -30,5 +31,9 @@ extern void UninitSpace (void);
extern SIZE InitShips (void);
extern void UninitShips (void);
extern BOOLEAN load_animation (FRAME *pixarray, RESOURCE big_res,
RESOURCE med_res, RESOURCE sml_res);
extern BOOLEAN free_image (FRAME *pixarray);
#endif /* _INIT_H */
+3
View File
@@ -16,10 +16,13 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "ipdisp.h"
#include "collide.h"
#include "globdata.h"
#include "init.h"
#include "races.h"
#include "process.h"
#include "grpinfo.h"
#include "encount.h"
#include "libs/mathlib.h"
+25
View File
@@ -0,0 +1,25 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef UQM_IPDISP_H_INCL_
#define UQM_IPDISP_H_INCL_
#include "libs/compiler.h"
extern void NotifyOthers (COUNT which_race, BYTE target_loc);
extern void DoMissions (void);
#endif /* UQM_IPDISP_H_INCL_ */
+1 -1
View File
@@ -29,7 +29,7 @@
#include <string.h>
#include <ctype.h>
#include "libs/decomp/lzh.h"
#include "reslib.h"
#include "libs/reslib.h"
PLZHCODE_DESC _lpCurCodeDesc;
STREAM_TYPE _StreamType;
+1 -1
View File
@@ -26,7 +26,7 @@
#include <stdio.h>
#include "lzh.h"
#include "reslib.h"
#include "libs/reslib.h"
static UWORD match_position, match_length;
static SWORD *lson;
+2 -2
View File
@@ -19,8 +19,8 @@
#ifndef _LZH_H
#define _LZH_H
#include "declib.h"
#include "misc.h"
#include "libs/declib.h"
#include "libs/misc.h"
/* LZSS Parameters */
+2 -2
View File
@@ -25,8 +25,8 @@
#include "port.h"
#include "config.h"
#include "filintrn.h"
#include "compiler.h"
#include "misc.h"
#include "libs/compiler.h"
#include "libs/misc.h"
#include "libs/log.h"
#ifdef HAVE_DRIVE_LETTERS
+2 -2
View File
@@ -22,11 +22,11 @@
#include <sys/stat.h>
#include <fcntl.h>
#include "port.h"
#include "uio.h"
#include "libs/uio.h"
#include "config.h"
#include "types.h"
#include "filintrn.h"
#include "misc.h"
#include "libs/misc.h"
#include "libs/log.h"
static int copyError(uio_Handle *srcHandle, uio_Handle *dstHandle,
+2 -2
View File
@@ -19,8 +19,8 @@
#ifndef _GFXLIB_H
#define _GFXLIB_H
#include "compiler.h"
#include "reslib.h"
#include "libs/compiler.h"
#include "libs/reslib.h"
typedef struct context_desc CONTEXT_DESC;
typedef struct frame_desc FRAME_DESC;
+1 -1
View File
@@ -17,7 +17,7 @@
*/
#include "gfxintrn.h"
#include "misc.h"
#include "libs/misc.h"
#include "tfb_draw.h"
#include "units.h"
#include "libs/mathlib.h"
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef DRAWCMD_H
#define DRAWCMD_H
#include "graphics/tfb_draw.h"
#include "libs/graphics/tfb_draw.h"
enum
{
-1
View File
@@ -17,7 +17,6 @@
*/
#include "gfxintrn.h"
#include "declib.h"
#include "gfx_common.h"
#include "tfb_draw.h"
#include "tfb_prim.h"
+2 -2
View File
@@ -22,8 +22,8 @@
#include <stdio.h>
#include <string.h>
#include "gfxlib.h"
#include "reslib.h"
#include "libs/gfxlib.h"
#include "libs/reslib.h"
#include "context.h"
#include "drawable.h"
#include "font.h"
+1 -1
View File
@@ -19,7 +19,7 @@
#ifdef GFXMODULE_SDL
#include "sdl_common.h"
#include "graphics/tfb_draw.h"
#include "libs/graphics/tfb_draw.h"
#include "libs/log.h"
static void
@@ -23,8 +23,8 @@
#include "opengl.h"
#include "primitives.h"
#include "units.h"
#include "graphics/drawcmd.h"
#include "graphics/tfb_draw.h"
#include "libs/graphics/drawcmd.h"
#include "libs/graphics/tfb_draw.h"
int batch_depth = 0;
+3 -3
View File
@@ -14,9 +14,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "gfxlib.h"
#include "graphics/tfb_draw.h"
#include "graphics/gfx_common.h"
#include "libs/gfxlib.h"
#include "libs/graphics/tfb_draw.h"
#include "libs/graphics/gfx_common.h"
#ifndef _BBOX_H_
#define _BBOX_H_
+1 -1
View File
@@ -13,7 +13,7 @@
#include <stdlib.h>
#include <string.h>
#include "misc.h"
#include "libs/misc.h"
#include "port.h"
#include "rotozoom.h"
@@ -32,7 +32,7 @@
#include "libs/uio.h"
#include "libs/log.h"
#include "controls.h"
#include "vidlib.h"
#include "libs/vidlib.h"
// XXX: Should not be included from here.
#include "uqmdebug.h"
#include SDL_INCLUDE(SDL_thread.h)
+1 -1
View File
@@ -40,7 +40,7 @@ typedef struct tfb_palette
UBYTE unused;
} TFB_Palette;
#include "graphics/gfx_common.h"
#include "libs/graphics/gfx_common.h"
#include "cmap.h"
typedef struct tfb_image
+1 -1
View File
@@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "gfxlib.h"
#include "libs/gfxlib.h"
#include "tfb_draw.h"
+3 -3
View File
@@ -14,10 +14,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "graphics/gfx_common.h"
#include "graphics/widgets.h"
#include "gfx_common.h"
#include "widgets.h"
#include "colors.h"
#include "strlib.h"
#include "libs/strlib.h"
#include "setup.h"
#include "units.h"
+1 -1
View File
@@ -20,7 +20,7 @@
#define _INPLIB_H
#include <stddef.h>
#include "compiler.h"
#include "libs/compiler.h"
#include "libs/uio.h"
typedef DWORD INPUT_STATE;
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef _INPINTRN_H
#define _INPINTRN_H
#include "inplib.h"
#include "libs/inplib.h"
#endif /* _INPINTRN_H */
+1 -1
View File
@@ -24,7 +24,7 @@
#include "libs/input/input_common.h"
#include "libs/input/sdl/vcontrol.h"
#include "libs/input/sdl/keynames.h"
#include "misc.h"
#include "libs/misc.h"
#include "controls.h"
#include "libs/file.h"
#include "libs/log.h"
+1 -1
View File
@@ -20,7 +20,7 @@
#include <string.h>
#include <ctype.h>
#include "vcontrol.h"
#include "misc.h"
#include "libs/misc.h"
#include "keynames.h"
#include "libs/log.h"
#include "libs/reslib.h"
+1 -1
View File
@@ -25,7 +25,7 @@
# include "list.h"
#endif
#include "misc.h"
#include "libs/misc.h"
#define malloc HMalloc
#define free HFree
#define realloc HRealloc
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef _MTHINTRN_H
#define _MTHINTRN_H
#include "mathlib.h"
#include "libs/mathlib.h"
#endif /* _MTHINTRN_H */
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef _MATHLIB_H
#define _MATHLIB_H
#include "compiler.h"
#include "libs/compiler.h"
#include "math/random.h"
extern COUNT square_root (DWORD value);
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef _MEMLIB_H
#define _MEMLIB_H
#include "compiler.h"
#include "libs/compiler.h"
extern BOOLEAN mem_init (void);
extern BOOLEAN mem_uninit (void);
+1 -1
View File
@@ -24,7 +24,7 @@
//#include "tool.h"
//#include "utils.h"
//#include "pcwin.h"
#include "compiler.h"
#include "libs/compiler.h"
#ifdef LEGACY_HANDLE_ALLOCATOR
#include "libs/threadlib.h"
#endif
+3 -2
View File
@@ -20,9 +20,9 @@
#define _RESLIB_H
//#include <stdio.h>
#include "compiler.h"
#include "libs/compiler.h"
#include "port.h"
#include "misc.h"
#include "libs/misc.h"
#include "libs/uio.h"
typedef struct resource_index_desc RESOURCE_INDEX_DESC;
@@ -59,6 +59,7 @@ long LengthResFile (uio_Stream *fp);
BOOLEAN res_CloseResFile (uio_Stream *fp);
BOOLEAN DeleteResFile (uio_DirHandle *dir, const char *filename);
RESOURCE_INDEX InitResourceSystem (void);
void UninitResourceSystem (void);
BOOLEAN InstallResTypeVectors (const char *res_type, ResourceLoadFun *loadFun, ResourceFreeFun *freeFun, ResourceStringFun *stringFun);
void *res_GetResource (RESOURCE res);
+1 -1
View File
@@ -17,7 +17,7 @@
*/
#include "libs/strings/strintrn.h"
#include "misc.h"
#include "libs/misc.h"
#include "port.h"
#include "libs/uio.h"
#include <sys/stat.h>
+1 -1
View File
@@ -20,7 +20,7 @@
#define _INDEX_H
#include <stdio.h>
#include "reslib.h"
#include "libs/reslib.h"
#include "libs/uio/charhashtable.h"
typedef struct resource_handlers
+1 -1
View File
@@ -17,7 +17,7 @@
*/
#include "resintrn.h"
#include "declib.h"
#include "libs/declib.h"
void *
GetResourceData (uio_Stream *fp, DWORD length)
+1 -1
View File
@@ -21,7 +21,7 @@
#include <ctype.h>
#include "libs/log.h"
#include "propfile.h"
#include "reslib.h"
#include "libs/reslib.h"
void
PropFile_from_string (char *d, PROPERTY_HANDLER handler, const char *prefix)
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef PROPFILE_H_
#define PROPFILE_H_
#include "uio.h"
#include "libs/uio.h"
typedef void (*PROPERTY_HANDLER) (const char *, const char *);
+1 -1
View File
@@ -17,7 +17,7 @@
*/
#include "resintrn.h"
#include "misc.h"
#include "libs/misc.h"
#include "options.h"
#include "nameref.h"
#include "types.h"
+1 -1
View File
@@ -20,7 +20,7 @@
#define _RESINTRN_H
#include <string.h>
#include "reslib.h"
#include "libs/reslib.h"
#include "index.h"
ResourceDesc *lookupResourceDesc (RESOURCE_INDEX idx, RESOURCE res);
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef _SNDLIB_H
#define _SNDLIB_H
#include "strlib.h"
#include "libs/strlib.h"
typedef STRING_TABLE SOUND_REF;
typedef STRING SOUND;
@@ -31,7 +31,7 @@
#include <string.h>
#include "port.h"
#include "types.h"
#include "uio.h"
#include "libs/uio.h"
#include "endian_uqm.h"
#include "libs/misc.h"
#include "libs/log.h"
@@ -23,7 +23,7 @@
#include "port.h"
#include "types.h"
#include "uio.h"
#include "libs/uio.h"
#ifndef OVCODEC_NONE
# ifdef _MSC_VER
+1 -1
View File
@@ -23,7 +23,7 @@
#include "libs/misc.h"
#include "port.h"
#include "types.h"
#include "uio.h"
#include "libs/uio.h"
#include "dukaud.h"
#include "decoder.h"
#include "endian_uqm.h"
+1 -1
View File
@@ -24,7 +24,7 @@
#include "port.h"
#include "types.h"
#include "endian_uqm.h"
#include "uio.h"
#include "libs/uio.h"
#include "decoder.h"
#include "libs/sound/audiocore.h"
#include "libs/log.h"
+1 -1
View File
@@ -24,7 +24,7 @@
#include "libs/log.h"
#include "port.h"
#include "types.h"
#include "uio.h"
#include "libs/uio.h"
#include "decoder.h"
#ifdef OVCODEC_TREMOR
# include <tremor/ivorbiscodec.h>
+1 -1
View File
@@ -22,7 +22,7 @@
#include <errno.h>
#include "port.h"
#include "types.h"
#include "uio.h"
#include "libs/uio.h"
#include "endian_uqm.h"
#include "libs/misc.h"
#include "libs/log.h"
+1 -1
View File
@@ -18,7 +18,7 @@
#include "sndintrn.h"
#include "options.h"
#include "reslib.h"
#include "libs/reslib.h"
#include <string.h>
+1 -1
View File
@@ -15,7 +15,7 @@
*/
#include <string.h>
#include "file.h"
#include "libs/file.h"
#include "options.h"
#include "sound.h"
#include "libs/reslib.h"
+2 -2
View File
@@ -20,8 +20,8 @@
#define _SNDINTRN_H
#include <stdio.h>
#include "sndlib.h"
#include "reslib.h"
#include "libs/sndlib.h"
#include "libs/reslib.h"
extern void *_GetMusicData (uio_Stream *fp, DWORD length);
extern BOOLEAN _ReleaseMusicData (void *handle);
+1 -1
View File
@@ -17,7 +17,7 @@
#ifndef _UQM_SOUND_H // try avoiding collisions on id
#define _UQM_SOUND_H
#include "misc.h"
#include "libs/misc.h"
#include "sndintrn.h"
#include "audiocore.h"
#include "decoders/decoder.h"
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef TRACKPLAYER_H
#define TRACKPLAYER_H
#include "compiler.h"
#include "libs/compiler.h"
typedef void (*TFB_TrackCB) (void);
+1 -1
View File
@@ -18,7 +18,7 @@
#include "port.h"
#include "strintrn.h"
#include "uio.h"
#include "libs/uio.h"
#include "libs/reslib.h"
+1 -1
View File
@@ -17,7 +17,7 @@
*/
#include "strintrn.h"
#include "misc.h"
#include "libs/misc.h"
STRING_TABLE
AllocStringTable (int num_entries, int flags)
+2 -2
View File
@@ -21,8 +21,8 @@
#include <stdio.h>
#include <string.h>
#include "strlib.h"
#include "reslib.h"
#include "libs/strlib.h"
#include "libs/reslib.h"
struct string_table_entry
{
+1 -1
View File
@@ -20,7 +20,7 @@
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include "strlib.h"
#include "libs/strlib.h"
#include "libs/log.h"
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef _STRLIB_H
#define _STRLIB_H
#include "compiler.h"
#include "libs/compiler.h"
#include "port.h"
#include "libs/uio.h"
@@ -15,7 +15,7 @@
*/
#include <stdlib.h>
#include "misc.h"
#include "libs/misc.h"
#include "sdlthreads.h"
#ifdef PROFILE_THREADS
#include <signal.h>
+1 -1
View File
@@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "vidlib.h"
#include "libs/vidlib.h"
#include "video.h"
VIDEO_REF
+2 -2
View File
@@ -18,8 +18,8 @@
#define _UQM_VIDEO_H
#include "options.h"
#include "misc.h"
#include "vidlib.h"
#include "libs/misc.h"
#include "libs/vidlib.h"
#include "libs/graphics/tfb_draw.h"
#include "types.h"
#include "videodec.h"
+2 -2
View File
@@ -17,9 +17,9 @@
#ifndef _VIDEODEC_H
#define _VIDEODEC_H
#include "vidlib.h"
#include "libs/vidlib.h"
#include "libs/video/video.h"
#include "reslib.h"
#include "libs/reslib.h"
// forward-declare
typedef struct tfb_videodecoder TFB_VideoDecoder;
+2 -2
View File
@@ -21,9 +21,9 @@
#include "load.h"
#include "build.h"
#include "declib.h"
#include "libs/declib.h"
#include "encount.h"
#include "file.h"
#include "libs/file.h"
#include "globdata.h"
#include "load.h"
#include "options.h"
+1
View File
@@ -22,6 +22,7 @@
#include "globdata.h"
#include "nameref.h"
#include "races.h"
#include "init.h"
static RESOURCE code_resources[] = {
NULL_RESOURCE,
+2 -1
View File
@@ -19,12 +19,13 @@
#include "melee.h"
#include "build.h"
#include "status.h"
#include "colors.h"
#include "comm.h"
// for getLineWithinWidth
#include "cons_res.h"
#include "controls.h"
#include "file.h"
#include "libs/file.h"
#include "fmv.h"
#include "gamestr.h"
#include "globdata.h"
+2
View File
@@ -19,6 +19,8 @@
#include "element.h"
#include "init.h"
#include "races.h"
#include "ship.h"
#include "status.h"
#include "setup.h"
#include "sounds.h"
#include "weapon.h"
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef _NAMEREF_H
#define _NAMEREF_H
#include "reslib.h"
#include "libs/reslib.h"
#define LoadCodeRes LoadCodeResInstance
#define LoadGraphic (DRAWABLE)LoadGraphicInstance
+2 -1
View File
@@ -28,6 +28,8 @@
// for DUMP_CRC_OPS
#include "netconnection.h"
#include "netmelee.h"
#include "tactrans.h"
// for new_ship
#include "libs/log.h"
#include "libs/mathlib.h"
#include "libs/misc.h"
@@ -125,7 +127,6 @@ crc_processELEMENT(crc_State *state, const ELEMENT *val) {
// the side this ship is on. This must be excluded from the checksum
// as this does not have to be the same for both sides.
{
extern void new_ship(ELEMENT *ElementPtr);
BYTE turn_wait = val->turn_wait;
if (val->preprocess_func == new_ship)
+1 -1
View File
@@ -26,7 +26,7 @@ typedef struct BattleStateData BattleStateData;
#include "types.h"
#include "battle.h"
// for BattleFrameCounter
// for BattleFrameCounter, BATTLE_FRAME_RATE
struct BattleStateData {
NETCONNECTION_STATE_DATA_COMMON
+1
View File
@@ -23,6 +23,7 @@
#include "controls.h"
#include "flash.h"
#include "intel.h"
#include "battle.h"
#include "melee.h"
#ifdef NETPLAY
# include "netplay/netmelee.h"
+1
View File
@@ -41,6 +41,7 @@ BOOLEAN selectShipNetwork (NetworkInputContext *context, GETMELEE_STATE *gms);
#include "flash.h"
#include "libs/timelib.h"
#include "init.h"
struct getmelee_struct {
BOOLEAN (*InputFunc) (struct getmelee_struct *pInputState);
+3
View File
@@ -16,10 +16,13 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "pickship.h"
#include "build.h"
#include "colors.h"
#include "controls.h"
#include "pickmele.h"
#include "battle.h"
#include "races.h"
#include "resinst.h"
#include "nameref.h"
+27
View File
@@ -0,0 +1,27 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef UQM_PICKSHIP_H_INCL_
#define UQM_PICKSHIP_H_INCL_
#include "libs/compiler.h"
#include "races.h"
extern HSTARSHIP GetEncounterStarShip (STARSHIP *LastStarShipPtr,
COUNT which_player);
extern void DrawArmadaPickShip (BOOLEAN draw_salvage_frame, RECT *pPickRect);
#endif /* UQM_PICKSHIP_H_INCL_ */
+1 -1
View File
@@ -28,7 +28,7 @@
#include "grpinfo.h"
#include "sounds.h"
#include "util.h"
#include "strlib.h"
#include "libs/strlib.h"
// If DEBUG_DEVICES is defined, the device list shown in the game will
+1
View File
@@ -20,6 +20,7 @@
#include "encount.h"
#include "globdata.h"
#include "lander.h"
#include "ipdisp.h"
#include "nameref.h"
#include "resinst.h"
#include "state.h"
+1
View File
@@ -19,6 +19,7 @@
#include "build.h"
#include "encount.h"
#include "globdata.h"
#include "ipdisp.h"
#include "nameref.h"
#include "resinst.h"
#include "state.h"
+1
View File
@@ -19,6 +19,7 @@
#include "build.h"
#include "encount.h"
#include "globdata.h"
#include "ipdisp.h"
#include "nameref.h"
#include "resinst.h"
#include "setup.h"
+1
View File
@@ -20,6 +20,7 @@
#include "encount.h"
#include "globdata.h"
#include "lander.h"
#include "ipdisp.h"
#include "nameref.h"
#include "resinst.h"
#include "setup.h"
+1
View File
@@ -19,6 +19,7 @@
#include "build.h"
#include "encount.h"
#include "globdata.h"
#include "ipdisp.h"
#include "nameref.h"
#include "resinst.h"
#include "setup.h"

Some files were not shown because too many files have changed in this diff Show More