Mercurial > mm7
view MM7.h @ 913:a8a3efd631de
CharacterUI_DrawPaperdollWithRingOverlay clean
author | Ritor1 |
---|---|
date | Mon, 22 Apr 2013 21:29:21 +0600 |
parents | 4dc2252e0b03 |
children | 016e3577865c |
line wrap: on
line source
#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)) #define PID(type, id) (unsigned int)((((8 * (id))) | (type)) & 0xFFFF) // packed id #define PID_TYPE(pid) (unsigned int)((pid) & 7) // extract type #define PID_ID(pid) (unsigned int)(((pid) & 0xFFFF) >> 3) // extract value 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" */ /* 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, }; /* 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) #pragma pack(pop) extern int paperdoll_Weapon[4][16][2]; /* 371 */ // stru331 - deleted /* 372 */ #pragma pack(push, 1) /*struct stru332 { unsigned int texids[11]; int texid1; int texid2; int texid3; int texid4; int texid5; };*/ #pragma pack(pop) extern int paperdoll_helm_texture[2][16]; /* 373 */ #pragma pack(push, 1) /*struct stru333 { unsigned int texids[5]; int texid1; int texid2; };*/ #pragma pack(pop) extern int paperdoll_belt_texture[2][7]; /* 374 */ #pragma pack(push, 1) struct stat_coord { __int16 x; __int16 y; __int16 width; __int16 height; }; #pragma pack(pop) extern stat_coord stat_string_coord[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];