mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
@@ -3,25 +3,16 @@
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include "stdio.h"
|
||||
#include "sgp.h"
|
||||
#include "Ambient types.h"
|
||||
#include "fileman.h"
|
||||
#include "environment.h"
|
||||
#include "Ambient Control.h"
|
||||
#include "Sound Control.h"
|
||||
#include "Game Events.h"
|
||||
#include "Ambient Control.h"
|
||||
#include "lighting.h"
|
||||
#include "Random.h"
|
||||
// sevenfm
|
||||
#include "SmokeEffects.h"
|
||||
#include "message.h"
|
||||
#include "Overhead.h"
|
||||
#include "strategicmap.h"
|
||||
#include "Strategic Movement.h"
|
||||
#include "Game Clock.h"
|
||||
#include "Queen Command.h"
|
||||
#include "undergroundinit.h"
|
||||
#include "strategic mines.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -3,14 +3,9 @@
|
||||
#else
|
||||
#include "Types.h"
|
||||
#include "Buildings.h"
|
||||
#include "Isometric Utils.h"
|
||||
#include "Pathai.h"
|
||||
#include "Structure Wrap.h"
|
||||
#include "Random.h"
|
||||
#include "Overhead.h"
|
||||
#include "Render Fun.h"
|
||||
#include "Strategicmap.h"
|
||||
#include "Sys Globals.h"
|
||||
#include "worldman.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#define BUILDING_H
|
||||
|
||||
#include "worlddef.h"
|
||||
class SOLDIERTYPE;
|
||||
// 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)
|
||||
// NOWHERE or any other location
|
||||
|
||||
@@ -1,24 +1,17 @@
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include "FileMan.h"
|
||||
#include "debug.h"
|
||||
#include "types.h"
|
||||
#include "worlddef.h"
|
||||
#include "worldman.h"
|
||||
#include "smooth.h"
|
||||
#include "Exit Grids.h"
|
||||
#include "Editor Undo.h"
|
||||
#include "StrategicMap.h"
|
||||
#include "Strategic Movement.h"
|
||||
#include "message.h"
|
||||
#include "Font Control.h"
|
||||
#include "pathai.h"
|
||||
#include "overhead.h"
|
||||
#include "Animation Control.h"
|
||||
#include "Sys Globals.h"
|
||||
#include "quests.h"
|
||||
#include "SaveLoadMap.h"
|
||||
#include "Text.h"
|
||||
#endif
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#ifndef __EXIT_GRIDS_H
|
||||
#define __EXIT_GRIDS_H
|
||||
|
||||
#include "Fileman.h"
|
||||
#include "Worlddef.h"
|
||||
|
||||
//dnl ch42 250909
|
||||
|
||||
@@ -5,62 +5,31 @@
|
||||
#include "end game.h"
|
||||
#include "Morale.h"
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "stdlib.h"
|
||||
#include "debug.h"
|
||||
//#include "soldier control.h"
|
||||
#include "weapons.h"
|
||||
#include "handle items.h"
|
||||
#include "worlddef.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 "soldier create.h"
|
||||
#include "renderworld.h"
|
||||
#include "soldier add.h"
|
||||
#include "explosion control.h"
|
||||
#include "tile animation.h"
|
||||
#include "sound control.h"
|
||||
#include "weapons.h"
|
||||
#include "handle items.h"
|
||||
#include "world items.h"
|
||||
#include "structure wrap.h"
|
||||
#include "tiledef.h"
|
||||
#include "tiledat.h"
|
||||
#include "interactive tiles.h"
|
||||
#include "SaveLoadMap.h"
|
||||
#include "Message.h"
|
||||
#include "Random.h"
|
||||
#include "smokeeffects.h"
|
||||
#include "handle ui.h"
|
||||
#include "pathai.h"
|
||||
#include "campaign Types.h"
|
||||
#include "strategicmap.h"
|
||||
#include "strategic.h"
|
||||
#include "Action Items.h"
|
||||
#include "Soldier Profile.h"
|
||||
#include "Quests.h"
|
||||
#include "Interface Dialogue.h"
|
||||
#include "LightEffects.h"
|
||||
#include "AI.h"
|
||||
#include "Soldier tile.h"
|
||||
#include "lighting.h"
|
||||
#include "Render Fun.h"
|
||||
#include "Opplist.h"
|
||||
#include "smell.h"
|
||||
#include "GameSettings.h"
|
||||
#include "Interface.h"
|
||||
#include "end game.h"
|
||||
#include "WorldDat.h"
|
||||
#include "environment.h"
|
||||
#include "Buildings.h"
|
||||
#include "Keys.h"
|
||||
#include "Morale.h"
|
||||
#include "fov.h"
|
||||
#include "Map Information.h"
|
||||
#include "Soldier Functions.h"//dnl ch40 200909
|
||||
@@ -94,7 +63,6 @@
|
||||
class OBJECTTYPE;
|
||||
class SOLDIERTYPE;
|
||||
//DBrot: More Rooms
|
||||
//BOOLEAN HookerInRoom( UINT8 ubRoom );
|
||||
BOOLEAN HookerInRoom( UINT16 usRoom );
|
||||
|
||||
// MODULE FOR EXPLOSIONS
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "Fog Of War.h"
|
||||
#include "Isometric Utils.h"
|
||||
#include "Simple Render Utils.h"
|
||||
#include "Renderworld.h"
|
||||
#include "lighting.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#ifndef __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.
|
||||
void RemoveFogFromGridNo( INT32 uiGridNo );
|
||||
|
||||
@@ -3,42 +3,29 @@
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include "sgp.h"
|
||||
#include "himage.h"
|
||||
#include "vsurface.h"
|
||||
#include "sysutil.h"
|
||||
#include "renderworld.h"
|
||||
#include "interface.h"
|
||||
#include "Sound Control.h"
|
||||
#include "worlddef.h"
|
||||
#include "Interactive Tiles.h"
|
||||
#include "interface cursors.h"
|
||||
#include "worldman.h"
|
||||
#include "structure.h"
|
||||
#include "Animation Control.h"
|
||||
#include "points.h"
|
||||
#include "overhead.h"
|
||||
#include "structure wrap.h"
|
||||
#include "tile animation.h"
|
||||
#include "tile cache.h"
|
||||
#include "handle doors.h"
|
||||
#include "Strategicmap.h"
|
||||
#include "Quests.h"
|
||||
#include "Dialogue Control.h"
|
||||
#include "Random.h"
|
||||
#include "english.h"
|
||||
#include "handle items.h"
|
||||
#include "message.h"
|
||||
#include "handle ui.h"
|
||||
#include "NPC.h"
|
||||
#include "Explosion Control.h"
|
||||
#include "Text.h"
|
||||
#include "GameSettings.h"
|
||||
#include "environment.h"
|
||||
#endif
|
||||
|
||||
#ifdef JA2TESTVERSION
|
||||
#include "message.h"
|
||||
#endif
|
||||
|
||||
|
||||
#define MAX_INTTILE_STACK 10
|
||||
|
||||
typedef struct
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#ifndef __INTERACTIVE_TILES_H
|
||||
#define __INTERACTIVE_TILES_H
|
||||
|
||||
#include "Soldier Control.h"
|
||||
|
||||
#define INTTILE_DOOR_TILE_ONE 1
|
||||
|
||||
|
||||
@@ -1,22 +1,15 @@
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include "debug.h"
|
||||
#include "mousesystem.h"
|
||||
#include "jascreens.h"
|
||||
#include "worlddef.h"
|
||||
#include "renderworld.h"
|
||||
#include "Isometric Utils.h"
|
||||
#include "interface.h"
|
||||
#include "math.h"
|
||||
#include "worldman.h"
|
||||
#include "Structure Wrap.h"
|
||||
#include "sys globals.h"
|
||||
#include "overhead.h"
|
||||
#include "Random.h"
|
||||
#include "Pathai.h"
|
||||
#include "GameSettings.h" // added by Flugente
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -3,25 +3,13 @@
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "stdlib.h"
|
||||
#include "debug.h"
|
||||
//#include "soldier control.h"
|
||||
#include "weapons.h"
|
||||
#include "handle items.h"
|
||||
#include "worlddef.h"
|
||||
#include "animation control.h"
|
||||
#include "handle items.h"
|
||||
#include "lighteffects.h"
|
||||
#include "message.h"
|
||||
#include "isometric utils.h"
|
||||
#include "renderworld.h"
|
||||
#include "Random.h"
|
||||
#include "lighting.h"
|
||||
#include "Game Clock.h"
|
||||
#include "opplist.h"
|
||||
#include "Campaign Types.h"
|
||||
#include "Tactical Save.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <cmath> // added by Flugente
|
||||
//#include <cmath> // added by Flugente
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
@@ -7,15 +7,11 @@
|
||||
#include "pathai.h"
|
||||
#include "ai.h"
|
||||
#include "Map Information.h"
|
||||
#include "renderworld.h"
|
||||
#include "Isometric Utils.h"
|
||||
#include "debug.h"
|
||||
#include "Random.h"
|
||||
#include "strategic.h"
|
||||
#include "Animation Control.h"
|
||||
#include "Render Fun.h"
|
||||
#include "strategicmap.h"
|
||||
#include "environment.h"
|
||||
#include "worldman.h"
|
||||
#include "PreBattle Interface.h" // added by Flugente
|
||||
#endif
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
#ifndef __MAP_EDGEPOINTS_H
|
||||
#define __MAP_EDGEPOINTS_H
|
||||
|
||||
#include "types.h"
|
||||
#include "Fileman.h"
|
||||
#include "Overhead Types.h"
|
||||
#include "strategic.h"
|
||||
|
||||
typedef struct MAPEDGEPOINTINFO
|
||||
|
||||
@@ -3,40 +3,30 @@
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include "sgp.h"
|
||||
#include "Radar Screen.h"
|
||||
#include "sysutil.h"
|
||||
#include "line.h"
|
||||
#include "renderworld.h"
|
||||
#include "Isometric Utils.h"
|
||||
#include "Interface.h"
|
||||
#include "overhead.h"
|
||||
#include "Soldier Control.h"
|
||||
#include "lighting.h"
|
||||
#include "wcheck.h"
|
||||
#include "sysutil.h"
|
||||
#include "render dirty.h"
|
||||
#include "overhead map.h"
|
||||
#include "Squads.h"
|
||||
#include "mousesystem.h"
|
||||
#include "Text.h"
|
||||
#include "Font Control.h"
|
||||
#include "vobject.h"
|
||||
#include "Utilities.h"
|
||||
#include "Interface Control.h"
|
||||
#include "Game Clock.h"
|
||||
#include "Map Screen Interface Map Inventory.h"
|
||||
#include "meanwhile.h"
|
||||
#include "strategicmap.h"
|
||||
#include "Animation Data.h"
|
||||
#include "GameSettings.h"
|
||||
#include "Map Screen Interface.h" // added by Flugente
|
||||
#endif
|
||||
|
||||
//forward declarations of common classes to eliminate includes
|
||||
class OBJECTTYPE;
|
||||
class SOLDIERTYPE;
|
||||
extern std::vector<std::wstring> gSquadNameVector;
|
||||
extern INT8 gbWorldSectorZ;
|
||||
extern BOOLEAN AreInMeanwhile();
|
||||
#include "connect.h"
|
||||
|
||||
extern INT32 iCurrentMapSectorZ;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#ifndef __RADAR_SCREEN_H
|
||||
#define __RADAR_SCREEN_H
|
||||
|
||||
#include "interface.h"
|
||||
|
||||
// RADAR MOUSE REGION STUFF
|
||||
void RadarRegionMoveCallback( MOUSE_REGION * pRegion, INT32 iReason );
|
||||
|
||||
@@ -5,25 +5,27 @@
|
||||
#include "winfont.h"
|
||||
|
||||
#else
|
||||
#include "math.h"
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "worlddef.h"
|
||||
#include "renderworld.h"
|
||||
#include "vsurface.h"
|
||||
#include "Render Dirty.h"
|
||||
#include "sysutil.h"
|
||||
#include "container.h"
|
||||
#include "video.h"
|
||||
#include "vobject_blitters.h"
|
||||
#include "Font Control.h"
|
||||
#endif
|
||||
|
||||
#ifdef JA2BETAVERSION
|
||||
#include "Message.h"
|
||||
#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 BACKGROUND_BUFFERS 1500 //was 500
|
||||
#define VIDEO_OVERLAYS 100
|
||||
|
||||
@@ -1,26 +1,16 @@
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include "math.h"
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "Render Fun.h"
|
||||
#include "worlddef.h"
|
||||
#include "input.h"
|
||||
#include "sysutil.h"
|
||||
#include "debug.h"
|
||||
#include "worldman.h"
|
||||
#include "jascreens.h"
|
||||
#include "Isometric Utils.h"
|
||||
#include "renderworld.h"
|
||||
#include "fov.h"
|
||||
#include "Fog Of War.h"
|
||||
#include "environment.h"
|
||||
#include "dialogue control.h"
|
||||
#include "Random.h"
|
||||
#include "gamesettings.h"
|
||||
#include "Dialogue Control.h" // added by Flugente
|
||||
#endif
|
||||
|
||||
// Room Information
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#ifndef __RENDER_FUN_H
|
||||
#define __RENDER_FUN_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include "worlddef.h"
|
||||
|
||||
#define NO_ROOM 0
|
||||
@@ -10,7 +9,6 @@
|
||||
#define MAX_ROOMS 65530
|
||||
|
||||
extern UINT8 gubWorldRoomHidden[ MAX_ROOMS ];
|
||||
//extern UINT8* gubWorldRoomInfo;
|
||||
extern UINT16* gusWorldRoomInfo;
|
||||
|
||||
BOOLEAN InitRoomDatabase( );
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#include "Render Z.h"
|
||||
#include "worlddef.h"
|
||||
#include "renderworld.h"
|
||||
#include "Isometric Utils.h"
|
||||
|
||||
INT16 gsRScreenCenterX, gsRScreenCenterY;
|
||||
INT16 gsRDistToCenterY, gsRDistToCenterX;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#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 );
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <string.h>
|
||||
#include "stdlib.h"
|
||||
#include "debug.h"
|
||||
//#include "soldier control.h"
|
||||
#include "weapons.h"
|
||||
#include "handle items.h"
|
||||
#include "worlddef.h"
|
||||
|
||||
@@ -8,13 +8,8 @@
|
||||
#include "vehicles.h"
|
||||
#else
|
||||
//sgp
|
||||
#include "types.h"
|
||||
#include "mousesystem.h"
|
||||
#include "Button System.h"
|
||||
#include "input.h"
|
||||
#include "english.h"
|
||||
#include "debug.h"
|
||||
#include "vsurface.h"
|
||||
#include "video.h"
|
||||
#include "vobject_blitters.h"
|
||||
#include "line.h"
|
||||
@@ -24,15 +19,12 @@
|
||||
#include "Overhead Map.h"
|
||||
#include "strategicmap.h"
|
||||
#include "Interface.h"
|
||||
#include "Font Control.h"
|
||||
#include "overhead.h"
|
||||
#include "Render Dirty.h"
|
||||
#include "sysutil.h"
|
||||
#include "PreBattle Interface.h"
|
||||
#include "Soldier Profile.h"
|
||||
#include "Map Edgepoints.h"
|
||||
#include "strategic.h"
|
||||
#include "strategicmap.h"
|
||||
#include "gameloop.h"
|
||||
#include "message.h"
|
||||
#include "Map Information.h"
|
||||
@@ -40,14 +32,12 @@
|
||||
#include "cursors.h"
|
||||
#include "Cursor Control.h"
|
||||
#include "MessageBoxScreen.h"
|
||||
#include "assignments.h"
|
||||
#include "text.h"
|
||||
#include "WordWrap.h"
|
||||
#include "Game Clock.h"
|
||||
#include "Isometric Utils.h"
|
||||
#endif
|
||||
#include "connect.h"
|
||||
#include "saveloadscreen.h"
|
||||
#include "Map Edgepoints.h"
|
||||
#include "renderworld.h"//dnl ch45 051009
|
||||
#include "merc entering.h"
|
||||
#include "CampaignStats.h" // added by Flugente
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
#ifndef __TACTICAL_PLACEMENT_GUI_H
|
||||
#define __TACTICAL_PLACEMENT_GUI_H
|
||||
|
||||
#include "Soldier Control.h"
|
||||
#include "mousesystem.h"
|
||||
//#include "Soldier Control.h"
|
||||
//#include "mousesystem.h"
|
||||
typedef struct _MOUSE_REGION MOUSE_REGION;
|
||||
extern class SOLDIERTYPE;
|
||||
|
||||
void InitTacticalPlacementGUI();
|
||||
void KillTacticalPlacementGUI();
|
||||
|
||||
@@ -2,10 +2,7 @@
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include "worlddef.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "stdlib.h"
|
||||
#include "video.h"
|
||||
#include "tile animation.h"
|
||||
#include "debug.h"
|
||||
#include "worldman.h"
|
||||
#include "lighting.h"
|
||||
@@ -13,18 +10,11 @@
|
||||
#include "overhead.h"
|
||||
#include "ai.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 "explosion control.h"
|
||||
#include "weapons.h"
|
||||
#include "Keys.h"
|
||||
#include "bullets.h"
|
||||
#include "LightEffects.h"
|
||||
#include "rotting corpses.h"
|
||||
#include "SmokeEffects.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -3,21 +3,14 @@
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "stdlib.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 "tile surface.h"
|
||||
#include "tile cache.h"
|
||||
#include "fileman.h"
|
||||
#endif
|
||||
|
||||
#ifdef JA2TESTVERSION
|
||||
#include "sys globals.h"
|
||||
#endif
|
||||
|
||||
UINT32 guiNumTileCacheStructs = 0;
|
||||
UINT32 guiMaxTileCacheSize = 50;
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
#ifndef __TILE_CACHE_H
|
||||
#define __TILE_CACHE_H
|
||||
|
||||
#include "tiledef.h"
|
||||
#include "structure.h"
|
||||
|
||||
#define TILE_CACHE_START_INDEX 36000
|
||||
|
||||
@@ -47,11 +45,4 @@ void CheckForAndDeleteTileCacheStructInfo( LEVELNODE *pNode, UINT16 usIndex );
|
||||
|
||||
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
|
||||
@@ -3,17 +3,8 @@
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#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 "sys globals.h"
|
||||
#include "tiledat.h"
|
||||
#include "Fileman.h"
|
||||
#endif
|
||||
|
||||
#include "XML.h"
|
||||
|
||||
@@ -3,15 +3,9 @@
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <wchar.h>
|
||||
#include "worlddat.h"
|
||||
#include "worlddef.h"
|
||||
#include "tiledef.h"
|
||||
#include "sys globals.h"
|
||||
#include "tile surface.h"
|
||||
#include "fileMan.h"
|
||||
#include "Debug.h"
|
||||
#endif
|
||||
|
||||
@@ -19,7 +13,6 @@
|
||||
#include <vfs/Core/vfs_file_raii.h>
|
||||
#include "XML_TileSet.hpp"
|
||||
#include "XMLWriter.h"
|
||||
#include "GameSettings.h"
|
||||
|
||||
void ExportTilesets(vfs::Path const& filename);
|
||||
|
||||
|
||||
@@ -2,31 +2,19 @@
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include "sgp.h"
|
||||
#include "lighting.h"
|
||||
#include "environment.h"
|
||||
#include "renderworld.h"
|
||||
#include "Sound Control.h"
|
||||
#include "overhead.h"
|
||||
#include "Game Clock.h"
|
||||
#include "quests.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 "message.h"
|
||||
#include "opplist.h"
|
||||
#include "Random.h"
|
||||
#include "strategicmap.h"
|
||||
#include "GameSettings.h"
|
||||
#include "Points.h" // added by Flugente
|
||||
#include "Campaign.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 "Dialogue Control.h" // added by Flugente
|
||||
#endif
|
||||
|
||||
@@ -19,34 +19,17 @@
|
||||
#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 "jascreens.h"
|
||||
#include "Isometric Utils.h"
|
||||
#include "line.h"
|
||||
#include "Animation Control.h"
|
||||
#include "Animation Data.h"
|
||||
#include "Sys Globals.h"
|
||||
#include "tiledef.h"
|
||||
#include "lighting.h"
|
||||
#include "Structure Internals.h"
|
||||
#include "structure wrap.h"
|
||||
#include "Shade Table Util.h"
|
||||
#include "rotting corpses.h"
|
||||
#include "Fileman.h"
|
||||
#include "environment.h"
|
||||
#include "PATHAI.H"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#ifndef _LIGHTING_H_
|
||||
#define _LIGHTING_H_
|
||||
|
||||
#include "Soldier Control.h"
|
||||
#include "vobject.h"
|
||||
class SOLDIERTYPE;
|
||||
|
||||
/****************************************************************************************
|
||||
* JA2 Lighting Module
|
||||
|
||||
+11
-19
@@ -3,42 +3,25 @@
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include "stdio.h"
|
||||
#include "sgp.h"
|
||||
#include "vobject.h"
|
||||
#include "tiledef.h"
|
||||
#include "sysutil.h"
|
||||
#include "utilities.h"
|
||||
#include "worlddef.h"
|
||||
#include "isometric utils.h"
|
||||
#include "renderworld.h"
|
||||
#include "worlddat.h"
|
||||
#include "vobject_blitters.h"
|
||||
#include "overhead map.h"
|
||||
#include "interface.h"
|
||||
#include "interface control.h"
|
||||
#include "overhead.h"
|
||||
#include "radar screen.h"
|
||||
#include "cursors.h"
|
||||
#include "Sys Globals.h"
|
||||
#include "render dirty.h"
|
||||
#include "soldier find.h"
|
||||
#include "font control.h"
|
||||
#include "Game Clock.h"
|
||||
#include "interface panels.h"
|
||||
#include "english.h"
|
||||
#include "line.h"
|
||||
#include "map information.h"
|
||||
#include "Tactical Placement GUI.h"
|
||||
#include "world items.h"
|
||||
#include "message.h"
|
||||
#include "faces.h"
|
||||
#include "Squads.h"
|
||||
#include "Interactive Tiles.h"
|
||||
#include "gameloop.h"
|
||||
#include "sysutil.h"
|
||||
#include "tile surface.h"
|
||||
#include "GameSettings.h"
|
||||
#include <vector>
|
||||
#include "Action Items.h" // added by Flugente
|
||||
#endif
|
||||
|
||||
@@ -49,6 +32,15 @@
|
||||
extern SOLDIERINITNODE *gpSelected;
|
||||
#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
|
||||
{
|
||||
@@ -121,7 +113,7 @@ void CopyOverheadDBShadetablesFromTileset( );
|
||||
void RenderOverheadOverlays();
|
||||
|
||||
//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 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)
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
// explicit dependencies
|
||||
#include <math.h> // for sqrt
|
||||
#include <float.h>
|
||||
|
||||
typedef float real;
|
||||
|
||||
|
||||
+20
-37
@@ -1,51 +1,34 @@
|
||||
#include "builddefines.h"
|
||||
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include "physics.h"
|
||||
#include "wcheck.h"
|
||||
#include "timer control.h"
|
||||
#include "isometric utils.h"
|
||||
#include "los.h"
|
||||
#include "worldman.h"
|
||||
#include "event pump.h"
|
||||
#include "Sound Control.h"
|
||||
//#include "soldier control.h"
|
||||
#include "interface.h"
|
||||
#include "interface items.h"
|
||||
#include "weapons.h"
|
||||
#include "explosion control.h"
|
||||
#include "Debug Control.h"
|
||||
#include "tile animation.h"
|
||||
#include "message.h"
|
||||
#include "weapons.h"
|
||||
#include "structure wrap.h"
|
||||
#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
|
||||
#include "physics.h"
|
||||
#include "wcheck.h"
|
||||
#include "isometric utils.h"
|
||||
#include "worldman.h"
|
||||
#include "Sound Control.h"
|
||||
#include "interface.h"
|
||||
#include "interface items.h"
|
||||
#include "explosion control.h"
|
||||
#include "Debug Control.h"
|
||||
#include "message.h"
|
||||
#include "structure wrap.h"
|
||||
#include "animation control.h"
|
||||
#include "text.h"
|
||||
#include "Random.h"
|
||||
#include "lighteffects.h"
|
||||
#include "opplist.h"
|
||||
#include "Buildings.h"
|
||||
#include "Dialogue Control.h" // added by Flugente
|
||||
#endif
|
||||
|
||||
#include "Campaign.h"
|
||||
#include "SkillCheck.h"
|
||||
|
||||
#include "connect.h"
|
||||
|
||||
#include "GameInitOptionsScreen.h"
|
||||
|
||||
//forward declarations of common classes to eliminate includes
|
||||
class OBJECTTYPE;
|
||||
class SOLDIERTYPE;
|
||||
|
||||
extern INT16 EffectiveDexterity(SOLDIERTYPE* pSoldier, BOOLEAN fTrainer);
|
||||
|
||||
#define NO_TEST_OBJECT 0
|
||||
#define TEST_OBJECT_NO_COLLISIONS 1
|
||||
|
||||
@@ -2,10 +2,7 @@
|
||||
#define __PHYSICS_H
|
||||
|
||||
#include "phys math.h"
|
||||
#include "sgp.h"
|
||||
#include "worlddef.h"
|
||||
#include "items.h"
|
||||
#include "Soldier Control.h"
|
||||
|
||||
|
||||
extern UINT32 guiNumObjectSlots;
|
||||
|
||||
@@ -6,13 +6,10 @@
|
||||
#include "worlddef.h"
|
||||
#include "worldman.h"
|
||||
#include "Simple Render Utils.h"
|
||||
#include "World Items.h"
|
||||
#include "SaveLoadMap.h"
|
||||
#include "Exit Grids.h"
|
||||
#include "Sys Globals.h"
|
||||
#include "strategicmap.h"
|
||||
#include "Isometric Utils.h"
|
||||
#include "overhead.h"
|
||||
#include "Sound Control.h"
|
||||
#include "animation control.h"
|
||||
#include "strategic.h"
|
||||
|
||||
+22
-49
@@ -1,58 +1,31 @@
|
||||
#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
|
||||
#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"
|
||||
|
||||
UINT32 guiShieldGraphic = 0;
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
#ifndef __RENDERWORLD_H
|
||||
#define __RENDERWORLD_H
|
||||
|
||||
#include "worlddef.h"
|
||||
#include "LogicalBodyTypes/Layers.h"
|
||||
#include "LogicalBodyTypes/BodyTypeDB.h"
|
||||
|
||||
// TEMP SELECT STUFF
|
||||
#define NO_SELECT 0
|
||||
@@ -75,7 +72,8 @@ extern UINT8 gubCurScrollSpeedID;
|
||||
#define TILES_DYNAMIC_TOPMOST 0x00000001
|
||||
|
||||
|
||||
|
||||
// Forward declaration
|
||||
typedef struct TAG_HVOBJECT *HVOBJECT;
|
||||
|
||||
extern BOOLEAN gfRenderScroll;
|
||||
extern INT16 gsScrollXIncrement;
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include "sgp.h"
|
||||
#include "himage.h"
|
||||
#include "vsurface.h"
|
||||
#include "wcheck.h"
|
||||
#include "sysutil.h"
|
||||
#endif
|
||||
|
||||
@@ -3,15 +3,9 @@
|
||||
#else
|
||||
#include "tiledef.h"
|
||||
#include "worlddef.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "wcheck.h"
|
||||
#include "stdlib.h"
|
||||
#include "time.h"
|
||||
#include "video.h"
|
||||
#include "debug.h"
|
||||
#include "worldman.h"
|
||||
#include "gameloop.h"
|
||||
#include "edit_sys.h"
|
||||
#include "pathai.h"
|
||||
#include "tile surface.h"
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#define __TILEDEF_H
|
||||
|
||||
#include "vobject.h"
|
||||
#include "timer.h"
|
||||
#include "TileDat.h"
|
||||
#include "structure.h"
|
||||
|
||||
|
||||
+8
-24
@@ -6,50 +6,27 @@
|
||||
#else
|
||||
#include "worlddef.h"
|
||||
#include "worlddat.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "wcheck.h"
|
||||
#include "stdlib.h"
|
||||
#include "time.h"
|
||||
#include "video.h"
|
||||
#include "debug.h"
|
||||
#include "worldman.h"
|
||||
#include "mousesystem.h"
|
||||
#include "sys globals.h"
|
||||
#include "screenids.h"
|
||||
#include "Render Fun.h"
|
||||
#include "font control.h"
|
||||
#include "lighting.h"
|
||||
#include "structure.h"
|
||||
#include "vobject.h"
|
||||
#include "Soldier Control.h"
|
||||
#include "isometric utils.h"
|
||||
#include "Interactive Tiles.h"
|
||||
#include "utilities.h"
|
||||
#include "overhead.h"
|
||||
#include "Event Pump.h"
|
||||
#include "Handle UI.h"
|
||||
#include "opplist.h"
|
||||
#include "shading.h"
|
||||
#include "Animation Control.h"
|
||||
#include "World Items.h"
|
||||
#include "renderworld.h"
|
||||
#include "Radar Screen.h"
|
||||
#include "soldier create.h"
|
||||
#include "Soldier Init List.h"
|
||||
#include "Exit Grids.h"
|
||||
#include "tile surface.h"
|
||||
#include "rotting corpses.h"
|
||||
#include "Keys.h"
|
||||
#include "Map Information.h"
|
||||
#include "Exit Grids.h"
|
||||
#include "Summary Info.h"
|
||||
#include "Animated ProgressBar.h"
|
||||
#include "pathai.h"
|
||||
#include "EditorBuildings.h"
|
||||
#include "FileMan.h"
|
||||
#include "Map Edgepoints.h"
|
||||
#include "environment.h"
|
||||
#include "Shade Table Util.h"
|
||||
#include "Structure Wrap.h"
|
||||
#include "Scheduling.h"
|
||||
@@ -65,13 +42,20 @@
|
||||
#include "LoadScreen.h"//dnl ch30 150909
|
||||
#include "Interface Cursors.h"
|
||||
#include "Simple Render Utils.h"//dnl ch54 111009
|
||||
#include "Interface.h"
|
||||
///ddd
|
||||
#include "gamesettings.h"
|
||||
#include "editscreen.h"
|
||||
#include "Button Defines.h"
|
||||
#include "Editor Taskbar Utils.h"
|
||||
#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 FORCE_SET_MOVEMENTCOST( a, b, c, d ) ( gubWorldMovementCosts[ a ][ b ][ c ] = d )
|
||||
#define SET_CURRMOVEMENTCOST( a, b ) SET_MOVEMENTCOST( usGridNo, a, 0, b )
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
#ifndef __WORLDDEF_H
|
||||
#define __WORLDDEF_H
|
||||
|
||||
#include "vobject.h"
|
||||
#include "tiledef.h"
|
||||
//#include "Soldier Control.h"
|
||||
#include "structure.h"
|
||||
#include "Handle Items.h"
|
||||
|
||||
|
||||
#define WORLD_TILE_X 40
|
||||
#define WORLD_TILE_Y 20
|
||||
#define CELL_X_SIZE 10
|
||||
@@ -33,7 +31,6 @@ extern INT32 guiWorldRows;
|
||||
|
||||
//</SB>
|
||||
|
||||
|
||||
//forward declarations of common classes to eliminate includes
|
||||
class OBJECTTYPE;
|
||||
class SOLDIERTYPE;
|
||||
|
||||
+2
-11
@@ -2,26 +2,17 @@
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#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 "wcheck.h"
|
||||
#include "debug.h"
|
||||
#include "lighting.h"
|
||||
#include "renderworld.h"
|
||||
#include "overhead.h"
|
||||
#include "ai.h"
|
||||
#include "animation control.h"
|
||||
#include "isometric utils.h"
|
||||
#include "Font Control.h"
|
||||
#include "message.h"
|
||||
#include "tile cache.h"
|
||||
#include "SaveLoadMap.h"
|
||||
#include "random.h"
|
||||
#include "render fun.h"
|
||||
#include "GameSettings.h"
|
||||
// sevenfm
|
||||
#include "PATHAI.H"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user