annotate TurnEngine.h @ 1341:67e47fc3133d

TE refactiring continue
author Gloval
date Sat, 06 Jul 2013 23:00:24 +0400
parents 22cb507446a4
children bdf0cc8620ad
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
Ritor1
parents:
diff changeset
3
1332
1e35cfed7928 turn engine file added
Gloval
parents: 1331
diff changeset
4 enum TURN_ENGINE_FLAGS
1e35cfed7928 turn engine file added
Gloval
parents: 1331
diff changeset
5 {
1e35cfed7928 turn engine file added
Gloval
parents: 1331
diff changeset
6 TE_FLAG_1 =1,
1e35cfed7928 turn engine file added
Gloval
parents: 1331
diff changeset
7 TE_FLAG_2 =2,
1e35cfed7928 turn engine file added
Gloval
parents: 1331
diff changeset
8 TE_PLAYER_TURN =4,
1e35cfed7928 turn engine file added
Gloval
parents: 1331
diff changeset
9 TE_FLAG_8 =8
1e35cfed7928 turn engine file added
Gloval
parents: 1331
diff changeset
10 };
1e35cfed7928 turn engine file added
Gloval
parents: 1331
diff changeset
11
0
Ritor1
parents:
diff changeset
12
Ritor1
parents:
diff changeset
13 /* 299 */
Ritor1
parents:
diff changeset
14 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
15 struct TurnBased_QueueElem
Ritor1
parents:
diff changeset
16 {
372
Nomad
parents: 370
diff changeset
17 inline TurnBased_QueueElem()
Nomad
parents: 370
diff changeset
18 {
Nomad
parents: 370
diff changeset
19 uPackedID = 0;
Nomad
parents: 370
diff changeset
20 field_4 = 0;
Nomad
parents: 370
diff changeset
21 uActionLength = 0;
Nomad
parents: 370
diff changeset
22 field_C = 0;
Nomad
parents: 370
diff changeset
23 }
0
Ritor1
parents:
diff changeset
24 int uPackedID;
Ritor1
parents:
diff changeset
25 int field_4;
Ritor1
parents:
diff changeset
26 int uActionLength;
Ritor1
parents:
diff changeset
27 int field_C;
Ritor1
parents:
diff changeset
28 };
Ritor1
parents:
diff changeset
29 #pragma pack(pop)
Ritor1
parents:
diff changeset
30
Ritor1
parents:
diff changeset
31 /* 254 */
Ritor1
parents:
diff changeset
32 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
33 struct stru262_TurnBased
Ritor1
parents:
diff changeset
34 {
370
7f817679b60e _42777D_CastSpell_UseWand_ShootArrow
Nomad
parents: 322
diff changeset
35 inline stru262_TurnBased()
7f817679b60e _42777D_CastSpell_UseWand_ShootArrow
Nomad
parents: 322
diff changeset
36 {
7f817679b60e _42777D_CastSpell_UseWand_ShootArrow
Nomad
parents: 322
diff changeset
37 field_0 = 0;
1340
22cb507446a4 turnengine refactoring continue
Gloval
parents: 1332
diff changeset
38 turn_stage = 0;
370
7f817679b60e _42777D_CastSpell_UseWand_ShootArrow
Nomad
parents: 322
diff changeset
39 field_8 = 0;
7f817679b60e _42777D_CastSpell_UseWand_ShootArrow
Nomad
parents: 322
diff changeset
40 uActorQueueSize = 0;
7f817679b60e _42777D_CastSpell_UseWand_ShootArrow
Nomad
parents: 322
diff changeset
41 field_10 = 0;
7f817679b60e _42777D_CastSpell_UseWand_ShootArrow
Nomad
parents: 322
diff changeset
42 uActionPointsLeft = 0;
7f817679b60e _42777D_CastSpell_UseWand_ShootArrow
Nomad
parents: 322
diff changeset
43 field_18 = 0;
7f817679b60e _42777D_CastSpell_UseWand_ShootArrow
Nomad
parents: 322
diff changeset
44 field_1C = 0;
7f817679b60e _42777D_CastSpell_UseWand_ShootArrow
Nomad
parents: 322
diff changeset
45 }
7f817679b60e _42777D_CastSpell_UseWand_ShootArrow
Nomad
parents: 322
diff changeset
46
1332
1e35cfed7928 turn engine file added
Gloval
parents: 1331
diff changeset
47 void SortTurnQueue();
0
Ritor1
parents:
diff changeset
48 void _40471C();
1331
f0be1fecd642 turn_based start fixed
Gloval
parents: 1330
diff changeset
49 void Start();
0
Ritor1
parents:
diff changeset
50 void End(bool bPlaySound);
Ritor1
parents:
diff changeset
51 void _405E14();
1341
67e47fc3133d TE refactiring continue
Gloval
parents: 1340
diff changeset
52 void StartTurn();
0
Ritor1
parents:
diff changeset
53 void NextTurn();
Ritor1
parents:
diff changeset
54 int _4063A1();
1340
22cb507446a4 turnengine refactoring continue
Gloval
parents: 1332
diff changeset
55 void _406457(int a2);
0
Ritor1
parents:
diff changeset
56 void _40652A();
322
ce39b96acf5c Killing friendly peasants subs
Nomad
parents: 0
diff changeset
57 void _4065B0();
ce39b96acf5c Killing friendly peasants subs
Nomad
parents: 0
diff changeset
58 void _406648(unsigned int a2);
0
Ritor1
parents:
diff changeset
59 __int16 _40680F(int a2);
Ritor1
parents:
diff changeset
60 void _406A63();
Ritor1
parents:
diff changeset
61 void _406AFE();
Ritor1
parents:
diff changeset
62 int _406B9F();
1332
1e35cfed7928 turn engine file added
Gloval
parents: 1331
diff changeset
63 bool ActorTurn(signed int a2);
0
Ritor1
parents:
diff changeset
64 void _406FA8();
Ritor1
parents:
diff changeset
65
Ritor1
parents:
diff changeset
66
Ritor1
parents:
diff changeset
67 int field_0;
1340
22cb507446a4 turnengine refactoring continue
Gloval
parents: 1332
diff changeset
68 int turn_stage;
0
Ritor1
parents:
diff changeset
69 int field_8;
1330
82431a85b28e turnbased start part cleaning
Gloval
parents: 372
diff changeset
70 int uActorQueueSize; //c
0
Ritor1
parents:
diff changeset
71 int field_10;
1330
82431a85b28e turnbased start part cleaning
Gloval
parents: 372
diff changeset
72 int uActionPointsLeft; //14
0
Ritor1
parents:
diff changeset
73 int field_18;
Ritor1
parents:
diff changeset
74 int field_1C;
1330
82431a85b28e turnbased start part cleaning
Gloval
parents: 372
diff changeset
75 TurnBased_QueueElem pQueue[504]; //20
0
Ritor1
parents:
diff changeset
76 };
Ritor1
parents:
diff changeset
77 #pragma pack(pop)
Ritor1
parents:
diff changeset
78
Ritor1
parents:
diff changeset
79
Ritor1
parents:
diff changeset
80
Ritor1
parents:
diff changeset
81 extern struct stru262_TurnBased *pTurnEngine;