view Arcomage.h @ 17:3f3b61fd1c88

Слияние
author Lower
date Sat, 13 Oct 2012 20:31:30 +0600
parents 8b8875f5b359
children
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];