Mercurial > mm7
diff TurnEngine.h @ 1450:8ff3c675a726
more renaming TE
author | Gloval |
---|---|
date | Wed, 07 Aug 2013 08:55:34 +0400 |
parents | 5a5d0c713d47 |
children | 5c95f2246c2a |
line wrap: on
line diff
--- a/TurnEngine.h Tue Aug 06 00:56:33 2013 +0400 +++ b/TurnEngine.h Wed Aug 07 08:55:34 2013 +0400 @@ -4,11 +4,21 @@ enum TURN_ENGINE_FLAGS { TE_FLAG_1 =1, - TE_FLAG_2 =2, + TE_HAVE_PENDING_ACTIONS =2, TE_PLAYER_TURN =4, TE_FLAG_8 =8 }; +enum TURN_ENGINE_AI_ACTION + { + TE_AI_STAND =0, + TE_AI_RANGED_ATTACK =1, + TE_AI_PURSUE =2, + TE_AI_MELEE_ATTACK =3, + TE_AI_FLEE =4 + }; + + /* 299 */ #pragma pack(push, 1) @@ -19,12 +29,12 @@ uPackedID = 0; actor_initiative = 0; uActionLength = 0; - field_C = 0; + AI_action_type = 0; } int uPackedID; - int actor_initiative; + int actor_initiative; //act first who have less int uActionLength; - int field_C; + int AI_action_type; }; #pragma pack(pop) @@ -41,7 +51,7 @@ turn_initiative = 0; uActionPointsLeft = 0; field_18 = 0; - field_1C = 0; + pending_actions = 0; } void SortTurnQueue(); @@ -56,12 +66,12 @@ void SetAIRecoveryTimes(); void _4065B0(); void AIAttacks(unsigned int queue_index); - void _40680F(int queue_index); - void ActorAIDoMainAction(); - void ActorAISetLastAction(); - void ActorAIDoAdditionAction(); - bool ActorTurn(signed int a2); - void _406FA8(); + void AI_Action_(int queue_index); + void ActorAISetMovementDecision(); + void ActorAIStopMovement(); + void ActorAIDoAdditionalMove(); + bool ActorMove(signed int a2); + void ActorAIChooseNewTargets(); int turns_count; @@ -71,7 +81,7 @@ int turn_initiative; int uActionPointsLeft; //14 int field_18; - int field_1C; + int pending_actions; TurnBased_QueueElem pQueue[504]; //20 }; #pragma pack(pop)