summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/common.h169
1 files changed, 156 insertions, 13 deletions
diff --git a/src/common.h b/src/common.h
index b0b92ef..138c326 100644
--- a/src/common.h
+++ b/src/common.h
@@ -6,104 +6,192 @@
#include <MBSTRING.H>
#include <CRTDBG.H>
#include <MMSYSTEM.H>
-#include <DSOUND.H>
+#include <OBJBASE.H>
+#include <dsound.h>
+#include <dinput.h>
#include <math.h>
+class CEditWFocus;
class CFilePlugin;
class CFilePluginList;
+class CLink;
+class CObjectQueue;
+class CPluginInfo;
class CProgramPlugin;
class CResFile;
class CResourcePlugin;
class CT2App;
class CTokenizer;
class CWave;
+class DbgIPS;
+class DbgStepRun;
class LArray;
class LArrayIterator;
class LAttachable;
class LAttachment;
class LBroadcaster;
class LListener;
+class MoverSearchDlg;
+class PeopleSearchDlg;
+class SoundDlg;
+class SpeedDlg;
class T2AdvertisePlugin;
class T2Archive;
class T2BitImage;
class T2BlackOut;
class T2ColdTableDef;
class T2CrossEquipArray;
+class T2CtrlPalette;
class T2DateTime;
class T2DayLightFilter;
+class T2DayParamDef;
+class T2Dialog;
class T2DlgItem;
+class T2DlgItemAllPurpose;
class T2DlgItemAnimation;
class T2DlgItemHScr;
class T2DlgItemVScr;
class T2DrawableObject;
+class T2ElevatorModule;
class T2Equip;
class T2EquipDef;
class T2EquipPlugin;
+class T2EquipPtrList;
+class T2EventDialog;
class T2EventItem;
+class T2Fire;
+class T2FireAttach;
class T2FireBurning;
class T2FloorInfo;
+class T2FloorNumberTable;
+class T2FloorPtrList;
class T2GlobalData;
+class T2GuestroomItem;
+class T2GuestroomTable;
+class T2HallEventItem;
+class T2HallEventPlugin;
class T2HaveOutViewObject;
+class T2Helicopter;
class T2ImageObj;
class T2InfoDialog;
+class T2MainWindow;
class T2Maru_Reggae;
class T2Matter;
+class T2MatterArray;
+class T2MatterArrayList;
class T2MatterDef;
+class T2Message;
class T2MetroRailway;
class T2Mover;
+class T2MoverArray;
class T2MoverArrayList;
class T2MoverDef;
class T2MoverModule;
+class T2MoverModuleList;
+class T2MoverModuleTable;
+class T2MoverPlugin;
+class T2MoverRoutingTable;
+class T2MovieParamArray;
+class T2MoviePlugin;
+class T2MoviePluginList;
+class T2MsgWindow;
class T2MWControl;
+class T2Name;
+class T2NameList;
class T2Object;
+class T2ObjectArray;
+class T2ObjectArrayList;
+class T2OptionPlugin;
+class T2OptionPluginList;
+class T2OutDeco;
+class T2OutDecoration;
+class T2OuterObjList;
class T2OutObj;
+class T2OutObjArray;
class T2OutObjArrayList;
class T2OuterObjDef;
class T2OutsideInfo;
class T2PaletteAnime;
class T2PaletteAnimeDef;
class T2People;
-class T2PeopleDef;
+class T2PeopleArray;
class T2PeopleArrayList;
+class T2PeopleAnimeDef;
+class T2PeopleAnimeDefElem;
+class T2PeopleDef;
+class T2PeoplePtrList;
+class T2PeopleTimeZoneList;
class T2PeopleType;
+class T2PeopleTypeArray;
+class T2PlaceParamDef;
+class T2PluginLoader;
class T2PluginSpecifier;
class T2Pool;
class T2PoolDef;
+class T2PoolDefDemandElem;
+class T2PoolGradeDef;
class T2PoolTimeZoneDef;
+class T2RegistedTenantDB;
class T2Request;
+class T2RequestArray;
class T2RequestArrayList;
+class T2RequestIDArray;
class T2ReturnStack;
class T2RouteCEArray;
+class T2RouteNavigator;
+class T2RoutingTable;
+class T2RoutingTableElem;
+class T2SantaClaus;
class T2SeasonParamDef;
+class T2Settlement;
class T2SilhouetteDef;
class T2SoundObjItem;
+class T2SoundObjItemList;
class T2SoundPlayer;
class T2Sprite;
class T2SpriteObj;
+class T2StopInfoArray;
+class T2SubPlugin;
class T2TemplatePlugin;
class T2TemplatePluginDB;
class T2TemplatePluginList;
class T2Tenant;
+class T2TenantArray;
class T2TenantArrayList;
class T2TenantDef;
class T2TenantMemberDef;
+class T2TenantMemberTableDef;
+class T2TenantPlugin;
+class T2ToolCallback;
class T2ToolDef;
+class T2ToolDefDB;
+class T2ToolDefList;
+class T2ToolIconItem;
+class T2ToolIconList;
class T2ToolPlugin;
class T2ToolWindow;
class T2TowerDoc;
class T2TowerEvent;
class T2TowerMainView;
+class T2TowerMessage;
class T2TowerVision;
+class T2TrafficInfo;
class T2Transport;
-class T2TreasureStatus;
+class T2TreasureDialog;
+class T2TreasurePane;
class T2UnitInfo;
class T2WeatherFilter;
class T2WordDefArray;
class T2WorldDef;
class T2WorldPlugin;
+class T2XEvent;
+class TenantSearchDlg;
+class WalkerDlg;
enum AREACHECKCODE {
- AreaCheckCode_0
+ AreaCheckCode_0,
+ AreaCheckCode_1,
+ AreaCheckCode_2
};
enum CURSORTYPE {
@@ -115,13 +203,32 @@ enum MOUSEEVENT {
};
enum OPTIONEVENTTYPE {
- OptionEventType_0
+ OptionEventType_0, // idle - no data
+ OptionEventType_1,
+ OptionEventType_2,
+ OptionEventType_3,
+ OptionEventType_4,
+ OptionEventType_5,
+ OptionEventType_6,
+ OptionEventType_7,
+ OptionEventType_8,
+ OptionEventType_9,
+ OptionEventType_10,
+ OptionEventType_11, // start of GetInterviewWords
+ OptionEventType_12, // end of GetInterviewWords
+};
+
+struct OptionEvent11Data {
+ T2People *people;
+ CString *str;
};
enum PARTCODE {
PartCode_0,
PartCode_1,
- PartCode_2
+ PartCode_2,
+ PartCode_3,
+ PartCode_4
};
enum PROCCODE {
@@ -131,15 +238,23 @@ enum PROCCODE {
};
enum ROOFANDFLOOR {
- RoofAndFloor_0
+ RoofAndFloor_Roof = 1,
+ RoofAndFloor_Floor = 2
};
enum SIDEOBJPATTERN {
- SideObjPattern_0
+ SideObjPattern_0,
+ SideObjPattern_1
};
enum VIEWMODE {
- ViewMode_0
+ ViewMode_0,
+ ViewMode_1,
+ ViewMode_2,
+ ViewMode_3,
+ ViewMode_4,
+ ViewMode_5,
+ ViewMode_6,
};
enum BOOL3 {
@@ -148,13 +263,35 @@ enum BOOL3 {
BOOL3_1 = 1
};
-enum ERequestUpDown;
+enum EEquipPos {
+ EEquipPos_0,
+ EEquipPos_1,
+ EEquipPos_2,
+ EEquipPos_3
+};
+
+enum ERequestUpDown {
+ ERequestUpDown_0,
+ ERequestUpDown_1
+};
struct BkgndInfo;
+struct T2RoofInfo; // not sure if this is a struct or a class
+
+struct T2TreasureStatus {
+ int _0;
+ char text[256];
+ int animID1;
+ int animID2;
+};
+struct Point {
+ int v;
+ int h;
+};
struct SDimension16 {
- short width;
short height;
+ short width;
};
struct TableCellT {
@@ -162,12 +299,18 @@ struct TableCellT {
UINT col;
};
+enum {
+ DrawMode0 = 0,
+ DrawMode1,
+ DrawMode2,
+ DrawMode3,
+ DrawMode4
+};
+
#ifdef _MSC_VER
#define MSVC_STDCALL __stdcall
-#define DLL_EXPORT __declspec(dllexport)
#else
#define MSVC_STDCALL
-#define DLL_EXPORT
#endif
// why is this necessary?