view TurnEngine.h @ 1439:468f434a8d8a

Слияние
author Ritor1
date Mon, 22 Jul 2013 18:00:58 +0600
parents e33188605eeb
children 5a5d0c713d47
line wrap: on
line source

#pragma once


enum TURN_ENGINE_FLAGS
    {
    TE_FLAG_1 =1,
    TE_FLAG_2 =2,
    TE_PLAYER_TURN =4,
    TE_FLAG_8 =8
    };


/*  299 */
#pragma pack(push, 1)
struct TurnBased_QueueElem
{
  inline TurnBased_QueueElem()
  {
    uPackedID = 0;
    field_4 = 0;
    uActionLength = 0;
    field_C = 0;
  }
  int uPackedID;
  int field_4;
  int uActionLength;
  int field_C;
};
#pragma pack(pop)

/*  254 */
#pragma pack(push, 1)
struct stru262_TurnBased
{
  inline stru262_TurnBased()
  {
    field_0 = 0;
    turn_stage = 0;
    field_8 = 0;
    uActorQueueSize = 0;
    field_10 = 0;
    uActionPointsLeft = 0;
    field_18 = 0;
    field_1C = 0;
  }

  void  SortTurnQueue();
  void _40471C();
  void  Start();
  void End(bool bPlaySound);
  void _405E14();
  void StartTurn();
  void NextTurn();
  int _4063A1();
  void _406457(int a2);
  void _40652A();
  void _4065B0();
  void AIRangedAttacks(unsigned int queue_index);
  void _40680F(int queue_index);
  void _406A63();
  void _406AFE();
  void  _406B9F();
  bool ActorTurn(signed int a2);
  void _406FA8();


  int field_0;
  int turn_stage;
  int field_8;
  int uActorQueueSize; //c
  int field_10;
  int uActionPointsLeft; //14
  int field_18;
  int field_1C;
  TurnBased_QueueElem pQueue[504]; //20
};
#pragma pack(pop)



extern struct stru262_TurnBased *pTurnEngine;