Mercurial > mm7
comparison TurnEngine.h @ 1450:8ff3c675a726
more renaming TE
author | Gloval |
---|---|
date | Wed, 07 Aug 2013 08:55:34 +0400 |
parents | 5a5d0c713d47 |
children | 5c95f2246c2a |
comparison
equal
deleted
inserted
replaced
1449:27b7ee003c7c | 1450:8ff3c675a726 |
---|---|
2 | 2 |
3 | 3 |
4 enum TURN_ENGINE_FLAGS | 4 enum TURN_ENGINE_FLAGS |
5 { | 5 { |
6 TE_FLAG_1 =1, | 6 TE_FLAG_1 =1, |
7 TE_FLAG_2 =2, | 7 TE_HAVE_PENDING_ACTIONS =2, |
8 TE_PLAYER_TURN =4, | 8 TE_PLAYER_TURN =4, |
9 TE_FLAG_8 =8 | 9 TE_FLAG_8 =8 |
10 }; | 10 }; |
11 | |
12 enum TURN_ENGINE_AI_ACTION | |
13 { | |
14 TE_AI_STAND =0, | |
15 TE_AI_RANGED_ATTACK =1, | |
16 TE_AI_PURSUE =2, | |
17 TE_AI_MELEE_ATTACK =3, | |
18 TE_AI_FLEE =4 | |
19 }; | |
20 | |
11 | 21 |
12 | 22 |
13 /* 299 */ | 23 /* 299 */ |
14 #pragma pack(push, 1) | 24 #pragma pack(push, 1) |
15 struct TurnBased_QueueElem | 25 struct TurnBased_QueueElem |
17 inline TurnBased_QueueElem() | 27 inline TurnBased_QueueElem() |
18 { | 28 { |
19 uPackedID = 0; | 29 uPackedID = 0; |
20 actor_initiative = 0; | 30 actor_initiative = 0; |
21 uActionLength = 0; | 31 uActionLength = 0; |
22 field_C = 0; | 32 AI_action_type = 0; |
23 } | 33 } |
24 int uPackedID; | 34 int uPackedID; |
25 int actor_initiative; | 35 int actor_initiative; //act first who have less |
26 int uActionLength; | 36 int uActionLength; |
27 int field_C; | 37 int AI_action_type; |
28 }; | 38 }; |
29 #pragma pack(pop) | 39 #pragma pack(pop) |
30 | 40 |
31 /* 254 */ | 41 /* 254 */ |
32 #pragma pack(push, 1) | 42 #pragma pack(push, 1) |
39 ai_turn_timer = 0; | 49 ai_turn_timer = 0; |
40 uActorQueueSize = 0; | 50 uActorQueueSize = 0; |
41 turn_initiative = 0; | 51 turn_initiative = 0; |
42 uActionPointsLeft = 0; | 52 uActionPointsLeft = 0; |
43 field_18 = 0; | 53 field_18 = 0; |
44 field_1C = 0; | 54 pending_actions = 0; |
45 } | 55 } |
46 | 56 |
47 void SortTurnQueue(); | 57 void SortTurnQueue(); |
48 void ApplyPlayerAction(); | 58 void ApplyPlayerAction(); |
49 void Start(); | 59 void Start(); |
54 int StepTurnQueue(); | 64 int StepTurnQueue(); |
55 void _406457(int a2); | 65 void _406457(int a2); |
56 void SetAIRecoveryTimes(); | 66 void SetAIRecoveryTimes(); |
57 void _4065B0(); | 67 void _4065B0(); |
58 void AIAttacks(unsigned int queue_index); | 68 void AIAttacks(unsigned int queue_index); |
59 void _40680F(int queue_index); | 69 void AI_Action_(int queue_index); |
60 void ActorAIDoMainAction(); | 70 void ActorAISetMovementDecision(); |
61 void ActorAISetLastAction(); | 71 void ActorAIStopMovement(); |
62 void ActorAIDoAdditionAction(); | 72 void ActorAIDoAdditionalMove(); |
63 bool ActorTurn(signed int a2); | 73 bool ActorMove(signed int a2); |
64 void _406FA8(); | 74 void ActorAIChooseNewTargets(); |
65 | 75 |
66 | 76 |
67 int turns_count; | 77 int turns_count; |
68 int turn_stage; | 78 int turn_stage; |
69 int ai_turn_timer; | 79 int ai_turn_timer; |
70 int uActorQueueSize; //c | 80 int uActorQueueSize; //c |
71 int turn_initiative; | 81 int turn_initiative; |
72 int uActionPointsLeft; //14 | 82 int uActionPointsLeft; //14 |
73 int field_18; | 83 int field_18; |
74 int field_1C; | 84 int pending_actions; |
75 TurnBased_QueueElem pQueue[504]; //20 | 85 TurnBased_QueueElem pQueue[504]; //20 |
76 }; | 86 }; |
77 #pragma pack(pop) | 87 #pragma pack(pop) |
78 | 88 |
79 | 89 |