diff options
Diffstat (limited to 'src/T2TowerDoc.cpp')
-rw-r--r-- | src/T2TowerDoc.cpp | 224 |
1 files changed, 114 insertions, 110 deletions
diff --git a/src/T2TowerDoc.cpp b/src/T2TowerDoc.cpp index 7fb998b..0bbb0f7 100644 --- a/src/T2TowerDoc.cpp +++ b/src/T2TowerDoc.cpp @@ -1,123 +1,127 @@ -#include "CFilePluginList.h" -#include "CObjectQueue.h" -#include "CPluginInfoArray.h" -#include "CPluginInfo.h" +#include "StdAfx.h" +#include "T2DLL/CFilePluginList.h" +#include "T2DLL/CObjectQueue.h" +#include "T2DLL/CPluginInfoArray.h" +#include "T2DLL/CPluginInfo.h" #include "DbgIPS.h" #include "DbgPeopleView.h" #include "DbgStepRun.h" -#include "GlobalFunc.h" +#include "T2DLL/GlobalFunc.h" #include "T2.h" -#include "T2AdvertisePlugin.h" -#include "T2Archive.h" -#include "T2ArrowWnd.h" -#include "T2BitImage.h" +#include "T2DLL/T2AdvertisePlugin.h" +#include "T2DLL/T2Archive.h" +#include "T2DLL/T2ArrowWnd.h" +#include "T2DLL/T2BitImage.h" #include "T2CtrlPalette.h" -#include "T2DateTime.h" -#include "T2Dialog.h" -#include "T2DlgItemAnimation.h" -#include "T2DlgItemProgress.h" -#include "T2DlgItemText.h" -#include "T2DLL.h" -#include "T2FInfoAreaIterator.h" -#include "T2FInfoPtIterator.h" -#include "T2FloorInfo.h" -#include "T2HallEventPlugin.h" +#include "T2DLL/T2DateTime.h" +#include "T2DLL/T2Dialog.h" +#include "T2DLL/T2DlgItemAnimation.h" +#include "T2DLL/T2DlgItemProgress.h" +#include "T2DLL/T2DlgItemText.h" +#include "T2DLL/T2DLL.h" +#include "T2DLL/T2FInfoAreaIterator.h" +#include "T2DLL/T2FInfoPtIterator.h" +#include "T2DLL/T2FloorInfo.h" +#include "T2DLL/T2HallEventPlugin.h" #include "T2MainWindow.h" -#include "T2Mover.h" -#include "T2MoverArray.h" -#include "T2MoverArrayList.h" -#include "T2MoverDef.h" -#include "T2MoverPlugin.h" -#include "T2MoviePlugin.h" -#include "T2MoviePluginList.h" +#include "T2DLL/T2Mover.h" +#include "T2DLL/T2MoverArray.h" +#include "T2DLL/T2MoverArrayList.h" +#include "T2DLL/T2MoverDef.h" +#include "T2DLL/T2MoverPlugin.h" +#include "T2DLL/T2MoviePlugin.h" +#include "T2DLL/T2MoviePluginList.h" #include "T2MsgWindow.h" #include "T2MWControl.h" -#include "T2Name.h" -#include "T2NameList.h" +#include "T2DLL/T2Name.h" +#include "T2DLL/T2NameList.h" #include "T2OpenSelectDlg.h" -#include "T2OptionPluginList.h" -#include "T2OuterObjDef.h" -#include "T2OuterObjList.h" -#include "T2OuterObjPlugin.h" -#include "T2OutObj.h" -#include "T2OutObjArray.h" -#include "T2OutObjArrayList.h" -#include "T2PaletteAnime.h" -#include "T2People.h" -#include "T2PeopleArray.h" -#include "T2PeopleArrayList.h" -#include "T2PeopleDef.h" -#include "T2PeopleLoader.h" -#include "T2PluginInfoTable.h" -#include "T2PluginLoader.h" -#include "T2PluginSpecifier.h" -#include "T2Pool.h" +#include "T2DLL/T2OptionPluginList.h" +#include "T2DLL/T2OuterObjDef.h" +#include "T2DLL/T2OuterObjList.h" +#include "T2DLL/T2OuterObjPlugin.h" +#include "T2DLL/T2OutObj.h" +#include "T2DLL/T2OutObjArray.h" +#include "T2DLL/T2OutObjArrayList.h" +#include "T2DLL/T2PaletteAnime.h" +#include "T2DLL/T2People.h" +#include "T2DLL/T2PeopleArray.h" +#include "T2DLL/T2PeopleArrayList.h" +#include "T2DLL/T2PeopleDef.h" +#include "T2DLL/T2PeopleLoader.h" +#include "T2DLL/T2PluginInfoTable.h" +#include "T2DLL/T2PluginLoader.h" +#include "T2DLL/T2PluginSpecifier.h" +#include "T2DLL/T2Pool.h" #include "T2PoolView.h" -#include "T2RegistedTenantDB.h" -#include "T2Request.h" -#include "T2RequestArrayList.h" -#include "T2RouteNavigator.h" -#include "T2SearchDialog.h" -#include "T2SettingDialog.h" -#include "T2Settlement.h" -#include "T2SilhouetteDef.h" -#include "T2SoundPlayer.h" -#include "T2StewardDialog.h" +#include "T2DLL/T2RegistedTenantDB.h" +#include "T2DLL/T2Request.h" +#include "T2DLL/T2RequestArrayList.h" +#include "T2DLL/T2RouteNavigator.h" +#include "T2DLL/T2SearchDialog.h" +#include "T2DLL/T2SettingDialog.h" +#include "T2DLL/T2Settlement.h" +#include "T2DLL/T2SilhouetteDef.h" +#include "T2DLL/T2SoundPlayer.h" +#include "T2DLL/T2StewardDialog.h" #include "T2SysInfoDlg.h" -#include "T2TemplatePluginDB.h" -#include "T2TemplatePluginList.h" -#include "T2Tenant.h" -#include "T2TenantArray.h" -#include "T2TenantArrayList.h" -#include "T2TenantDef.h" -#include "T2TenantPlugin.h" -#include "T2ToolWindow.h" +#include "T2DLL/T2TemplatePluginDB.h" +#include "T2DLL/T2TemplatePluginList.h" +#include "T2DLL/T2Tenant.h" +#include "T2DLL/T2TenantArray.h" +#include "T2DLL/T2TenantArrayList.h" +#include "T2DLL/T2TenantDef.h" +#include "T2DLL/T2TenantPlugin.h" +#include "T2DLL/T2ToolWindow.h" #include "T2TowerDoc.h" -#include "T2TowerEvent.h" +#include "T2DLL/T2TowerEvent.h" #include "T2TowerMainView.h" -#include "T2TowerMessage.h" -#include "T2TrafficInfo.h" -#include "T2TreasureDialog.h" -#include "T2UnitInfo.h" -#include "T2WorldDef.h" -#include "T2WorldPlugin.h" +#include "T2DLL/T2TowerMessage.h" +#include "T2DLL/T2TrafficInfo.h" +#include "T2DLL/T2TreasureDialog.h" +#include "T2DLL/T2UnitInfo.h" +#include "T2DLL/T2WorldDef.h" +#include "T2DLL/T2WorldPlugin.h" #include "T2WorldSelectDlg.h" -#include "UT2BkgndInfo.h" -#include "UT2Coordinate.h" -#include "UT2Utils.h" +#include "T2DLL/UT2BkgndInfo.h" +#include "T2DLL/UT2Coordinate.h" +#include "T2DLL/UT2Utils.h" +#include "resource.h" IMPLEMENT_DYNCREATE(T2TowerDoc, CDocument) BEGIN_MESSAGE_MAP(T2TowerDoc, CDocument) - ON_COMMAND(0x8009, OnSystemInformation) - ON_UPDATE_COMMAND_UI(0x800A, OnUpdateDebugStepRun) - ON_COMMAND(0x800A, OnDebugStepRun) - ON_UPDATE_COMMAND_UI(0x8010, OnUpdateDebugIdleSpeedMeasuring) - ON_COMMAND(0x8010, OnDebugIdleSpeedMeasuring) - ON_UPDATE_COMMAND_UI(0x8011, OnUpdateDebugAllLoadMeasuring) - ON_COMMAND(0x8011, OnDebugAllLoadMeasuring) - ON_UPDATE_COMMAND_UI(0x8012, OnUpdateDebugPool) - ON_COMMAND(0x8012, OnDebugPool) - ON_UPDATE_COMMAND_UI(0x8013, OnUpdateDebugDisplayIPS) - ON_COMMAND(0x8013, OnDebugDisplayIPS) - ON_UPDATE_COMMAND_UI(0x8014, OnUpdateDebugPeople) - ON_COMMAND(0x8014, OnDebugPeople) - ON_COMMAND(0x8015, OnDebugGradeUp) - ON_COMMAND(0x8016, OnDebugGradeDown) - ON_COMMAND(0x8019, OnPause) - ON_UPDATE_COMMAND_UI(0x8019, OnUpdatePause) - ON_COMMAND(0x801A, OnSetting) - ON_UPDATE_COMMAND_UI(0x801A, OnUpdateSetting) - ON_COMMAND(0x801B, OnHideElevatorRoom) - ON_UPDATE_COMMAND_UI(0x801B, OnUpdateHideElevatorRoom) - ON_COMMAND(0x8022, OnFavorite) - ON_UPDATE_COMMAND_UI(0x8022, OnUpdateFavorite) - ON_COMMAND(0x801F, OnHideControlWindow) - ON_UPDATE_COMMAND_UI(0x801F, OnUpdateHideControlWindow) - ON_COMMAND(0x8020, OnHideMessageWindow) - ON_UPDATE_COMMAND_UI(0x8020, OnUpdateHideMessageWindow) - ON_COMMAND(0x8021, OnHideToolWindow) - ON_UPDATE_COMMAND_UI(0x8021, OnUpdateHideToolWindow) + //{{AFX_MSG_MAP(T2TowerDoc) + ON_COMMAND(ID_SYSTEM_INFO, OnSystemInformation) + ON_UPDATE_COMMAND_UI(ID_DBG_STEP_RUN, OnUpdateDebugStepRun) + ON_COMMAND(ID_DBG_STEP_RUN, OnDebugStepRun) + ON_UPDATE_COMMAND_UI(ID_DBG_IDLE_SPEED_MEASURING, OnUpdateDebugIdleSpeedMeasuring) + ON_COMMAND(ID_DBG_IDLE_SPEED_MEASURING, OnDebugIdleSpeedMeasuring) + ON_UPDATE_COMMAND_UI(ID_DBG_ALL_LOAD_MEASURING, OnUpdateDebugAllLoadMeasuring) + ON_COMMAND(ID_DBG_ALL_LOAD_MEASURING, OnDebugAllLoadMeasuring) + ON_UPDATE_COMMAND_UI(ID_DBG_POOL, OnUpdateDebugPool) + ON_COMMAND(ID_DBG_POOL, OnDebugPool) + ON_UPDATE_COMMAND_UI(ID_DBG_DISPLAY_IPS, OnUpdateDebugDisplayIPS) + ON_COMMAND(ID_DBG_DISPLAY_IPS, OnDebugDisplayIPS) + ON_UPDATE_COMMAND_UI(ID_DBG_PEOPLE, OnUpdateDebugPeople) + ON_COMMAND(ID_DBG_PEOPLE, OnDebugPeople) + ON_COMMAND(ID_DBG_GRADE_UP, OnDebugGradeUp) + ON_COMMAND(ID_DBG_GRADE_DOWN, OnDebugGradeDown) + ON_COMMAND(ID_PAUSE, OnPause) + ON_UPDATE_COMMAND_UI(ID_PAUSE, OnUpdatePause) + ON_COMMAND(ID_SETTING, OnSetting) + ON_UPDATE_COMMAND_UI(ID_SETTING, OnUpdateSetting) + ON_COMMAND(ID_HIDE_ELEVATOR_ROOM, OnHideElevatorRoom) + ON_UPDATE_COMMAND_UI(ID_HIDE_ELEVATOR_ROOM, OnUpdateHideElevatorRoom) + ON_COMMAND(ID_FAVORITE, OnFavorite) + ON_UPDATE_COMMAND_UI(ID_FAVORITE, OnUpdateFavorite) + ON_COMMAND(ID_HIDE_CONTROL_WINDOW, OnHideControlWindow) + ON_UPDATE_COMMAND_UI(ID_HIDE_CONTROL_WINDOW, OnUpdateHideControlWindow) + ON_COMMAND(ID_HIDE_MESSAGE_WINDOW, OnHideMessageWindow) + ON_UPDATE_COMMAND_UI(ID_HIDE_MESSAGE_WINDOW, OnUpdateHideMessageWindow) + ON_COMMAND(ID_HIDE_TOOL_WINDOW, OnHideToolWindow) + ON_UPDATE_COMMAND_UI(ID_HIDE_TOOL_WINDOW, OnUpdateHideToolWindow) + //}}AFX_MSG_MAP END_MESSAGE_MAP() T2TowerDoc::T2TowerDoc() { @@ -1492,14 +1496,14 @@ int T2TowerDoc::HitTestLayer(T2BitImage *inImage, POINT inPt, HitTestResult &out } static int cursors[16] = { - 194, 184, - 187, 188, - 193, 183, - 195, 195, - 189, 190, - 185, 185, - 192, 192, - 210, 210 + IDC_DESTRUCT_B, IDC_DESTRUCT, + IDC_FINGER, IDC_FINGER_B, + IDC_INFO_B, IDC_INFO, + IDC_ZOOM, IDC_ZOOM, + IDC_HAND, IDC_HAND_B, + IDC_MIC, IDC_MIC, + IDC_SEARCH_RANGE, IDC_SEARCH_RANGE, + IDC_T2_NO, IDC_T2_NO }; /*virtual*/ void T2TowerDoc::SetCursorType(int inCursor, BOOL inIsPressed) { |