{$I PTL07Attacks.script}
{$I PTLRebuild.script}
{$I PTLDefence.script}

{$EVENT evtMissionStart:OnMissionStart__Mission7}

procedure OnMissionStart__Mission7;
var aiPlayer1RedZone: Rectangle;
var aiPlayer2RedZone: Rectangle;
var aiPlayer3RedZone: Rectangle;
begin
	Actions.Log('MISSION 7 BEGIN');
	Actions.LogLinesMaxCnt(10000);
	
	Actions.ShowMsg(0, '<$0>');
	
	FillAlliancesPerPlayerIdMap();
		
	aiPlayer1RedZone.topLeftCorner.X := 9;
	aiPlayer1RedZone.topLeftCorner.Y := 6;
	aiPlayer1RedZone.bottomRightCorner.X := 24;
	aiPlayer1RedZone.bottomRightCorner.Y := 34;
	
	aiPlayer2RedZone.topLeftCorner.X := 146;
	aiPlayer2RedZone.topLeftCorner.Y := 4;
	aiPlayer2RedZone.bottomRightCorner.X := 158; 
	aiPlayer2RedZone.bottomRightCorner.Y := 21;
	
	
	aiPlayer3RedZone.topLeftCorner.X := 110;
	aiPlayer3RedZone.topLeftCorner.Y := 162;
	aiPlayer3RedZone.bottomRightCorner.X := 156; 
	aiPlayer3RedZone.bottomRightCorner.Y := 177;
	
	aiPlayersRedZonesArray := AddElementToRectangleArray(aiPlayersRedZonesArray, aiPlayer1RedZone);
	aiPlayersRedZonesArray := AddElementToRectangleArray(aiPlayersRedZonesArray, aiPlayer2RedZone);
	aiPlayersRedZonesArray := AddElementToRectangleArray(aiPlayersRedZonesArray, aiPlayer3RedZone);		
end;