diff MM7.h @ 0:9c0607679772

init
author Ritor1
date Sat, 12 Jan 2013 09:45:18 +0600
parents
children 49728858c35e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MM7.h	Sat Jan 12 09:45:18 2013 +0600
@@ -0,0 +1,440 @@
+#pragma once
+#include "OSAPI.h"
+#include <math.h>
+#include <stdio.h>
+#include <stdarg.h>
+#include <string>
+
+typedef unsigned int uint;
+#define LOWORD(a) (*((unsigned short *)&a))
+#define HIWORD(a) (*((unsigned short *)&a + 1))
+#define SHIWORD(a) (*((short *)&a + 1))
+
+#define LODWORD(a) (*((unsigned int *)&a))
+#define HIDWORD(a) (*((unsigned int *)&a + 1))
+#define SLODWORD(a) (*((int *)&a))
+#define SHIDWORD(a) (*((int *)&a + 1))
+
+#define LOBYTE(a) (*((unsigned char *)&a))
+#define HIBYTE(a) (*((unsigned char *)&a + sizeof(a) - 1))
+#define BYTE1(a) (*((unsigned char *)&a + 1))
+#define BYTE2(a) (*((unsigned char *)&a + 2))
+#define BYTE3(a) (*((unsigned char *)&a + 3))
+
+
+typedef unsigned __int16 _WORD;
+typedef unsigned __int64 _QWORD;
+
+
+#include "VectorTypes.h"
+#include "IndoorCameraD3D.h"
+/*#include "LOD.h"
+#include "Texture.h"
+#include "Mouse.h"
+#include "Overlays.h"
+#include "Game.h"
+#include "Items.h"
+#include "Actor.h"
+#include "Arcomage.h"
+#include "Render.h"
+#include "Time.h"
+#include "GUIWindow.h"
+#include "GUIButton.h"
+#include "GUIProgressBar.h"
+#include "GUIFont.h"
+#include "NPC.h"
+#include "PaletteManager.h"
+#include "Party.h"
+#include "AudioPlayer.h"
+#include "VideoPlayer.h"
+#include "Chest.h"
+#include "Allocator.h"
+#include "IndoorCamera.h"
+#include "Party.h"
+#include "Outdoor.h"
+
+#include "mm7_data.h"
+*/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/*  154 */
+#pragma pack(push, 1)
+struct stru161
+{
+  Vec3_int_ pos;
+  __int16 rot_y;
+  __int16 rot_x;
+  unsigned __int16 uMapInfoID;
+  __int16 field_12;
+};
+#pragma pack(pop)
+extern stru161 stru_4ECBB8[6]; // weak
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/*  285 */
+#pragma pack(push, 1)
+struct stru289
+{
+  //----- (0046263C) --------------------------------------------------------
+  inline stru289()
+  {
+    this->field_64 = 2;
+    this->field_74 = 0;
+    this->field_70 = 0;
+    this->field_6C = 0;
+    this->field_68 = 0;
+  }
+
+
+  char field_0[100];
+  int field_64;
+  int field_68;
+  int field_6C;
+  int field_70;
+  int field_74;
+};
+#pragma pack(pop)
+extern stru289 stru_6BE158;
+
+
+
+/*  288 */
+#pragma pack(push, 1)
+struct CheckHRESULT_stru0
+{
+  void CheckHRESULT(HRESULT a2, const char *Str, int a4, unsigned int uType);
+  void *_466D09_xcpt_string(std::string a2, const char *Str, int a4);
+  void ShowMessageBox(std::string *a0, std::string lpCaption, UINT uType, std::string lpText, int line);
+  char ddraw_error(HRESULT hr, char *Str, size_t a3);
+  char dinput_error(int a1, const char *Str, int a3);
+
+  void (__thiscall ***vdestructor_ptr)(CheckHRESULT_stru0 *, bool);
+};
+#pragma pack(pop)
+
+
+
+
+/*  297 */
+enum SoundType
+{
+  SOUND_EndTurnBasedMode = 0xCE,
+  SOUND_StartTurnBasedMode = 0xCF,
+  SOUND_FlipOnExit = 0x4E21,
+};
+
+
+
+
+
+/*  301 */
+enum PlayerSpeech
+{
+  SPEECH_Yell = 0x41,
+};
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/*  349 */
+enum HOUSE_TYPE
+{
+  HOUSE_BODY_GUILD_NOVICE_EMERALD_ISLE = 0xA3,
+};
+
+
+
+
+
+
+
+
+
+
+
+/*  362 */
+#pragma pack(push, 1)
+struct TravelInfo
+{
+  char uMapID;
+  char pSchedule[7];
+  char uDaysCount;
+  char field_9[3];
+  int x;
+  int y;
+  int z;
+  int direction;
+  int field_1C;
+};
+#pragma pack(pop)
+
+
+
+
+
+
+/*  369 */
+#pragma pack(push, 1)
+struct stru329
+{
+  int field_0;
+  float field_4;
+  int field_8;
+  int field_C;
+  int equip_x;
+  int equip_y;
+  int field_18;
+  int field_1C;
+  int field_20;
+  int field_24;
+  int field_28;
+  int field_2C;
+  int field_30;
+  int field_34;
+  int field_38;
+  int field_3C;
+  int field_40;
+  int field_44;
+  int field_48;
+  int field_4C;
+  int field_50;
+  int field_54;
+  int field_58;
+  int field_5C;
+  int field_60;
+  int field_64;
+  int field_68;
+  int field_6C;
+  int field_70;
+  int field_74;
+  int field_78;
+  int field_7C;
+};
+#pragma pack(pop)
+extern stru329 array_4E4C30[4];
+
+/*  371 */
+#pragma pack(push, 1)
+struct stru331
+{
+  int field_0;
+  int field_4;
+  int field_8;
+  int field_C;
+  int field_10;
+  int field_14;
+  int field_18;
+  int field_1C;
+  int field_20;
+  int field_24;
+  int field_28;
+  int field_2C;
+  int field_30;
+  int field_34;
+  int field_38;
+  int field_3C;
+};
+#pragma pack(pop)
+
+/*  372 */
+#pragma pack(push, 1)
+struct stru332
+{
+  unsigned int texids[11];
+  stru331 field_2C;
+};
+#pragma pack(pop)
+extern stru332 stru_511698;
+
+
+/*  373 */
+#pragma pack(push, 1)
+struct stru333
+{
+  unsigned int texids[5];
+  unsigned int *texid1;
+  int field_18;
+};
+#pragma pack(pop)
+extern stru333 stru_511718;
+
+
+/*  374 */
+#pragma pack(push, 1)
+struct stru334
+{
+  __int16 field_0;
+  __int16 field_2;
+  __int16 field_4;
+  __int16 field_6;
+};
+#pragma pack(pop)
+extern stru334 array_4E2940[26];
+
+/*  376 */
+#pragma pack(push, 1)
+struct stru336
+{
+  int field_0;
+  int field_4;
+  int field_8;
+  int field_C;
+  int field_10;
+  int field_14;
+  __int16 field_18[480];
+  __int16 field_3D8[480];
+};
+#pragma pack(pop)
+
+
+
+
+
+
+
+
+
+
+
+
+
+/*  388 */
+#pragma pack(push, 1)
+struct stru348
+{
+  __int16 field_0;
+  __int16 field_2;
+  __int16 field_4;
+  __int16 field_6;
+  __int16 field_8;
+  __int16 field_A;
+  __int16 field_C;
+  __int16 field_E;
+  __int16 field_10;
+  __int16 field_12;
+  int field_14;
+};
+#pragma pack(pop)
+
+extern stru348 stru_4E1890[13];
+
+
+
+
+
+