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

{$EVENT evtMissionStart:OnMissionStart__Mission1}

procedure OnMissionStart__Mission1;
var aiPlayer1RedZone: Rectangle;
var aiPlayer2RedZone: Rectangle;
var aiPlayer3RedZone: Rectangle;
begin
	Actions.Log('MISSION 1 BEGIN');
	Actions.LogLinesMaxCnt(10000);
	
	Actions.ShowMsg(0, '<$0>');
	
	FillAlliancesPerPlayerIdMap();
		
	aiPlayer1RedZone.topLeftCorner.X := 9;
	aiPlayer1RedZone.topLeftCorner.Y := 5;
	aiPlayer1RedZone.bottomRightCorner.X := 39;
	aiPlayer1RedZone.bottomRightCorner.Y := 25;
	
	aiPlayer2RedZone.topLeftCorner.X := 118;
	aiPlayer2RedZone.topLeftCorner.Y := 7;
	aiPlayer2RedZone.bottomRightCorner.X := 141; 
	aiPlayer2RedZone.bottomRightCorner.Y := 37;
	
	
	aiPlayer3RedZone.topLeftCorner.X := 86;
	aiPlayer3RedZone.topLeftCorner.Y := 96;
	aiPlayer3RedZone.bottomRightCorner.X := 116; 
	aiPlayer3RedZone.bottomRightCorner.Y := 128;
	
	aiPlayersRedZonesArray := AddElementToRectangleArray(aiPlayersRedZonesArray, aiPlayer1RedZone);
	aiPlayersRedZonesArray := AddElementToRectangleArray(aiPlayersRedZonesArray, aiPlayer2RedZone);
	aiPlayersRedZonesArray := AddElementToRectangleArray(aiPlayersRedZonesArray, aiPlayer3RedZone);		
end;