view Arcomage.h @ 1136:3dc32954f1c7

Слияние
author Ritor1
date Sat, 25 May 2013 02:23:47 +0600
parents b462b598b97a
children fa30ea497e94
line wrap: on
line source

#pragma once
#include "OSAPI.h"

#include "Texture.h"



#pragma pack(push, 1)
struct ArcomageRect
{
  int x;
  int y;
  int z;
  int w;
};
#pragma pack(pop)


/*  272 */
#pragma pack(push, 1)
struct ArcomageCard
{
  char pCardName[20];
  int field_14;
  int field_18;
  int field_1C;
  int slot;
  int field_24;
  int field_28;
  int field_2C;
  float field_30;
  int field_34;
  char field_38[16];
  char field_48[16];
  char field_58[16];
  int field_68;
};
#pragma pack(pop)




#pragma pack(push, 1)
struct ArcomageGame_stru0
{
  char pPlayerName[32];
  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 arr_44[10];
  int arr_6C[10][2];
};
#pragma pack(pop)



#pragma pack(push, 1)
struct ArcomageGame_stru1
{
  int field_0;
  int field_4;
  int field_8;
};
#pragma pack(pop)




#pragma pack(push, 1)
struct ArcomageGame
{
  ArcomageGame();

  static bool LoadBackground();
  static bool LoadSprites();
  static bool MsgLoop(int a1, ArcomageGame_stru1 *a2);
  static void PlaySound(unsigned int a1);
  static void OnMouseClick(char right_left, bool bDown);
  static void OnMouseMove(POINT *pXY);
  static void GetCardRect(unsigned int uCardID, ArcomageRect *pCardRect);

  static void Loop();

  char field_0;
  char field_1;
  char field_2;
  char field_3;
  int field_4;
  ArcomageGame_stru1 stru1;
  tagMSG msg;
  int mouse_x;
  int mouse_y;
  char mouse_left;
  char field_39;
  char mouse_right;
  char field_3B;
  unsigned __int16 *pBackgroundPixels;
  unsigned __int16 *pSpritesPixels;
  unsigned __int16 *pBlit_Copy_pixels;
  struct GUIFont *pFont1;//ptr_48;
  struct GUIFont *pFont2;//ptr_4C;
  int field_50;
  __int16 field_54;
  __int16 field_56;
  RGBTexture pGameBackground;
  RGBTexture pSprites;
  int event_timer_time;
  int uGameResult;
  int field_B0;
  char pPlayer1Name[32];
  char pPlayer2Name[32];
  char field_F4;
  char field_F5;
  char field_F6;
  char field_F7;
  char field_F8;
  char field_F9;
  char bGameInProgress;
};
#pragma pack(pop)




extern ArcomageGame *pArcomageGame;
extern ArcomageCard pCards[87];
extern ArcomageGame_stru0 stru_505708[2];
















/*  270 */
#pragma pack(push, 1)
struct stru272_stru0         // ARCOMAGE stuff
{
  int _40DFFE();
  int _40E01A(int a2);
  int _40E0F5(char a2, char a3);
  int _40E133();
  int _40E2A7();

  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;
  float field_28;
  float field_2C;
  float 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;
  char field_58;
  char field_59;
  char field_5A;
  char field_5B;
};
#pragma pack(pop)


/*  266 */
#pragma pack(push, 1)
struct stru272
{
  void _40DFD1();

  struct stru272_stru0 *ptr_0;
  char field_4[4264];
};
#pragma pack(pop)


extern stru272 array_4FAC10[10];