TileEngine include cleanup (by Asdow).

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8953 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2021-03-11 20:41:44 +00:00
parent c8cb9a0d6c
commit 8822bfcb8f
45 changed files with 100 additions and 403 deletions
+1 -10
View File
@@ -3,25 +3,16 @@
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include "stdio.h" #include "Ambient Control.h"
#include "sgp.h"
#include "Ambient types.h"
#include "fileman.h"
#include "environment.h"
#include "Sound Control.h" #include "Sound Control.h"
#include "Game Events.h" #include "Game Events.h"
#include "Ambient Control.h"
#include "lighting.h" #include "lighting.h"
#include "Random.h" #include "Random.h"
// sevenfm // sevenfm
#include "SmokeEffects.h" #include "SmokeEffects.h"
#include "message.h"
#include "Overhead.h" #include "Overhead.h"
#include "strategicmap.h"
#include "Strategic Movement.h" #include "Strategic Movement.h"
#include "Game Clock.h" #include "Game Clock.h"
#include "Queen Command.h"
#include "undergroundinit.h"
#include "strategic mines.h" #include "strategic mines.h"
#endif #endif
-5
View File
@@ -3,14 +3,9 @@
#else #else
#include "Types.h" #include "Types.h"
#include "Buildings.h" #include "Buildings.h"
#include "Isometric Utils.h"
#include "Pathai.h" #include "Pathai.h"
#include "Structure Wrap.h" #include "Structure Wrap.h"
#include "Random.h"
#include "Overhead.h"
#include "Render Fun.h" #include "Render Fun.h"
#include "Strategicmap.h"
#include "Sys Globals.h"
#include "worldman.h" #include "worldman.h"
#endif #endif
+1 -1
View File
@@ -2,7 +2,7 @@
#define BUILDING_H #define BUILDING_H
#include "worlddef.h" class SOLDIERTYPE;
// for what it's worth, 2 bytes, we use roof climb spots as 1-based // for what it's worth, 2 bytes, we use roof climb spots as 1-based
// so the 0th entry is always 0 and can be compared with (and not equal) // so the 0th entry is always 0 and can be compared with (and not equal)
// NOWHERE or any other location // NOWHERE or any other location
-7
View File
@@ -1,24 +1,17 @@
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include <stdio.h>
#include "FileMan.h"
#include "debug.h" #include "debug.h"
#include "types.h"
#include "worlddef.h" #include "worlddef.h"
#include "worldman.h" #include "worldman.h"
#include "smooth.h"
#include "Exit Grids.h" #include "Exit Grids.h"
#include "Editor Undo.h" #include "Editor Undo.h"
#include "StrategicMap.h" #include "StrategicMap.h"
#include "Strategic Movement.h" #include "Strategic Movement.h"
#include "message.h" #include "message.h"
#include "Font Control.h"
#include "pathai.h" #include "pathai.h"
#include "overhead.h"
#include "Animation Control.h" #include "Animation Control.h"
#include "Sys Globals.h" #include "Sys Globals.h"
#include "quests.h"
#include "SaveLoadMap.h" #include "SaveLoadMap.h"
#include "Text.h" #include "Text.h"
#endif #endif
-1
View File
@@ -1,7 +1,6 @@
#ifndef __EXIT_GRIDS_H #ifndef __EXIT_GRIDS_H
#define __EXIT_GRIDS_H #define __EXIT_GRIDS_H
#include "Fileman.h"
#include "Worlddef.h" #include "Worlddef.h"
//dnl ch42 250909 //dnl ch42 250909
-32
View File
@@ -5,62 +5,31 @@
#include "end game.h" #include "end game.h"
#include "Morale.h" #include "Morale.h"
#else #else
#include <stdio.h>
#include <string.h>
#include "stdlib.h"
#include "debug.h" #include "debug.h"
//#include "soldier control.h"
#include "weapons.h" #include "weapons.h"
#include "handle items.h"
#include "worlddef.h"
#include "worldman.h" #include "worldman.h"
#include "rotting corpses.h"
#include "tile cache.h"
#include "isometric utils.h"
#include "animation control.h"
#include "utilities.h"
#include "game clock.h" #include "game clock.h"
#include "soldier create.h"
#include "renderworld.h" #include "renderworld.h"
#include "soldier add.h"
#include "explosion control.h" #include "explosion control.h"
#include "tile animation.h"
#include "sound control.h" #include "sound control.h"
#include "weapons.h"
#include "handle items.h"
#include "world items.h"
#include "structure wrap.h" #include "structure wrap.h"
#include "tiledef.h"
#include "tiledat.h"
#include "interactive tiles.h" #include "interactive tiles.h"
#include "SaveLoadMap.h" #include "SaveLoadMap.h"
#include "Message.h" #include "Message.h"
#include "Random.h" #include "Random.h"
#include "smokeeffects.h" #include "smokeeffects.h"
#include "handle ui.h"
#include "pathai.h" #include "pathai.h"
#include "campaign Types.h"
#include "strategicmap.h"
#include "strategic.h" #include "strategic.h"
#include "Action Items.h" #include "Action Items.h"
#include "Soldier Profile.h"
#include "Quests.h"
#include "Interface Dialogue.h" #include "Interface Dialogue.h"
#include "LightEffects.h" #include "LightEffects.h"
#include "AI.h" #include "AI.h"
#include "Soldier tile.h" #include "Soldier tile.h"
#include "lighting.h"
#include "Render Fun.h" #include "Render Fun.h"
#include "Opplist.h" #include "Opplist.h"
#include "smell.h" #include "smell.h"
#include "GameSettings.h"
#include "Interface.h"
#include "end game.h" #include "end game.h"
#include "WorldDat.h"
#include "environment.h"
#include "Buildings.h" #include "Buildings.h"
#include "Keys.h"
#include "Morale.h"
#include "fov.h" #include "fov.h"
#include "Map Information.h" #include "Map Information.h"
#include "Soldier Functions.h"//dnl ch40 200909 #include "Soldier Functions.h"//dnl ch40 200909
@@ -94,7 +63,6 @@
class OBJECTTYPE; class OBJECTTYPE;
class SOLDIERTYPE; class SOLDIERTYPE;
//DBrot: More Rooms //DBrot: More Rooms
//BOOLEAN HookerInRoom( UINT8 ubRoom );
BOOLEAN HookerInRoom( UINT16 usRoom ); BOOLEAN HookerInRoom( UINT16 usRoom );
// MODULE FOR EXPLOSIONS // MODULE FOR EXPLOSIONS
-1
View File
@@ -5,7 +5,6 @@
#include "Fog Of War.h" #include "Fog Of War.h"
#include "Isometric Utils.h" #include "Isometric Utils.h"
#include "Simple Render Utils.h" #include "Simple Render Utils.h"
#include "Renderworld.h"
#include "lighting.h" #include "lighting.h"
#endif #endif
-4
View File
@@ -2,10 +2,6 @@
#define __FOG_OF_WAR_H #define __FOG_OF_WAR_H
//Called after a map is loaded. By keying on the MAPELEMENT_REVEALED value, we can easily
//determine what is hidden by the fog.
void InitializeFogInWorld();
//Removes and smooths the adjacent tiles. //Removes and smooths the adjacent tiles.
void RemoveFogFromGridNo( INT32 uiGridNo ); void RemoveFogFromGridNo( INT32 uiGridNo );
+5 -18
View File
@@ -3,42 +3,29 @@
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include <stdio.h>
#include <time.h>
#include "sgp.h"
#include "himage.h"
#include "vsurface.h"
#include "sysutil.h" #include "sysutil.h"
#include "renderworld.h" #include "renderworld.h"
#include "interface.h"
#include "Sound Control.h" #include "Sound Control.h"
#include "worlddef.h"
#include "Interactive Tiles.h" #include "Interactive Tiles.h"
#include "interface cursors.h" #include "interface cursors.h"
#include "worldman.h" #include "worldman.h"
#include "structure.h"
#include "Animation Control.h"
#include "points.h" #include "points.h"
#include "overhead.h"
#include "structure wrap.h" #include "structure wrap.h"
#include "tile animation.h" #include "tile animation.h"
#include "tile cache.h" #include "tile cache.h"
#include "handle doors.h" #include "handle doors.h"
#include "Strategicmap.h"
#include "Quests.h"
#include "Dialogue Control.h" #include "Dialogue Control.h"
#include "Random.h"
#include "english.h" #include "english.h"
#include "handle items.h"
#include "message.h"
#include "handle ui.h"
#include "NPC.h" #include "NPC.h"
#include "Explosion Control.h" #include "Explosion Control.h"
#include "Text.h" #include "Text.h"
#include "GameSettings.h"
#include "environment.h"
#endif #endif
#ifdef JA2TESTVERSION
#include "message.h"
#endif
#define MAX_INTTILE_STACK 10 #define MAX_INTTILE_STACK 10
typedef struct typedef struct
-1
View File
@@ -1,7 +1,6 @@
#ifndef __INTERACTIVE_TILES_H #ifndef __INTERACTIVE_TILES_H
#define __INTERACTIVE_TILES_H #define __INTERACTIVE_TILES_H
#include "Soldier Control.h"
#define INTTILE_DOOR_TILE_ONE 1 #define INTTILE_DOOR_TILE_ONE 1
-7
View File
@@ -1,22 +1,15 @@
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include <stdio.h>
#include "debug.h" #include "debug.h"
#include "mousesystem.h"
#include "jascreens.h"
#include "worlddef.h"
#include "renderworld.h" #include "renderworld.h"
#include "Isometric Utils.h"
#include "interface.h" #include "interface.h"
#include "math.h"
#include "worldman.h" #include "worldman.h"
#include "Structure Wrap.h" #include "Structure Wrap.h"
#include "sys globals.h" #include "sys globals.h"
#include "overhead.h" #include "overhead.h"
#include "Random.h" #include "Random.h"
#include "Pathai.h" #include "Pathai.h"
#include "GameSettings.h" // added by Flugente
#endif #endif
-12
View File
@@ -3,25 +3,13 @@
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include <stdio.h>
#include <string.h>
#include "stdlib.h"
#include "debug.h" #include "debug.h"
//#include "soldier control.h"
#include "weapons.h"
#include "handle items.h"
#include "worlddef.h"
#include "animation control.h" #include "animation control.h"
#include "handle items.h"
#include "lighteffects.h" #include "lighteffects.h"
#include "message.h"
#include "isometric utils.h" #include "isometric utils.h"
#include "renderworld.h"
#include "Random.h"
#include "lighting.h" #include "lighting.h"
#include "Game Clock.h" #include "Game Clock.h"
#include "opplist.h" #include "opplist.h"
#include "Campaign Types.h"
#include "Tactical Save.h" #include "Tactical Save.h"
#endif #endif
+1 -5
View File
@@ -1,4 +1,4 @@
#include <cmath> // added by Flugente //#include <cmath> // added by Flugente
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
@@ -7,15 +7,11 @@
#include "pathai.h" #include "pathai.h"
#include "ai.h" #include "ai.h"
#include "Map Information.h" #include "Map Information.h"
#include "renderworld.h"
#include "Isometric Utils.h"
#include "debug.h" #include "debug.h"
#include "Random.h" #include "Random.h"
#include "strategic.h"
#include "Animation Control.h" #include "Animation Control.h"
#include "Render Fun.h" #include "Render Fun.h"
#include "strategicmap.h" #include "strategicmap.h"
#include "environment.h"
#include "worldman.h" #include "worldman.h"
#include "PreBattle Interface.h" // added by Flugente #include "PreBattle Interface.h" // added by Flugente
#endif #endif
-3
View File
@@ -1,9 +1,6 @@
#ifndef __MAP_EDGEPOINTS_H #ifndef __MAP_EDGEPOINTS_H
#define __MAP_EDGEPOINTS_H #define __MAP_EDGEPOINTS_H
#include "types.h"
#include "Fileman.h"
#include "Overhead Types.h"
#include "strategic.h" #include "strategic.h"
typedef struct MAPEDGEPOINTINFO typedef struct MAPEDGEPOINTINFO
+4 -14
View File
@@ -3,40 +3,30 @@
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include <stdio.h>
#include <time.h>
#include "sgp.h" #include "sgp.h"
#include "Radar Screen.h" #include "Radar Screen.h"
#include "sysutil.h"
#include "line.h" #include "line.h"
#include "renderworld.h" #include "renderworld.h"
#include "Isometric Utils.h"
#include "Interface.h"
#include "overhead.h"
#include "Soldier Control.h"
#include "lighting.h" #include "lighting.h"
#include "wcheck.h" #include "wcheck.h"
#include "sysutil.h"
#include "render dirty.h" #include "render dirty.h"
#include "overhead map.h" #include "overhead map.h"
#include "Squads.h" #include "Squads.h"
#include "mousesystem.h"
#include "Text.h" #include "Text.h"
#include "Font Control.h"
#include "vobject.h"
#include "Utilities.h" #include "Utilities.h"
#include "Interface Control.h" #include "Interface Control.h"
#include "Game Clock.h" #include "Game Clock.h"
#include "Map Screen Interface Map Inventory.h" #include "Map Screen Interface Map Inventory.h"
#include "meanwhile.h"
#include "strategicmap.h"
#include "Animation Data.h" #include "Animation Data.h"
#include "GameSettings.h"
#include "Map Screen Interface.h" // added by Flugente
#endif #endif
//forward declarations of common classes to eliminate includes //forward declarations of common classes to eliminate includes
class OBJECTTYPE; class OBJECTTYPE;
class SOLDIERTYPE; class SOLDIERTYPE;
extern std::vector<std::wstring> gSquadNameVector;
extern INT8 gbWorldSectorZ;
extern BOOLEAN AreInMeanwhile();
#include "connect.h" #include "connect.h"
extern INT32 iCurrentMapSectorZ; extern INT32 iCurrentMapSectorZ;
-1
View File
@@ -1,7 +1,6 @@
#ifndef __RADAR_SCREEN_H #ifndef __RADAR_SCREEN_H
#define __RADAR_SCREEN_H #define __RADAR_SCREEN_H
#include "interface.h"
// RADAR MOUSE REGION STUFF // RADAR MOUSE REGION STUFF
void RadarRegionMoveCallback( MOUSE_REGION * pRegion, INT32 iReason ); void RadarRegionMoveCallback( MOUSE_REGION * pRegion, INT32 iReason );
+11 -9
View File
@@ -5,25 +5,27 @@
#include "winfont.h" #include "winfont.h"
#else #else
#include "math.h"
#include <stdio.h>
#include <errno.h>
#include "worlddef.h" #include "worlddef.h"
#include "renderworld.h"
#include "vsurface.h"
#include "Render Dirty.h" #include "Render Dirty.h"
#include "sysutil.h" #include "sysutil.h"
#include "container.h"
#include "video.h"
#include "vobject_blitters.h" #include "vobject_blitters.h"
#include "Font Control.h"
#endif #endif
#ifdef JA2BETAVERSION #ifdef JA2BETAVERSION
#include "Message.h" #include "Message.h"
#endif #endif
// Forward Declarations
extern INT16 gsVIEWPORT_START_X;
extern INT16 gsVIEWPORT_START_Y;
extern INT16 gsVIEWPORT_WINDOW_START_Y;
extern INT16 gsVIEWPORT_WINDOW_END_Y;
extern INT16 gsVIEWPORT_END_X;
extern INT16 gsVIEWPORT_END_Y;
extern UINT16* gpZBuffer;
extern BOOLEAN gfScrollInertia;
#define DIRTY_QUEUES 200 #define DIRTY_QUEUES 200
#define BACKGROUND_BUFFERS 1500 //was 500 #define BACKGROUND_BUFFERS 1500 //was 500
#define VIDEO_OVERLAYS 100 #define VIDEO_OVERLAYS 100
-10
View File
@@ -1,26 +1,16 @@
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include "math.h"
#include <stdio.h>
#include <errno.h>
#include "Render Fun.h" #include "Render Fun.h"
#include "worlddef.h"
#include "input.h"
#include "sysutil.h" #include "sysutil.h"
#include "debug.h" #include "debug.h"
#include "worldman.h" #include "worldman.h"
#include "jascreens.h"
#include "Isometric Utils.h" #include "Isometric Utils.h"
#include "renderworld.h" #include "renderworld.h"
#include "fov.h" #include "fov.h"
#include "Fog Of War.h" #include "Fog Of War.h"
#include "environment.h"
#include "dialogue control.h" #include "dialogue control.h"
#include "Random.h" #include "Random.h"
#include "gamesettings.h"
#include "Dialogue Control.h" // added by Flugente
#endif #endif
// Room Information // Room Information
-2
View File
@@ -1,7 +1,6 @@
#ifndef __RENDER_FUN_H #ifndef __RENDER_FUN_H
#define __RENDER_FUN_H #define __RENDER_FUN_H
#include <stdio.h>
#include "worlddef.h" #include "worlddef.h"
#define NO_ROOM 0 #define NO_ROOM 0
@@ -10,7 +9,6 @@
#define MAX_ROOMS 65530 #define MAX_ROOMS 65530
extern UINT8 gubWorldRoomHidden[ MAX_ROOMS ]; extern UINT8 gubWorldRoomHidden[ MAX_ROOMS ];
//extern UINT8* gubWorldRoomInfo;
extern UINT16* gusWorldRoomInfo; extern UINT16* gusWorldRoomInfo;
BOOLEAN InitRoomDatabase( ); BOOLEAN InitRoomDatabase( );
-2
View File
@@ -1,7 +1,5 @@
#include "Render Z.h" #include "Render Z.h"
#include "worlddef.h"
#include "renderworld.h" #include "renderworld.h"
#include "Isometric Utils.h"
INT16 gsRScreenCenterX, gsRScreenCenterY; INT16 gsRScreenCenterX, gsRScreenCenterY;
INT16 gsRDistToCenterY, gsRDistToCenterX; INT16 gsRDistToCenterY, gsRDistToCenterX;
-2
View File
@@ -1,6 +1,4 @@
#include "worlddef.h" #include "worlddef.h"
#include "renderworld.h"
#include "Isometric Utils.h"
INT16 ObjectZLevel( TILE_ELEMENT* TileElem, LEVELNODE* pNode, UINT32 uiTileElemFlags, INT32 sMapX, INT32 sMapY, INT16& sWorldY ); INT16 ObjectZLevel( TILE_ELEMENT* TileElem, LEVELNODE* pNode, UINT32 uiTileElemFlags, INT32 sMapX, INT32 sMapY, INT16& sWorldY );
-1
View File
@@ -7,7 +7,6 @@
#include <string.h> #include <string.h>
#include "stdlib.h" #include "stdlib.h"
#include "debug.h" #include "debug.h"
//#include "soldier control.h"
#include "weapons.h" #include "weapons.h"
#include "handle items.h" #include "handle items.h"
#include "worlddef.h" #include "worlddef.h"
+1 -11
View File
@@ -8,13 +8,8 @@
#include "vehicles.h" #include "vehicles.h"
#else #else
//sgp //sgp
#include "types.h"
#include "mousesystem.h"
#include "Button System.h"
#include "input.h"
#include "english.h" #include "english.h"
#include "debug.h" #include "debug.h"
#include "vsurface.h"
#include "video.h" #include "video.h"
#include "vobject_blitters.h" #include "vobject_blitters.h"
#include "line.h" #include "line.h"
@@ -24,15 +19,12 @@
#include "Overhead Map.h" #include "Overhead Map.h"
#include "strategicmap.h" #include "strategicmap.h"
#include "Interface.h" #include "Interface.h"
#include "Font Control.h"
#include "overhead.h" #include "overhead.h"
#include "Render Dirty.h" #include "Render Dirty.h"
#include "sysutil.h" #include "sysutil.h"
#include "PreBattle Interface.h" #include "PreBattle Interface.h"
#include "Soldier Profile.h" #include "Soldier Profile.h"
#include "Map Edgepoints.h" #include "Map Edgepoints.h"
#include "strategic.h"
#include "strategicmap.h"
#include "gameloop.h" #include "gameloop.h"
#include "message.h" #include "message.h"
#include "Map Information.h" #include "Map Information.h"
@@ -40,14 +32,12 @@
#include "cursors.h" #include "cursors.h"
#include "Cursor Control.h" #include "Cursor Control.h"
#include "MessageBoxScreen.h" #include "MessageBoxScreen.h"
#include "assignments.h"
#include "text.h" #include "text.h"
#include "WordWrap.h" #include "WordWrap.h"
#include "Game Clock.h" #include "Game Clock.h"
#include "Isometric Utils.h"
#endif #endif
#include "connect.h" #include "connect.h"
#include "saveloadscreen.h"
#include "Map Edgepoints.h"
#include "renderworld.h"//dnl ch45 051009 #include "renderworld.h"//dnl ch45 051009
#include "merc entering.h" #include "merc entering.h"
#include "CampaignStats.h" // added by Flugente #include "CampaignStats.h" // added by Flugente
+4 -2
View File
@@ -1,8 +1,10 @@
#ifndef __TACTICAL_PLACEMENT_GUI_H #ifndef __TACTICAL_PLACEMENT_GUI_H
#define __TACTICAL_PLACEMENT_GUI_H #define __TACTICAL_PLACEMENT_GUI_H
#include "Soldier Control.h" //#include "Soldier Control.h"
#include "mousesystem.h" //#include "mousesystem.h"
typedef struct _MOUSE_REGION MOUSE_REGION;
extern class SOLDIERTYPE;
void InitTacticalPlacementGUI(); void InitTacticalPlacementGUI();
void KillTacticalPlacementGUI(); void KillTacticalPlacementGUI();
+1 -11
View File
@@ -2,10 +2,7 @@
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include "worlddef.h" #include "worlddef.h"
#include <stdio.h> #include "tile animation.h"
#include <string.h>
#include "stdlib.h"
#include "video.h"
#include "debug.h" #include "debug.h"
#include "worldman.h" #include "worldman.h"
#include "lighting.h" #include "lighting.h"
@@ -13,18 +10,11 @@
#include "overhead.h" #include "overhead.h"
#include "ai.h" #include "ai.h"
#include "Sound Control.h" #include "Sound Control.h"
#include "animation control.h"
#include "isometric utils.h"
#include "Font Control.h"
#include "message.h"
#include "tile animation.h"
#include "tile cache.h" #include "tile cache.h"
#include "explosion control.h" #include "explosion control.h"
#include "weapons.h"
#include "Keys.h" #include "Keys.h"
#include "bullets.h" #include "bullets.h"
#include "LightEffects.h" #include "LightEffects.h"
#include "rotting corpses.h"
#include "SmokeEffects.h" #include "SmokeEffects.h"
#endif #endif
+3 -10
View File
@@ -3,21 +3,14 @@
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include <stdio.h>
#include <string.h>
#include "stdlib.h"
#include "debug.h" #include "debug.h"
#include "tiledef.h"
#include "Animation Cache.h"
#include "Animation Data.h"
#include "Animation Control.h"
#include "sys globals.h"
#include "Debug Control.h" #include "Debug Control.h"
#include "tile surface.h" #include "tile surface.h"
#include "tile cache.h" #include "tile cache.h"
#include "fileman.h"
#endif #endif
#ifdef JA2TESTVERSION
#include "sys globals.h"
#endif
UINT32 guiNumTileCacheStructs = 0; UINT32 guiNumTileCacheStructs = 0;
UINT32 guiMaxTileCacheSize = 50; UINT32 guiMaxTileCacheSize = 50;
-9
View File
@@ -1,8 +1,6 @@
#ifndef __TILE_CACHE_H #ifndef __TILE_CACHE_H
#define __TILE_CACHE_H #define __TILE_CACHE_H
#include "tiledef.h"
#include "structure.h"
#define TILE_CACHE_START_INDEX 36000 #define TILE_CACHE_START_INDEX 36000
@@ -47,11 +45,4 @@ void CheckForAndDeleteTileCacheStructInfo( LEVELNODE *pNode, UINT16 usIndex );
void GetRootName( STR8 pDestStr, const STR8 pSrcStr ); void GetRootName( STR8 pDestStr, const STR8 pSrcStr );
// OF COURSE, FOR SPEED, WE EXPORT OUR ARRAY
// ACCESS FUNCTIONS IN RENDERER IS NOT TOO NICE
// ATE
#endif #endif
-9
View File
@@ -3,17 +3,8 @@
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include "worlddef.h"
#include "worlddat.h"
#include <stdio.h>
#include <string.h>
#include "stdlib.h"
#include "time.h"
#include "video.h"
#include "debug.h" #include "debug.h"
#include "sys globals.h" #include "sys globals.h"
#include "tiledat.h"
#include "Fileman.h"
#endif #endif
#include "XML.h" #include "XML.h"
-7
View File
@@ -3,15 +3,9 @@
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include <stdio.h>
#include <string.h>
#include <wchar.h>
#include "worlddat.h" #include "worlddat.h"
#include "worlddef.h"
#include "tiledef.h"
#include "sys globals.h" #include "sys globals.h"
#include "tile surface.h" #include "tile surface.h"
#include "fileMan.h"
#include "Debug.h" #include "Debug.h"
#endif #endif
@@ -19,7 +13,6 @@
#include <vfs/Core/vfs_file_raii.h> #include <vfs/Core/vfs_file_raii.h>
#include "XML_TileSet.hpp" #include "XML_TileSet.hpp"
#include "XMLWriter.h" #include "XMLWriter.h"
#include "GameSettings.h"
void ExportTilesets(vfs::Path const& filename); void ExportTilesets(vfs::Path const& filename);
-12
View File
@@ -2,31 +2,19 @@
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include "sgp.h" #include "sgp.h"
#include "lighting.h"
#include "environment.h" #include "environment.h"
#include "renderworld.h" #include "renderworld.h"
#include "Sound Control.h" #include "Sound Control.h"
#include "overhead.h" #include "overhead.h"
#include "Game Clock.h" #include "Game Clock.h"
#include "quests.h"
#include "Ambient Control.h" #include "Ambient Control.h"
#include "Strategic Event Handler.h"
#include "BobbyR.h"
#include "mercs.h"
#include "email.h"
#include "Merc Hiring.h"
#include "insurance Contract.h"
#include "Game Events.h" #include "Game Events.h"
#include "message.h" #include "message.h"
#include "opplist.h" #include "opplist.h"
#include "Random.h" #include "Random.h"
#include "strategicmap.h"
#include "GameSettings.h"
#include "Points.h" // added by Flugente #include "Points.h" // added by Flugente
#include "Campaign.h" // added by Flugente #include "Campaign.h" // added by Flugente
#include "Isometric Utils.h" // added by Flugente #include "Isometric Utils.h" // added by Flugente
#include "Strategic Movement.h" // added by Flugente
#include "tiledef.h" // added by Flugente
#include "worldman.h" // added by Flugente #include "worldman.h" // added by Flugente
#include "Dialogue Control.h" // added by Flugente #include "Dialogue Control.h" // added by Flugente
#endif #endif
-17
View File
@@ -19,34 +19,17 @@
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include "math.h"
#include <stdio.h>
#include <errno.h>
#include "worlddef.h" #include "worlddef.h"
#include "renderworld.h" #include "renderworld.h"
#include "vsurface.h"
#include "input.h"
#include "sysutil.h" #include "sysutil.h"
#include "wchar.h"
#include "video.h"
#include "vobject_blitters.h"
#include "debug.h" #include "debug.h"
#include "wcheck.h" #include "wcheck.h"
#include "jascreens.h"
#include "Isometric Utils.h"
#include "line.h"
#include "Animation Control.h" #include "Animation Control.h"
#include "Animation Data.h"
#include "Sys Globals.h" #include "Sys Globals.h"
#include "tiledef.h"
#include "lighting.h" #include "lighting.h"
#include "Structure Internals.h"
#include "structure wrap.h" #include "structure wrap.h"
#include "Shade Table Util.h" #include "Shade Table Util.h"
#include "rotting corpses.h" #include "rotting corpses.h"
#include "Fileman.h"
#include "environment.h"
#include "PATHAI.H" #include "PATHAI.H"
#endif #endif
+2 -1
View File
@@ -1,7 +1,8 @@
#ifndef _LIGHTING_H_ #ifndef _LIGHTING_H_
#define _LIGHTING_H_ #define _LIGHTING_H_
#include "Soldier Control.h" #include "vobject.h"
class SOLDIERTYPE;
/**************************************************************************************** /****************************************************************************************
* JA2 Lighting Module * JA2 Lighting Module
+11 -19
View File
@@ -3,42 +3,25 @@
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include "stdio.h" #include "sysutil.h"
#include "sgp.h"
#include "vobject.h"
#include "tiledef.h"
#include "utilities.h" #include "utilities.h"
#include "worlddef.h"
#include "isometric utils.h"
#include "renderworld.h" #include "renderworld.h"
#include "worlddat.h"
#include "vobject_blitters.h" #include "vobject_blitters.h"
#include "overhead map.h" #include "overhead map.h"
#include "interface.h"
#include "interface control.h" #include "interface control.h"
#include "overhead.h" #include "overhead.h"
#include "radar screen.h" #include "radar screen.h"
#include "cursors.h" #include "cursors.h"
#include "Sys Globals.h" #include "Sys Globals.h"
#include "render dirty.h" #include "render dirty.h"
#include "soldier find.h"
#include "font control.h"
#include "Game Clock.h" #include "Game Clock.h"
#include "interface panels.h" #include "interface panels.h"
#include "english.h" #include "english.h"
#include "line.h" #include "line.h"
#include "map information.h" #include "map information.h"
#include "Tactical Placement GUI.h" #include "Tactical Placement GUI.h"
#include "world items.h"
#include "message.h"
#include "faces.h"
#include "Squads.h"
#include "Interactive Tiles.h" #include "Interactive Tiles.h"
#include "gameloop.h" #include "gameloop.h"
#include "sysutil.h"
#include "tile surface.h"
#include "GameSettings.h"
#include <vector>
#include "Action Items.h" // added by Flugente #include "Action Items.h" // added by Flugente
#endif #endif
@@ -49,6 +32,15 @@
extern SOLDIERINITNODE *gpSelected; extern SOLDIERINITNODE *gpSelected;
#endif #endif
// Forward declarations
extern INT16 gWorldSectorX;
extern INT16 gWorldSectorY;
extern INT8 gbWorldSectorZ;
extern TILE_IMAGERY* gTileSurfaceArray[NUMBEROFTILETYPES];
extern INT32 CurrentSquad();
extern void HandleAutoFaces();
extern void HandleTalkingAutoFaces();
typedef struct typedef struct
{ {
@@ -121,7 +113,7 @@ void CopyOverheadDBShadetablesFromTileset( );
void RenderOverheadOverlays(); void RenderOverheadOverlays();
//dnl ch85 060214 //dnl ch85 060214
#include <math.h> //#include <math.h>
#define PointToPointDist(X1, Y1, X2, Y2) (sqrtf((FLOAT)((X2-X1)*(X2-X1) + (Y2-Y1)*(Y2-Y1))))// Calculate distance between two points #define PointToPointDist(X1, Y1, X2, Y2) (sqrtf((FLOAT)((X2-X1)*(X2-X1) + (Y2-Y1)*(Y2-Y1))))// Calculate distance between two points
#define PointToLineDist(Xt, Yt, k, l) (sqrtf((FLOAT)((k*Xt-Yt+l) * (k*Xt-Yt+l)) / (k*k + 1)))// Calculate distance between point and line #define PointToLineDist(Xt, Yt, k, l) (sqrtf((FLOAT)((k*Xt-Yt+l) * (k*Xt-Yt+l)) / (k*k + 1)))// Calculate distance between point and line
VOID PointFromDist(INT32 Xt, INT32 Yt, INT32 k, INT32 l, FLOAT d, INT32 *Xtnew, INT32 *Ytnew)// Calculate closest point to point (Xt,Yt) which lies at distance from line Y=kx+l and normal define by point (Xt,Yt) VOID PointFromDist(INT32 Xt, INT32 Yt, INT32 k, INT32 l, FLOAT d, INT32 *Xtnew, INT32 *Ytnew)// Calculate closest point to point (Xt,Yt) which lies at distance from line Y=kx+l and normal define by point (Xt,Yt)
-1
View File
@@ -4,7 +4,6 @@
// explicit dependencies // explicit dependencies
#include <math.h> // for sqrt #include <math.h> // for sqrt
#include <float.h>
typedef float real; typedef float real;
+20 -37
View File
@@ -1,51 +1,34 @@
#include "builddefines.h" #include "builddefines.h"
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include "physics.h" #include "physics.h"
#include "wcheck.h" #include "wcheck.h"
#include "timer control.h" #include "isometric utils.h"
#include "isometric utils.h" #include "worldman.h"
#include "los.h" #include "Sound Control.h"
#include "worldman.h" #include "interface.h"
#include "event pump.h" #include "interface items.h"
#include "Sound Control.h" #include "explosion control.h"
//#include "soldier control.h" #include "Debug Control.h"
#include "interface.h" #include "message.h"
#include "interface items.h" #include "structure wrap.h"
#include "weapons.h" #include "animation control.h"
#include "explosion control.h" #include "text.h"
#include "Debug Control.h" #include "Random.h"
#include "tile animation.h" #include "lighteffects.h"
#include "message.h" #include "opplist.h"
#include "weapons.h" #include "Buildings.h"
#include "structure wrap.h" #include "Dialogue Control.h" // added by Flugente
#include "physics.h"
#include "overhead.h"
#include "animation control.h"
#include "text.h"
#include "Random.h"
#include "lighteffects.h"
#include "opplist.h"
#include "World Items.h"
#include "environment.h"
#include "GameSettings.h"
#include "Buildings.h"
#include "Dialogue Control.h" // added by Flugente
#endif #endif
#include "Campaign.h"
#include "SkillCheck.h"
#include "connect.h" #include "connect.h"
#include "GameInitOptionsScreen.h"
//forward declarations of common classes to eliminate includes //forward declarations of common classes to eliminate includes
class OBJECTTYPE; class OBJECTTYPE;
class SOLDIERTYPE; class SOLDIERTYPE;
extern INT16 EffectiveDexterity(SOLDIERTYPE* pSoldier, BOOLEAN fTrainer);
#define NO_TEST_OBJECT 0 #define NO_TEST_OBJECT 0
#define TEST_OBJECT_NO_COLLISIONS 1 #define TEST_OBJECT_NO_COLLISIONS 1
-3
View File
@@ -2,10 +2,7 @@
#define __PHYSICS_H #define __PHYSICS_H
#include "phys math.h" #include "phys math.h"
#include "sgp.h"
#include "worlddef.h" #include "worlddef.h"
#include "items.h"
#include "Soldier Control.h"
extern UINT32 guiNumObjectSlots; extern UINT32 guiNumObjectSlots;
-3
View File
@@ -6,13 +6,10 @@
#include "worlddef.h" #include "worlddef.h"
#include "worldman.h" #include "worldman.h"
#include "Simple Render Utils.h" #include "Simple Render Utils.h"
#include "World Items.h"
#include "SaveLoadMap.h" #include "SaveLoadMap.h"
#include "Exit Grids.h"
#include "Sys Globals.h" #include "Sys Globals.h"
#include "strategicmap.h" #include "strategicmap.h"
#include "Isometric Utils.h" #include "Isometric Utils.h"
#include "overhead.h"
#include "Sound Control.h" #include "Sound Control.h"
#include "animation control.h" #include "animation control.h"
#include "strategic.h" #include "strategic.h"
+22 -49
View File
@@ -1,58 +1,31 @@
#include "builddefines.h" #include "builddefines.h"
#ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h"
#else
#include "math.h"
#include <stdio.h>
#include <errno.h>
#include "worlddef.h"
#include "renderworld.h"
#include "vsurface.h"
#include "input.h"
#include "sysutil.h"
#include "wchar.h"
#include "video.h"
#include "vobject_blitters.h"
#include "debug.h"
#include "wcheck.h"
#include "worldman.h"
#include "jascreens.h"
#include "Isometric Utils.h"
#include "line.h"
#include "Animation Control.h"
#include "Animation Data.h"
#include "Timer Control.h"
#include "Radar Screen.h"
#include "Render Dirty.h"
#include "Font Control.h"
#include "Sys Globals.h"
#include "Render Dirty.h"
#include "lighting.h"
#include "Overhead types.h"
#include "Overhead.h"
#include "weapons.h"
#include "ai.h"
#include "vobject.h"
#include "render fun.h"
#include "los.h"
#include "interactive tiles.h"
#include "rotting corpses.h"
#include "tile cache.h"
#include "tile animation.h"
#include "English.h"
#include "world items.h"
#include "GameSettings.h"
#include "interface control.h"
#include "Sound Control.h"
#endif
/////////////////////////// ///////////////////////////
// C file include here // C file include here
#include "Render Z.h" #include "Render Z.h"
/////////////////////////// ///////////////////////////
#ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h"
#else
#include "renderworld.h"
#include "sysutil.h"
#include "vobject_blitters.h"
#include "debug.h"
#include "wcheck.h"
#include "worldman.h"
#include "Radar Screen.h"
#include "Render Dirty.h"
#include "ai.h"
#include "render fun.h"
#include "interactive tiles.h"
#include "tile cache.h"
#include "English.h"
#include "interface control.h"
#include "Sound Control.h"
#include "LogicalBodyTypes/Layers.h"
#include "LogicalBodyTypes/BodyTypeDB.h"
#endif
#include "Utilities.h" #include "Utilities.h"
UINT32 guiShieldGraphic = 0; UINT32 guiShieldGraphic = 0;
+2 -4
View File
@@ -1,9 +1,6 @@
#ifndef __RENDERWORLD_H #ifndef __RENDERWORLD_H
#define __RENDERWORLD_H #define __RENDERWORLD_H
#include "worlddef.h"
#include "LogicalBodyTypes/Layers.h"
#include "LogicalBodyTypes/BodyTypeDB.h"
// TEMP SELECT STUFF // TEMP SELECT STUFF
#define NO_SELECT 0 #define NO_SELECT 0
@@ -75,7 +72,8 @@ extern UINT8 gubCurScrollSpeedID;
#define TILES_DYNAMIC_TOPMOST 0x00000001 #define TILES_DYNAMIC_TOPMOST 0x00000001
// Forward declaration
typedef struct TAG_HVOBJECT *HVOBJECT;
extern BOOLEAN gfRenderScroll; extern BOOLEAN gfRenderScroll;
extern INT16 gsScrollXIncrement; extern INT16 gsScrollXIncrement;
-4
View File
@@ -1,11 +1,7 @@
#ifdef PRECOMPILEDHEADERS #ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include <stdio.h>
#include <time.h>
#include "sgp.h" #include "sgp.h"
#include "himage.h"
#include "vsurface.h"
#include "wcheck.h" #include "wcheck.h"
#include "sysutil.h" #include "sysutil.h"
#endif #endif
-6
View File
@@ -3,15 +3,9 @@
#else #else
#include "tiledef.h" #include "tiledef.h"
#include "worlddef.h" #include "worlddef.h"
#include <stdio.h>
#include <string.h>
#include "wcheck.h" #include "wcheck.h"
#include "stdlib.h"
#include "time.h"
#include "video.h"
#include "debug.h" #include "debug.h"
#include "worldman.h" #include "worldman.h"
#include "gameloop.h"
#include "edit_sys.h" #include "edit_sys.h"
#include "pathai.h" #include "pathai.h"
#include "tile surface.h" #include "tile surface.h"
-1
View File
@@ -2,7 +2,6 @@
#define __TILEDEF_H #define __TILEDEF_H
#include "vobject.h" #include "vobject.h"
#include "timer.h"
#include "TileDat.h" #include "TileDat.h"
#include "structure.h" #include "structure.h"
+8 -24
View File
@@ -6,50 +6,27 @@
#else #else
#include "worlddef.h" #include "worlddef.h"
#include "worlddat.h" #include "worlddat.h"
#include <stdio.h>
#include <string.h>
#include "wcheck.h" #include "wcheck.h"
#include "stdlib.h"
#include "time.h"
#include "video.h"
#include "debug.h" #include "debug.h"
#include "worldman.h" #include "worldman.h"
#include "mousesystem.h"
#include "sys globals.h" #include "sys globals.h"
#include "screenids.h"
#include "Render Fun.h" #include "Render Fun.h"
#include "font control.h"
#include "lighting.h" #include "lighting.h"
#include "structure.h"
#include "vobject.h"
#include "Soldier Control.h"
#include "isometric utils.h"
#include "Interactive Tiles.h" #include "Interactive Tiles.h"
#include "utilities.h" #include "utilities.h"
#include "overhead.h" #include "overhead.h"
#include "Event Pump.h"
#include "Handle UI.h"
#include "opplist.h" #include "opplist.h"
#include "shading.h"
#include "Animation Control.h"
#include "World Items.h"
#include "renderworld.h" #include "renderworld.h"
#include "Radar Screen.h" #include "Radar Screen.h"
#include "soldier create.h"
#include "Soldier Init List.h"
#include "Exit Grids.h" #include "Exit Grids.h"
#include "tile surface.h" #include "tile surface.h"
#include "rotting corpses.h" #include "rotting corpses.h"
#include "Keys.h" #include "Keys.h"
#include "Map Information.h" #include "Map Information.h"
#include "Exit Grids.h"
#include "Summary Info.h"
#include "Animated ProgressBar.h" #include "Animated ProgressBar.h"
#include "pathai.h" #include "pathai.h"
#include "EditorBuildings.h" #include "EditorBuildings.h"
#include "FileMan.h"
#include "Map Edgepoints.h" #include "Map Edgepoints.h"
#include "environment.h"
#include "Shade Table Util.h" #include "Shade Table Util.h"
#include "Structure Wrap.h" #include "Structure Wrap.h"
#include "Scheduling.h" #include "Scheduling.h"
@@ -65,13 +42,20 @@
#include "LoadScreen.h"//dnl ch30 150909 #include "LoadScreen.h"//dnl ch30 150909
#include "Interface Cursors.h" #include "Interface Cursors.h"
#include "Simple Render Utils.h"//dnl ch54 111009 #include "Simple Render Utils.h"//dnl ch54 111009
#include "Interface.h"
///ddd ///ddd
#include "gamesettings.h" #include "gamesettings.h"
#include "editscreen.h" #include "editscreen.h"
#include "Button Defines.h"
#include "Editor Taskbar Utils.h" #include "Editor Taskbar Utils.h"
#endif #endif
#ifdef JA2EDITOR
#include "Summary Info.h"
#include "Button Defines.h"
#include "Animation Data.h"
#endif
#define SET_MOVEMENTCOST( a, b, c, d ) ( ( gubWorldMovementCosts[ a ][ b ][ c ] < d ) ? ( gubWorldMovementCosts[ a ][ b ][ c ] = d ) : 0 ); #define SET_MOVEMENTCOST( a, b, c, d ) ( ( gubWorldMovementCosts[ a ][ b ][ c ] < d ) ? ( gubWorldMovementCosts[ a ][ b ][ c ] = d ) : 0 );
#define FORCE_SET_MOVEMENTCOST( a, b, c, d ) ( gubWorldMovementCosts[ a ][ b ][ c ] = d ) #define FORCE_SET_MOVEMENTCOST( a, b, c, d ) ( gubWorldMovementCosts[ a ][ b ][ c ] = d )
#define SET_CURRMOVEMENTCOST( a, b ) SET_MOVEMENTCOST( usGridNo, a, 0, b ) #define SET_CURRMOVEMENTCOST( a, b ) SET_MOVEMENTCOST( usGridNo, a, 0, b )
+1 -4
View File
@@ -1,12 +1,10 @@
#ifndef __WORLDDEF_H #ifndef __WORLDDEF_H
#define __WORLDDEF_H #define __WORLDDEF_H
#include "vobject.h"
#include "tiledef.h"
//#include "Soldier Control.h"
#include "structure.h" #include "structure.h"
#include "Handle Items.h" #include "Handle Items.h"
#define WORLD_TILE_X 40 #define WORLD_TILE_X 40
#define WORLD_TILE_Y 20 #define WORLD_TILE_Y 20
#define CELL_X_SIZE 10 #define CELL_X_SIZE 10
@@ -33,7 +31,6 @@ extern INT32 guiWorldRows;
//</SB> //</SB>
//forward declarations of common classes to eliminate includes //forward declarations of common classes to eliminate includes
class OBJECTTYPE; class OBJECTTYPE;
class SOLDIERTYPE; class SOLDIERTYPE;
+2 -11
View File
@@ -2,26 +2,17 @@
#include "TileEngine All.h" #include "TileEngine All.h"
#else #else
#include "worlddef.h" #include "worlddef.h"
#include <stdio.h>
#include <string.h>
#include "wcheck.h"
#include "stdlib.h"
#include "video.h"
#include "debug.h"
#include "worldman.h" #include "worldman.h"
#include "wcheck.h"
#include "debug.h"
#include "lighting.h" #include "lighting.h"
#include "renderworld.h" #include "renderworld.h"
#include "overhead.h"
#include "ai.h" #include "ai.h"
#include "animation control.h" #include "animation control.h"
#include "isometric utils.h"
#include "Font Control.h"
#include "message.h" #include "message.h"
#include "tile cache.h" #include "tile cache.h"
#include "SaveLoadMap.h" #include "SaveLoadMap.h"
#include "random.h" #include "random.h"
#include "render fun.h"
#include "GameSettings.h"
// sevenfm // sevenfm
#include "PATHAI.H" #include "PATHAI.H"
#endif #endif