- army externalization

- bugfix: proper sam site marking for Strategic AI

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@633 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Lesh
2006-11-14 14:32:32 +00:00
parent c351c27e37
commit 0f2aad2850
6 changed files with 1158 additions and 211 deletions
+20 -17
View File
@@ -98,32 +98,32 @@ enum
DRASSEN_MINE,
DRASSEN_SAMSITE, //Sam site near Drassen (least importance to queen of all samsites)
ROADBLOCK, //General outside city roadblocks -- enhance chance of ambush?
SANMONA_SMALL,
NUM_ARMY_COMPOSITIONS
SANMONA_SMALL
};
extern UINT8 NUM_ARMY_COMPOSITIONS;
typedef struct ARMY_COMPOSITION
{
INT32 iReadability; //contains the enumeration which is useless, but helps readability.
INT8 bPriority;
INT8 bElitePercentage;
INT8 bTroopPercentage;
INT8 bAdminPercentage;
INT8 bDesiredPopulation;
INT8 bStartPopulation;
INT8 bPadding[10];
INT8 bPriority;
INT8 bElitePercentage;
INT8 bTroopPercentage;
INT8 bAdminPercentage;
INT8 bDesiredPopulation;
INT8 bStartPopulation;
INT8 bPadding[10];
}ARMY_COMPOSITION;
//Defines the patrol groups -- movement groups.
typedef struct PATROL_GROUP
{
INT8 bSize;
INT8 bPriority;
UINT8 ubSectorID[4];
INT8 bFillPermittedAfterDayMod100;
INT8 bSize;
INT8 bPriority;
UINT8 ubSectorID[4];
INT8 bFillPermittedAfterDayMod100;
UINT8 ubGroupID;
INT8 bWeight;
INT8 bWeight;
UINT8 ubPendingGroupID;
INT8 bPadding[10];
}PATROL_GROUP;
@@ -132,11 +132,14 @@ typedef struct PATROL_GROUP
typedef struct GARRISON_GROUP
{
UINT8 ubSectorID;
UINT8 ubComposition;
INT8 bWeight;
UINT8 ubComposition;
INT8 bWeight;
UINT8 ubPendingGroupID;
INT8 bPadding[10];
INT8 bPadding[10];
}GARRISON_GROUP;
#define MAX_GARRISON_GROUPS 100
#define MAX_PATROL_GROUPS 50
#define MAX_ARMY_COMPOSITIONS 60
#endif