STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228026
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2560 · P5119

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/23494719?noj=FRM23494719-19DC" width="1" height="1"></div>

1228088194071.swf

This is the info page for
Flash #44114

(Click the ID number above for more basic data on this flash file.)


Text
<p align="center"></p>

<p align="center"></p>

This is one of
your star
systems.

Click to continue...

The Blue
background
cloud shows the
stars growing
efficiency.

The bigger the star, the bigger
the output.

There is a Defence
Satellite orbiting
your star. They are
tougher than
ships.

Not only are they tough, but they
can shoot down masses of ships if
they try to fly over  the top.

The triangles are
ships. These are
used to take over
enemy stars.

Each star
contributes to your
economy, and your
economy limits the
number of ships you
can own.

HINT: Take out an enemies economy, and  he
can no longer support his fleet of ships.

Select stars with
the left mouse
button, or drag a
box around them
to select multiple
stars. Left click
the enemy star to
Attack.

Deselect all stars
with SPACE.
Select ALL stars
with Ctrl-A.

To select all stars of
a particular type:
Standard = Ctrl-S
Naval = Ctrl-N
Economic = Ctrl-E
Defence = Ctrl-D
MineLayer = Ctrl-M

This is a standard
star, but you can
specialise it by
hitting one of the
buttons on the top
right.
Hover over each
button to get more
details.

1 mouse click
sends half the
ships, and a
double click
sends them all.
Take over the red
star.

Well Done.
You can use Ctrl-1
to assign a group
of stars to the '1'
key. This works
for all the
numbers 0-9.

You can also use
Ctrl-S to select all
your standard stars
here, or Ctrl-A to
select ALL the stars.
Don't forget SPACE to
deselect (or just
click into empty
space).

You can improve
your chances by
attacking from
multiple
directions.
Surrounding your
enemy is vital.

Here's a well defended
star. in the middle.
You'll never take it out
head on. Try if you like.
Instead, surround it,
then move in for the
kill.

HINT: You must have ships at the surrounding
stars. In this example there are 3 important
stars in surrounding the enemy defence star...

Your red attack cursor
will let you know what
bonus you'll get. The
more of the red attack
circle filled in, the bigger
the bonus.

x2 Surround Bonus

x3 Surround Bonus

x4 Surround Bonus

Flying over enemy
stars is suicide.
Try to take out the
bottom left star
without taking
out the defence
star defending it.

Ouch. You gotta
move slow. Take
out the defense
star first, then
mop up to end the
tutorial...
Good Luck!

Your ancestors challenged the might of The
Empire, and were banished to the furthest
reach of the galaxy.
But the  Empire grows old and weak. It is time
for the strong to rise up and take what is
theirs.
First, you need to strongarm your neighbours
into joining the cause. Send ships to the
neutral grays and take them over.

The Empire has a base in this sector.
Move swiftly across the neutral ground, and
take their base before they can organise a
defence.

A large unidentified fleet
has been detected coming
this way!!
The empire must have sent
a distress call before you
reached them.
Gather your ships and
organise a defence!

We have come across one of the empires defensive
outposts. It is much more organised than anything we
have seen so far.
Readings tell us one of the stars has enormous
concentrations of firepower, so almostly certainly it is a
Defence Base.
Attacking a defence base head on is suicide, so
concentrate on taking out all the stars around it first
and surrounding it, only then move in for the kill.
Good luck!!

We have acquired their Defence
Base technology!!
But it may be too late, the empire
is counterstriking with a large
fleet.
Use our new technology to
better organise this sector into
a meaningful defence!

We have located the source of the Empires determined
counter attack, a dedicated military sector with some heavy
defences and new technologies:
Naval Base - This star makes ships at an alarming rate;
Economic Base - These provide that sector with the
resources necessary to support many ships.
Do not despair. Their Naval and Economic bases are utterly
defenceless themselves. So, it would be wise to break
through their defence wall as soon as is possible, and then
fall upon their defenceless interior.
Do not delay, or you will surely be overwhelmed.

Well Done!!
We have dealt the Empire a terrible blow!
But, now their allies grow in numbers, and a huge
combined force is now enroute as we speak.
You have little time to prepare. Use our newly acquired
Naval and Economic Bases to improve the military
effectiveness of this sector.
And remember, protect our ship producing stars well,
for without them we are lost.

The source of the last combined counter attack has
been located, and we are now in position.
This sector is a military stronghold, much like we have
encountered before. However, this time the vulnerable
interior of the base has been protected further with a
new technology, the Fighter Base. The Fighter Base
serves as a base of operations for fast attack vessels
that will intercept enemy fleets within range. These
fighters are highly effective against our ships, so don't
expect a quick overrun of their base this time.

Their allies continue to grow in strength.
A huge combined fleet is heading to this sector in what
appears to be a last ditch attempt at preventing our
advance. We are getting close!
Use our newly acquired Fighter Base technology to help
protect our industrial base.

Well Done!
We have a matter that requires your urgent attention. A
recon detatchment has come across and almost
surrounded a new weapon in the Empire's arsenal. A
Rocket Base. Capable of taking out enemy stars at long
range, and particularly effective against Defence bases, it
is a decisive weapon and one which we require.
Take apart the Rocket Bases' defences and move in for the
kill.

We are moving into the last sector before their home star
now.
We have reason to believe that they are using the
outlawed MineLayer Bases here, surely a sign of the
Empire's desperation.
Avoid sending large bodies of ships into the MineLayers
airspace, as this is suicide. Instead, use our newly
acquired Rocket Base technology to destroy the
MineLayers in advance.

We are in the Empires home sector, but  we are trapped!
The Empire has lured us here to fight the final battle.
Already, their allies are taking apart our home planet, and
fleets lying in wait are taking back everything we have
already gained.
But their is a flaw in the Emperor's strategy. He has not
counted on your ambition and skill. If we can win here, at
the seat of the Emperor's power, his ruse will be for
nought.
Conquer the home sector, own the Galaxy.

Star Density

Enemies

Skirmish Setup

Speed

Difficulty

<p align="center"><font face="Impact" size="14" color="#ff0000" letterSpacing="0.000000" kerning="1"><b><i>default</i></b></font></p>

The Standard star is the
default. It grows to full
efficiency quickly, produces
economy, defences, and
ships. It  is an excellent all
rounder.

The Economic star produces
ONLY economy, but it does so
at a high output. A high
economy means that your
empire can support more
ships, i.e. a higher Max Ships.
They have no defences
themselves, so keep them
well back from the front line.

The Naval star produces only
ships, and produces them
FAST. As it is relatively
undefended, it is wise not to
leave them too exposed to
attack from the enemy.
Waypoints can be set by
dragging star to desired
destination.

The Defence star is a formidable
structure. It produces only
defence boats, which orbit the
star. Defence boats are
incredibly effective against
enemy ships, and will not only rip
enemy attacks apart, will also
destroy enemy fleets that fly
through their space.

The MineLayer star produces
a huge minefield in space.
ANYTHING moving in it's radius
will be attacked. That includes
enemy and friendly ships and
defence boats alike. Can be
used to create 'no-fly-zones'.
Use with caution.

Rocket

The Rocket base has long range
offense capabilities. It poses a
considerable threat to a well
thought out defensive line, and
is a potent weapon in any
commanders arsenal.
Will target any enemy in range,
or can be given a target by
dragging star to target.

Fighter

The Fighter base is an excellent
component of any defensive line. It
produces high speed fighters which
automatically patrol their sector,
bolstering the defences of stars
under attack from enemy battle ships,
or retaking stars already
overpowered by the enemy.
Fighers are extremely effective
against battleships, but utterly
ineffective against defence satellites.

Sound

Empire

Edit Star

Size

StarType

Delete

Campaign Setup

Speed

Difficulty

Submit

Save & Play

Map

Challenge Setup

Name

Submit Map

Author

Description

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="center"><font face="Impact" size="20" color="#00ff00" letterSpacing="0.000000" kerning="1"><b><i>Submitting map...</i></b></font></p>

<p align="left"></p>

ActionScript [AS3]

Section 1
//KongregateEvent (com.kongregate.as3.client.events.KongregateEvent) package com.kongregate.as3.client.events { import flash.events.*; public class KongregateEvent extends Event { public static const COMPLETE:String = "component_api_available"; public function KongregateEvent(_arg1:String){ super(_arg1); } } }//package com.kongregate.as3.client.events
Section 2
//AbstractShadowService (com.kongregate.as3.client.services.AbstractShadowService) package com.kongregate.as3.client.services { import flash.events.*; public class AbstractShadowService extends EventDispatcher { protected function alert(_arg1:String, _arg2:String, _arg3="", _arg4:String=""):void{ trace(((((((("Kongregate API: " + _arg1) + ".") + _arg2) + "(") + _arg3) + ") ") + _arg4)); } } }//package com.kongregate.as3.client.services
Section 3
//HighScoreServiceShadow (com.kongregate.as3.client.services.HighScoreServiceShadow) package com.kongregate.as3.client.services { public class HighScoreServiceShadow extends AbstractShadowService implements IHighScoreServices { private var mode:String; public function HighScoreServiceShadow(){ mode = ""; } public function submit(_arg1:Number, _arg2:String=null):void{ alert("IHighScoreServices", "submit", arguments); } public function connect():Boolean{ alert("IKongregateServices", "connect"); return (true); } public function requestList(_arg1:Function):void{ alert("IHighScoreServices", "requestList", "", (("[Mode: " + mode) + "]")); _arg1({success:false}); } public function setMode(_arg1:String):void{ alert("IHighScoreServices", "setMode", arguments); this.mode = _arg1; } } }//package com.kongregate.as3.client.services
Section 4
//IHighScoreServices (com.kongregate.as3.client.services.IHighScoreServices) package com.kongregate.as3.client.services { public interface IHighScoreServices { function setMode(_arg1:String):void; function submit(_arg1:Number, _arg2:String=null):void; function requestList(_arg1:Function):void; } }//package com.kongregate.as3.client.services
Section 5
//IKongregateServices (com.kongregate.as3.client.services.IKongregateServices) package com.kongregate.as3.client.services { import flash.events.*; public interface IKongregateServices extends IEventDispatcher { function getPlayerInfo(_arg1:Function):void; function connect(_arg1:Number=-1):Boolean; } }//package com.kongregate.as3.client.services
Section 6
//IStatServices (com.kongregate.as3.client.services.IStatServices) package com.kongregate.as3.client.services { public interface IStatServices { function submitArray(_arg1:Array):void; function submit(_arg1:String, _arg2:Number):void; } }//package com.kongregate.as3.client.services
Section 7
//IUserServices (com.kongregate.as3.client.services.IUserServices) package com.kongregate.as3.client.services { public interface IUserServices { function getName():String; function getPlayerInfo(_arg1:Function):void; } }//package com.kongregate.as3.client.services
Section 8
//KongregateServiceShadow (com.kongregate.as3.client.services.KongregateServiceShadow) package com.kongregate.as3.client.services { public class KongregateServiceShadow extends AbstractShadowService implements IKongregateServices { public function getName():String{ alert("IKongregateServices", "getName"); return ("Guest"); } public function connect(_arg1:Number=-1):Boolean{ alert("IKongregateServices", "connect", arguments); return (true); } public function getPlayerInfo(_arg1:Function):void{ alert("IKongregateServices", "getPlayerInfo"); _arg1(new Object()); } } }//package com.kongregate.as3.client.services
Section 9
//StatServiceShadow (com.kongregate.as3.client.services.StatServiceShadow) package com.kongregate.as3.client.services { public class StatServiceShadow extends AbstractShadowService implements IStatServices { public function submitArray(_arg1:Array):void{ alert("IStatServices", "submitArray", arguments); } public function submit(_arg1:String, _arg2:Number):void{ alert("IStatServices", "submitStat", arguments); } } }//package com.kongregate.as3.client.services
Section 10
//UserServiceShadow (com.kongregate.as3.client.services.UserServiceShadow) package com.kongregate.as3.client.services { public class UserServiceShadow extends AbstractShadowService implements IUserServices { public function getName():String{ alert("UserService", "getName"); return ("Guest"); } public function getPlayerInfo(_arg1:Function):void{ alert("UserService", "getPlayerInfo"); _arg1({isGuest:true, name:"Guest", points:0, level:0, isMode:false, isAdmin:false, isDeveloper:false, avatarPath:"", chatAvatarPath:""}); } } }//package com.kongregate.as3.client.services
Section 11
//IAPIBootstrap (com.kongregate.as3.client.IAPIBootstrap) package com.kongregate.as3.client { import flash.events.*; import flash.display.*; public interface IAPIBootstrap { function init(_arg1:Event=null, _arg2:Stage=null):void; function hideLog():void; function showLog(_arg1:int=0):void; } }//package com.kongregate.as3.client
Section 12
//KongregateAPI (com.kongregate.as3.client.KongregateAPI) package com.kongregate.as3.client { import flash.events.*; import flash.display.*; import com.kongregate.as3.client.services.*; import com.kongregate.as3.client.events.*; import flash.system.*; import flash.utils.*; import flash.errors.*; import flash.net.*; public class KongregateAPI extends Sprite { private const VERSION:Number = 1; private var loader:Loader; private var loadedDomain:ApplicationDomain; private static const CLASS_USER:String = "com.kongregate.as3.client.services.UserServices"; private static const CLASS_STATS:String = "com.kongregate.as3.client.services.StatServices"; private static const CLASS_SERVICES:String = "com.kongregate.as3.client.services.KongregateServices"; private static const CLASS_SCORES:String = "com.kongregate.as3.client.services.HighScoreServices"; private static const DEBUG_API_URL:String = "//Linuxpc/kongregate/public/flash/API_AS3.swf"; private static var _connected:Boolean; private static var kUser:IUserServices; private static var _loaded:Boolean; private static var kServices:IKongregateServices; private static var kScores:IHighScoreServices; private static var mInstance:KongregateAPI; private static var kStats:IStatServices; private static var kAPI:IAPIBootstrap; public function KongregateAPI(){ if (mInstance != null){ throw (new Error("Warning: KongregateAPI has been added to stage more than once or accessed improperly. Use getInstance() or a stage reference to access.")); }; mInstance = this; this.addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); } public function get loaded():Boolean{ return (_loaded); } public function get connected():Boolean{ return (_connected); } private function alertConnected(_arg1:TimerEvent=null):void{ var _local2:KongregateEvent; var _local3:Boolean; _local2 = new KongregateEvent(KongregateEvent.COMPLETE); _local3 = this.dispatchEvent(_local2); } private function init(_arg1:Event):void{ var _local2:Object; var _local3:String; var _local4:URLRequest; var _local5:LoaderContext; this.removeEventListener(Event.ADDED_TO_STAGE, init); _loaded = false; _connected = false; _local2 = LoaderInfo(root.loaderInfo).parameters; _local3 = _local2.api_path; if (_local3 == null){ trace("Alert: Kongregate API could not be loaded, due to local testing. API will load when the game is uploaded."); createShadowServices(); return; }; Security.allowDomain("*.kongregate.com"); Security.allowDomain("kongregatetrunk.com"); _local4 = new URLRequest(_local3); _local5 = new LoaderContext(false); _local5.applicationDomain = ApplicationDomain.currentDomain; _local5.securityDomain = SecurityDomain.currentDomain; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete); loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); loader.load(_local4, _local5); } public function get api():IAPIBootstrap{ return (kAPI); } private function loadComplete(_arg1:Event):void{ getServices(); } public function get scores():IHighScoreServices{ return (kScores); } private function ioErrorHandler(_arg1:IOErrorEvent):void{ throw (new IOError(("API file not found. " + _arg1))); } public function get services():IKongregateServices{ return (kServices); } public function get stats():IStatServices{ return (kStats); } private function createShadowServices():void{ var _local1:Timer; trace(">>> Kongregate Shadow Services instantiated for local development.."); kServices = new KongregateServiceShadow(); kScores = new HighScoreServiceShadow(); kStats = new StatServiceShadow(); kUser = new UserServiceShadow(); _local1 = new Timer(200, 1); _local1.addEventListener(TimerEvent.TIMER_COMPLETE, alertConnected); _local1.start(); _connected = true; } public function get user():IUserServices{ return (kUser); } private function getServices():void{ var _local1:ApplicationDomain; var _local2:*; var _local3:*; var _local4:*; var _local5:*; _local1 = ApplicationDomain.currentDomain; kAPI = IAPIBootstrap(loader.getChildAt(0)); this.addChild(loader); _local2 = _local1.getDefinition(CLASS_SERVICES); trace(_local2); kServices = _local2.getInstance(); _local3 = _local1.getDefinition(CLASS_SCORES); kScores = _local3.getInstance(); _local4 = _local1.getDefinition(CLASS_STATS); kStats = _local4.getInstance(); _local5 = _local1.getDefinition(CLASS_USER); kUser = _local5.getInstance(); kServices.connect(VERSION); _loaded = true; _connected = true; alertConnected(); } public static function getInstance():KongregateAPI{ if (!mInstance){ throw (new IllegalOperationError("You must add the Kongregate API component to the stage before attempting to access it.")); }; return (mInstance); } } }//package com.kongregate.as3.client
Section 13
//MainTimeline (StarBaron_fla.MainTimeline) package StarBaron_fla { import flash.events.*; import flash.display.*; import com.kongregate.as3.client.*; import com.kongregate.as3.client.events.*; import flash.geom.*; import flash.media.*; import flash.system.*; import flash.text.*; import flash.utils.*; import flash.errors.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.ui.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var a; public var mapId; public var kongregate:KongregateAPI; public var myTimer:Timer; public function MainTimeline(){ addFrameScript(0, frame1); } public function PlayGame(_arg1:TimerEvent){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:World; myTimer.stop(); if (((!((parent.root.loaderInfo.url.indexOf("http://andkon.com") == -1))) || (!((parent.root.loaderInfo.url.indexOf("http://www.andkon.com") == -1))))){ if (mapId == null){ _local2 = new Splash(); this.addChild(_local2); } else { _local3 = 3; _local4 = 99; _local5 = 0.7; _local6 = 3; _local7 = new World(root, "LoadMapFromServer", _local3, _local4, _local5, _local6, mapId); }; } else { trace("PIRATES!!"); }; } function frame1(){ kongregate = new KongregateAPI(); addChild(kongregate); kongregate.addEventListener(KongregateEvent.COMPLETE, myMethod); mapId = LoaderInfo(parent.root.loaderInfo).parameters.mapId; a = new Andkon(); a.addEventListener(MouseEvent.MOUSE_DOWN, gotoAndkon); a.x = 100; a.y = 100; a.width = 600; a.height = 400; addChild(a); myTimer = new Timer(2000); myTimer.addEventListener("timer", PlayGame); myTimer.start(); } public function gotoAndkon(_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://www.andkon.com/arcade/"), "_blank"); } public function myMethod(_arg1:KongregateEvent):void{ trace("Services available; myMethod() called."); } } }//package StarBaron_fla
Section 14
//Andkon (Andkon) package { import flash.display.*; public dynamic class Andkon extends SimpleButton { } }//package
Section 15
//Background (Background) package { import flash.media.*; public dynamic class Background extends Sound { } }//package
Section 16
//BackgroundCreep (BackgroundCreep) package { import flash.media.*; public dynamic class BackgroundCreep extends Sound { } }//package
Section 17
//BackgroundMusic (BackgroundMusic) package { import flash.media.*; public dynamic class BackgroundMusic extends Sound { } }//package
Section 18
//BlackHole (BlackHole) package { import flash.display.*; public class BlackHole extends MovieClip { private var mWorld; public function BlackHole(_arg1:World, _arg2:int, _arg3:int, _arg4:Number){ mWorld = _arg1; x = _arg2; y = _arg3; scaleX = _arg4; scaleY = _arg4; mWorld.addChild(this); } public function Tick(){ var _local1:int; var _local2:int; var _local3:int; var _local4:Fleet; var _local5:Number; var _local6:int; var _local7:Ship; var _local8:int; _local1 = mWorld.mEmpires.length; _local3 = 0; while (_local3 < _local1) { _local2 = mWorld.mEmpires[_local3].mFleets.length; _local8 = 0; while (_local8 < _local2) { _local4 = mWorld.mEmpires[_local3].mFleets[_local8]; if (_local4.ShipCount() == 0){ } else { _local5 = Math.sqrt((Math.pow((x - _local4.mShipList[0].x), 2) + Math.pow((y - _local4.mShipList[0].y), 2))); if (_local5 < (width / 2)){ _local4.Destroy(); }; }; _local8++; }; _local3++; }; } } }//package
Section 19
//Boat (Boat) package { import flash.events.*; import flash.display.*; public class Boat extends MovieClip { private var originY:int; private var mWorld:World; private var radius:Number;// = 16.25 public var mEmpireName:String; private var angle:Number; private var velocity:Number;// = 0.3 private var originX:int; public function Boat(_arg1:World, _arg2:int, _arg3:int, _arg4:String){ radius = (25 * 0.65); velocity = 0.3; super(); addFrameScript(14, frame15); mWorld = _arg1; mEmpireName = _arg4; scaleX = 0.1; scaleY = 0.1; gotoAndStop(_arg4); } public function explodeUpdate(_arg1:Event):void{ if (currentLabel == "end"){ visible = false; removeEventListener(Event.ENTER_FRAME, explodeUpdate); parent.removeChild(this); }; } public function Orbit(_arg1, _arg2):void{ originX = _arg1; originY = _arg2; angle = (Math.random() * 360); rotation = 0; velocity = (velocity + (Math.random() * 1)); orbitUpdate(new Event("dummy")); addEventListener(Event.ENTER_FRAME, orbitUpdate); } function frame15(){ this.visible = false; } public function orbitUpdate(_arg1:Event):void{ if (mWorld.mPause == true){ return; }; angle = (angle + velocity); if (angle >= 360){ angle = 0; }; rotation = (angle * 3); x = (originX + (radius * Math.sin(((angle * Math.PI) / 180)))); y = (originY - (radius * Math.cos(((angle * Math.PI) / 180)))); } public function Vanish():void{ removeEventListener(Event.ENTER_FRAME, orbitUpdate); visible = false; } public function Explode():void{ mWorld.mSoundScape.Play("ExplodeBoat", this); removeEventListener(Event.ENTER_FRAME, orbitUpdate); addEventListener(Event.ENTER_FRAME, explodeUpdate); gotoAndPlay("Explode"); } public function Destroy():void{ Explode(); } } }//package
Section 20
//Bonus (Bonus) package { import flash.events.*; import flash.display.*; public class Bonus extends MovieClip { public function Bonus(_arg1:int, _arg2:int, _arg3:String){ this.x = _arg1; this.y = _arg2; scaleX = 0.6; scaleY = 0.6; alpha = 1; gotoAndStop(_arg3); addEventListener(Event.ENTER_FRAME, Razzle); } public function Razzle(_arg1:Event):void{ if (scaleX > 1.5){ stop(); removeEventListener(Event.ENTER_FRAME, Razzle); visible = false; parent.removeChild(this); return; }; scaleX = (scaleX + 0.1); scaleY = (scaleY + 0.1); alpha = (alpha - 0.1); } } }//package
Section 21
//Bot (Bot) package { import flash.display.*; import flash.geom.*; public class Bot extends MovieClip { var mGangUpTargetEmpire:Empire;// = null var mPaused:Boolean;// = false var defendEastFront:Boolean;// = false var mBotBuildTick:int; var mBotBuildSpeed:int;// = 10 var mBotThinkSpeed:int;// = 5 var mAttackMemoryMaxSize:int;// = 3 var mAllowFighter:Boolean;// = true var mId:int; var mAttackMemory:Array; var mBotBuildAllowed:Boolean;// = true var mBotThinkTick:int; var mEmpireShape:Shape;// = null var mAttackThreshold:Number;// = 0 var mAllowRocket:Boolean;// = true var mAttackBlacklistMaxSize:int;// = 3 var empireBoundary:Rectangle; var mAllowEconomic:Boolean;// = true var mBigPush:Boolean;// = false var mAttackBlacklistDecay:int;// = 5 var mAttackBlacklistDecayRate:int;// = 5 var mWorld:World; var mAllowNaval:Boolean;// = true var mAllowMineLayer:Boolean;// = true var mType:String; var mSpreadLimit:int; var mEmpire:Empire; var defendNorthFront:Boolean;// = false var mAttackBlacklist:Array; var defendWestFront:Boolean;// = false var defendSouthFront:Boolean;// = false var mAllowDefense:Boolean;// = true var mGangUpEnabled:Boolean;// = false var mStarBuildPriorities:Array; public function Bot(_arg1:World, _arg2:int, _arg3:Empire, _arg4:String=""){ var _local5:int; mBotThinkSpeed = 5; mBotBuildSpeed = 10; mBotBuildAllowed = true; mEmpireShape = null; empireBoundary = new Rectangle(); defendNorthFront = false; defendSouthFront = false; defendEastFront = false; defendWestFront = false; mPaused = false; mStarBuildPriorities = new Array(); mAttackThreshold = 0; mAttackMemory = new Array(); mAttackMemoryMaxSize = 3; mAttackBlacklist = new Array(); mAttackBlacklistMaxSize = 3; mAttackBlacklistDecay = 5; mAttackBlacklistDecayRate = 5; mBigPush = false; mGangUpEnabled = false; mGangUpTargetEmpire = null; mAllowDefense = true; mAllowNaval = true; mAllowEconomic = true; mAllowMineLayer = true; mAllowFighter = true; mAllowRocket = true; super(); mId = _arg2; mEmpire = _arg3; mWorld = _arg1; mEmpire.SetBot(this); mBotThinkTick = int((Math.random() * mBotThinkSpeed)); mBotBuildTick = int((Math.random() * mBotBuildSpeed)); mType = _arg4; if (mEmpireShape){ mWorld.addChild(mEmpireShape); }; switch (mWorld.mBotSpeed){ case 1: mBotThinkSpeed = 9; mSpreadLimit = 1; break; case 2: mBotThinkSpeed = 7; mSpreadLimit = 1; break; case 3: mBotThinkSpeed = 5; mSpreadLimit = 1; break; case 4: mBotThinkSpeed = 3; mSpreadLimit = 2; break; case 5: mBotThinkSpeed = 1; mSpreadLimit = 3; break; default: mBotThinkSpeed = 1; mSpreadLimit = 1; }; } public function ThinkMineLayer():void{ var _local1:Array; var _local2:int; var _local3:int; var _local4:int; if (mAllowMineLayer != true){ return; }; _local1 = mWorld.mDistanceMatrix.mMatrix; _local2 = 0; while (_local2 < mEmpire.mStars.length) { _local3 = mEmpire.mStars[_local2].mId; _local4 = 0; _local4 = 0; while (_local4 < 10) { if (_local4 >= _local1[_local3].length){ break; }; if ((((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire)) && ((mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "Economic")))){ mStarBuildPriorities[_local2].minelayer = (mStarBuildPriorities[_local2].minelayer + (14 - _local4)); } else { if ((((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire)) && ((mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "Naval")))){ mStarBuildPriorities[_local2].minelayer = (mStarBuildPriorities[_local2].minelayer - (13 - _local4)); } else { if ((((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire)) && ((mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "Standard")))){ mStarBuildPriorities[_local2].minelayer = (mStarBuildPriorities[_local2].minelayer - (13 - _local4)); } else { if ((((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire)) && ((mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "MineLayer")))){ mStarBuildPriorities[_local2].minelayer = (mStarBuildPriorities[_local2].minelayer - 20); }; }; }; }; _local4++; }; mStarBuildPriorities[_local2].minelayer = (((mStarBuildPriorities[_local2].minelayer + 55) / 110) * 100); _local2++; }; } public function ThinkRocket():void{ var _local1:Array; var _local2:int; var _local3:int; var _local4:int; if (mAllowRocket != true){ return; }; _local1 = mWorld.mDistanceMatrix.mMatrix; _local2 = 0; while (_local2 < mEmpire.mStars.length) { _local3 = mEmpire.mStars[_local2].mId; _local4 = 0; _local4 = 0; while (_local4 < 15) { if (_local4 >= _local1[_local3].length){ break; }; if ((((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire)) && ((mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "Defense")))){ mStarBuildPriorities[_local2].missile = (mStarBuildPriorities[_local2].missile + (8 - _local4)); } else { if ((((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire)) && ((mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "Fighter")))){ mStarBuildPriorities[_local2].missile = (mStarBuildPriorities[_local2].missile + (8 - _local4)); } else { if (((!((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire))) && (!((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire.mName == "Grey"))))){ if (mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "Defense"){ mStarBuildPriorities[_local2].missile = (mStarBuildPriorities[_local2].missile + (15 - _local4)); }; if (mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "Rocket"){ mStarBuildPriorities[_local2].missile = (mStarBuildPriorities[_local2].missile + (15 - _local4)); }; if (mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "Fighter"){ mStarBuildPriorities[_local2].missile = (mStarBuildPriorities[_local2].missile + (15 - _local4)); }; }; }; }; _local4++; }; mStarBuildPriorities[_local2].missile = (((mStarBuildPriorities[_local2].missile + 55) / 110) * 100); _local2++; }; } public function SetAttackThreshold(_arg1:Number):void{ mAttackThreshold = _arg1; } public function EnemyStarsIn(_arg1:Rectangle):int{ var _local2:*; var _local3:*; _local2 = 0; _local3 = 0; while (_local3 < mWorld.mStars.length) { if ((((((_arg1.contains(mWorld.mStars[_local3].x, mWorld.mStars[_local3].x) == true)) && (!((mWorld.mStars[_local3].mEmpire == mEmpire))))) && (!(mEmpire.IsAlly(mWorld.mStars[_local3].mEmpire))))){ _local2++; }; _local3++; }; return (_local2); } public function ThinkEconomic():void{ var _local1:Array; var _local2:int; var _local3:int; var _local4:int; if (mAllowEconomic != true){ return; }; _local1 = mWorld.mDistanceMatrix.mMatrix; _local2 = 0; while (_local2 < mEmpire.mStars.length) { _local3 = mEmpire.mStars[_local2].mId; _local4 = 0; _local4 = 0; while (_local4 < 10) { if (_local4 >= _local1[_local3].length){ break; }; if (((!((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire))) && (!((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire.mName == "Grey"))))){ mStarBuildPriorities[_local2].economic = (mStarBuildPriorities[_local2].economic - (10 - _local4)); } else { if ((((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire)) && ((mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "MineLayer")))){ mStarBuildPriorities[_local2].economic = (mStarBuildPriorities[_local2].economic + 20); } else { mStarBuildPriorities[_local2].economic = (mStarBuildPriorities[_local2].economic + (10 - _local4)); }; }; _local4++; }; mStarBuildPriorities[_local2].economic = (((mStarBuildPriorities[_local2].economic + 55) / 110) * 100); _local2++; }; } public function ThinkNaval():void{ var _local1:Array; var _local2:int; var _local3:int; var _local4:int; if (mAllowNaval != true){ return; }; _local1 = mWorld.mDistanceMatrix.mMatrix; _local2 = 0; while (_local2 < mEmpire.mStars.length) { _local3 = mEmpire.mStars[_local2].mId; _local4 = 0; _local4 = 0; while (_local4 < 10) { if (_local4 >= _local1[_local3].length){ break; }; if (((!((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire))) && (!((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire.mName == "Grey"))))){ mStarBuildPriorities[_local2].naval = (mStarBuildPriorities[_local2].naval - (10 - _local4)); } else { if ((((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire)) && ((mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "MineLayer")))){ mStarBuildPriorities[_local2].naval = (mStarBuildPriorities[_local2].naval - 20); } else { mStarBuildPriorities[_local2].naval = (mStarBuildPriorities[_local2].naval + (10 - _local4)); }; }; _local4++; }; mStarBuildPriorities[_local2].naval = (((mStarBuildPriorities[_local2].naval + 55) / 110) * 100); _local2++; }; } public function ThinkDefense():void{ var _local1:Array; var _local2:int; var _local3:int; var _local4:int; if (mAllowDefense != true){ return; }; _local1 = mWorld.mDistanceMatrix.mMatrix; _local2 = 0; while (_local2 < mEmpire.mStars.length) { _local3 = mEmpire.mStars[_local2].mId; _local4 = 0; _local4 = 0; while (_local4 < 10) { if (_local4 >= _local1[_local3].length){ break; }; if (((!((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire))) && (!((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire.mName == "Grey"))))){ mStarBuildPriorities[_local2].defense = (mStarBuildPriorities[_local2].defense + (10 - _local4)); } else { mStarBuildPriorities[_local2].defense = (mStarBuildPriorities[_local2].defense - (10 - _local4)); }; _local4++; }; mStarBuildPriorities[_local2].defense = (((mStarBuildPriorities[_local2].defense + 55) / 110) * 100); _local2++; }; } public function NoBuild():void{ mBotBuildAllowed = false; } public function ClearBlacklist():void{ var _local1:*; _local1 = 0; while (_local1 < mAttackBlacklist.length) { mAttackBlacklist.pop(); _local1++; }; } public function ThinkFighter():void{ var _local1:Array; var _local2:int; var _local3:int; var _local4:int; if (mAllowFighter != true){ return; }; _local1 = mWorld.mDistanceMatrix.mMatrix; _local2 = 0; while (_local2 < mEmpire.mStars.length) { _local3 = mEmpire.mStars[_local2].mId; _local4 = 0; _local4 = 0; while (_local4 < 10) { if (_local4 >= _local1[_local3].length){ break; }; if ((((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire)) && ((mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "Defense")))){ mStarBuildPriorities[_local2].fighter = (mStarBuildPriorities[_local2].fighter + (14 - _local4)); } else { if ((((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire)) && ((mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "Economic")))){ mStarBuildPriorities[_local2].fighter = (mStarBuildPriorities[_local2].fighter + (14 - _local4)); } else { if ((((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire)) && ((mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "Naval")))){ mStarBuildPriorities[_local2].fighter = (mStarBuildPriorities[_local2].fighter + (10 - _local4)); } else { if ((((mWorld.mStars[_local1[_local3][_local4].starId].mEmpire == mEmpire)) && ((mWorld.mStars[_local1[_local3][_local4].starId].mStarType == "Fighter")))){ mStarBuildPriorities[_local2].fighter = (mStarBuildPriorities[_local2].fighter - 10); }; }; }; }; _local4++; }; mStarBuildPriorities[_local2].fighter = (((mStarBuildPriorities[_local2].fighter + 55) / 110) * 100); _local2++; }; } public function Tick():void{ var _local1:int; var _local2:Array; var _local3:Star; var _local4:Star; var _local5:Point; var _local6:Point; var _local7:int; var _local8:Star; var _local9:*; var _local10:Boolean; _local2 = new Array(); _local3 = null; _local4 = null; if (this.mEmpire.mStars.length <= 0){ return; }; if (mPaused == true){ return; }; if (mBotBuildAllowed){ if (this.mBotBuildTick > 0){ this.mBotBuildTick--; } else { this.mBotBuildTick = this.mBotBuildSpeed; _local7 = mEmpire.mStars.length; mStarBuildPriorities = new Array(_local7); _local9 = {}; _local9.defense = 0; _local9.defenseMax = 0; _local9.naval = 0; _local9.navalMax = 0; _local9.standard = 0; _local9.standardMax = 0; _local9.economic = 0; _local9.economicMax = 0; _local9.minelayer = 0; _local9.minelayerMax = 0; _local9.fighter = 0; _local9.fighterMax = 0; _local9.missile = 0; _local9.missileMax = 0; _local1 = 0; while (_local1 < _local7) { mStarBuildPriorities[_local1] = {}; mStarBuildPriorities[_local1].id = _local1; mStarBuildPriorities[_local1].defense = 0; mStarBuildPriorities[_local1].naval = 0; mStarBuildPriorities[_local1].standard = 0; mStarBuildPriorities[_local1].economic = 0; mStarBuildPriorities[_local1].minelayer = 0; mStarBuildPriorities[_local1].fighter = 0; mStarBuildPriorities[_local1].missile = 0; switch (mEmpire.mStars[_local1].mStarType){ case "Defense": _local9.defense++; break; case "Naval": _local9.naval++; break; case "Standard": _local9.standard++; break; case "Economic": _local9.economic++; break; case "MineLayer": _local9.minelayer++; break; case "Fighter": _local9.fighter++; break; case "Misssile": _local9.missile++; break; }; _local1++; }; if (mEmpire.mId == 0){ _local9.defenseMax = int((_local7 / 5)); _local9.navalMax = int((_local7 / 5)); _local9.standardMax = _local7; _local9.economicMax = int((_local7 / 5)); _local9.minelayerMax = int((_local7 / 10)); _local9.fighterMax = int((_local7 / 7)); _local9.missileMax = int((_local7 / 7)); } else { if (mEmpire.mId == 1){ _local9.defenseMax = int((_local7 / 3)); _local9.navalMax = int((_local7 / 3)); _local9.standardMax = _local7; _local9.economicMax = int((_local7 / 3)); _local9.minelayerMax = 1; _local9.fighterMax = int((_local7 / 7)); _local9.missileMax = int((_local7 / 7)); } else { if (mEmpire.mId == 2){ _local9.defenseMax = int((_local7 / 5)); _local9.navalMax = int((_local7 / 5)); _local9.standardMax = _local7; _local9.economicMax = int((_local7 / 5)); _local9.minelayerMax = 1; _local9.fighterMax = int((_local7 / 7)); _local9.missileMax = int((_local7 / 7)); } else { if (mEmpire.mId == 3){ _local9.defenseMax = int((_local7 / 5)); _local9.navalMax = int((_local7 / 5)); _local9.standardMax = _local7; _local9.economicMax = int((_local7 / 5)); _local9.minelayerMax = 1; _local9.fighterMax = int((_local7 / 7)); _local9.missileMax = int((_local7 / 7)); }; }; }; }; ThinkDefense(); ThinkEconomic(); ThinkRocket(); ThinkFighter(); ThinkMineLayer(); ThinkNaval(); _local10 = false; _local1 = 0; while (_local1 < _local7) { if (mEmpire.mStars[mStarBuildPriorities[_local1].id].mStarType == "Standard"){ if ((((mStarBuildPriorities[_local1].defense > 35)) && ((_local9.defense < _local9.defenseMax)))){ mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToDefense(); _local9.defense++; } else { if ((((mStarBuildPriorities[_local1].fighter > 99)) && ((_local9.fighter < _local9.fighterMax)))){ if (!_local10){ _local10 = true; mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToFighter(); _local9.fighter++; }; } else { if ((((mStarBuildPriorities[_local1].missile > 80)) && ((_local9.missile < _local9.missileMax)))){ mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToRocket(); _local9.missile++; } else { if ((((mStarBuildPriorities[_local1].minelayer > 60)) && ((_local9.minelayer < _local9.minelayerMax)))){ mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToMineLayer(); _local9.minelayer++; } else { if ((((mStarBuildPriorities[_local1].economic > 93)) && ((_local9.economic < _local9.economicMax)))){ mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToEconomic(); _local9.economic++; } else { if ((((mStarBuildPriorities[_local1].naval > 80)) && ((_local9.naval < _local9.navalMax)))){ mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToNaval(); _local9.naval++; }; }; }; }; }; }; } else { if (mEmpire.mStars[mStarBuildPriorities[_local1].id].mStarType == "Defense"){ if (mStarBuildPriorities[_local1].defense < 10){ mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToStandard(); _local9.defense--; } else { if (_local9.defense == _local7){ mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToStandard(); _local9.defense--; }; }; } else { if (mEmpire.mStars[mStarBuildPriorities[_local1].id].mStarType == "Rocket"){ if (mStarBuildPriorities[_local1].missile < 30){ mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToStandard(); _local9.missile--; }; } else { if (mEmpire.mStars[mStarBuildPriorities[_local1].id].mStarType == "Fighter"){ if (mStarBuildPriorities[_local1].fighter < 30){ mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToStandard(); _local9.fighter--; }; } else { if (mEmpire.mStars[mStarBuildPriorities[_local1].id].mStarType == "Naval"){ if (mStarBuildPriorities[_local1].defense > 35){ if (_local9.defense < _local9.defenseMax){ mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToDefense(); _local9.naval--; } else { mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToStandard(); _local9.naval--; }; } else { if ((((mStarBuildPriorities[_local1].fighter > 99)) && ((_local9.minelayer < _local9.fighterMax)))){ if (!_local10){ _local10 = true; mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToFighter(); _local9.fighter++; }; } else { if ((((mStarBuildPriorities[_local1].minelayer > 60)) && ((_local9.minelayer < _local9.minelayerMax)))){ mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToMineLayer(); _local9.minelayer++; }; }; }; } else { if (mEmpire.mStars[mStarBuildPriorities[_local1].id].mStarType == "Economic"){ if (mStarBuildPriorities[_local1].defense > 35){ if (_local9.defense < _local9.defenseMax){ mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToDefense(); _local9.economic--; } else { mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToStandard(); _local9.economic--; }; } else { if ((((mStarBuildPriorities[_local1].fighter > 99)) && ((_local9.minelayer < _local9.fighterMax)))){ if (!_local10){ _local10 = true; mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToFighter(); _local9.fighter++; }; } else { if ((((mStarBuildPriorities[_local1].minelayer > 60)) && ((_local9.minelayer < _local9.minelayerMax)))){ mEmpire.mStars[mStarBuildPriorities[_local1].id].SetToMineLayer(); _local9.minelayer++; }; }; }; }; }; }; }; }; }; _local1++; }; }; }; if (this.mBotThinkTick > 0){ this.mBotThinkTick--; return; }; this.mBotThinkTick = this.mBotThinkSpeed; _local5 = new Point(1000000, 1000000); _local6 = new Point(-1, -1); _local7 = mEmpire.mStars.length; _local1 = 0; while (_local1 < _local7) { _local8 = mEmpire.mStars[_local1]; if (_local8.x < _local5.x){ _local5.x = (_local8.x - 25); }; if (_local8.y < _local5.y){ _local5.y = (_local8.y - 25); }; if (_local8.x > _local6.x){ _local6.x = (_local8.x + 25); }; if (_local8.y > _local6.y){ _local6.y = (_local8.y + 25); }; _local1++; }; empireBoundary.topLeft = _local5; empireBoundary.bottomRight = _local6; if ((((((mAttackBlacklist.length > 1)) || ((mBigPush == true)))) && ((mEmpire.mNumShips < mEmpire.mMaxShips)))){ mBigPush = true; } else { mBigPush = false; if (mEmpire.mNumShips >= (mAttackThreshold * mEmpire.mMaxShips)){ ThinkAttack(); }; }; if (mEmpireShape){ mEmpireShape.graphics.clear(); mEmpireShape.graphics.beginFill(1193046, 0.3); mEmpireShape.graphics.drawRect(empireBoundary.x, empireBoundary.y, empireBoundary.width, empireBoundary.height); mEmpireShape.graphics.endFill(); }; } public function ThinkAttack():void{ var _local1:Array; var _local2:*; var _local3:int; var _local4:Star; var _local5:int; var _local6:*; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local11:Star; var _local12:int; var _local13:int; var _local14:*; var _local15:*; var _local16:*; var _local17:*; var _local18:int; if (mGangUpEnabled == true){ if (mWorld.mEmpires[0].mStars.length > (mWorld.mStars.length / 4)){ mGangUpTargetEmpire = mWorld.mEmpires[0]; } else { if (mWorld.mEmpires[0].mStars.length < (mWorld.mStars.length / 6)){ mGangUpTargetEmpire = null; }; }; }; _local1 = new Array(); _local2 = 100; _local3 = mWorld.mStars.length; mAttackBlacklistDecay--; if (mAttackBlacklistDecay <= 0){ mAttackBlacklistDecay = mAttackBlacklistDecayRate; if (mAttackBlacklist.length > 0){ mAttackBlacklist.pop(); }; }; while (_local1.length < 4) { _local8 = 0; while (_local8 < _local3) { _local4 = mWorld.mStars[_local8]; if ((((((empireBoundary.contains(_local4.x, _local4.y) == true)) && (!((_local4.mEmpire == mEmpire))))) && (!(mEmpire.IsAlly(_local4.mEmpire))))){ if (mAttackBlacklist.indexOf(_local4) == -1){ _local1.push(_local4); }; }; _local8++; }; if (_local1.length < 4){ empireBoundary.x = (empireBoundary.x - 40); empireBoundary.y = (empireBoundary.y - 40); empireBoundary.width = (empireBoundary.width + 80); empireBoundary.height = (empireBoundary.height + 80); if (empireBoundary.x < 0){ empireBoundary.x = 0; }; if (empireBoundary.y < 0){ empireBoundary.y = 0; }; if (empireBoundary.width > 1000){ empireBoundary.width = 0; }; if (empireBoundary.height > 1000){ empireBoundary.height = 0; }; }; _local2--; if (_local2 <= 0){ mAttackBlacklist.pop(); break; }; }; _local3 = mEmpire.mStars.length; _local5 = 4; _local6 = {}; _local7 = 0; while (_local1.length > 0) { _local7++; if (_local7 > mSpreadLimit){ break; }; _local9 = 0; _local8 = 0; while (_local8 < mEmpire.mStars.length) { _local9 = (_local9 + mEmpire.mStars[_local8].mShipList.length); _local8++; }; if (_local9 == 0){ break; }; _local10 = -1; _local12 = 9999; _local13 = 0; _local8 = 0; while (_local8 < _local1.length) { _local14 = _local1[_local8]; _local15 = ((((_local14.mShips + (_local14.mFighters * 2)) + (_local14.mDefenseBoats * _local14.mDefenseBoatPower)) + 2) * 2); _local16 = CalculateSurroundBonus(_local14); _local15 = (_local15 / _local16); _local15 = (_local15 / _local14.mSize); if ((_local15 * (Math.random() + 0.5)) < _local12){ _local12 = _local15; _local10 = _local8; _local11 = _local14; _local13 = _local16; }; _local8++; }; _local1.splice(_local10, 1)[0]; if (mAttackMemory.length == mAttackMemoryMaxSize){ if (_local11 == mAttackMemory[(mAttackMemory.length - 1)].star){ _local17 = 0; while (_local17 < (mAttackMemory.length - 2)) { if (mAttackMemory[_local17].star == _local11){ if (int((mAttackMemory[_local17].power / 5)) >= int((mAttackMemory[(mAttackMemory.length - 1)].power / 5))){ mAttackBlacklist.unshift(_local11); mAttackBlacklistDecay = mAttackBlacklistDecayRate; if (mAttackBlacklist.length > mAttackBlacklistMaxSize){ mAttackBlacklist.pop(); }; }; break; }; _local17++; }; }; }; if (mEmpire.mNumShips > ((_local12 * _local11.mSize) * 2)){ _local18 = 0; _local8 = 0; while (_local8 < mEmpire.mStars.length) { mEmpire.mStars[_local8].Attack(_local11, 2, _local16); _local18 = (_local18 + (mEmpire.mStars[_local8].mShipList.length / 2)); if (_local18 > (_local12 * _local11.mSize)){ break; }; _local8++; }; _local5 = (_local5 - 2); } else { _local18 = 0; _local8 = 0; while (_local8 < mEmpire.mStars.length) { mEmpire.mStars[_local8].Attack(_local11, 4, _local16); _local18 = (_local18 + mEmpire.mStars[_local8].mShipList.length); if (_local18 > (_local12 * _local11.mSize)){ break; }; _local8++; }; _local5 = (_local5 - 4); }; _local6.star = _local11; _local6.power = _local12; mAttackMemory.unshift(_local6); if (mAttackMemory.length > mAttackMemoryMaxSize){ mAttackMemory.pop(); }; }; } public function CalculateSurroundBonus(_arg1:Star, _arg2:String=""):int{ var _local3:Star; var _local4:int; var _local5:Number; var _local6:Array; var _local7:int; var _local8:Number; _local4 = mEmpire.mStars.length; _local6 = new Array(); _local7 = 0; while (_local7 < _local4) { _local3 = mEmpire.mStars[_local7]; if ((((_local3.mShipList.length > 0)) || ((_arg2 == "Potential")))){ _local5 = (((Math.atan2((_local3.y - _arg1.y), (_local3.x - _arg1.x)) * 180) / Math.PI) + 180); _local6.push(_local5); }; _local7++; }; _local6.sort(Array.NUMERIC); _local8 = 0; _local7 = 0; while (_local7 < _local6.length) { if (_local7 == 0){ if (((_local6[_local7] - _local6[(_local6.length - 1)]) + 360) > _local8){ _local8 = ((_local6[_local7] - _local6[(_local6.length - 1)]) + 360); }; if ((_local6[(_local7 + 1)] - _local6[_local7]) > _local8){ _local8 = (_local6[(_local7 + 1)] - _local6[_local7]); }; } else { if (_local7 == (_local6.length - 1)){ if ((_local6[_local7] - _local6[(_local7 - 1)]) > _local8){ _local8 = (_local6[_local7] - _local6[(_local7 - 1)]); }; if (((360 - _local6[_local7]) + _local6[0]) > _local8){ _local8 = ((360 - _local6[_local7]) + _local6[0]); }; } else { if ((_local6[_local7] - _local6[(_local7 - 1)]) > _local8){ _local8 = (_local6[_local7] - _local6[(_local7 - 1)]); }; if ((_local6[(_local7 + 1)] - _local6[_local7]) > _local8){ _local8 = (_local6[(_local7 + 1)] - _local6[_local7]); }; }; }; _local7++; }; if (_local8 > 270){ return (1); }; if ((((_local8 <= 270)) && ((_local8 > 180)))){ return (2); }; if ((((_local8 <= 180)) && ((_local8 > 90)))){ return (3); }; return (4); } } }//package
Section 22
//btnSoundOff (btnSoundOff) package { import flash.display.*; public dynamic class btnSoundOff extends SimpleButton { } }//package
Section 23
//CampaignLevelText (CampaignLevelText) package { import flash.display.*; public class CampaignLevelText extends MovieClip { } }//package
Section 24
//CampaignMap (CampaignMap) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.net.*; public class CampaignMap extends MovieClip { var mSetup; public var level1:CampaignMapButton; public var level2:CampaignMapButton; public var level4:CampaignMapButton; public var level5:CampaignMapButton; public var level6:CampaignMapButton; public var level7:CampaignMapButton; public var level9:CampaignMapButton; public var level3:CampaignMapButton; public var level8:CampaignMapButton; public var mSoundScape:SoundFactory; public var level12:CampaignMapButton; public var level11:CampaignMapButton; public var level10:CampaignMapButton; public function CampaignMap(_arg1){ var _local2:*; mSoundScape = new SoundFactory(); super(); mSetup = _arg1; _local2 = LoadCampaignLevel(); _local2 = 12; level1.addEventListener(MouseEvent.MOUSE_OVER, onOverButton); level2.addEventListener(MouseEvent.MOUSE_OVER, onOverButton); level3.addEventListener(MouseEvent.MOUSE_OVER, onOverButton); level4.addEventListener(MouseEvent.MOUSE_OVER, onOverButton); level5.addEventListener(MouseEvent.MOUSE_OVER, onOverButton); level6.addEventListener(MouseEvent.MOUSE_OVER, onOverButton); level7.addEventListener(MouseEvent.MOUSE_OVER, onOverButton); level8.addEventListener(MouseEvent.MOUSE_OVER, onOverButton); level9.addEventListener(MouseEvent.MOUSE_OVER, onOverButton); level10.addEventListener(MouseEvent.MOUSE_OVER, onOverButton); level11.addEventListener(MouseEvent.MOUSE_OVER, onOverButton); level12.addEventListener(MouseEvent.MOUSE_OVER, onOverButton); if (_local2 > 1){ level1.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel1); level1.gotoAndStop("complete"); }; if (_local2 > 2){ level2.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel2); level2.gotoAndStop("complete"); }; if (_local2 > 3){ level3.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel3); level3.gotoAndStop("complete"); }; if (_local2 > 4){ level4.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel4); level4.gotoAndStop("complete"); }; if (_local2 > 5){ level5.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel5); level5.gotoAndStop("complete"); }; if (_local2 > 6){ level6.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel6); level6.gotoAndStop("complete"); }; if (_local2 > 7){ level7.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel7); level7.gotoAndStop("complete"); }; if (_local2 > 8){ level8.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel8); level8.gotoAndStop("complete"); }; if (_local2 > 9){ level9.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel9); level9.gotoAndStop("complete"); }; if (_local2 > 10){ level10.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel10); level10.gotoAndStop("complete"); }; if (_local2 > 11){ level11.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel11); level11.gotoAndStop("complete"); }; if (_local2 > 12){ level12.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel12); level12.gotoAndStop("final_complete"); }; if (_local2 <= 1){ level2.gotoAndStop("incomplete"); }; if (_local2 <= 2){ level3.gotoAndStop("incomplete"); }; if (_local2 <= 3){ level4.gotoAndStop("incomplete"); }; if (_local2 <= 4){ level5.gotoAndStop("incomplete"); }; if (_local2 <= 5){ level6.gotoAndStop("incomplete"); }; if (_local2 <= 6){ level7.gotoAndStop("incomplete"); }; if (_local2 <= 7){ level8.gotoAndStop("incomplete"); }; if (_local2 <= 8){ level9.gotoAndStop("incomplete"); }; if (_local2 <= 9){ level10.gotoAndStop("incomplete"); }; if (_local2 <= 10){ level11.gotoAndStop("incomplete"); }; if (_local2 <= 11){ level12.gotoAndStop("final_incomplete"); }; switch (_local2){ case 1: level1.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel1); level1.gotoAndStop("current"); break; case 2: level2.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel2); level2.gotoAndStop("current"); break; case 3: level3.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel3); level3.gotoAndStop("current"); break; case 4: level4.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel4); level4.gotoAndStop("current"); break; case 5: level5.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel5); level5.gotoAndStop("current"); break; case 6: level6.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel6); level6.gotoAndStop("current"); break; case 7: level7.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel7); level7.gotoAndStop("current"); break; case 8: level8.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel8); level8.gotoAndStop("current"); break; case 9: level9.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel9); level9.gotoAndStop("current"); break; case 10: level10.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel10); level10.gotoAndStop("current"); break; case 11: level11.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel11); level11.gotoAndStop("current"); break; case 12: trace("lajkslskajd"); level12.addEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel12); level12.gotoAndStop("final_current"); break; }; } public function onOutButton(_arg1:MouseEvent):void{ _arg1.currentTarget.prevFrame(); _arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_OUT, onOutButton); } public function Campaign(_arg1:int):void{ var _local2:World; var _local3:Timer; _local2 = new World(this.parent, "Campaign", 0, 0, mSetup.mWorldSpeed, mSetup.mBotSpeed, _arg1); _local2.mPlayer = new Player(_local2, 0, 0); _local2.mPlayer.y = -32; _local2.mPlayer.Tick(null); _local2.addChild(_local2.mPlayer); _local2.StartWorld(); _local3 = new Timer(500); _local3.addEventListener("timer", _local2.mPlayer.Tick); _local3.start(); Vanish(); mSoundScape.Play("Menu3"); } public function CampaignLevel11(_arg1:MouseEvent):void{ Campaign(11); } public function CampaignLevel10(_arg1:MouseEvent):void{ Campaign(10); } public function CampaignLevel1(_arg1:MouseEvent):void{ Campaign(1); } public function CampaignLevel7(_arg1:MouseEvent):void{ Campaign(7); } public function CampaignLevel5(_arg1:MouseEvent):void{ Campaign(5); } public function CampaignLevel6(_arg1:MouseEvent):void{ Campaign(6); } public function CampaignLevel4(_arg1:MouseEvent):void{ Campaign(4); } public function CampaignLevel9(_arg1:MouseEvent):void{ Campaign(9); } public function CampaignLevel3(_arg1:MouseEvent):void{ Campaign(3); } public function CampaignLevel8(_arg1:MouseEvent):void{ Campaign(8); } public function CampaignLevel12(_arg1:MouseEvent):void{ Campaign(12); } public function CampaignLevel2(_arg1:MouseEvent):void{ Campaign(2); } public function onOverButton(_arg1:MouseEvent):void{ _arg1.currentTarget.nextFrame(); _arg1.currentTarget.addEventListener(MouseEvent.MOUSE_OUT, onOutButton); } public function Vanish():void{ level1.removeEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel1); level2.removeEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel2); level3.removeEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel3); level4.removeEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel4); level5.removeEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel5); level6.removeEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel6); level7.removeEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel7); level8.removeEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel8); level9.removeEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel9); level10.removeEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel10); level11.removeEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel11); level12.removeEventListener(MouseEvent.MOUSE_DOWN, CampaignLevel12); visible = false; } public function LoadCampaignLevel(){ var _local1:SharedObject; _local1 = SharedObject.getLocal("campaignlevel"); if (_local1.size == 0){ _local1.data.campaignlevel = 1; }; return (_local1.data.campaignlevel); } } }//package
Section 25
//CampaignMapButton (CampaignMapButton) package { import flash.display.*; public dynamic class CampaignMapButton extends MovieClip { } }//package
Section 26
//CampaignSetup (CampaignSetup) package { import flash.events.*; import flash.display.*; public class CampaignSetup extends MovieClip { var mWorldSpeed:Number; public var mSpeedControl:SliderControl; public var mDifficultyControl:SliderControl; var mSplash; public var mSoundScape:SoundFactory; public var btnGo:SimpleButton; var mBotSpeed:Number; public function CampaignSetup(_arg1){ mSoundScape = new SoundFactory(); super(); mSplash = _arg1; btnGo.addEventListener(MouseEvent.MOUSE_DOWN, Campaign); mSpeedControl.SetDivisions(["slow", "normal", "fast", "extreme"]); mSpeedControl.SetStartPosition(1); mDifficultyControl.SetDivisions(["newbie", "easy", "normal", "hard", "extreme"]); mDifficultyControl.SetStartPosition(2); } public function Campaign(_arg1:MouseEvent):void{ var _local2:*; switch (mSpeedControl.GetValue()){ case "slow": mWorldSpeed = 0.4; break; case "normal": mWorldSpeed = 0.7; break; case "fast": mWorldSpeed = 0.9; break; case "extreme": mWorldSpeed = 1.1; break; default: trace("CampaignSetup bad things"); }; switch (mDifficultyControl.GetValue()){ case "newbie": mBotSpeed = 1; break; case "easy": mBotSpeed = 2; break; case "normal": mBotSpeed = 3; break; case "hard": mBotSpeed = 4; break; case "extreme": mBotSpeed = 5; break; default: trace("CampaignSetup bad things"); }; Vanish(); mSplash.Vanish(); _local2 = new CampaignMap(this); _local2.x = 0; _local2.y = 0; _local2.visible = true; stage.addChild(_local2); mSoundScape.Play("Menu3"); } public function Vanish():void{ btnGo.removeEventListener(MouseEvent.MOUSE_DOWN, Campaign); visible = false; } } }//package
Section 27
//ChallengeSetup (ChallengeSetup) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class ChallengeSetup extends MovieClip { public var mSpeedControl:SliderControl; public var mDifficultyControl:SliderControl; var mSplash; public var mSoundScape:SoundFactory; public var btnGo:SimpleButton; public var mMapControl:SliderControl; public function ChallengeSetup(_arg1){ mSoundScape = new SoundFactory(); super(); mSplash = _arg1; btnGo.addEventListener(MouseEvent.MOUSE_DOWN, Challenge); mMapControl.SetDivisions(["BaseWar", "IslandHopper", "Dusty", "PrisonBreak", "NorthVsSouth", "Asteroids", "Galaxy", "Ruins", "Layers", "OpenSace", "Fracture"]); mMapControl.SetStartPosition(0); mSpeedControl.SetDivisions(["slow", "normal", "fast", "extreme"]); mSpeedControl.SetStartPosition(1); mDifficultyControl.SetDivisions(["newbie", "easy", "normal", "hard", "extreme"]); mDifficultyControl.SetStartPosition(2); } public function Challenge(_arg1:MouseEvent):void{ var _local2:Number; var _local3:Number; var _local4:World; var _local5:Timer; switch (mSpeedControl.GetValue()){ case "slow": _local2 = 0.4; break; case "normal": _local2 = 0.7; break; case "fast": _local2 = 0.9; break; case "extreme": _local2 = 1.1; break; default: trace("EK"); }; switch (mDifficultyControl.GetValue()){ case "newbie": _local3 = 1; break; case "easy": _local3 = 2; break; case "normal": _local3 = 3; break; case "hard": _local3 = 4; break; case "extreme": _local3 = 5; break; default: trace("EK"); }; _local4 = new World(mSplash.parent, "Challenge", 0, 0, _local2, _local3, 0, mMapControl.GetValue()); _local4.mPlayer = new Player(_local4, 0, 0); _local4.mPlayer.y = -32; _local4.mPlayer.Tick(null); _local4.addChild(_local4.mPlayer); _local4.StartWorld(); _local5 = new Timer(500); _local5.addEventListener("timer", _local4.mPlayer.Tick); _local5.start(); Vanish(); mSplash.Vanish(); mSoundScape.Play("Menu3"); } public function Vanish():void{ btnGo.removeEventListener(MouseEvent.MOUSE_DOWN, Challenge); visible = false; } } }//package
Section 28
//Cursor (Cursor) package { import flash.display.*; public dynamic class Cursor extends MovieClip { } }//package
Section 29
//DistanceMatrix (DistanceMatrix) package { public class DistanceMatrix { var mWorld:World; var mMatrix:Array; public function DistanceMatrix(_arg1:World){ var _local2:int; var _local3:int; var _local4:int; var _local5:int; super(); _local2 = _arg1.mStars.length; mWorld = _arg1; mMatrix = new Array(_local2); _local3 = 0; while (_local3 < _local2) { mMatrix[_local3] = new Array(_local2); _local4 = 0; while (_local4 < _local2) { _local5 = Math.sqrt((Math.pow((_arg1.mStars[_local3].x - _arg1.mStars[_local4].x), 2) + Math.pow((_arg1.mStars[_local3].y - _arg1.mStars[_local4].y), 2))); mMatrix[_local3][_local4] = {}; mMatrix[_local3][_local4].distance = _local5; mMatrix[_local3][_local4].starId = _local4; _local4++; }; mMatrix[_local3] = mMatrix[_local3].sortOn("distance", Array.NUMERIC); mMatrix[_local3].shift(); _local3++; }; } } }//package
Section 30
//EditStarPopup (EditStarPopup) package { import flash.events.*; import flash.display.*; public class EditStarPopup extends MovieClip { public var mTypeControl:SliderControl; public var btnEditStarOk:SimpleButton; var mStar; var mWorld; public var mSizeControl:SliderControl; public var btnEditStarDelete:SimpleButton; public var mEmpireControl:SliderControl; public function EditStarPopup(_arg1:World, _arg2:Star){ mWorld = _arg1; if (mWorld.mEditPopup != null){ mWorld.mEditPopup.Vanish(); }; mWorld.mEditPopup = this; mStar = _arg2; if (mStar.x < 400){ x = 450; } else { x = 50; }; y = 0; addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); btnEditStarOk.addEventListener(MouseEvent.MOUSE_DOWN, EditStarOk); btnEditStarDelete.addEventListener(MouseEvent.MOUSE_DOWN, EditStarDelete); SetupSliderControls(); mWorld.addChild(this); visible = true; } public function mouseClick(_arg1:MouseEvent):void{ _arg1.stopPropagation(); } private function GetEmpire(_arg1:String):Empire{ var _local2:int; _local2 = 0; while (_local2 < mWorld.mEmpires.length) { if (mWorld.mEmpires[_local2].mName == _arg1){ return (mWorld.mEmpires[_local2]); }; _local2++; }; return (null); } public function SetupSliderControls():void{ mEmpireControl.SetDivisions(["Grey", "Blue", "Red", "Green", "Yellow"]); mEmpireControl.SetStartPositionByName(mStar.mEmpire.mName); mSizeControl.SetDivisions(["tiny", "small", "medium", "large", "huge"]); if (mStar.mSize == 0.6){ mSizeControl.SetStartPositionByName("tiny"); } else { if (mStar.mSize == 1.1){ mSizeControl.SetStartPositionByName("small"); } else { if (mStar.mSize == 1.6){ mSizeControl.SetStartPositionByName("medium"); } else { if (mStar.mSize == 2){ mSizeControl.SetStartPositionByName("large"); } else { if (mStar.mSize == 2.4){ mSizeControl.SetStartPositionByName("huge"); }; }; }; }; }; mTypeControl.SetDivisions(["Standard", "Defense", "Naval", "Economic", "MineLayer", "Rocket", "Fighter"]); mTypeControl.SetStartPositionByName(mStar.mStarType); } public function EditStarOk(_arg1:MouseEvent):void{ mStar.mEmpire.RemoveStar(mStar); mStar.SetEmpire(GetEmpire(mEmpireControl.GetValue())); mStar.mEmpire.AddStar(mStar); switch (mSizeControl.GetValue()){ case "tiny": mStar.SetSize(0.6); break; case "small": mStar.SetSize(1.1); break; case "medium": mStar.SetSize(1.6); break; case "large": mStar.SetSize(2); break; case "huge": mStar.SetSize(2.4); break; }; if (mEmpireControl.GetValue() == "Grey"){ mTypeControl.SetStartPosition(0); }; mStar.mStarType = "force a change"; mStar.SetStarType(mTypeControl.GetValue()); mStar.mEfficiency = mStar.mEfficiencyMax; mStar.DrawTerritory(); Vanish(); _arg1.stopPropagation(); } public function EditStarDelete(_arg1:MouseEvent):void{ var _local2:int; mStar.mEmpire.RemoveStar(mStar); mStar.Vanish(); _local2 = 0; while (_local2 < mWorld.mStars.length) { if (mWorld.mStars[_local2] == mStar){ mWorld.mStars.splice(_local2, 1); mWorld.mNumStars--; }; _local2++; }; Vanish(); _arg1.stopPropagation(); } public function Vanish():void{ removeEventListener(MouseEvent.MOUSE_DOWN, mouseClick); btnEditStarOk.removeEventListener(MouseEvent.MOUSE_DOWN, EditStarOk); btnEditStarDelete.removeEventListener(MouseEvent.MOUSE_DOWN, EditStarDelete); mWorld.removeChild(this); visible = false; mWorld.mEditPopup = null; } } }//package
Section 31
//Empire (Empire) package { public class Empire { var mMaxShips:int; var mStars:Array; var mSoundScape:SoundFactory; var mAlly:Array; var mGrowthRate:Number;// = 1 var mName:String; var mMinEconomy:int; var mStarTypeMemory:Array; var mNumShips:int; var mBot:Bot;// = null var mWorld:World; var mId:int; var mFleets:Array; var mPlayerMaxStarsSoFar:int;// = 0 public function Empire(_arg1:World, _arg2:int, _arg3:String){ var _local4:*; mStars = new Array(); mFleets = new Array(); mGrowthRate = 1; mBot = null; mStarTypeMemory = new Array(); mAlly = new Array(); mSoundScape = new SoundFactory(); mPlayerMaxStarsSoFar = 0; super(); this.mId = _arg2; this.mName = _arg3; this.mWorld = _arg1; _local4 = 0; while (_local4 < mWorld.mStars.length) { mStarTypeMemory[_local4] = "Standard"; _local4++; }; AddAlly(this); } public function AddFleet(_arg1:Fleet){ if (this.mFleets.indexOf(_arg1) == -1){ this.mFleets.push(_arg1); }; } public function ShipLimitReached():Boolean{ if ((((mNumShips < mMinEconomy)) || ((mNumShips < mMaxShips)))){ return (false); }; return (true); } public function CountShips():int{ var _local1:int; var _local2:int; _local1 = 0; _local2 = 0; while (_local2 < mStars.length) { _local1 = (_local1 + int(mStars[_local2].mShips)); _local2++; }; _local2 = 0; while (_local2 < mFleets.length) { _local1 = (_local1 + int(mFleets[_local2].mShips)); _local2++; }; return (_local1); } public function RemoveStar(_arg1:Star){ var _local2:int; _local2 = mStars.indexOf(_arg1); if (_local2 != -1){ mStars.splice(_local2, 1); }; } public function RemoveFleet(_arg1:Fleet){ var _local2:int; _local2 = this.mFleets.indexOf(_arg1); if (_local2 != -1){ this.mFleets.splice(_local2, 1); }; } public function IsAlly(_arg1:Empire):Boolean{ if (mAlly.lastIndexOf(_arg1) != -1){ return (true); }; return (false); } public function SetBot(_arg1:Bot):void{ this.mBot = _arg1; } public function SetMinEconomy(_arg1:int):void{ mMinEconomy = _arg1; } public function AddAlly(_arg1:Empire){ mAlly.push(_arg1); } public function UpdateStats(){ var _local1:int; var _local2:int; var _local3:Number; var _local4:Number; var _local5:int; _local1 = this.mWorld.mStars.length; _local2 = this.mStars.length; _local3 = (_local2 / _local1); mMaxShips = 0; _local5 = 0; while (_local5 < mStars.length) { mMaxShips = (mMaxShips + (mStars[_local5].mEconomicOutput * mStars[_local5].mEfficiency)); _local5++; }; if (_local3 == 0){ this.mMaxShips = (this.mMaxShips * 0); } else { this.mMaxShips = (this.mMaxShips * 1); }; if (((!((mNumShips == CountShips()))) && ((mName == "Blue")))){ trace("The unthinkable has happened FUCKFUCK!!!! ", mNumShips, CountShips()); }; _local4 = (mNumShips / mMaxShips); _local5 = 0; while (_local5 < mStars.length) { if ((((mNumShips > mMaxShips)) && ((mStars[_local5].mShips > 0)))){ if (mNumShips > mMinEconomy){ mStars[_local5].VanishShips(1); }; }; _local5++; }; } public function AddStar(_arg1:Star){ if (mStars.indexOf(_arg1) == -1){ mStars.push(_arg1); _arg1.SetEmpire(this); }; if (mStars.length > mPlayerMaxStarsSoFar){ mPlayerMaxStarsSoFar = mStars.length; }; } public function Tick(){ var _local1:int; _local1 = 0; UpdateStats(); _local1 = 0; while (_local1 < mStars.length) { if (mStars[_local1].mEmpire != this){ trace("FUCK! I think this star is mine, but it thinks it is someone elses.", mStars[_local1].mId, mId, mStars[_local1].mEmpire.mId); RemoveStar(mStars[_local1]); } else { mStars[_local1].Tick(); }; _local1++; }; if (mBot != null){ mBot.Tick(); }; if (mId == 0){ if (mStars.length < (mPlayerMaxStarsSoFar / 2)){ mSoundScape.Play("WarningStart"); } else { if (mStars.length > (mPlayerMaxStarsSoFar / 1.8)){ mSoundScape.Play("WarningStop"); }; }; }; _local1 = 0; while (_local1 < mFleets.length) { if (mFleets[_local1].mShipList[0].mLeaderOfFleet == null){ trace("I got a leaderless fleet here!!"); mFleets[_local1].Destroy(); }; _local1++; }; } } }//package
Section 32
//ExplodeBoat (ExplodeBoat) package { import flash.media.*; public dynamic class ExplodeBoat extends Sound { } }//package
Section 33
//ExplodeShip (ExplodeShip) package { import flash.media.*; public dynamic class ExplodeShip extends Sound { } }//package
Section 34
//ExplodeStar (ExplodeStar) package { import flash.media.*; public dynamic class ExplodeStar extends Sound { } }//package
Section 35
//Fighter (Fighter) package { import flash.events.*; import flash.display.*; public class Fighter extends MovieClip { private var mLeaderOfFleet:Fleet;// = null private var originY:int; private var mRestFrame:int; public var mWorld:World; private var destY:int; private var radius:Number;// = 10.4 private var mDest:Star; public var mEmpireName:String; private var angle:Number; private var velocity:Number;// = 6 private var mDx:Number; private var mDy:Number; private var originX:int; private var destX:int; public function Fighter(_arg1:World, _arg2:int, _arg3:int, _arg4:String){ radius = (16 * 0.65); velocity = 6; mLeaderOfFleet = null; super(); mWorld = _arg1; this.x = _arg2; this.y = _arg3; scaleX = 0.1; scaleY = 0.1; mEmpireName = _arg4; gotoAndStop(mEmpireName); mRestFrame = currentFrame; } public function moveUpdate(_arg1:Event):void{ if (mWorld.mPause == true){ return; }; x = (x + mDx); y = (y + mDy); if (mLeaderOfFleet != null){ if (hitTestObject(mDest)){ removeEventListener(Event.ENTER_FRAME, moveUpdate); mLeaderOfFleet.Attack(); mLeaderOfFleet = null; }; }; } public function explodeUpdate(_arg1:Event):void{ if (currentLabel == "end"){ visible = false; removeEventListener(Event.ENTER_FRAME, explodeUpdate); parent.removeChild(this); }; } public function Destroy():void{ Explode(); } public function Orbit(_arg1, _arg2):void{ gotoAndStop(mRestFrame); originX = _arg1; originY = _arg2; angle = (Math.random() * 360); rotation = 0; radius = (radius + ((Math.random() * 4) * 0.8)); alpha = ((Math.random() * 0.5) + 0.5); velocity = (velocity + Math.random()); orbitUpdate(new Event("dummy")); removeEventListener(Event.ENTER_FRAME, moveUpdate); addEventListener(Event.ENTER_FRAME, orbitUpdate); } public function SetToFleetLeader(_arg1:Fleet):void{ mLeaderOfFleet = _arg1; } public function orbitUpdate(_arg1:Event):void{ if (mWorld.mPause == true){ return; }; angle = (angle + velocity); if (angle >= 360){ angle = 0; }; rotation = angle; x = (originX + (radius * Math.sin(((angle * Math.PI) / 180)))); y = (originY - (radius * Math.cos(((angle * Math.PI) / 180)))); } public function Vanish():void{ removeEventListener(Event.ENTER_FRAME, orbitUpdate); removeEventListener(Event.ENTER_FRAME, moveUpdate); visible = false; parent.removeChild(this); } public function MoveToStar(_arg1:Star, _arg2:Number):void{ var _local3:Number; var _local4:Number; gotoAndStop((mRestFrame + 1)); mDest = _arg1; destX = _arg1.x; destY = _arg1.y; _local3 = (Math.sqrt((Math.pow((destX - x), 2) + Math.pow((destY - y), 2))) - 25); _local4 = (_local3 / _arg2); mDx = ((destX - x) / _arg2); mDy = ((destY - y) / _arg2); if (mDx == 0){ mDx = 1E-6; }; rotation = ((Math.atan((mDy / mDx)) * 180) / Math.PI); if (mDx < 0){ rotation = (rotation + 180); }; removeEventListener(Event.ENTER_FRAME, orbitUpdate); addEventListener(Event.ENTER_FRAME, moveUpdate); } public function Explode():void{ removeEventListener(Event.ENTER_FRAME, orbitUpdate); removeEventListener(Event.ENTER_FRAME, moveUpdate); addEventListener(Event.ENTER_FRAME, explodeUpdate); gotoAndPlay("Explode"); } } }//package
Section 36
//Fleet (Fleet) package { public class Fleet { var mShips:int; var mShipList:Array; var mParentFleet:Fleet;// = null var mEmpire:Empire; var mDy:Number; var mSurroundBonus:int; var mWorld:World; var mSource:Star; var mVelocity:Number;// = 3 var mDx:Number; var mChildFleets:Array; var mDest:Star; var x:Number; var y:Number; var mFleetType:String; public function Fleet(_arg1:World, _arg2:Empire, _arg3:int, _arg4:Star, _arg5:Star, _arg6:int, _arg7:Number=1, _arg8:String="Ship"):void{ var _local9:Number; var _local10:Number; var _local11:*; var _local12:Ship; var _local13:int; var _local14:*; mShipList = new Array(); mChildFleets = new Array(); mParentFleet = null; mVelocity = 3; super(); mFleetType = _arg8; if (_arg8 == "Fighter"){ FighterConstructor(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7); return; }; _local9 = (Math.sqrt((Math.pow((_arg5.x - _arg4.x), 2) + Math.pow((_arg5.y - _arg4.y), 2))) - 25); mVelocity = (mVelocity * _arg7); _local10 = (_local9 / mVelocity); mWorld = _arg1; mEmpire = _arg2; mShips = _arg3; mSource = _arg4; mSource.mShips = (mSource.mShips - mShips); mDest = _arg5; mDx = ((_arg5.x - _arg4.x) / _local10); mDy = ((_arg5.y - _arg4.y) / _local10); mSurroundBonus = _arg6; mEmpire.AddFleet(this); _local11 = RepresentedShipCount(mShips); _local13 = 0; while (_local13 < _local11) { _local12 = mSource.PopShip(); if (_local12 == null){ _local14 = mSource.mShipList[0]; _local12 = new Ship(_local14.mWorld, _local14.x, _local14.y, _local14.mEmpireName); _local12.Orbit(mSource.x, mSource.y); mWorld.addChild(_local12); }; _local12.MoveToStar(_arg5, _local10); mShipList.push(_local12); _local13++; }; if (mShipList.length > 0){ mShipList[0].SetToFleetLeader(this); } else { trace("Shit, this fleet has no ships!!"); }; if (mShips != mShipList.length){ }; } public function Vanish():void{ var _local1:*; if (mFleetType == "Fighter"){ while (mShipList.length > 0) { _local1 = mShipList.pop(); _local1.Vanish(); }; mShips = 0; } else { mEmpire.RemoveFleet(this); while (mShipList.length > 0) { _local1 = mShipList.pop(); _local1.Vanish(); }; mEmpire.mNumShips = (mEmpire.mNumShips - mShips); mShips = 0; }; } public function RepresentedShipCount(_arg1:int):int{ return (mWorld.mRepresentedShipMatrix[_arg1]); } public function ShipCount():int{ return (mShips); } public function Attack():void{ if (mParentFleet == null){ x = this.mShipList[0].x; y = this.mShipList[0].y; mDest.Defend(this); } else { this.mDx = 0; this.mDy = 0; }; } public function Destroy():void{ var _local1:*; if (mFleetType == "Fighter"){ DestroyShips(mShips); if (mShips != 0){ trace("OhMyGod, another fleet tits up in Destroy - fighter"); }; } else { mEmpire.RemoveFleet(this); DestroyShips(mShips); if (mShips != 0){ trace("OhMyGod, another fleet tits up in Destroy"); }; if (mChildFleets != null){ _local1 = mChildFleets.pop(); if (_local1 != null){ }; }; }; } public function FighterConstructor(_arg1:World, _arg2:Empire, _arg3:int, _arg4:Star, _arg5:Star, _arg6:int, _arg7:Number=1):void{ var _local8:Number; var _local9:Number; var _local10:*; var _local11:Fighter; var _local12:int; _local8 = (Math.sqrt((Math.pow((_arg5.x - _arg4.x), 2) + Math.pow((_arg5.y - _arg4.y), 2))) - 25); mVelocity = (mVelocity * (_arg7 * 1.8)); _local9 = (_local8 / mVelocity); mWorld = _arg1; mEmpire = _arg2; mShips = _arg3; mSource = _arg4; mSource.mFighters = (mSource.mFighters - mShips); mDest = _arg5; mDx = ((_arg5.x - _arg4.x) / _local9); mDy = ((_arg5.y - _arg4.y) / _local9); mSurroundBonus = _arg6; _local10 = mShips; _local12 = 0; while (_local12 < _local10) { _local11 = mSource.PopFighter(); if (_local11 == null){ trace("oh dear. trying to pop more interectors off star than are there"); } else { _local11.MoveToStar(_arg5, _local9); mShipList.push(_local11); }; _local12++; }; if (mShipList.length > 0){ mShipList[0].SetToFleetLeader(this); } else { trace("Shit, this fleet has no fighters!!"); }; if (mShips != mShipList.length){ }; } public function DestroyShips(_arg1:int):void{ var _local2:*; var _local3:int; var _local4:*; if ((((_arg1 > mShips)) || ((_arg1 < 0)))){ trace("Trying to destroy a wierd number of ships in this fleet: ", _arg1, mShips); _arg1 = mShips; }; if (mFleetType == "Fighter"){ _local2 = (mShips - _arg1); mShips = (mShips - _arg1); _arg1 = (mShipList.length - _local2); _local3 = 0; while (_local3 < _arg1) { _local4 = mShipList.pop(); _local4.Destroy(); _local3++; }; if (mShips != mShipList.length){ trace("Fleet DestroyShips NONONONONONO ships is wrong - fighters", mShips, mShipList.length); }; } else { _local2 = RepresentedShipCount((mShips - _arg1)); mShips = (mShips - _arg1); mEmpire.mNumShips = (mEmpire.mNumShips - _arg1); _arg1 = (mShipList.length - _local2); _local3 = 0; while (_local3 < _arg1) { _local4 = mShipList.pop(); _local4.Destroy(); _local3++; }; }; } public function AddChildren(_arg1:Array):void{ var _local2:int; mChildFleets = _arg1; _local2 = 0; while (_local2 < mChildFleets.length) { mChildFleets[_local2].mParentFleet = this; _local2++; }; mParentFleet = null; } } }//package
Section 37
//GameOver (GameOver) package { import flash.display.*; public dynamic class GameOver extends MovieClip { } }//package
Section 38
//LoseStar (LoseStar) package { import flash.media.*; public dynamic class LoseStar extends Sound { } }//package
Section 39
//MapSubmit (MapSubmit) package { import flash.display.*; import flash.text.*; public dynamic class MapSubmit extends MovieClip { public var mInputAuthor:TextField; public var mInputDescription:TextField; public var btnGo:SimpleButton; public var mInputName:TextField; } }//package
Section 40
//MapSubmitting (MapSubmitting) package { import flash.display.*; import flash.text.*; public dynamic class MapSubmitting extends MovieClip { public var mMapSubmitOk:SimpleButton; public var mTitle:TextField; public var mMapLink:TextField; } }//package
Section 41
//Menu1 (Menu1) package { import flash.media.*; public dynamic class Menu1 extends Sound { } }//package
Section 42
//Menu2 (Menu2) package { import flash.media.*; public dynamic class Menu2 extends Sound { } }//package
Section 43
//Menu3 (Menu3) package { import flash.media.*; public dynamic class Menu3 extends Sound { } }//package
Section 44
//MenuInEdit (MenuInEdit) package { import flash.display.*; public dynamic class MenuInEdit extends MovieClip { public var mPlay:SimpleButton; public var mQuit:SimpleButton; public var mSave:SimpleButton; public var mSoundToggle:btnSoundOff; } }//package
Section 45
//MenuInGame (MenuInGame) package { import flash.display.*; public dynamic class MenuInGame extends MovieClip { public var mQuit:SimpleButton; public var mSoundToggle:btnSoundOff; } }//package
Section 46
//MissileLaunch (MissileLaunch) package { import flash.media.*; public dynamic class MissileLaunch extends Sound { } }//package
Section 47
//Player (Player) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; import flash.net.*; public class Player extends MovieClip { public var mDefense:SimpleButton; var mMapSubmitting;// = null var mWorld:World; public var mNaval:SimpleButton; var mPopupType:String; var mPopup:StarTypePopup; public var mSoundScape:SoundFactory; var mEmpire:int; public var mStandard:SimpleButton; var mPopupTimer:Timer; public var mMenu:SimpleButton; var mId:int; public var mFighter:SimpleButton; public var mEconomic:SimpleButton; public var mShipsText:TextField; public var mRocket:SimpleButton; var mMenuPopup;// = null var mQuitPopup; var mMapSubmit;// = null public var mMineLayer:SimpleButton; public var mEconomyText:TextField; public function Player(_arg1:World, _arg2:int, _arg3:int){ mMenuPopup = null; mMapSubmit = null; mMapSubmitting = null; mSoundScape = new SoundFactory(); super(); mId = _arg2; mEmpire = _arg3; mWorld = _arg1; mShipsText.text = "0"; mEconomyText.text = "0"; mStandard.addEventListener(MouseEvent.MOUSE_DOWN, SetToStandard); mEconomic.addEventListener(MouseEvent.MOUSE_DOWN, SetToEconomic); mNaval.addEventListener(MouseEvent.MOUSE_DOWN, SetToNaval); mDefense.addEventListener(MouseEvent.MOUSE_DOWN, SetToDefense); mMineLayer.addEventListener(MouseEvent.MOUSE_DOWN, SetToMineLayer); mRocket.addEventListener(MouseEvent.MOUSE_DOWN, SetToRocket); mFighter.addEventListener(MouseEvent.MOUSE_DOWN, SetToFighter); mStandard.addEventListener(MouseEvent.MOUSE_OVER, PopupStandard); mEconomic.addEventListener(MouseEvent.MOUSE_OVER, PopupEconomic); mNaval.addEventListener(MouseEvent.MOUSE_OVER, PopupNaval); mDefense.addEventListener(MouseEvent.MOUSE_OVER, PopupDefense); mMineLayer.addEventListener(MouseEvent.MOUSE_OVER, PopupMineLayer); mRocket.addEventListener(MouseEvent.MOUSE_OVER, PopupRocket); mFighter.addEventListener(MouseEvent.MOUSE_OVER, PopupFighter); mStandard.addEventListener(MouseEvent.MOUSE_OUT, KillPopup); mEconomic.addEventListener(MouseEvent.MOUSE_OUT, KillPopup); mNaval.addEventListener(MouseEvent.MOUSE_OUT, KillPopup); mDefense.addEventListener(MouseEvent.MOUSE_OUT, KillPopup); mMineLayer.addEventListener(MouseEvent.MOUSE_OUT, KillPopup); mRocket.addEventListener(MouseEvent.MOUSE_OUT, KillPopup); mFighter.addEventListener(MouseEvent.MOUSE_OUT, KillPopup); mPopup = new StarTypePopup(); mPopup.visible = false; addChild(mPopup); mPopupTimer = new Timer(500); mPopupTimer.addEventListener("timer", Popup); mMenu.addEventListener(MouseEvent.MOUSE_DOWN, MenuPopup); } public function PopupDefense(_arg1:MouseEvent):void{ mPopupType = "Defense"; mPopupTimer.start(); } public function SetToDefense(_arg1:MouseEvent):void{ var _local2:*; _local2 = 0; while (_local2 < mWorld.mSelectedStars.length) { mWorld.mSelectedStars[_local2].SetToDefense(); _local2++; }; _arg1.stopPropagation(); } public function SoundToggle(_arg1:MouseEvent):void{ mWorld.mSoundScape.Toggle(); MenuPopup(null); } public function VanishMenuEditPopup():void{ if (mMenuPopup != null){ mMenuPopup.mQuit.removeEventListener(MouseEvent.MOUSE_DOWN, QuitPopup); mMenuPopup.mPlay.removeEventListener(MouseEvent.MOUSE_DOWN, SubmitDetails); mMenuPopup.mSave.removeEventListener(MouseEvent.MOUSE_DOWN, SaveMap); mMenuPopup.mSoundToggle.removeEventListener(MouseEvent.MOUSE_DOWN, SoundToggle); mWorld.removeChild(mMenuPopup); mMenuPopup.visible = false; mMenuPopup = null; }; } public function Submit(_arg1:MouseEvent):void{ mSoundScape.Play("Menu2"); mMapSubmit.btnGo.removeEventListener(MouseEvent.MOUSE_DOWN, Submit); Save(mMapSubmit.mInputName.text, mMapSubmit.mInputAuthor.text, mMapSubmit.mInputDescription.text); mWorld.removeChild(mMapSubmit); mMapSubmit.visible = false; mMapSubmit = null; } public function PopupStandard(_arg1:MouseEvent):void{ mPopupType = "Standard"; mPopupTimer.start(); } public function SetToNaval(_arg1:MouseEvent):void{ var _local2:*; _local2 = 0; while (_local2 < mWorld.mSelectedStars.length) { mWorld.mSelectedStars[_local2].SetToNaval(); _local2++; }; _arg1.stopPropagation(); } public function PopupNaval(_arg1:MouseEvent):void{ mPopupType = "Naval"; mPopupTimer.start(); } public function MenuPopup(_arg1:MouseEvent):void{ mSoundScape.Play("Menu2"); if (mWorld.mEditting == false){ if (mMenuPopup == null){ mWorld.mPause = true; mMenuPopup = new MenuInGame(); mWorld.addChild(mMenuPopup); mMenuPopup.x = 350; mMenuPopup.y = 0; mMenuPopup.visible = true; mMenuPopup.mQuit.addEventListener(MouseEvent.MOUSE_DOWN, QuitPopup); mMenuPopup.mSoundToggle.addEventListener(MouseEvent.MOUSE_DOWN, SoundToggle); } else { mWorld.mPause = false; mMenuPopup.mQuit.removeEventListener(MouseEvent.MOUSE_DOWN, QuitPopup); mMenuPopup.mSoundToggle.removeEventListener(MouseEvent.MOUSE_DOWN, SoundToggle); mWorld.removeChild(mMenuPopup); mMenuPopup.visible = false; mMenuPopup = null; }; } else { mWorld.StopUserInputListeners(); if (mMenuPopup == null){ mMenuPopup = new MenuInEdit(); mWorld.addChild(mMenuPopup); mMenuPopup.x = 350; mMenuPopup.y = 0; mMenuPopup.visible = true; mMenuPopup.mQuit.addEventListener(MouseEvent.MOUSE_DOWN, QuitPopup); mMenuPopup.mPlay.addEventListener(MouseEvent.MOUSE_DOWN, SubmitDetails); mMenuPopup.mSave.addEventListener(MouseEvent.MOUSE_DOWN, SaveMap); mMenuPopup.mSoundToggle.addEventListener(MouseEvent.MOUSE_DOWN, SoundToggle); } else { VanishMenuEditPopup(); mWorld.StartUserInputListeners(); }; }; if (_arg1 != null){ _arg1.stopPropagation(); }; } public function PopupRocket(_arg1:MouseEvent):void{ mPopupType = "Rocket"; mPopupTimer.start(); } public function QuitPopup(_arg1:MouseEvent):void{ mSoundScape.Play("Menu2"); mQuitPopup = new YouSure(); mWorld.addChild(mQuitPopup); mQuitPopup.x = 250; mQuitPopup.y = 200; mQuitPopup.visible = true; mQuitPopup.mYes.addEventListener(MouseEvent.MOUSE_DOWN, YesQuit); mQuitPopup.mNo.addEventListener(MouseEvent.MOUSE_DOWN, NoQuit); } public function SetToRocket(_arg1:MouseEvent):void{ var _local2:*; _local2 = 0; while (_local2 < mWorld.mSelectedStars.length) { mWorld.mSelectedStars[_local2].SetToRocket(); _local2++; }; _arg1.stopPropagation(); } public function SetToStandard(_arg1:MouseEvent):void{ var _local2:*; _local2 = 0; while (_local2 < mWorld.mSelectedStars.length) { mWorld.mSelectedStars[_local2].SetToStandard(); _local2++; }; _arg1.stopPropagation(); } public function SetToEconomic(_arg1:MouseEvent):void{ var _local2:*; _local2 = 0; while (_local2 < mWorld.mSelectedStars.length) { mWorld.mSelectedStars[_local2].SetToEconomic(); _local2++; }; _arg1.stopPropagation(); } public function PopupEconomic(_arg1:MouseEvent):void{ mPopupType = "Economic"; mPopupTimer.start(); } public function SetToFighter(_arg1:MouseEvent):void{ var _local2:*; _local2 = 0; while (_local2 < mWorld.mSelectedStars.length) { mWorld.mSelectedStars[_local2].SetToFighter(); _local2++; }; _arg1.stopPropagation(); } public function PopupFighter(_arg1:MouseEvent):void{ mPopupType = "Fighter"; mPopupTimer.start(); } public function Tick(_arg1:TimerEvent):void{ if (mWorld.mPause == true){ return; }; mShipsText.text = String(mWorld.mEmpires[mEmpire].mNumShips); mEconomyText.text = String(mWorld.mEmpires[mEmpire].mMaxShips); if ((((mWorld.mCampaignLevel >= 1)) && ((mWorld.mCampaignLevel <= 4)))){ mStandard.visible = true; mEconomic.visible = false; mNaval.visible = false; mDefense.visible = false; mMineLayer.visible = false; mRocket.visible = false; mFighter.visible = false; mWorld.mEconomicStarsAllowed = false; mWorld.mNavalStarsAllowed = false; mWorld.mDefenseStarsAllowed = false; mWorld.mMineLayerStarsAllowed = false; mWorld.mFighterStarsAllowed = false; mWorld.mRocketStarsAllowed = false; } else { if ((((mWorld.mCampaignLevel >= 5)) && ((mWorld.mCampaignLevel <= 6)))){ mStandard.visible = true; mEconomic.visible = false; mNaval.visible = false; mDefense.visible = true; mMineLayer.visible = false; mRocket.visible = false; mFighter.visible = false; mWorld.mEconomicStarsAllowed = false; mWorld.mNavalStarsAllowed = false; mWorld.mDefenseStarsAllowed = true; mWorld.mMineLayerStarsAllowed = false; mWorld.mFighterStarsAllowed = false; mWorld.mRocketStarsAllowed = false; } else { if ((((mWorld.mCampaignLevel >= 7)) && ((mWorld.mCampaignLevel <= 8)))){ mStandard.visible = true; mEconomic.visible = true; mNaval.visible = true; mDefense.visible = true; mMineLayer.visible = false; mRocket.visible = false; mFighter.visible = false; mWorld.mEconomicStarsAllowed = true; mWorld.mNavalStarsAllowed = true; mWorld.mDefenseStarsAllowed = true; mWorld.mMineLayerStarsAllowed = false; mWorld.mFighterStarsAllowed = false; mWorld.mRocketStarsAllowed = false; } else { if ((((mWorld.mCampaignLevel >= 9)) && ((mWorld.mCampaignLevel <= 10)))){ mStandard.visible = true; mEconomic.visible = true; mNaval.visible = true; mDefense.visible = true; mMineLayer.visible = false; mRocket.visible = false; mFighter.visible = true; mWorld.mEconomicStarsAllowed = true; mWorld.mNavalStarsAllowed = true; mWorld.mDefenseStarsAllowed = true; mWorld.mMineLayerStarsAllowed = false; mWorld.mFighterStarsAllowed = true; mWorld.mRocketStarsAllowed = false; } else { if ((((mWorld.mCampaignLevel >= 11)) && ((mWorld.mCampaignLevel <= 11)))){ mStandard.visible = true; mEconomic.visible = true; mNaval.visible = true; mDefense.visible = true; mMineLayer.visible = false; mRocket.visible = true; mFighter.visible = true; mWorld.mEconomicStarsAllowed = true; mWorld.mNavalStarsAllowed = true; mWorld.mDefenseStarsAllowed = true; mWorld.mMineLayerStarsAllowed = false; mWorld.mFighterStarsAllowed = true; mWorld.mRocketStarsAllowed = true; } else { if (mWorld.mCampaignLevel >= 12){ mStandard.visible = true; mEconomic.visible = true; mNaval.visible = true; mDefense.visible = true; mMineLayer.visible = false; mRocket.visible = true; mFighter.visible = true; mWorld.mEconomicStarsAllowed = true; mWorld.mNavalStarsAllowed = true; mWorld.mDefenseStarsAllowed = true; mWorld.mMineLayerStarsAllowed = true; mWorld.mFighterStarsAllowed = true; mWorld.mRocketStarsAllowed = true; }; }; }; }; }; }; } public function onSaveFinish(_arg1:Event):void{ var _local2:SharedObject; _local2 = SharedObject.getLocal("mapedit"); _local2.data.mapedit = ""; _local2.flush(); mMapSubmitting.mMapSubmitOk.removeEventListener(MouseEvent.MOUSE_DOWN, onSaveFinish); mWorld.removeChild(mMapSubmitting); mMapSubmitting = null; PlayMap(null); } public function Popup(_arg1:TimerEvent):void{ mPopupTimer.stop(); mPopupTimer.reset(); mPopup.x = 521; mPopup.y = 30; mPopup.gotoAndStop(mPopupType); mPopup.visible = true; } public function Save(_arg1:String, _arg2:String, _arg3:String):void{ var url:String; var request:URLRequest; var loader:URLLoader; var variables:URLVariables; var name = _arg1; var author = _arg2; var description = _arg3; mMapSubmitting = new MapSubmitting(); mWorld.addChild(mMapSubmitting); mMapSubmitting.x = 100; mMapSubmitting.y = 200; mMapSubmitting.gotoAndStop(1); mMapSubmitting.mMapSubmitOk.addEventListener(MouseEvent.MOUSE_DOWN, onSaveFinish); mMapSubmitting.mMapSubmitOk.visible = false; url = "http://www.alienprocess.com/submitmap.php"; request = new URLRequest(url); loader = new URLLoader(); variables = new URLVariables(); variables.name = name; variables.author = author; variables.description = description; variables.data = mWorld.DumpMap(); request.data = variables; loader.addEventListener(Event.COMPLETE, onSaved); request.method = URLRequestMethod.POST; try { loader.load(request); } catch(e:Error) { onSaved(null); }; } public function KillPopup(_arg1:MouseEvent):void{ mPopup.visible = false; mPopupTimer.stop(); mPopupTimer.reset(); } public function SaveMap(_arg1:MouseEvent):void{ var _local2:SharedObject; mSoundScape.Play("Menu2"); _local2 = SharedObject.getLocal("mapedit"); _local2.data.mapedit = mWorld.DumpMap(); _local2.flush(); VanishMenuEditPopup(); PlayMap(null); } public function NoQuit(_arg1:MouseEvent):void{ mWorld.removeChild(mQuitPopup); mQuitPopup.visible = false; MenuPopup(null); mWorld.StartUserInputListeners(); mSoundScape.Play("Menu2"); } public function PlayMap(_arg1:MouseEvent):void{ mWorld.mBots[1] = new Bot(mWorld, 1, mWorld.mEmpires[1]); mWorld.mBots[2] = new Bot(mWorld, 1, mWorld.mEmpires[2]); mWorld.mBots[3] = new Bot(mWorld, 1, mWorld.mEmpires[3]); mWorld.mDistanceMatrix = new DistanceMatrix(mWorld); mWorld.mWorldSpeed = 0.9; mWorld.mEditting = false; mWorld.mPause = false; mWorld.StartUserInputListeners(); } public function SetToMineLayer(_arg1:MouseEvent):void{ var _local2:*; _local2 = 0; while (_local2 < mWorld.mSelectedStars.length) { mWorld.mSelectedStars[_local2].SetToMineLayer(); _local2++; }; _arg1.stopPropagation(); } public function PopupMineLayer(_arg1:MouseEvent):void{ mPopupType = "MineLayer"; mPopupTimer.start(); } public function onSaved(_arg1:Event):void{ var _local2:URLLoader; mMapSubmitting.mMapSubmitOk.visible = true; if (_arg1 != null){ _local2 = URLLoader(_arg1.target); mMapSubmitting.mTitle.text = "Done! Use the following URL to share your map!"; mMapSubmitting.mMapLink.text = ("http://www.alienprocess.com/StarBaron_Development/StarBaron.php?mapId=" + _local2.data); } else { mMapSubmitting.mTitle.text = "Error!"; mMapSubmitting.mMapLink.text = _arg1.toString(); }; } public function YesQuit(_arg1:MouseEvent):void{ mWorld.removeChild(mQuitPopup); mQuitPopup.visible = false; mWorld.Quit(); mSoundScape.Play("Menu3"); } public function SubmitDetails(_arg1:MouseEvent):void{ mSoundScape.Play("Menu2"); mWorld.StopUserInputListeners(); if (mMapSubmit == null){ mMapSubmit = new MapSubmit(); mMapSubmit.x = 275; mMapSubmit.y = 0; mWorld.addChild(mMapSubmit); }; VanishMenuEditPopup(); _arg1.stopPropagation(); mMapSubmit.btnGo.addEventListener(MouseEvent.MOUSE_DOWN, Submit); } } }//package
Section 48
//Pling (Pling) package { import flash.media.*; public dynamic class Pling extends Sound { } }//package
Section 49
//Rocket (Rocket) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class Rocket extends MovieClip { private var mLeaderOfFleet:Fleet;// = null private var destY:int; public var mWorld:World; public var mShipDamage:Number;// = 3 private var mSrc:Star; public var mStartTimer:Timer; public var mDefenseDamage:Number;// = 2 private var mVelocity:Number;// = 4.5 public var mEmpire:Empire; private var radius:Number;// = 12.8 private var mDest:Star; public var mStarDamage:Number;// = 0.5 private var angle:Number; private var mDx:Number; private var mDy:Number; private var destX:int; public function Rocket(_arg1:World, _arg2:Star, _arg3:Star, _arg4:Empire, _arg5:int){ var _local6:*; radius = (16 * 0.8); mVelocity = 4.5; mLeaderOfFleet = null; mStarDamage = 0.5; mDefenseDamage = 2; mShipDamage = 3; super(); mWorld = _arg1; mSrc = _arg2; mDest = _arg3; x = mSrc.x; y = mSrc.y; scaleX = 0.1; scaleY = 0.1; mEmpire = _arg4; gotoAndStop(mEmpire.mName); destX = _arg3.x; destY = _arg3.y; mDx = (destX - x); mDy = (destY - y); if (mDx == 0){ mDx = 1E-6; }; _local6 = Math.atan2(mDy, mDx); mDx = (mVelocity * Math.cos(_local6)); mDy = (mVelocity * Math.sin(_local6)); rotation = ((_local6 * 180) / Math.PI); mStartTimer = new Timer(_arg5); mStartTimer.addEventListener("timer", Launch); mStartTimer.start(); } public function Launch(_arg1:TimerEvent){ mWorld.mSoundScape.Play("MissileLaunch", this); addEventListener(Event.ENTER_FRAME, moveUpdate); mWorld.addChild(this); mStartTimer.stop(); } public function moveUpdate(_arg1:Event):void{ if (mWorld.mPause == true){ return; }; x = (x + mDx); y = (y + mDy); if (hitTestObject(mDest)){ Explode(); }; } public function explodeUpdate(_arg1:Event):void{ if (currentLabel == "end"){ visible = false; removeEventListener(Event.ENTER_FRAME, explodeUpdate); parent.removeChild(this); }; } public function Explode():void{ var _local1:Empire; var _local2:int; mDest.DestroyDefenseBoats(mDefenseDamage); mDest.DestroyFighters(mShipDamage); mDest.DestroyShips(mShipDamage); mDest.mEfficiency = (mDest.mEfficiency - mStarDamage); if (mDest.mEfficiency < 0){ mDest.mEfficiency = 0; }; if ((((((((mDest.mEfficiency == 0)) && ((mDest.mDefenseBoats < 1)))) && ((mDest.mShips < 1)))) && ((mDest.mFighters < 1)))){ _local1 = null; _local2 = 0; while (_local2 < mWorld.mEmpires.length) { if (mWorld.mEmpires[_local2].mName == "Grey"){ _local1 = mWorld.mEmpires[_local2]; }; _local2++; }; mWorld.mSoundScape.Play("ExplodeStar", mDest); mDest.DestroyDefenseBoats(mDest.mDefenseBoats); mDest.DestroyFighters(mDest.mFighters); mDest.DestroyShips(mDest.mShips); mDest.mEmpire.RemoveStar(mDest); _local1.AddStar(mDest); mDest.mEmpire = _local1; mDest.SetToStandard(); }; removeEventListener(Event.ENTER_FRAME, moveUpdate); addEventListener(Event.ENTER_FRAME, explodeUpdate); gotoAndPlay("Explode"); } } }//package
Section 50
//SelectedCircle (SelectedCircle) package { import flash.display.*; public dynamic class SelectedCircle extends MovieClip { } }//package
Section 51
//Shard1 (Shard1) package { import flash.media.*; public dynamic class Shard1 extends Sound { } }//package
Section 52
//Shard2 (Shard2) package { import flash.media.*; public dynamic class Shard2 extends Sound { } }//package
Section 53
//Ship (Ship) package { import flash.events.*; import flash.display.*; public class Ship extends MovieClip { public var mLeaderOfFleet:Fleet;// = null private var originY:int; private var mRestFrame:int; public var mWorld:World; private var destY:int; private var radius:Number;// = 10.4 private var mDest:Star; public var mEmpireName:String; private var angle:Number; private var velocity:Number;// = 3 private var mDx:Number; private var mDy:Number; private var originX:int; private var destX:int; public function Ship(_arg1:World, _arg2:int, _arg3:int, _arg4:String){ radius = (16 * 0.65); velocity = 3; mLeaderOfFleet = null; super(); mWorld = _arg1; this.x = _arg2; this.y = _arg3; scaleX = 0.1; scaleY = 0.1; mEmpireName = _arg4; gotoAndStop(mEmpireName); mRestFrame = currentFrame; } public function moveUpdate(_arg1:Event):void{ if (mWorld.mPause == true){ return; }; x = (x + mDx); y = (y + mDy); if (mLeaderOfFleet != null){ if (hitTestObject(mDest)){ removeEventListener(Event.ENTER_FRAME, moveUpdate); mLeaderOfFleet.Attack(); mLeaderOfFleet = null; }; }; } public function explodeUpdate(_arg1:Event):void{ if (currentLabel == "end"){ visible = false; removeEventListener(Event.ENTER_FRAME, explodeUpdate); parent.removeChild(this); }; } public function Destroy():void{ Explode(); } public function Orbit(_arg1, _arg2):void{ gotoAndStop(mRestFrame); originX = _arg1; originY = _arg2; angle = (Math.random() * 360); rotation = 0; radius = (radius + ((Math.random() * 4) * 0.8)); alpha = ((Math.random() * 0.5) + 0.5); velocity = (velocity + Math.random()); orbitUpdate(new Event("dummy")); removeEventListener(Event.ENTER_FRAME, moveUpdate); addEventListener(Event.ENTER_FRAME, orbitUpdate); } public function SetToFleetLeader(_arg1:Fleet):void{ mLeaderOfFleet = _arg1; } public function orbitUpdate(_arg1:Event):void{ if (mWorld.mPause == true){ return; }; angle = (angle + velocity); if (angle >= 360){ angle = 0; }; rotation = angle; x = (originX + (radius * Math.sin(((angle * Math.PI) / 180)))); y = (originY - (radius * Math.cos(((angle * Math.PI) / 180)))); } public function Vanish():void{ removeEventListener(Event.ENTER_FRAME, orbitUpdate); removeEventListener(Event.ENTER_FRAME, moveUpdate); visible = false; parent.removeChild(this); } public function MoveToStar(_arg1:Star, _arg2:Number):void{ var _local3:Number; var _local4:Number; gotoAndStop((mRestFrame + 1)); mDest = _arg1; destX = _arg1.x; destY = _arg1.y; _local3 = (Math.sqrt((Math.pow((destX - x), 2) + Math.pow((destY - y), 2))) - 25); _local4 = (_local3 / _arg2); mDx = ((destX - x) / _arg2); mDy = ((destY - y) / _arg2); if (mDx == 0){ mDx = 1E-6; }; rotation = ((Math.atan((mDy / mDx)) * 180) / Math.PI); if (mDx < 0){ rotation = (rotation + 180); }; removeEventListener(Event.ENTER_FRAME, orbitUpdate); addEventListener(Event.ENTER_FRAME, moveUpdate); } public function Explode():void{ mWorld.mSoundScape.Play("ExplodeShip", this); removeEventListener(Event.ENTER_FRAME, orbitUpdate); removeEventListener(Event.ENTER_FRAME, moveUpdate); addEventListener(Event.ENTER_FRAME, explodeUpdate); gotoAndPlay("Explode"); } } }//package
Section 54
//ShipLaunch (ShipLaunch) package { import flash.media.*; public dynamic class ShipLaunch extends Sound { } }//package
Section 55
//SkirmishSetup (SkirmishSetup) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class SkirmishSetup extends MovieClip { public var mSpeedControl:SliderControl; public var mDifficultyControl:SliderControl; var mSplash; public var mSoundScape:SoundFactory; public var btnGo:SimpleButton; public var mBotsControl:SliderControl; public var mStarsControl:SliderControl; public function SkirmishSetup(_arg1){ mSoundScape = new SoundFactory(); super(); mSplash = _arg1; btnGo.addEventListener(MouseEvent.MOUSE_DOWN, Skirmish); mSpeedControl.SetDivisions(["slow", "normal", "fast", "extreme"]); mSpeedControl.SetStartPosition(1); mDifficultyControl.SetDivisions(["newbie", "easy", "normal", "hard", "extreme"]); mDifficultyControl.SetStartPosition(2); mBotsControl.SetDivisions(["one", "two", "three"]); mBotsControl.SetStartPosition(2); mStarsControl.SetDivisions(["sparse", "light", "normal", "dense", "packed"]); mStarsControl.SetStartPosition(2); } public function Skirmish(_arg1:MouseEvent):void{ var _local2:Number; var _local3:Number; var _local4:int; var _local5:int; var _local6:World; var _local7:Timer; switch (mSpeedControl.GetValue()){ case "slow": _local2 = 0.4; break; case "normal": _local2 = 0.7; break; case "fast": _local2 = 0.9; break; case "extreme": _local2 = 1.1; break; default: trace("EK"); }; switch (mDifficultyControl.GetValue()){ case "newbie": _local3 = 1; break; case "easy": _local3 = 2; break; case "normal": _local3 = 3; break; case "hard": _local3 = 4; break; case "extreme": _local3 = 5; break; default: trace("EK"); }; switch (mBotsControl.GetValue()){ case "one": _local4 = 1; break; case "two": _local4 = 2; break; case "three": _local4 = 3; break; default: trace("EK"); }; switch (mStarsControl.GetValue()){ case "sparse": _local5 = 30; break; case "light": _local5 = 45; break; case "normal": _local5 = 60; break; case "dense": _local5 = 75; break; case "packed": _local5 = 100; break; default: trace("EK"); }; _local6 = new World(mSplash.parent, "Skirmish", _local4, _local5, _local2, _local3); _local6.mPlayer = new Player(_local6, 0, 0); _local6.mPlayer.y = -32; _local6.mPlayer.Tick(null); _local6.addChild(_local6.mPlayer); _local6.StartWorld(); _local7 = new Timer(500); _local7.addEventListener("timer", _local6.mPlayer.Tick); _local7.start(); Vanish(); mSplash.Vanish(); mSoundScape.Play("Menu3"); } public function Vanish():void{ btnGo.removeEventListener(MouseEvent.MOUSE_DOWN, Skirmish); visible = false; } } }//package
Section 56
//SliderControl (SliderControl) package { import flash.events.*; import flash.display.*; import flash.text.*; public class SliderControl extends MovieClip { private var mDragging:Boolean;// = false public var mSoundScape:SoundFactory; public var sliderBar:MovieClip; private var mDivisions:Array; public var sliderText:TextField; private var mPosition:int;// = 0 public var slider:SimpleButton; public function SliderControl(){ mDragging = false; mPosition = 0; mSoundScape = new SoundFactory(); super(); configureListeners(); } private function configureListeners():void{ slider.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown); addEventListener(MouseEvent.MOUSE_UP, mouseUp); addEventListener(MouseEvent.MOUSE_MOVE, mouseMove); } private function Redraw():void{ slider.y = (sliderBar.y - 1); slider.x = CalcXPos(mPosition); sliderText.text = GetValue(); } private function mouseMove(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; var _local4:int; if (mDragging == true){ _local2 = x; _local3 = this; while (_local3.parent) { _local3 = _local3.parent; _local2 = (_local2 + _local3.x); }; _local4 = (_arg1.stageX - _local2); if (_local4 >= CalcXPos((mPosition + 1))){ SlideForward(); } else { if (_local4 <= CalcXPos((mPosition - 1))){ SlideBackward(); }; }; }; } private function SlideForward():void{ if (mPosition < (mDivisions.length - 1)){ mSoundScape.Play("Menu1"); mPosition++; Redraw(); }; } private function mouseUp(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; var _local4:int; if (mDragging == true){ mDragging = false; } else { _local2 = x; _local3 = this; while (_local3.parent) { _local3 = _local3.parent; _local2 = (_local2 + _local3.x); }; _local4 = (_arg1.stageX - _local2); if (_local4 > slider.x){ SlideForward(); } else { if (_local4 < slider.x){ SlideBackward(); }; }; }; } public function SetDivisions(_arg1:Array):void{ mDivisions = _arg1; Redraw(); } public function SetStartPositionByName(_arg1:String):void{ var _local2:int; _local2 = 0; while (_local2 < mDivisions.length) { if (mDivisions[_local2] == _arg1){ mPosition = _local2; }; _local2++; }; Redraw(); } public function SetStartPosition(_arg1:int):void{ mPosition = _arg1; Redraw(); } private function SlideBackward():void{ if (mPosition > 0){ mSoundScape.Play("Menu1"); mPosition--; Redraw(); }; } private function CalcXPos(_arg1:int):int{ var _local2:int; _local2 = 2; return (((sliderBar.x + _local2) + ((_arg1 * ((sliderBar.width - (_local2 * 2)) - slider.width)) / (mDivisions.length - 1)))); } public function GetValue():String{ return (mDivisions[mPosition]); } private function mouseDown(_arg1:MouseEvent):void{ mDragging = true; } } }//package
Section 57
//SoundFactory (SoundFactory) package { import flash.media.*; import flash.utils.*; public class SoundFactory { var sBackground:Background; var sMissileLaunch:MissileLaunch; var sBoatExplode:ExplodeBoat; var sBackgroundCreep:BackgroundCreep; var sMenu3:Menu3; var channelBackground:SoundChannel;// = null var sShipExplode:ExplodeShip; var sTitleMusic:TitleMusic; var sLoseStar:LoseStar; var sYouWin:YouWin; var sYouLose:YouLose; var sMenu2:Menu2; var sBackgroundMusic:BackgroundMusic; var sShard2:Shard2; var sShipLaunch:ShipLaunch; var warningBackground:SoundChannel;// = null var sShard1:Shard1; var sWarning:Warning; var sPling:Pling; var sStarExplode:ExplodeStar; var sMenu1:Menu1; static var mMute:Boolean = false; public function SoundFactory(){ channelBackground = null; warningBackground = null; sBackground = new Background(); sBackgroundCreep = new BackgroundCreep(); sBackgroundMusic = new BackgroundMusic(); sLoseStar = new LoseStar(); sStarExplode = new ExplodeStar(); sShipExplode = new ExplodeShip(); sBoatExplode = new ExplodeBoat(); sMissileLaunch = new MissileLaunch(); sShipLaunch = new ShipLaunch(); sPling = new Pling(); sShard1 = new Shard1(); sShard2 = new Shard2(); sTitleMusic = new TitleMusic(); sWarning = new Warning(); sMenu1 = new Menu1(); sMenu2 = new Menu2(); sMenu3 = new Menu3(); sYouLose = new YouLose(); sYouWin = new YouWin(); super(); } public function Mute(){ var _local1:*; _local1 = new SoundTransform(0, 0); SoundMixer.soundTransform = _local1; mMute = true; } public function Play(_arg1:String, _arg2=null){ var myTransform:SoundTransform; var volume:*; var shipExplodeTimer:Timer; var boatExplodeTimer:Timer; var soundName = _arg1; var data = _arg2; if (mMute == true){ return; }; switch (soundName){ case "TitleMusic": myTransform = new SoundTransform(0.5, 0); channelBackground = sTitleMusic.play(0, 10000, myTransform); break; case "BackgroundMusic": myTransform = new SoundTransform(1, 0); channelBackground = sBackgroundMusic.play(0, 10000, myTransform); break; case "Background": myTransform = new SoundTransform(0.3, 0); channelBackground = sBackground.play(0, 10000, myTransform); break; case "BackgroundCreep": myTransform = new SoundTransform(1, 0); channelBackground = sBackgroundCreep.play(0, 10000, myTransform); break; case "LoseStar": myTransform = new SoundTransform((0.03 * data.mSize), ((data.x - 400) / 400)); channelBackground = sLoseStar.play(0, 0, myTransform); break; case "ExplodeStar": myTransform = new SoundTransform((0.2 * data.mSize), ((data.x - 400) / 400)); channelBackground = sStarExplode.play(0, 0, myTransform); break; case "MissileLaunch": volume = 0.1; if (data.mEmpire.mId == 0){ volume = 0.2; }; myTransform = new SoundTransform(volume, ((data.x - 400) / 400)); channelBackground = sMissileLaunch.play(0, 0, myTransform); break; case "ExplodeShip": volume = 0.15; if (data.mEmpireName == "Blue"){ volume = 0.45; }; myTransform = new SoundTransform(volume, ((data.x - 400) / 400)); shipExplodeTimer = new Timer((Math.random() * 100), 1); shipExplodeTimer.addEventListener("timer", function (){ sShipExplode.play(0, 0, myTransform); }); shipExplodeTimer.start(); break; case "ExplodeBoat": volume = 0.4; if (data.mEmpireName == "Blue"){ volume = 0.6; }; myTransform = new SoundTransform(volume, ((data.x - 400) / 400)); boatExplodeTimer = new Timer((Math.random() * 300), 1); boatExplodeTimer.addEventListener("timer", function (){ sBoatExplode.play(0, 0, myTransform); }); boatExplodeTimer.start(); break; case "Pling": myTransform = new SoundTransform((Math.random() * 0.04), ((Math.random() * 2) - 1)); channelBackground = sPling.play(0, 0, myTransform); break; case "Shard1": myTransform = new SoundTransform((Math.random() * 0.5), ((Math.random() * 2) - 1)); channelBackground = sShard1.play(0, 0, myTransform); break; case "Shard2": myTransform = new SoundTransform((Math.random() * 0.5), ((Math.random() * 2) - 1)); channelBackground = sShard2.play(0, 0, myTransform); break; case "Menu1": myTransform = new SoundTransform(0.4, 0); channelBackground = sMenu1.play(0, 0, myTransform); break; case "Menu2": myTransform = new SoundTransform(0.5, 0); channelBackground = sMenu2.play(0, 0, myTransform); break; case "Menu3": myTransform = new SoundTransform(0.3, 0); channelBackground = sMenu3.play(0, 0, myTransform); break; case "YouLose": myTransform = new SoundTransform(0.5, 0); channelBackground = sYouLose.play(0, 0, myTransform); break; case "YouWin": myTransform = new SoundTransform(0.3, 0); channelBackground = sYouWin.play(0, 0, myTransform); break; case "WarningStart": if (warningBackground == null){ volume = 0.2; myTransform = new SoundTransform(volume, ((Math.random() * 2) - 1)); warningBackground = sWarning.play(0, 100, myTransform); }; break; case "WarningStop": if (warningBackground != null){ warningBackground.stop(); warningBackground = null; }; break; case "MoveTo": break; case "Attack": break; }; } public function UnMute(){ var _local1:*; _local1 = new SoundTransform(1, 0); SoundMixer.soundTransform = _local1; mMute = false; } public function Toggle(){ if (mMute == true){ UnMute(); } else { Mute(); }; } } }//package
Section 58
//Splash (Splash) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.net.*; public class Splash extends MovieClip { var mSkirmishSetup;// = null public var mSoundScape:SoundFactory; public var _mochiads_game_id:String; public var btnSkirmish:SimpleButton; public var btnChallenge:SimpleButton; var mChallengeSetup;// = null public var btnCampaign:SimpleButton; public var btnTutorial:SimpleButton; var mCampaignSetup;// = null public var btnEditMap:SimpleButton; public function Splash(){ var _local1:*; mSkirmishSetup = null; mCampaignSetup = null; mChallengeSetup = null; mSoundScape = new SoundFactory(); super(); addFrameScript(0, frame1); btnChallenge.addEventListener(MouseEvent.MOUSE_DOWN, Challenge); btnEditMap.addEventListener(MouseEvent.MOUSE_DOWN, EditMap); btnSkirmish.addEventListener(MouseEvent.MOUSE_DOWN, Skirmish); btnTutorial.addEventListener(MouseEvent.MOUSE_DOWN, Tutorial); btnCampaign.addEventListener(MouseEvent.MOUSE_DOWN, Campaign); _local1 = new SoundFactory(); _local1.Play("TitleMusic"); } public function Skirmish(_arg1:MouseEvent):void{ mSoundScape.Play("Menu2"); if (mCampaignSetup != null){ Campaign(null); }; if (mChallengeSetup != null){ Challenge(null); }; if (mSkirmishSetup == null){ mSkirmishSetup = new SkirmishSetup(this); mSkirmishSetup.x = 280; mSkirmishSetup.y = 316; addChild(mSkirmishSetup); } else { mSkirmishSetup.visible = false; removeChild(mSkirmishSetup); mSkirmishSetup = null; }; } public function Campaign(_arg1:MouseEvent):void{ mSoundScape.Play("Menu2"); if (mSkirmishSetup != null){ Skirmish(null); }; if (mChallengeSetup != null){ Challenge(null); }; if (mCampaignSetup == null){ mCampaignSetup = new CampaignSetup(this); mCampaignSetup.x = 280; mCampaignSetup.y = 316; addChild(mCampaignSetup); } else { mCampaignSetup.visible = false; removeChild(mCampaignSetup); mCampaignSetup = null; }; } public function Challenge(_arg1:MouseEvent):void{ mSoundScape.Play("Menu2"); if (mCampaignSetup != null){ Campaign(null); }; if (mSkirmishSetup != null){ Skirmish(null); }; if (mChallengeSetup == null){ mChallengeSetup = new ChallengeSetup(this); mChallengeSetup.x = 280; mChallengeSetup.y = 316; addChild(mChallengeSetup); } else { mChallengeSetup.visible = false; removeChild(mChallengeSetup); mChallengeSetup = null; }; } function frame1(){ _mochiads_game_id = "88f29ae6308a97d7"; } public function Vanish():void{ btnChallenge.removeEventListener(MouseEvent.MOUSE_DOWN, Challenge); btnEditMap.removeEventListener(MouseEvent.MOUSE_DOWN, EditMap); btnSkirmish.removeEventListener(MouseEvent.MOUSE_DOWN, Skirmish); btnCampaign.removeEventListener(MouseEvent.MOUSE_DOWN, Campaign); btnTutorial.removeEventListener(MouseEvent.MOUSE_DOWN, Tutorial); visible = false; } public function Tutorial(_arg1:MouseEvent):void{ var _local2:World; var _local3:Timer; _local2 = new World(this.parent, "Tutorial"); _local2.mPlayer = new Player(_local2, 0, 0); _local2.mPlayer.Tick(null); this.parent.addChild(_local2.mPlayer); _local2.StartWorld(); _local3 = new Timer(600); _local3.addEventListener("timer", _local2.mPlayer.Tick); _local3.start(); mSoundScape.Play("Menu3"); Vanish(); } public function gotoAlienprocess(_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://www.alienprocess.com"), "_blank"); } public function EditMap(_arg1:MouseEvent):void{ var _local2:World; var _local3:Timer; _local2 = new World(parent, "EditMap", 0, 0, 3, 3); _local2.mPlayer = new Player(_local2, 0, 0); _local2.mPlayer.Tick(null); parent.addChild(_local2.mPlayer); _local2.StartWorld(); _local3 = new Timer(500); _local3.addEventListener("timer", _local2.mPlayer.Tick); _local3.start(); Vanish(); mSoundScape.Play("Menu3"); _arg1.stopPropagation(); } } }//package
Section 59
//Star (Star) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class Star extends MovieClip { var mSize:Number; var mCursor:MovieClip; var mSelected:Boolean; var mMaxFighters:int;// = 0 var mDefenseBoatList:Array; var mShipQueue:int;// = 0 var mDefenseBoatDamage:Number;// = 0 var mFighterCounter:Number;// = 0 var mStarType:String;// = "none" var mFighterList:Array; var mId:int; var mMaxRockets:int;// = 0 var mShipGrowthRate:Number;// = 0 var mStarTypeMovie:MovieClip; var mShipList:Array; var mDefenseBoatGrowthRate:Number;// = 0 var mEfficiencyGrowthRate:Number; public var mTwinLine:Shape; public var mStarTypeScale:Number;// = 0.65 var mEfficiency:Number; var mEconomicOutputGrowthRate:Number;// = 0 var mEfficiencyMax:Number; var mFighters:int;// = 0 var mFighterGrowthRate:Number;// = 0 var mEconomicOutput:Number;// = 0 var mAttackTimer:Timer; public var mSelectedCircle:SelectedCircle;// = null var mEconomicOutputMax:int;// = 0 var mFighterPower:Number;// = 5 var mTerritoryCircle:Shape; var mShips:int;// = 0 public var mSelectLine:Shape; var mEmpire:Empire; var mDefenseBoatMax:Number;// = 0 var mShipCounter:Number;// = 0 var mDefenseBoatCounter:Number;// = 0 var mTerritorySizeConstant:int;// = 35 public var mTwinMaster:Star;// = null var mDefenseBoatPower:Number;// = 5 var mDefenseBoats:Number;// = 0 public var mTwinSlave:Star;// = null static var mWorld:World; public function Star(_arg1:World, _arg2:int, _arg3:int, _arg4:int, _arg5:Number, _arg6:Empire, _arg7:String="Standard"){ mShips = 0; mShipCounter = 0; mShipList = new Array(); mShipGrowthRate = 0; mFighters = 0; mMaxFighters = 0; mFighterCounter = 0; mFighterList = new Array(); mFighterGrowthRate = 0; mFighterPower = 5; mMaxRockets = 0; mDefenseBoats = 0; mDefenseBoatDamage = 0; mDefenseBoatCounter = 0; mDefenseBoatPower = 5; mDefenseBoatList = new Array(); mDefenseBoatGrowthRate = 0; mDefenseBoatMax = 0; mEconomicOutput = 0; mEconomicOutputGrowthRate = 0; mEconomicOutputMax = 0; mStarType = "none"; mStarTypeMovie = new StarType(); mAttackTimer = new Timer(500); mShipQueue = 0; mTerritoryCircle = new Shape(); mTerritorySizeConstant = 35; mSelectLine = new Shape(); mCursor = new Cursor(); mSelectedCircle = null; mTwinMaster = null; mTwinSlave = null; mTwinLine = new Shape(); mStarTypeScale = 0.65; super(); SetSize(_arg5); mWorld = _arg1; mId = _arg2; mDefenseBoats = 0; mSelected = false; x = _arg3; y = _arg4; SetEmpire(_arg6); _arg6.AddStar(this); mWorld.addChild(mTerritoryCircle); SetStarType(_arg7); if (_arg7 != "StartPoint"){ mEfficiency = 1; DrawTerritory(); }; AddListeners(); addChild(mStarTypeMovie); mCursor.visible = false; addChild(mCursor); mWorld.addChild(mSelectLine); mSelectLine.visible = false; mWorld.addChild(mTwinLine); mTwinLine.visible = false; mWorld.addChild(this); } public function FindClosestJumpOff(_arg1:Empire):Star{ var _local2:int; var _local3:Star; var _local4:Star; _local3 = null; _local2 = 0; for (;_local2 < mWorld.mStars.length;_local2++) { _local4 = mWorld.mStars[_local2]; if (this == _local4){ continue; } else { if (_arg1 != _local4.mEmpire){ continue; } else { if (_local3 == null){ _local3 = _local4; } else { if (_local4.DistanceTo(x, y) < _local3.DistanceTo(x, y)){ _local3 = _local4; }; }; }; }; }; return (_local3); } public function RemoveListeners():void{ removeEventListener(MouseEvent.MOUSE_DOWN, mouseClick); removeEventListener(Event.ENTER_FRAME, frameUpdate); removeEventListener(MouseEvent.MOUSE_OVER, mouseOver); removeEventListener(MouseEvent.MOUSE_OUT, mouseOut); removeEventListener(MouseEvent.MOUSE_MOVE, MouseMoveHandler); removeEventListener(MouseEvent.MOUSE_UP, MouseUpHandler); } public function PopShip():Ship{ var _local1:int; var _local2:Ship; _local1 = RepresentedShipCount(mShips); _local2 = null; if (_local1 != mShipList.length){ _local2 = mShipList.pop(); if (null == _local2){ }; }; return (_local2); } public function ShipCount():int{ return (mShips); } public function SetToNaval():void{ VanishFighters(mFighters); mEmpire.mStarTypeMemory[mId] = "Naval"; if (mStarType != "Naval"){ if (mTwinSlave != null){ HideTwinLine(); mTwinSlave.mTwinMaster = null; mTwinSlave = null; }; mStarType = "Naval"; mStarTypeMovie.gotoAndStop((mEmpire.mName + "Naval")); mDefenseBoats = int(mDefenseBoats); mShipCounter = 0; mDefenseBoatCounter = 0; mEfficiency = (0.3 * mSize); mEfficiencyGrowthRate = (0.006 * mSize); mEfficiencyMax = (1 * mSize); mShipGrowthRate = ((0.5 * mSize) * 1.5); mDefenseBoatGrowthRate = -0.015; mDefenseBoatMax = 0; mEconomicOutput = 0; mFighterCounter = 0; mFighterGrowthRate = 0; mMaxFighters = 0; mMaxRockets = 0; }; } public function SetToStandard(_arg1:Boolean=false):void{ VanishFighters(mFighters); mEmpire.mStarTypeMemory[mId] = "Standard"; if (((!((mStarType == "Standard"))) || ((_arg1 == true)))){ if (mTwinSlave != null){ HideTwinLine(); mTwinSlave.mTwinMaster = null; mTwinSlave = null; }; mDefenseBoats = int(mDefenseBoats); mStarType = "Standard"; mStarTypeMovie.gotoAndStop((mEmpire.mName + "Standard")); mShipCounter = 0; mDefenseBoatCounter = 0; mEfficiency = (0.2 * mSize); mEfficiencyGrowthRate = (0.01 * mSize); mEfficiencyMax = (1 * mSize); mShipGrowthRate = ((0.1 * mSize) * 1.5); mDefenseBoatGrowthRate = 0.12; mDefenseBoatMax = ((1.4 * mSize) * 1.5); mEconomicOutput = ((1.3 * mSize) * 1.5); mFighterCounter = 0; mFighterGrowthRate = 0; mMaxFighters = 0; mMaxRockets = 0; }; } public function mouseOut(_arg1:MouseEvent):void{ HideCursor(); } public function SetToLastType():void{ mEfficiency = (0.2 * mSize); mStarType = "force a change"; SetStarType(mEmpire.mStarTypeMemory[mId]); } public function RepresentedShipCount(_arg1:int):int{ return (mWorld.mRepresentedShipMatrix[_arg1]); } public function MouseMoveHandler(_arg1:MouseEvent):void{ _arg1.stopPropagation(); } public function HideTwinLine():void{ mTwinLine.visible = false; } public function Attack(_arg1:Star, _arg2:int=4, _arg3:int=1):Fleet{ var _local4:Fleet; var _local5:int; _local4 = null; if (_arg2 > 4){ _arg2 = 4; }; if (_arg1 != this){ if (mShips >= 1){ _local5 = ((mShips * _arg2) / 4); if (_local5 == 0){ _local5 = 1; if (_local5 > mShips){ _local5 = mShips; }; }; _local4 = new Fleet(mWorld, mEmpire, _local5, this, _arg1, _arg3, mWorld.mWorldSpeed); if (mEmpire.mId == 0){ mWorld.mSoundScape.Play("Attack", this); }; }; }; return (_local4); } public function frameUpdate(_arg1:Event):void{ var _local2:int; var _local3:int; var _local4:Ship; if (mWorld.mPause == true){ return; }; UpdateTerritory(); } public function Vanish():void{ var _local1:int; RemoveListeners(); VanishShips(mShips); VanishDefenseBoats(mDefenseBoats); VanishFighters(mFighters); _local1 = 0; while (_local1 < mEmpire.mFleets.length) { mEmpire.mFleets[_local1].Vanish(); _local1++; }; mTerritoryCircle.visible = false; mTwinLine.visible = false; mSelectLine.graphics.clear(); mSelectLine.visible = false; if (mSelectedCircle != null){ mSelectedCircle.visible = false; removeChild(mSelectedCircle); mSelectedCircle = null; }; visible = false; } public function FighterCount():int{ return (mFighters); } public function SetToStartPoint():void{ mEmpire.mStarTypeMemory[mId] = "StartPoint"; mStarType = "StartPoint"; mStarTypeMovie.gotoAndStop("StartPoint"); mDefenseBoats = 0; mShipCounter = 0; mDefenseBoatCounter = 0; mEfficiency = 0; mEfficiencyGrowthRate = 0; mEfficiencyMax = 0; mShipGrowthRate = 0; mDefenseBoatGrowthRate = 0; mDefenseBoatMax = 0; mEconomicOutput = 0; mMaxFighters = 0; mMaxRockets = 0; } public function AddListeners():void{ addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); addEventListener(Event.ENTER_FRAME, frameUpdate); addEventListener(MouseEvent.MOUSE_OVER, mouseOver); addEventListener(MouseEvent.MOUSE_OUT, mouseOut); addEventListener(MouseEvent.MOUSE_MOVE, MouseMoveHandler); addEventListener(MouseEvent.MOUSE_UP, MouseUpHandler); } public function QueueShip():void{ mShipQueue = (mShipQueue + 2); if (mShipQueue >= 4){ FlushShipQueue(); } else { mAttackTimer.stop(); mAttackTimer.start(); mAttackTimer.addEventListener("timer", FlushShipQueue); }; } public function Defend(_arg1:Fleet):void{ var _local2:int; var _local3:Bonus; var _local4:Number; if (mEmpire == _arg1.mEmpire){ if (_arg1.mFleetType == "Fighter"){ AddFighters(_arg1.mShips); } else { AddShips(_arg1.mShips); }; _arg1.Vanish(); return; }; _local2 = _arg1.mSurroundBonus; if (_local2 == 2){ _local3 = new Bonus(0, 0, "x2"); addChild(_local3); } else { if (_local2 == 3){ _local3 = new Bonus(0, 0, "x3"); addChild(_local3); } else { if (_local2 == 4){ _local3 = new Bonus(0, 0, "x4"); addChild(_local3); }; }; }; _local4 = 1; if ((((_local2 == 1)) && ((mStarType == "Defense")))){ _local4 = 1.5; }; if (((mDefenseBoats * mDefenseBoatPower) * _local4) >= (_arg1.mShips * _local2)){ DestroyDefenseBoats(((_arg1.mShips * _local2) / (mDefenseBoatPower * _local4))); _arg1.DestroyShips(_arg1.mShips); } else { _arg1.DestroyShips(int((((int(mDefenseBoats) * mDefenseBoatPower) * _local4) / _local2))); DestroyDefenseBoats(mDefenseBoats); }; if (_arg1.mFleetType == "Fighter"){ if (mFighters >= _arg1.mShips){ DestroyFighters(_arg1.mShips); _arg1.DestroyShips(_arg1.mShips); } else { _arg1.DestroyShips(int(int(mFighters))); DestroyFighters(mFighters); }; } else { if ((mFighters * mFighterPower) >= (_arg1.mShips * _local2)){ DestroyFighters(((_arg1.mShips * _local2) / mFighterPower)); _arg1.DestroyShips(_arg1.mShips); } else { _arg1.DestroyShips(int(((int(mFighters) * mFighterPower) / _local2))); DestroyFighters(mFighters); }; }; if (_arg1.mFleetType == "Fighter"){ _local2 = mFighterPower; }; if (mShips >= (_arg1.mShips * _local2)){ DestroyShips((_arg1.mShips * _local2)); } else { if (mEmpire.mId == 0){ mWorld.mSoundScape.Play("LoseStar", this); }; Unselect(); mEfficiency = 0; DestroyShips(ShipCount()); DestroyFighters(FighterCount()); mEmpire.RemoveStar(this); _arg1.mEmpire.AddStar(this); mEmpire = _arg1.mEmpire; SetToLastType(); if (_arg1.mFleetType == "Fighter"){ AddFighters((_arg1.mShips - (mShips / _local2))); } else { AddShips((_arg1.mShips - (mShips / _local2))); }; if (_arg1.mEmpire.mBot != null){ _arg1.mEmpire.mBot.ClearBlacklist(); }; mSelectLine.visible = false; if (mCursor.visible == true){ if (mCursor.currentLabel == "Move"){ mCursor.visible = false; ShowAttackCursor(); } else { mCursor.visible = false; ShowMoveCursor(); }; }; if ((((_arg1.mEmpire.mId == 0)) && ((mWorld.mPlayerTargetStar == this)))){ Select(); }; }; if (mDefenseBoats < 0){ trace("mDefenseBoats less than 0 !!"); }; if (mDefenseBoatList.length != mDefenseBoats){ trace("fuck up right here - defense boats"); }; if (ShipCount() < 0){ trace("mShips less than 0 !!"); }; _arg1.Destroy(); } public function SetToMineLayer():void{ VanishFighters(mFighters); mEmpire.mStarTypeMemory[mId] = "MineLayer"; if (mStarType != "MineLayer"){ if (mTwinSlave != null){ HideTwinLine(); mTwinSlave.mTwinMaster = null; mTwinSlave = null; }; mStarType = "MineLayer"; mStarTypeMovie.gotoAndStop((mEmpire.mName + "MineLayer")); mDefenseBoats = int(mDefenseBoats); mShipCounter = 0; mDefenseBoatCounter = 0; mEfficiency = (0.2 * mSize); mEfficiencyGrowthRate = (0.005 * mSize); mEfficiencyMax = (2.3 * mSize); mShipGrowthRate = 0; mDefenseBoatGrowthRate = -0.15; mDefenseBoatMax = 0; mEconomicOutput = 0; mFighterCounter = 0; mFighterGrowthRate = 0; mMaxFighters = 0; mMaxRockets = 0; }; } public function Unselect():void{ if (mSelectedCircle != null){ mSelectedCircle.visible = false; removeChild(mSelectedCircle); mSelectedCircle = null; }; mSelected = false; if (mEmpire.mId == 0){ mAttackTimer.stop(); mWorld.UnselectStar(this); mSelectLine.graphics.clear(); mSelectLine.visible = false; gotoAndStop(mEmpire.mName); }; } public function AddFighters(_arg1:int):void{ var _local2:int; var _local3:*; if (mFighters != mFighterList.length){ trace("AddFighters(before) NONONONONONO add Fighters is wrong", mFighters, mFighterList.length); }; mFighters = (mFighters + _arg1); _local2 = 0; while (_local2 < _arg1) { _local3 = new Fighter(mWorld, 0, 0, mEmpire.mName); _local3.Orbit(x, y); mFighterList.push(_local3); mWorld.addChild(_local3); _local2++; }; if (mFighters != mFighterList.length){ trace("AddFighters(after) NONONONONONO add Fighters is wrong", mFighters, mFighterList.length); }; } public function SetStarType(_arg1:String):void{ switch (_arg1){ case "Standard": SetToStandard(); break; case "Naval": SetToNaval(); break; case "Defense": SetToDefense(); break; case "Economic": SetToEconomic(); break; case "MineLayer": SetToMineLayer(); break; case "Fighter": SetToFighter(); break; case "Rocket": SetToRocket(); break; case "StartPoint": SetToStartPoint(); break; default: SetToStandard(true); }; } public function Select():void{ if (mEmpire.mId == 0){ mWorld.SelectStar(this); mSelected = true; if (mSelectedCircle == null){ mSelectedCircle = new SelectedCircle(); addChild(mSelectedCircle); mSelectedCircle.visible = true; }; }; } public function VanishFighters(_arg1:int):void{ var _local2:int; var _local3:int; var _local4:*; if (_arg1 == 0){ return; }; _local2 = (mFighters - _arg1); mFighters = (mFighters - _arg1); _arg1 = (mFighterList.length - _local2); _local3 = 0; while (_local3 < _arg1) { _local4 = mFighterList.pop(); _local4.Vanish(); _local3++; }; if (mFighters != mFighterList.length){ trace("VanishFighters NONONONONONO add Fighters is wrong", mFighters, mFighterList.length); }; } public function DrawTerritory():void{ var _local1:int; var _local2:*; mTerritoryCircle.graphics.clear(); switch (mEmpire.mName){ case "Blue": _local1 = 5592575; break; case "Green": _local1 = 0xFF00; break; case "Red": _local1 = 16729156; break; case "Yellow": _local1 = 0xDDDD00; break; case "Grey": _local1 = 0x777777; break; }; mTerritoryCircle.graphics.beginFill(_local1, 0.11); _local2 = (mTerritorySizeConstant * mEfficiency); if ((((mStarType == "Economic")) || ((mStarType == "Naval")))){ _local2 = (_local2 * 0.65); }; mTerritoryCircle.graphics.drawCircle(x, y, _local2); mTerritoryCircle.graphics.endFill(); mTerritoryCircle.visible = this.visible; } public function VanishDefenseBoats(_arg1:int):void{ var _local2:int; var _local3:*; _local2 = 0; while (_local2 < _arg1) { _local3 = mDefenseBoatList.pop(); _local3.Vanish(); mDefenseBoats--; if (mDefenseBoats != mDefenseBoatList.length){ }; _local2++; }; } public function SetToDefense():void{ VanishFighters(mFighters); mEmpire.mStarTypeMemory[mId] = "Defense"; if (mStarType != "Defense"){ if (mTwinSlave != null){ HideTwinLine(); mTwinSlave.mTwinMaster = null; mTwinSlave = null; }; mStarType = "Defense"; mStarTypeMovie.gotoAndStop((mEmpire.mName + "Defense")); mDefenseBoats = int(mDefenseBoats); mShipCounter = 0; mDefenseBoatCounter = 0; mEfficiency = (0.2 * mSize); mEfficiencyGrowthRate = (0.006 * mSize); mEfficiencyMax = (1.3 * mSize); mShipGrowthRate = 0; mDefenseBoatGrowthRate = 0.3; mDefenseBoatMax = ((9 * mSize) * 1.5); mEconomicOutput = 0; mFighterCounter = 0; mFighterGrowthRate = 0; mMaxFighters = 0; mMaxRockets = 0; }; } public function UpdateTerritory():void{ if (mEfficiency < mEfficiencyMax){ mEfficiency = (mEfficiency + mEfficiencyGrowthRate); DrawTerritory(); }; } public function ShowTwinLine():void{ mTwinLine.graphics.clear(); mTwinLine.graphics.lineStyle(1, 0xFF0000, 0.6, true); mTwinLine.graphics.moveTo(x, y); mTwinLine.graphics.lineTo(mTwinSlave.x, mTwinSlave.y); mTwinLine.visible = true; } public function MouseUpHandler(_arg1:MouseEvent):void{ HideCursor(); if (mWorld.mTwinSelectionStart == this){ mWorld.mTwinSelectionStart = null; _arg1.stopPropagation(); return; }; if (mWorld.mTwinSelectionStart != null){ mTwinMaster = mWorld.mTwinSelectionStart; mTwinMaster.mTwinSlave = this; mTwinMaster.ShowTwinLine(); mWorld.mTwinSelectionStart = null; _arg1.stopPropagation(); }; } public function PopFighter():Fighter{ var _local1:int; var _local2:Fighter; if (mFighterList.length == 0){ trace("Popping fighters from an empty star?!?!?"); }; _local1 = mFighters; _local2 = null; if (_local1 != mFighterList.length){ _local2 = mFighterList.pop(); if (null == _local2){ trace("WOW, trying to create an fighter fleet of size", mFighters, "but star has only ", mFighterList.length); }; }; return (_local2); } public function DestroyFighters(_arg1:int):void{ var _local2:int; var _local3:int; var _local4:*; if (_arg1 == 0){ return; }; if (_arg1 > mFighters){ _arg1 = mFighters; }; _local2 = (mFighters - _arg1); _arg1 = (mFighterList.length - _local2); if (_arg1 > mFighterList.length){ _arg1 = mFighterList.length; }; mFighters = (mFighters - _arg1); _local3 = 0; while (_local3 < _arg1) { _local4 = mFighterList.pop(); _local4.Destroy(); _local3++; }; if (mFighters != mFighterList.length){ trace("DestroyFighters NONONONONONO add Fighters is wrong", mFighters, mFighterList.length); }; } public function mouseOver(_arg1:MouseEvent):void{ if (mWorld.mTwinSelectionStart != null){ ShowTwinCursor(); } else { if ((((mWorld.mSelectedStars.length > 0)) && ((mEmpire.mId == 0)))){ ShowMoveCursor(); } else { if ((((mWorld.mSelectedStars.length > 0)) && (!((mEmpire.mId == 0))))){ ShowAttackCursor(); }; }; }; } public function HideCursor():void{ var _local1:Star; var _local2:int; var _local3:int; if (mCursor.visible == true){ _local2 = mWorld.mSelectedStars.length; _local3 = 0; while (_local3 < _local2) { _local1 = mWorld.mSelectedStars[_local3]; _local1.mSelectLine.graphics.clear(); _local1.mSelectLine.visible = false; _local3++; }; mCursor.visible = false; }; } public function ShowTwinCursor():void{ var _local1:Star; var _local2:int; var _local3:int; mWorld.mTwinSelectLine.visible = false; if (mCursor.visible == false){ _local2 = mWorld.mSelectedStars.length; _local3 = 0; while (_local3 < _local2) { _local1 = mWorld.mSelectedStars[_local3]; _local1.mSelectLine.graphics.clear(); _local1.mSelectLine.graphics.lineStyle(1, 0xFFFFFF, 0.7, true); _local1.mSelectLine.graphics.moveTo(_local1.x, _local1.y); _local1.mSelectLine.graphics.lineTo(x, y); _local1.mSelectLine.visible = true; _local3++; }; mCursor.gotoAndStop("Move"); mCursor.visible = true; }; } public function SetSize(_arg1:Number):void{ if (_arg1 < 0.5){ _arg1 = 0.5; }; if (_arg1 > 3){ _arg1 = 3; }; mSize = _arg1; scaleX = 1; scaleY = 1; width = (width * mSize); height = (height * mSize); mStarTypeMovie.scaleX = mStarTypeScale; mStarTypeMovie.scaleY = mStarTypeScale; mStarTypeMovie.width = (mStarTypeMovie.width / mSize); mStarTypeMovie.height = (mStarTypeMovie.height / mSize); } public function SetToEconomic():void{ VanishFighters(mFighters); mEmpire.mStarTypeMemory[mId] = "Economic"; if (mStarType != "Economic"){ if (mTwinSlave != null){ HideTwinLine(); mTwinSlave.mTwinMaster = null; mTwinSlave = null; }; mStarType = "Economic"; mStarTypeMovie.gotoAndStop((mEmpire.mName + "Economic")); mDefenseBoats = int(mDefenseBoats); mShipCounter = 0; mDefenseBoatCounter = 0; mEfficiency = (0.3 * mSize); mEfficiencyGrowthRate = (0.006 * mSize); mEfficiencyMax = (1 * mSize); mShipGrowthRate = 0; mDefenseBoatGrowthRate = -0.015; mDefenseBoatMax = 0; mEconomicOutput = ((3 * mSize) * 1.5); mFighterCounter = 0; mFighterGrowthRate = 0; mMaxFighters = 0; mMaxRockets = 0; }; } public function SetEmpire(_arg1:Empire):void{ mEfficiency = 0.2; mEmpire = _arg1; gotoAndStop(mEmpire.mName); } public function DistanceTo(_arg1:Number, _arg2:Number):Number{ return (Math.sqrt((Math.pow((_arg1 - _arg1), 2) + Math.pow((_arg2 - _arg2), 2)))); } public function ShowAttackCursor():void{ var _local1:int; var _local2:int; var _local3:Star; var _local4:int; _local1 = 0; while (_local1 < mWorld.mStars.length) { mWorld.mStars[_local1].HideCursor(); _local1++; }; if (mCursor.visible == false){ _local2 = CalculateSurroundBonus(); _local4 = mWorld.mSelectedStars.length; _local1 = 0; while (_local1 < _local4) { _local3 = mWorld.mSelectedStars[_local1]; _local3.mSelectLine.graphics.clear(); _local3.mSelectLine.graphics.lineStyle(2, 0xFF0000, 0.6, true); _local3.mSelectLine.graphics.moveTo(_local3.x, _local3.y); _local3.mSelectLine.graphics.lineTo(x, y); _local3.mSelectLine.visible = true; _local1++; }; if (_local2 == 1){ mCursor.gotoAndStop("AttackX1"); } else { if (_local2 == 2){ mCursor.gotoAndStop("AttackX2"); } else { if (_local2 == 3){ mCursor.gotoAndStop("AttackX3"); } else { if (_local2 == 4){ mCursor.gotoAndStop("AttackX4"); }; }; }; }; mCursor.visible = true; }; } public function ShowMoveCursor():void{ var _local1:int; var _local2:Star; var _local3:int; _local1 = 0; while (_local1 < mWorld.mStars.length) { mWorld.mStars[_local1].HideCursor(); _local1++; }; if (mCursor.visible == false){ _local3 = mWorld.mSelectedStars.length; _local1 = 0; while (_local1 < _local3) { _local2 = mWorld.mSelectedStars[_local1]; _local2.mSelectLine.graphics.clear(); _local2.mSelectLine.graphics.lineStyle(1, 0xFF00, 0.4, true); _local2.mSelectLine.graphics.moveTo(_local2.x, _local2.y); _local2.mSelectLine.graphics.lineTo(x, y); _local2.mSelectLine.visible = true; _local1++; }; mCursor.gotoAndStop("Move"); mCursor.visible = true; }; } public function SetToRocket():void{ VanishFighters(mFighters); mEmpire.mStarTypeMemory[mId] = "Rocket"; if (mStarType != "Rocket"){ if (mTwinSlave != null){ HideTwinLine(); mTwinSlave.mTwinMaster = null; mTwinSlave = null; }; mStarType = "Rocket"; mStarTypeMovie.gotoAndStop((mEmpire.mName + "Rocket")); mDefenseBoats = int(mDefenseBoats); mShipCounter = 0; mDefenseBoatCounter = 0; mEfficiency = (0.2 * mSize); mEfficiencyGrowthRate = (0.007 * mSize); mEfficiencyMax = (4 * mSize); mShipGrowthRate = 0; mDefenseBoatGrowthRate = -0.015; mDefenseBoatMax = 0; mEconomicOutput = 0; mFighterCounter = 0; mFighterGrowthRate = 0; mMaxFighters = 0; mMaxRockets = ((2 * mSize) * 1.5); }; } public function SetToFighter():void{ mEmpire.mStarTypeMemory[mId] = "Fighter"; if (mStarType != "Fighter"){ if (mTwinSlave != null){ HideTwinLine(); mTwinSlave.mTwinMaster = null; mTwinSlave = null; }; mStarType = "Fighter"; mStarTypeMovie.gotoAndStop((mEmpire.mName + "Fighter")); mDefenseBoats = int(mDefenseBoats); mShipCounter = 0; mDefenseBoatCounter = 0; mEfficiency = (0.2 * mSize); mEfficiencyGrowthRate = (0.005 * mSize); mEfficiencyMax = (2 * mSize); mShipGrowthRate = 0; mDefenseBoatGrowthRate = 0; mDefenseBoatMax = 0; mEconomicOutput = 0; mFighterCounter = 0; mFighterGrowthRate = ((0.5 * mSize) * 1.5); mMaxFighters = ((2 * mSize) * 1.5); mMaxRockets = 0; }; } public function FlushShipQueue(_arg1:TimerEvent=null):void{ mAttackTimer.stop(); if (mEmpire.mId == 0){ mWorld.SelectedFleetsMove(this, mShipQueue, CalculateSurroundBonus()); } else { mWorld.SelectedFleetsAttack(this, mShipQueue, CalculateSurroundBonus()); }; mShipQueue = 0; HideCursor(); } public function AddShips(_arg1:int):void{ var _local2:int; var _local3:int; var _local4:*; _local2 = RepresentedShipCount((mShips + _arg1)); mShips = (mShips + _arg1); mEmpire.mNumShips = (mEmpire.mNumShips + _arg1); _local2 = (_local2 - mShipList.length); _local3 = 0; while (_local3 < _local2) { _local4 = new Ship(mWorld, 0, 0, mEmpire.mName); _local4.Orbit(x, y); mShipList.push(_local4); mWorld.addChild(_local4); _local3++; }; } public function Tick():void{ var _local1:int; var _local2:int; var _local3:int; var _local4:int; var _local5:Fleet; var _local6:Number; var _local7:int; var _local8:Ship; var _local9:int; var _local10:*; var _local11:int; var _local12:Star; var _local13:int; var _local14:Star; var _local15:int; var _local16:*; var _local17:int; if (mEmpire.mName != "Grey"){ mFighterCounter = (mFighterCounter + ((mFighterGrowthRate * mEfficiency) * mWorld.mWorldSpeed)); }; if (mFighterCounter >= 1){ if (mFighters < mMaxFighters){ AddFighters(1); }; mFighterCounter = 0; }; if (mFighters > mMaxFighters){ VanishFighters(1); }; if (mEmpire.mName != "Grey"){ mShipCounter = (mShipCounter + ((mShipGrowthRate * mEfficiency) * mWorld.mWorldSpeed)); }; if (mShipCounter >= 1){ if (!mEmpire.ShipLimitReached()){ AddShips(1); }; mShipCounter = 0; }; if (mEmpire.mName != "Grey"){ mDefenseBoatCounter = (mDefenseBoatCounter + ((mDefenseBoatGrowthRate * mEfficiency) * mWorld.mWorldSpeed)); }; if (mDefenseBoatCounter >= 1){ if (mDefenseBoats < mDefenseBoatMax){ AddDefenseBoats(1); }; mDefenseBoatCounter = 0; }; if (mDefenseBoats > mDefenseBoatMax){ VanishDefenseBoats(1); }; if ((((mStarType == "Naval")) && (!((mTwinSlave == null))))){ this.Attack(mTwinSlave, 4, 1); }; if ((((mStarType == "StartPoint")) && ((ShipCount() == 0)))){ mEmpire.RemoveStar(this); Unselect(); x = -10000; y = -10000; visible = false; mWorld.StartUserInputListeners(); }; if ((((((((((mStarType == "Defense")) || ((mStarType == "Standard")))) || ((mStarType == "MineLayer")))) || ((mStarType == "Fighter")))) || ((mStarType == "Rocket")))){ _local1 = mWorld.mEmpires.length; _local3 = 0; _local4 = 0; while (_local4 < _local1) { if (((mEmpire.IsAlly(mWorld.mEmpires[_local4])) && (!((mStarType == "MineLayer"))))){ } else { _local2 = mWorld.mEmpires[_local4].mFleets.length; _local9 = 0; while (_local9 < _local2) { _local5 = mWorld.mEmpires[_local4].mFleets[_local9]; if (_local5.ShipCount() == 0){ } else { if ((((_local5.mDest == this)) && (!((mStarType == "MineLayer"))))){ } else { _local6 = Math.sqrt((Math.pow((x - _local5.mShipList[0].x), 2) + Math.pow((y - _local5.mShipList[0].y), 2))); if (_local6 < (mTerritorySizeConstant * mEfficiency)){ if (mStarType == "MineLayer"){ _local7 = (int((_local5.ShipCount() / 1.5)) * mWorld.mWorldSpeed); if (_local7 < (mEfficiency * 500)){ _local7 = (mEfficiency * 500); }; if (_local7 > _local5.ShipCount()){ _local7 = _local5.ShipCount(); }; mEfficiency = (mEfficiency - (_local7 / 50)); if (mEfficiency < 0){ mEfficiency = 0; }; } else { if (mStarType == "Fighter"){ _local3++; if (FighterCount() >= 2){ _local6 = Math.sqrt((Math.pow((x - _local5.mDest.x), 2) + Math.pow((y - _local5.mDest.y), 2))); if (_local6 < (mTerritorySizeConstant * mEfficiency)){ _local10 = new Fleet(mWorld, mEmpire, (FighterCount() / 2), this, _local5.mDest, 1, mWorld.mWorldSpeed, "Fighter"); }; }; } else { if (mDefenseBoats >= 1){ _local7 = ((int(((mDefenseBoats * mDefenseBoatPower) / 4)) * mWorld.mWorldSpeed) + 1); }; }; }; if (_local5.ShipCount() > _local7){ _local5.DestroyShips(_local7); } else { _local5.Destroy(); _local2--; }; }; }; }; _local9++; }; if (mStarType == "MineLayer"){ _local11 = mWorld.mEmpires[_local4].mStars.length; _local13 = 0; while (_local13 < _local11) { _local12 = mWorld.mEmpires[_local4].mStars[_local13]; if (_local12.mEmpire == mEmpire){ } else { _local6 = Math.sqrt((Math.pow((x - _local12.x), 2) + Math.pow((y - _local12.y), 2))); if (_local6 < (mTerritorySizeConstant * mEfficiency)){ if (_local12.ShipCount() > 0){ _local7 = ((int((_local12.ShipCount() / 5)) * mWorld.mWorldSpeed) + 1); _local12.DestroyShips(_local7); mEfficiency = (mEfficiency - (_local7 / 50)); }; if (_local12.mDefenseBoatList.length > 0){ _local7 = ((int((_local12.mDefenseBoatList.length / 5)) * mWorld.mWorldSpeed) + 1); _local12.DestroyDefenseBoats(_local7); mEfficiency = (mEfficiency - (_local7 / 5)); }; }; }; _local13++; }; }; if ((((mStarType == "Fighter")) || ((mStarType == "Rocket")))){ _local11 = mWorld.mEmpires[_local4].mStars.length; _local14 = null; _local13 = 0; for (;_local13 < _local11;_local13++) { _local12 = mWorld.mEmpires[_local4].mStars[_local13]; if (_local12.mEmpire == mEmpire){ continue; } else { _local6 = Math.sqrt((Math.pow((x - _local12.x), 2) + Math.pow((y - _local12.y), 2))); if (_local6 < (mTerritorySizeConstant * mEfficiency)){ if (mStarType == "Fighter"){ if ((mFighters >= (mMaxFighters / 2))){ if ((mFighters / 2) > ((_local12.mDefenseBoats * mDefenseBoatPower) + (_local12.mShips / mFighterPower))){ _local10 = new Fleet(mWorld, mEmpire, (FighterCount() / 2), this, _local12, 1, mWorld.mWorldSpeed, "Fighter"); }; }; } else { if ((((((mStarType == "Rocket")) && ((mEfficiency >= mEfficiencyMax)))) && (!((_local12.mEmpire.mName == "Grey"))))){ if (_local14 == null){ _local14 = _local12; } else { if (_local12.mSize > _local14.mSize){ _local14 = _local12; }; }; }; }; }; }; }; if (_local14 != null){ if (mTwinSlave != null){ _local14 = mTwinSlave; }; _local6 = Math.sqrt((Math.pow((x - _local14.x), 2) + Math.pow((y - _local14.y), 2))); if (_local6 < (mTerritorySizeConstant * mEfficiency)){ _local15 = 0; while (_local15 < mMaxRockets) { _local16 = new Rocket(mWorld, this, _local14, mEmpire, (_local15 * 300)); _local15++; }; mEfficiency = (mEfficiencyMax * 0.5); }; }; }; }; _local4++; }; if (mStarType == "Fighter"){ _local17 = mWorld.mStars.length; _local13 = 0; while (_local13 < _local17) { _local12 = mWorld.mStars[_local13]; if ((((((_local12.mEmpire == mEmpire)) && (!((_local12.mStarType == "Fighter"))))) && ((_local12.FighterCount() > 0)))){ if (_local12 == this){ } else { _local6 = Math.sqrt((Math.pow((x - _local12.x), 2) + Math.pow((y - _local12.y), 2))); if (_local6 < (mTerritorySizeConstant * mEfficiency)){ if (_local3 == 0){ _local10 = new Fleet(mWorld, mEmpire, _local12.FighterCount(), _local12, this, 1, mWorld.mWorldSpeed, "Fighter"); }; }; }; }; _local13++; }; }; }; frameUpdate(new Event("dummy")); } public function DestroyDefenseBoats(_arg1:Number):void{ var _local2:int; var _local3:*; if ((((_arg1 > 0)) && ((_arg1 < 1)))){ mDefenseBoatDamage = (mDefenseBoatDamage + _arg1); if (mDefenseBoatDamage > 1){ mDefenseBoatDamage = 0; _arg1 = 1; }; }; _arg1 = int(_arg1); if (_arg1 > mDefenseBoatList.length){ _arg1 = mDefenseBoatList.length; }; _local2 = 0; while (_local2 < _arg1) { _local3 = mDefenseBoatList.pop(); _local3.Destroy(); mDefenseBoats--; if (mDefenseBoats != mDefenseBoatList.length){ }; _local2++; }; } public function CalculateSurroundBonus():int{ var _local1:Star; var _local2:int; var _local3:Number; var _local4:Array; var _local5:int; var _local6:Number; _local2 = mWorld.mSelectedStars.length; _local4 = new Array(); _local5 = 0; while (_local5 < _local2) { _local1 = mWorld.mSelectedStars[_local5]; if (_local1.ShipCount() > 0){ _local3 = (((Math.atan2((_local1.y - y), (_local1.x - x)) * 180) / Math.PI) + 180); _local4.push(_local3); }; _local5++; }; _local4.sort(Array.NUMERIC); _local6 = -1; _local5 = 0; while (_local5 < _local4.length) { if (_local5 == 0){ if (((_local4[_local5] - _local4[(_local4.length - 1)]) + 360) > _local6){ _local6 = ((_local4[_local5] - _local4[(_local4.length - 1)]) + 360); }; if ((_local4[(_local5 + 1)] - _local4[_local5]) > _local6){ _local6 = (_local4[(_local5 + 1)] - _local4[_local5]); }; } else { if (_local5 == (_local4.length - 1)){ if ((_local4[_local5] - _local4[(_local5 - 1)]) > _local6){ _local6 = (_local4[_local5] - _local4[(_local5 - 1)]); }; if (((360 - _local4[_local5]) + _local4[0]) > _local6){ _local6 = ((360 - _local4[_local5]) + _local4[0]); }; } else { if ((_local4[_local5] - _local4[(_local5 - 1)]) > _local6){ _local6 = (_local4[_local5] - _local4[(_local5 - 1)]); }; if ((_local4[(_local5 + 1)] - _local4[_local5]) > _local6){ _local6 = (_local4[(_local5 + 1)] - _local4[_local5]); }; }; }; _local5++; }; if ((((_local6 > 270)) || ((_local6 < 0)))){ return (1); }; if ((((_local6 <= 270)) && ((_local6 > 180)))){ return (2); }; if ((((_local6 <= 180)) && ((_local6 > 90)))){ return (3); }; return (4); } public function MoveFleet(_arg1:Star, _arg2:int=4, _arg3:int=1):void{ var _local4:int; var _local5:Fleet; if (_arg2 > 4){ _arg2 = 4; }; if (_arg1 != this){ if (mShips >= 1){ _local4 = ((mShips * _arg2) / 4); if (_local4 == 0){ _local4 = 1; if (_local4 > mShips){ _local4 = mShips; }; }; _local5 = new Fleet(mWorld, mEmpire, _local4, this, _arg1, _arg3, mWorld.mWorldSpeed); if (mEmpire.mId == 0){ mWorld.mSoundScape.Play("MoveTo", this); }; }; }; } public function VanishShips(_arg1:int):void{ var _local2:int; var _local3:int; var _local4:*; if (_arg1 == 0){ return; }; _local2 = RepresentedShipCount((mShips - _arg1)); mShips = (mShips - _arg1); mEmpire.mNumShips = (mEmpire.mNumShips - _arg1); _arg1 = (mShipList.length - _local2); _local3 = 0; while (_local3 < _arg1) { _local4 = mShipList.pop(); _local4.Vanish(); _local3++; }; } public function mouseClick(_arg1:MouseEvent):void{ var _local2:*; if ((((mWorld.mEditting == true)) && ((mWorld.mPause == true)))){ _local2 = new EditStarPopup(mWorld, this); _arg1.stopPropagation(); return; }; if ((((mStarType == "Rocket")) || ((mStarType == "Naval")))){ if (mWorld.mTwinSelectionStart == null){ mWorld.mTwinSelectionStart = this; }; }; if (_arg1.shiftKey == true){ if (mEmpire.mId == 0){ if (mSelected == true){ Unselect(); } else { Select(); }; }; } else { if (mWorld.mSelectedStars.length == 0){ Select(); } else { QueueShip(); if (mEmpire.mId != 0){ mWorld.mPlayerTargetStar = this; }; }; }; _arg1.stopPropagation(); } public function AddDefenseBoats(_arg1:int):void{ var _local2:int; var _local3:Boat; mDefenseBoatDamage = 0; _local2 = 0; while (_local2 < _arg1) { _local3 = new Boat(mWorld, 0, 0, mEmpire.mName); _local3.Orbit(x, y); mDefenseBoatList.push(_local3); mDefenseBoats++; mWorld.addChild(_local3); if (mDefenseBoats != mDefenseBoatList.length){ }; _local2++; }; } public function DestroyShips(_arg1:int):void{ var _local2:int; var _local3:int; var _local4:*; if (_arg1 == 0){ return; }; if (_arg1 > mShips){ _arg1 = mShips; }; _local2 = RepresentedShipCount((mShips - _arg1)); mShips = (mShips - _arg1); mEmpire.mNumShips = (mEmpire.mNumShips - _arg1); _arg1 = (mShipList.length - _local2); _local3 = 0; while (_local3 < _arg1) { _local4 = mShipList.pop(); _local4.Destroy(); _local3++; }; } } }//package
Section 60
//StarType (StarType) package { import flash.display.*; public class StarType extends MovieClip { } }//package
Section 61
//StarTypeButton (StarTypeButton) package { import flash.display.*; public dynamic class StarTypeButton extends MovieClip { public function StarTypeButton(){ addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5); } function frame3(){ stop(); } function frame1(){ stop(); } function frame4(){ stop(); } function frame5(){ stop(); } function frame2(){ stop(); } } }//package
Section 62
//StarTypePopup (StarTypePopup) package { import flash.display.*; public class StarTypePopup extends MovieClip { } }//package
Section 63
//TitleMusic (TitleMusic) package { import flash.media.*; public dynamic class TitleMusic extends Sound { } }//package
Section 64
//TutorialPopup1 (TutorialPopup1) package { import flash.events.*; import flash.display.*; public class TutorialPopup1 extends MovieClip { var tutStar:Star; var mWorld:World; public var x4example:Cursor; public var x2example:Cursor; public var x3example:Cursor; public function TutorialPopup1(_arg1:World){ var _local2:*; var _local3:*; super(); addFrameScript(14, frame15); mWorld = _arg1; gotoAndStop(1); addEventListener(MouseEvent.MOUSE_DOWN, NextTutorial); _local2 = mWorld.mStars.length; mWorld.mStars[_local2] = new Star(mWorld, _local2, 360, 80, 1, mWorld.mEmpires[0]); mWorld.mStars[_local2].SetToStandard(); mWorld.mStars[_local2].mEfficiency = mWorld.mStars[_local2].mEfficiencyMax; mWorld.mStars[_local2].AddDefenseBoats(0); mWorld.mStars[_local2].AddFighters(mWorld.mStars[_local2].mMaxFighters); mWorld.mStars[_local2].DrawTerritory(); _local2++; mWorld.mStars[_local2] = new Star(mWorld, _local2, 225, 41, 1, mWorld.mEmpires[0]); mWorld.mStars[_local2].SetToStandard(); mWorld.mStars[_local2].mEfficiency = mWorld.mStars[_local2].mEfficiencyMax; mWorld.mStars[_local2].AddDefenseBoats(0); mWorld.mStars[_local2].AddFighters(mWorld.mStars[_local2].mMaxFighters); mWorld.mStars[_local2].DrawTerritory(); _local2++; mWorld.mStars[_local2] = new Star(mWorld, _local2, 349, 211, 1, mWorld.mEmpires[0]); mWorld.mStars[_local2].SetToStandard(); mWorld.mStars[_local2].mEfficiency = mWorld.mStars[_local2].mEfficiencyMax; mWorld.mStars[_local2].AddDefenseBoats(0); mWorld.mStars[_local2].AddFighters(mWorld.mStars[_local2].mMaxFighters); mWorld.mStars[_local2].DrawTerritory(); _local2++; mWorld.mStars[_local2] = new Star(mWorld, _local2, 229, 148, 1, mWorld.mEmpires[0]); mWorld.mStars[_local2].SetToStandard(); mWorld.mStars[_local2].mEfficiency = mWorld.mStars[_local2].mEfficiencyMax; mWorld.mStars[_local2].AddDefenseBoats(0); mWorld.mStars[_local2].AddFighters(mWorld.mStars[_local2].mMaxFighters); mWorld.mStars[_local2].DrawTerritory(); _local2++; mWorld.mStars[_local2] = new Star(mWorld, _local2, 113, 67, 1, mWorld.mEmpires[0]); mWorld.mStars[_local2].SetToStandard(); mWorld.mStars[_local2].mEfficiency = mWorld.mStars[_local2].mEfficiencyMax; mWorld.mStars[_local2].AddDefenseBoats(0); mWorld.mStars[_local2].AddFighters(mWorld.mStars[_local2].mMaxFighters); mWorld.mStars[_local2].DrawTerritory(); _local2++; mWorld.mStars[_local2] = new Star(mWorld, _local2, 74, 217, 1, mWorld.mEmpires[1]); mWorld.mStars[_local2].SetToStandard(); mWorld.mStars[_local2].mEfficiency = mWorld.mStars[_local2].mEfficiencyMax; mWorld.mStars[_local2].AddDefenseBoats(0); mWorld.mStars[_local2].AddFighters(mWorld.mStars[_local2].mMaxFighters); mWorld.mStars[_local2].DrawTerritory(); _local2++; mWorld.mStars[_local2] = new Star(mWorld, _local2, 205, 322, 1, mWorld.mEmpires[1]); mWorld.mStars[_local2].SetToDefense(); mWorld.mStars[_local2].mEfficiency = mWorld.mStars[_local2].mEfficiencyMax; mWorld.mStars[_local2].AddDefenseBoats(0); mWorld.mStars[_local2].AddFighters(mWorld.mStars[_local2].mMaxFighters); mWorld.mStars[_local2].DrawTerritory(); _local2++; mWorld.mStars[_local2] = new Star(mWorld, _local2, 114, 404, 1, mWorld.mEmpires[1]); mWorld.mStars[_local2].SetToStandard(); mWorld.mStars[_local2].mEfficiency = mWorld.mStars[_local2].mEfficiencyMax; mWorld.mStars[_local2].AddDefenseBoats(0); mWorld.mStars[_local2].AddFighters(mWorld.mStars[_local2].mMaxFighters); mWorld.mStars[_local2].DrawTerritory(); _local2++; mWorld.mStars[_local2] = new Star(mWorld, _local2, 75, 457, 1.2, mWorld.mEmpires[1]); mWorld.mStars[_local2].SetToDefense(); mWorld.mStars[_local2].mEfficiency = mWorld.mStars[_local2].mEfficiencyMax; mWorld.mStars[_local2].AddDefenseBoats(0); mWorld.mStars[_local2].AddFighters(mWorld.mStars[_local2].mMaxFighters); mWorld.mStars[_local2].DrawTerritory(); _local2++; mWorld.mStars[_local2] = new Star(mWorld, _local2, 51, 542, 1, mWorld.mEmpires[1]); mWorld.mStars[_local2].SetToStandard(); mWorld.mStars[_local2].mEfficiency = mWorld.mStars[_local2].mEfficiencyMax; mWorld.mStars[_local2].AddDefenseBoats(0); mWorld.mStars[_local2].AddFighters(mWorld.mStars[_local2].mMaxFighters); mWorld.mStars[_local2].DrawTerritory(); _local2++; mWorld.mStars[_local2] = new Star(mWorld, _local2, 165, 478, 1, mWorld.mEmpires[1]); mWorld.mStars[_local2].SetToStandard(); mWorld.mStars[_local2].mEfficiency = mWorld.mStars[_local2].mEfficiencyMax; mWorld.mStars[_local2].AddDefenseBoats(0); mWorld.mStars[_local2].AddFighters(mWorld.mStars[_local2].mMaxFighters); mWorld.mStars[_local2].DrawTerritory(); _local2++; _local3 = 1; while (_local3 < mWorld.mStars.length) { mWorld.mStars[_local3].visible = false; mWorld.mStars[_local3].mTerritoryCircle.visible = false; mWorld.mStars[_local3].mShipGrowthRate = 0; mWorld.mStars[_local3].mDefenseBoatGrowthRate = 0; mWorld.mStars[_local3].mEconomicOutput = 0; _local3++; }; } function frame15(){ x2example.gotoAndStop("AttackX2"); x3example.gotoAndStop("AttackX3"); x4example.gotoAndStop("AttackX4"); } public function NextTutorial(_arg1:MouseEvent):void{ var _local2:*; if (currentLabel == "end"){ Vanish(); return; }; if ((((currentLabel == "task1")) && (!((mWorld.mStars[5].mEmpire.mId == 0))))){ return; }; if ((((currentLabel == "task2")) && (!((mWorld.mStars[6].mEmpire.mId == 0))))){ return; }; gotoAndStop((currentFrame + 1)); if (currentLabel == "task1"){ _local2 = 0; while (_local2 < 6) { mWorld.mStars[_local2].visible = true; mWorld.mStars[_local2].mTerritoryCircle.visible = true; mWorld.mStars[_local2].mEfficiency = 0.9; mWorld.mStars[_local2].mDefenseBoatGrowthRate = 0.1; if (mWorld.mStars[_local2].mEmpire.mId == 0){ mWorld.mStars[_local2].mEconomicOutput = 2; mWorld.mStars[_local2].mShipGrowthRate = 1; }; _local2++; }; }; if (currentLabel == "task2"){ mWorld.mStars[6].AddDefenseBoats(6); mWorld.mStars[6].mDefenseBoatMax = 6; mWorld.mStars[6].mDefenseBoatGrowthRate = 0.2; _local2 = 6; while (_local2 < 8) { mWorld.mStars[_local2].visible = true; mWorld.mStars[_local2].mTerritoryCircle.visible = true; _local2++; }; }; if (currentLabel == "task3"){ mWorld.mStars[8].mDefenseBoatMax = 4; mWorld.mStars[8].mDefenseBoatGrowthRate = 0.2; _local2 = 8; while (_local2 < 11) { mWorld.mStars[_local2].visible = true; mWorld.mStars[_local2].mTerritoryCircle.visible = true; _local2++; }; mWorld.mStars[8].AddDefenseBoats(2); }; } public function Vanish(){ removeEventListener(MouseEvent.MOUSE_DOWN, NextTutorial); visible = false; } } }//package
Section 65
//Warning (Warning) package { import flash.media.*; public dynamic class Warning extends Sound { } }//package
Section 66
//World (World) package { import flash.events.*; import flash.display.*; import com.kongregate.as3.client.*; import flash.geom.*; import flash.media.*; import flash.utils.*; import flash.net.*; public class World extends MovieClip { public var mSizeMod:Number;// = 1 public var mChallengeName:String; public var mWorldSpeed:Number; public var mRocketStarsAllowed:Boolean;// = true public var mGameOverPanel:MovieClip; public var mSoundScape:SoundFactory; public var mBotSpeed:Number; public var mPlayers:Array; public var container:Object; public var mSavedSelectedStars:Array; public var mTwinSelectionStart:Star;// = null public var mEconomicStarsAllowed:Boolean;// = true public var mBoxSelect:Shape; public var mDefenseStarsAllowed:Boolean;// = true public var mNavalStarsAllowed:Boolean;// = true public var mEditPopup:EditStarPopup;// = null public var mVanishTimer:Timer; public var mCampaignLevel:int;// = 0 public var mBoxSelecting:Boolean;// = false public var mSelectedStars:Array; public var mEmpires:Array; public var mStandardStarsAllowed:Boolean;// = true public var mGameOver:Boolean;// = false public var mCampaignType:String; public var mMineLayerStarsAllowed:Boolean;// = true public var mEditting:Boolean;// = false public var mPause:Boolean;// = false public var mNumCampaigns:int;// = 12 public var mBots:Array; public var mPlayer:Player;// = null public var mFighterStarsAllowed:Boolean;// = true public var mTickTimer:Timer; public var mBoxSelectRect:Rectangle; public var mPlayerTargetStar:Star;// = null public var mRepresentedShipMatrix:Array; public var mGameType:String; public var kongregate:KongregateAPI; public var mDistanceMatrix:DistanceMatrix; public var mTwinSelectLine:Shape; public var mStars:Array; public function World(_arg1:Object, _arg2:String, _arg3:int=3, _arg4:int=60, _arg5:Number=0.5, _arg6:Number=2, _arg7:int=0, _arg8:String=""):void{ var _local9:int; mStars = new Array(); mPlayers = new Array(); mBots = new Array(); mEmpires = new Array(); mSelectedStars = new Array(); mBoxSelecting = false; mBoxSelectRect = new Rectangle(0, 0, 0, 0); mBoxSelect = new Shape(); mSavedSelectedStars = new Array(10); mGameOver = false; mTickTimer = new Timer(600); mVanishTimer = new Timer(2500); mCampaignLevel = 0; mNumCampaigns = 12; mPlayer = null; mPlayerTargetStar = null; mPause = false; mEditting = false; mRepresentedShipMatrix = new Array(); mSizeMod = 1; mMineLayerStarsAllowed = true; mDefenseStarsAllowed = true; mStandardStarsAllowed = true; mFighterStarsAllowed = true; mEconomicStarsAllowed = true; mNavalStarsAllowed = true; mRocketStarsAllowed = true; mEditPopup = null; mSoundScape = new SoundFactory(); mTwinSelectionStart = null; mTwinSelectLine = new Shape(); kongregate = KongregateAPI.getInstance(); super(); x = 0; y = 30; width = 800; height = 570; mChallengeName = _arg8; mWorldSpeed = _arg5; mBotSpeed = _arg6; if (mBotSpeed == 1){ mSizeMod = 0.6; } else { if (mBotSpeed == 2){ mSizeMod = 0.8; } else { if (mBotSpeed == 3){ mSizeMod = 1; } else { if (mBotSpeed == 4){ mSizeMod = 1.1; } else { if (mBotSpeed == 5){ mSizeMod = 1.2; }; }; }; }; }; this.container = _arg1; mGameType = _arg2; _local9 = 0; while (_local9 < 4000) { if (_local9 < 4){ mRepresentedShipMatrix[_local9] = _local9; } else { mRepresentedShipMatrix[_local9] = (int(Math.pow(_local9, 0.8)) + 1); }; _local9++; }; mCampaignLevel = _arg7; _local9 = 0; while (_local9 < 10) { mSavedSelectedStars[_local9] = new Array(); _local9++; }; mGameOverPanel = new GameOver(); mGameOverPanel.x = 0; mGameOverPanel.y = 0; mGameOverPanel.visible = false; addChild(mGameOverPanel); addChild(mTwinSelectLine); SoundMixer.stopAll(); GenerateMap(int(_arg3), int(_arg4)); } public function StopUserInputListeners(){ stage.removeEventListener(KeyboardEvent.KEY_UP, UserKeyPress); stage.removeEventListener(MouseEvent.MOUSE_DOWN, MouseDownHandler); stage.removeEventListener(MouseEvent.MOUSE_UP, MouseUpHandler); stage.removeEventListener(MouseEvent.MOUSE_MOVE, MouseMoveHandler); } public function Skirmish():void{ var _local1:int; var _local2:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, this.mEmpires[1]); mBots[2] = new Bot(this, 2, this.mEmpires[2], "Old"); mBots[3] = new Bot(this, 3, this.mEmpires[3], "Old"); GenerateStars(new Rectangle(30, 30, 350, 250), 15, mEmpires[0]); GenerateStars(new Rectangle(420, 30, 350, 250), 15, mEmpires[1]); GenerateStars(new Rectangle(30, 320, 350, 250), 15, mEmpires[2]); GenerateStars(new Rectangle(420, 320, 350, 250), 15, mEmpires[3]); mEmpires[0].mStars[0].SetSize(2); mEmpires[0].mStars[0].SetToStandard(true); mEmpires[1].mStars[0].SetSize(2); mEmpires[1].mStars[0].SetToStandard(true); mEmpires[2].mStars[0].SetSize(2); mEmpires[2].mStars[0].SetToStandard(true); mEmpires[3].mStars[0].SetSize(2); mEmpires[3].mStars[0].SetToStandard(true); _local1 = mStars.length; _local2 = 0; while (_local2 < _local1) { mStars[_local2].mShips = 2; mStars[_local2].AddDefenseBoats(1); mStars[_local2].mEfficiency = 1; _local2++; }; } public function PrisonBreak():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); _local1 = 0; mStars[_local1] = new Star(this, _local1, 86, 62, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 190, 36, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 158, 122, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 61, 161, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 101, 198, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 26, 244, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 290, 38, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 420, 121, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 302, 290, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 148, 436, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 322, 424, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 461, 247, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 566, 61, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 89, 570, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 715, 537, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 0x0303, 578, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 4, 65, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 8, 499, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 610, 203, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 499, 388, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 395, 547, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 516, 567, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 583, 467, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 647, 355, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 714, 271, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 719, 124, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function StartUserInputListeners(){ stage.addEventListener(KeyboardEvent.KEY_UP, UserKeyPress); stage.addEventListener(MouseEvent.MOUSE_DOWN, MouseDownHandler); stage.addEventListener(MouseEvent.MOUSE_UP, MouseUpHandler); stage.addEventListener(MouseEvent.MOUSE_MOVE, MouseMoveHandler); } public function BackToSplashHandler(_arg1:TimerEvent):void{ var _local2:Splash; mVanishTimer.stop(); mVanishTimer.removeEventListener("timer", BackToSplashHandler); _local2 = new Splash(); stage.addChild(_local2); _local2.visible = true; visible = false; } public function montel_fracture():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); _local1 = 0; mStars[_local1] = new Star(this, _local1, 350, 10, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 328, 50, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 297, 87, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 267, 122, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 298, 189, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 326, 247, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 263, 303, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 222, 358, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 185, 416, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 137, 376, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 97, 375, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 62, 408, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 14, 485, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 532, 34, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 547, 86, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 588, 173, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 622, 220, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 588, 288, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 532, 381, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 597, 423, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 641, 402, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 694, 392, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 719, 458, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 732, 545, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 793, 568, (2.4 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 511, 588, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 470, 565, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 421, 538, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 367, 528, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 294, 567, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 251, 560, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 179, 555, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 126, 573, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 79, 582, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 346, 578, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 413, 582, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 28, 583, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 190, 313, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 207, 237, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 251, 204, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 191, 158, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 204, 94, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 250, 51, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 124, 18, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 165, 61, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 86, 126, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 102, 211, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 122, 249, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 139, 308, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 30, 328, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 0, 391, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 100, 317, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 27, 234, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 27, 167, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 30, 96, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 31, 43, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 76, 50, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 226, 23, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 626, 323, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 639, 362, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 692, 319, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 743, 360, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 762, 446, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 782, 488, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 770, 292, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 692, 239, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 713, 162, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 757, 194, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 662, 101, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 676, 153, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 607, 69, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 627, 30, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 692, 48, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 756, 30, (2.4 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 774, 94, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 731, 115, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 769, 142, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 132, 94, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 137, 186, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 49, 280, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 655, 582, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 648, 538, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 630, 505, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 554, 501, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 553, 546, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 586, 584, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 604, 539, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 505, 488, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 445, 462, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 386, 453, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 442, 401, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 498, 536, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 464, 515, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 335, 466, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 353, 399, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 407, 400, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 444, 352, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 413, 327, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 316, 390, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 266, 453, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 271, 511, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 194, 505, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 135, 503, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 91, 531, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 48, 517, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 374, 364, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 486, 308, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 446, 300, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 415, 281, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 451, 216, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 500, 0xFF, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 549, 228, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 506, 182, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 449, 171, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 397, 163, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 453, 134, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 406, 118, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 358, 122, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 393, 74, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 441, 69, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 458, 33, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 419, 23, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function UserKeyPress(_arg1:KeyboardEvent):void{ var _local2:int; _local2 = 0; if (_arg1.ctrlKey == true){ if ((((_arg1.keyCode >= 48)) && ((_arg1.keyCode <= 57)))){ SaveSelectedStars(_arg1.keyCode); } else { if (_arg1.keyCode == 78){ UnselectStars(); _local2 = 0; while (_local2 < mEmpires[0].mStars.length) { if (mEmpires[0].mStars[_local2].mStarType == "Naval"){ mEmpires[0].mStars[_local2].Select(); }; _local2++; }; } else { if (_arg1.keyCode == 68){ UnselectStars(); _local2 = 0; while (_local2 < mEmpires[0].mStars.length) { if (mEmpires[0].mStars[_local2].mStarType == "Defense"){ mEmpires[0].mStars[_local2].Select(); }; _local2++; }; } else { if (_arg1.keyCode == 83){ UnselectStars(); _local2 = 0; while (_local2 < mEmpires[0].mStars.length) { if (mEmpires[0].mStars[_local2].mStarType == "Standard"){ mEmpires[0].mStars[_local2].Select(); }; _local2++; }; } else { if (_arg1.keyCode == 69){ UnselectStars(); _local2 = 0; while (_local2 < mEmpires[0].mStars.length) { if (mEmpires[0].mStars[_local2].mStarType == "Economic"){ mEmpires[0].mStars[_local2].Select(); }; _local2++; }; } else { if (_arg1.keyCode == 77){ UnselectStars(); _local2 = 0; while (_local2 < mEmpires[0].mStars.length) { if (mEmpires[0].mStars[_local2].mStarType == "MineLayer"){ mEmpires[0].mStars[_local2].Select(); }; _local2++; }; } else { if (_arg1.keyCode == 82){ UnselectStars(); _local2 = 0; while (_local2 < mEmpires[0].mStars.length) { if (mEmpires[0].mStars[_local2].mStarType == "Rocket"){ mEmpires[0].mStars[_local2].Select(); }; _local2++; }; } else { if (_arg1.keyCode == 70){ UnselectStars(); _local2 = 0; while (_local2 < mEmpires[0].mStars.length) { if (mEmpires[0].mStars[_local2].mStarType == "Fighter"){ mEmpires[0].mStars[_local2].Select(); }; _local2++; }; } else { if (_arg1.keyCode == 65){ _local2 = 0; while (_local2 < mEmpires[0].mStars.length) { mEmpires[0].mStars[_local2].Select(); _local2++; }; }; }; }; }; }; }; }; }; }; } else { if (_arg1.keyCode == 65){ _local2 = 0; while (_local2 < mEmpires[0].mStars.length) { mEmpires[0].mStars[_local2].Select(); _local2++; }; } else { if (_arg1.keyCode == 32){ UnselectStars(); } else { if ((((_arg1.keyCode >= 48)) && ((_arg1.keyCode <= 57)))){ RestoreSelectedStars(_arg1.keyCode); } else { if (_arg1.keyCode == 80){ if (mPause == true){ SoundMixer.soundTransform = new SoundTransform(1, 0); mPause = false; } else { SoundMixer.soundTransform = new SoundTransform(0, 0); mPause = true; }; } else { if (_arg1.keyCode == 78){ if (mNavalStarsAllowed){ _local2 = 0; while (_local2 < mSelectedStars.length) { mSelectedStars[_local2].SetToNaval(); _local2++; }; }; } else { if (_arg1.keyCode == 68){ if (mDefenseStarsAllowed){ _local2 = 0; while (_local2 < mSelectedStars.length) { mSelectedStars[_local2].SetToDefense(); _local2++; }; }; } else { if (_arg1.keyCode == 83){ if (mStandardStarsAllowed){ _local2 = 0; while (_local2 < mSelectedStars.length) { mSelectedStars[_local2].SetToStandard(); _local2++; }; }; } else { if (_arg1.keyCode == 69){ if (mEconomicStarsAllowed){ _local2 = 0; while (_local2 < mSelectedStars.length) { mSelectedStars[_local2].SetToEconomic(); _local2++; }; }; } else { if (_arg1.keyCode == 70){ if (mFighterStarsAllowed){ _local2 = 0; while (_local2 < mSelectedStars.length) { mSelectedStars[_local2].SetToFighter(); _local2++; }; }; } else { if (_arg1.keyCode == 82){ if (mRocketStarsAllowed){ _local2 = 0; while (_local2 < mSelectedStars.length) { mSelectedStars[_local2].SetToRocket(); _local2++; }; }; } else { if (_arg1.keyCode == 77){ if (mMineLayerStarsAllowed){ _local2 = 0; while (_local2 < mSelectedStars.length) { mSelectedStars[_local2].SetToMineLayer(); _local2++; }; }; }; }; }; }; }; }; }; }; }; }; }; }; } public function BaseWar():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); _local1 = 0; mStars[_local1] = new Star(this, _local1, 12, 17, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 50, 17, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 11, 57, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 48, 56, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 91, 21, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 87, 57, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 10, 101, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 52, 98, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 88, 96, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 124, 54, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 53, 134, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 12, 591, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 11, 549, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 49, 587, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 47, 545, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 13, 507, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 45, 506, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 85, 587, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 83, 546, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 78, 507, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 118, 545, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 43, 466, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 785, 586, (2.4 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 746, 583, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 781, 542, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 743, 545, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 779, 502, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 742, 502, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 706, 583, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 704, 543, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 703, 499, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 665, 544, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 739, 459, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 785, 16, (2.4 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 783, 57, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 743, 17, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 741, 56, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 782, 99, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 739, 98, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 701, 17, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 698, 59, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 698, 100, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 739, 139, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 655, 58, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function montel_openspace():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); _local1 = 0; mStars[_local1] = new Star(this, _local1, 26, 34, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 68, 33, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 32, 101, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 126, 75, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 121, 119, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 148, 25, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 544, 591, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 490, 548, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 548, 521, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 442, 496, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 402, 535, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 349, 580, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 442, 587, (2.4 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 511, 463, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 397, 466, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 337, 495, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 277, 551, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 614, 591, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 606, 533, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 578, 491, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 446, 543, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 2, 416, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 23, 453, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 40, 487, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 15, 518, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 44, 552, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 81, 530, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 110, 474, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 93, 396, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 48, 382, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 404, 278, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 451, 283, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 478, 222, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 419, 199, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 314, 236, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 272, 315, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 308, 355, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 350, 338, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 515, 291, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 532, 237, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 502, 163, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 396, 166, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 335, 278, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 355, 217, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 776, 45, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 752, 90, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 732, 145, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 767, 193, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 779, 131, (2.4 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 704, 228, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 720, 291, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 750, 357, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 780, 298, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 751, 429, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 777, 479, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 574, 14, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 551, 40, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 516, 67, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 476, 66, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 404, 61, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 377, 34, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 464, 34, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 507, 32, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 633, 431, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 598, 392, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 564, 364, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 160, 272, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 129, 297, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 96, 285, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 126, 262, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 153, 238, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 121, 225, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 89, 247, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 253, 162, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 220, 475, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 709, 560, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function montel_ruins():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); _local1 = 0; mStars[_local1] = new Star(this, _local1, 35, 26, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 19, 59, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 69, 23, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 106, 32, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 144, 19, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 183, 27, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 164, 60, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 124, 69, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 67, 68, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 95, 93, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 22, 114, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 67, 141, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 28, 151, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 111, 148, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 164, 127, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 229, 48, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 217, 97, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 782, 479, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 754, 497, (2.4 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 676, 515, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 639, 526, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 584, 554, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 537, 573, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 496, 585, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 573, 587, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 624, 591, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 684, 586, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 746, 567, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 766, 433, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 759, 388, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 753, 348, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 719, 392, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 710, 443, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 675, 456, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 627, 477, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 150, 478, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 198, 474, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 266, 476, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 269, 526, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 195, 547, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 120, 544, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 96, 0x0202, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 75, 484, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 56, 456, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 35, 503, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 19, 547, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 67, 590, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 112, 388, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 171, 408, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 251, 429, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 303, 443, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 341, 495, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 315, 554, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 252, 578, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 261, 33, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 312, 26, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 301, 60, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 0x0101, 104, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 604, 11, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 597, 56, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 597, 95, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 591, 140, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 639, 138, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 687, 126, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 734, 116, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 791, 125, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 501, 159, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 472, 183, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 430, 251, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 445, 295, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 503, 275, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 553, 0x0100, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 567, 207, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 551, 118, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 662, 67, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 670, 23, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 743, 44, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 680, 174, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 608, 206, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 729, 174, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 783, 36, (2.4 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 369, 31, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 13, 200, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 153, 587, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 4, 413, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 71, 404, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 121, 439, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 498, 231, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 528, 197, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 643, 305, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 610, 346, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 554, 381, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 524, 413, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 481, 464, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 445, 495, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 398, 537, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 526, 494, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 634, 387, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 784, 246, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 701, 265, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 688, 313, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 576, 315, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 480, 359, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 411, 429, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 350, 386, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 394, 328, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 337, 323, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 237, 330, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 173, 373, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 377, 258, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 430, 577, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 291, 358, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 302, 303, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 460, 410, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 412, 377, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 524, 338, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 552, 452, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 476, 526, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 751, 291, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 730, 235, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 391, 479, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function StartWorld():void{ mTickTimer.addEventListener("timer", Tick); mTickTimer.start(); mSoundScape.Play("Background", null); mSoundScape.Play("BackgroundMusic", null); if ((((mEmpires[0].mStars.length == 1)) && ((mEmpires[0].mStars[0].mStarType == "StartPoint")))){ mEmpires[0].mStars[0].Select(); } else { StartUserInputListeners(); }; } public function AddStar(_arg1:int, _arg2:int, _arg3:Number, _arg4:Empire):void{ mStars[mStars.length] = new Star(this, mStars.length, _arg1, _arg2, _arg3, _arg4); _arg4.AddStar(mStars[mStars.length]); } public function MouseMoveHandler(_arg1:MouseEvent):void{ if ((((_arg1.buttonDown == true)) && ((mBoxSelecting == true)))){ mBoxSelecting = true; mBoxSelectRect.width = (_arg1.stageX - mBoxSelectRect.x); mBoxSelectRect.height = (_arg1.stageY - mBoxSelectRect.y); mBoxSelect.graphics.clear(); mBoxSelect.graphics.lineStyle(1, 0xFFFFFF, 0.7); mBoxSelect.graphics.beginFill(0xFFFFFF, 0.07); mBoxSelect.graphics.drawRect(mBoxSelectRect.x, mBoxSelectRect.y, mBoxSelectRect.width, mBoxSelectRect.height); mBoxSelect.graphics.endFill(); }; if ((((_arg1.buttonDown == true)) && (!((mTwinSelectionStart == null))))){ if (mSelectedStars.length > 1){ UnselectStars(); mTwinSelectionStart.Select(); }; mTwinSelectLine.graphics.clear(); mTwinSelectLine.graphics.lineStyle(1, 0xFFFFFF, 0.6, true); mTwinSelectLine.graphics.moveTo(mTwinSelectionStart.x, mTwinSelectionStart.y); mTwinSelectLine.graphics.lineTo(_arg1.stageX, (((_arg1.stageY * 600) / 570) - 30)); mTwinSelectLine.visible = true; }; } public function Quit():void{ var _local1:Splash; SoundMixer.stopAll(); StopWorld(); mPlayer.visible = false; _local1 = new Splash(); stage.addChild(_local1); _local1.visible = true; visible = false; } public function UnselectStars():void{ var _local1:Star; _local1 = mSelectedStars.pop(); while (_local1 != null) { _local1.Unselect(); _local1 = mSelectedStars.pop(); }; mPlayerTargetStar = null; } public function CampaignLevel2():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[2]); mBots[1].NoBuild(); _local1 = 0; mStars[_local1] = new Star(this, _local1, 126, 91, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(2); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 627, 460, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(2); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 60, 186, 1.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(2); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 191, 181, 1.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(2); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 314, 77, 1.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(2); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 767, 387, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 392, 440, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 463, 267, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 166, 314, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 330, 201, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function CampaignLevel3():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[2]); mBots[1].NoBuild(); _local1 = 0; mStars[_local1] = new Star(this, _local1, 126, 91, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(2); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 627, 460, (2 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(2); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 60, 186, 1.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(2); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 191, 181, 1.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(2); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 314, 77, 1.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(2); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 767, 387, (0.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 392, 440, (1.1 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 463, 267, (1.1 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 166, 314, (1.1 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 330, 201, (1.1 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 800, 800, 0, mEmpires[2]); mStars[_local1].SetToStartPoint(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); mEmpires[2].SetMinEconomy((50 * Math.pow(mSizeMod, 2))); mStars[_local1].AddShips((50 * Math.pow(mSizeMod, 2))); mStars[_local1].mShipGrowthRate = 0; mDistanceMatrix = new DistanceMatrix(this); } public function CampaignLevel4():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[2]); mBots[1].NoBuild(); _local1 = 0; mStars[_local1] = new Star(this, _local1, 407, 308, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(mStars[_local1].mDefenseBoatMax); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 310, 60, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(3); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 75, 69, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(3); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 191, 93, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(3); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 81, 197, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(3); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 119, 436, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 551, 115, (1.2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 720, 321, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 635, 491, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 344, 535, (1.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 387, 134, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 285, 221, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 558, 357, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 262, 382, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function MouseDownHandler(_arg1:MouseEvent):void{ var _local2:Boolean; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:Number; var _local8:*; if (mEditting == true){ _local2 = true; _local3 = _arg1.stageX; _local4 = (((_arg1.stageY * 600) / 570) - 30); _local5 = 0; while (_local5 < mStars.length) { _local6 = Math.sqrt((Math.pow((_local3 - mStars[_local5].x), 2) + Math.pow((_local4 - mStars[_local5].y), 2))); if (_local6 < mStars[_local5].width){ _local2 = false; break; }; _local5++; }; if (_local2 == true){ _local7 = 1.6; _local8 = mStars.length; mStars[_local8] = new Star(this, _local8, _arg1.stageX, (((_arg1.stageY * 600) / 570) - 30), _local7, mEmpires[4]); mStars[_local8].mEfficiency = mStars[_local8].mEfficiencyMax; mStars[_local8].DrawTerritory(); _local8++; mDistanceMatrix = new DistanceMatrix(this); }; }; if (_arg1.shiftKey == false){ UnselectStars(); }; mBoxSelecting = true; mBoxSelectRect.x = _arg1.stageX; mBoxSelectRect.y = _arg1.stageY; mBoxSelectRect.width = 0; mBoxSelectRect.height = 0; mBoxSelect.visible = true; parent.addChild(mBoxSelect); } public function CampaignLevel1():void{ var _local1:int; var _local2:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Grey"); mStars[mStars.length] = new Star(this, mStars.length, 201, 105, 2, mEmpires[0]); mStars[mStars.length] = new Star(this, mStars.length, 319, 103, 2, mEmpires[0]); mStars[mStars.length] = new Star(this, mStars.length, 141, 201, 2, mEmpires[0]); mStars[mStars.length] = new Star(this, mStars.length, 353, 184, (1.5 * mSizeMod), mEmpires[1]); mStars[mStars.length] = new Star(this, mStars.length, 277, 226, (0.6 * mSizeMod), mEmpires[1]); mStars[mStars.length] = new Star(this, mStars.length, 430, 147, (1.1 * mSizeMod), mEmpires[1]); mStars[mStars.length] = new Star(this, mStars.length, 411, 274, (2 * mSizeMod), mEmpires[1]); mStars[mStars.length] = new Star(this, mStars.length, 505, 199, (1.8 * mSizeMod), mEmpires[1]); _local1 = mStars.length; _local2 = 0; while (_local2 < 3) { mStars[_local2].AddShips(2); mStars[_local2].AddDefenseBoats(1); mStars[_local2].mEfficiency = 1; _local2++; }; _local2 = 3; while (_local2 < _local1) { mStars[_local2].mEfficiency = 1; _local2++; }; mDistanceMatrix = new DistanceMatrix(this); } public function NextCampaignHandler(_arg1:TimerEvent):void{ var _local2:Splash; mVanishTimer.stop(); mVanishTimer.removeEventListener("timer", NextCampaignHandler); mGameOverPanel.visible = false; kongregate.stats.submit("Level", mCampaignLevel); mCampaignLevel++; if (mCampaignLevel <= mNumCampaigns){ if (LoadCampaignLevel() < mCampaignLevel){ SaveCampaignLevel(mCampaignLevel); }; GenerateMap(); StartWorld(); } else { if (mBotSpeed == 5){ kongregate.stats.submit("StarBaronExtreme", 1); } else { if (mBotSpeed == 4){ kongregate.stats.submit("StarBaronHard", 1); } else { if (mBotSpeed == 3){ kongregate.stats.submit("StarBaron", 1); } else { if (mBotSpeed == 2){ kongregate.stats.submit("StarBaronEasy", 1); } else { if (mBotSpeed == 1){ kongregate.stats.submit("StarBaronNewbie", 1); }; }; }; }; }; SaveCampaignLevel(mCampaignLevel); _local2 = new Splash(); stage.addChild(_local2); _local2.visible = true; visible = false; }; } public function CampaignLevel7():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mEmpires[1].AddAlly(mEmpires[2]); mEmpires[2].AddAlly(mEmpires[1]); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[1].NoBuild(); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[2].NoBuild(); _local1 = 0; mStars[_local1] = new Star(this, _local1, 294, 546, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 323, 422, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 384, 307, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 490, 200, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 501, 284, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 701, 526, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 580, 76, 1.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 640, 138, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 403, 90, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 293, 198, 1.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 281, 87, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 119, 205, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 208, 355, 1.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 80, 374, 1.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 133, 530, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 152, 55, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 37, 170, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 625, 502, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 688, 437, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 424, 542, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 513, 480, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 451, 381, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 601, 318, 1.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 571, 398, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 63, 60, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, -100, 1000, (2 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStartPoint(); mStars[_local1].AddShips((120 * Math.pow(mSizeMod, 2))); _local1++; mStars[_local1] = new Star(this, _local1, 900, 1000, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStartPoint(); mStars[_local1].AddShips((120 * Math.pow(mSizeMod, 2))); _local1++; mEmpires[1].SetMinEconomy((120 * Math.pow(mSizeMod, 2))); mEmpires[2].SetMinEconomy((120 * Math.pow(mSizeMod, 2))); mDistanceMatrix = new DistanceMatrix(this); } public function CampaignLevel6():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, this.mEmpires[2]); mBots[1].NoBuild(); _local1 = 0; mStars[_local1] = new Star(this, _local1, 294, 546, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 323, 422, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 384, 307, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 490, 200, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 501, 284, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 701, 526, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 580, 76, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 640, 138, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 403, 90, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 293, 198, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 281, 87, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 119, 205, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 208, 355, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 80, 374, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 133, 530, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 152, 55, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 37, 170, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 625, 502, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 688, 437, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 424, 542, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 513, 480, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 451, 381, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 601, 318, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 571, 398, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 63, 60, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips((80 / Math.pow(mSizeMod, 2))); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); mEmpires[0].SetMinEconomy((80 / Math.pow(mSizeMod, 2))); mDistanceMatrix = new DistanceMatrix(this); } public function CampaignLevel9():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mEmpires[1].AddAlly(mEmpires[2]); mEmpires[1].AddAlly(mEmpires[3]); mEmpires[2].AddAlly(mEmpires[1]); mEmpires[2].AddAlly(mEmpires[3]); mEmpires[3].AddAlly(mEmpires[1]); mEmpires[3].AddAlly(mEmpires[2]); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); _local1 = 0; mStars[_local1] = new Star(this, _local1, 57, 353, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 134, 284, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 217, 243, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 311, 199, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 434, 187, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 542, 179, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 672, 415, (2.2 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 733, 326, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 733, 453, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 601, 502, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 566, 425, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 598, 326, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 439, 302, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 318, 292, (1.1 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 236, 437, (1.1 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 125, 444, (1.1 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 220, 332, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 386, 495, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 397, 402, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 208, 554, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 419, 38, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 392, 118, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 509, 88, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 615, 35, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 573, 107, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 655, 97, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 732, 51, (2 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 712, 201, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 44, 123, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 130, 46, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 119, 120, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 58, 249, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 212, 146, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 266, 43, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 336, 105, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 128, 232, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 34, 35, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, -100, 1000, (2 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStartPoint(); mStars[_local1].AddShips((250 * Math.pow(mSizeMod, 2))); _local1++; mStars[_local1] = new Star(this, _local1, 900, 1000, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStartPoint(); mStars[_local1].AddShips((250 * Math.pow(mSizeMod, 2))); _local1++; mStars[_local1] = new Star(this, _local1, 400, -1000, (2 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStartPoint(); mStars[_local1].AddShips((250 * Math.pow(mSizeMod, 2))); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function LoadMap(){ var _local1:SharedObject; _local1 = SharedObject.getLocal("mapedit"); if (_local1.size == 0){ _local1.data.mapedit = ""; }; return (_local1.data.mapedit); } public function CampaignLevel5():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[2]); mBots[1].NoBuild(); _local1 = 0; mStars[_local1] = new Star(this, _local1, 407, 308, (2 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(mStars[_local1].mDefenseBoatMax); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 310, 60, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(3); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 75, 69, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(3); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 191, 93, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(3); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 81, 197, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(3); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 119, 436, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 551, 115, (1.2 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 720, 321, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 635, 491, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 344, 535, (1.4 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 387, 134, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 285, 221, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 558, 357, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 262, 382, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 800, 800, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStartPoint(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips((120 * Math.pow(mSizeMod, 2))); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); mEmpires[2].SetMinEconomy((120 * Math.pow(mSizeMod, 2))); mDistanceMatrix = new DistanceMatrix(this); } public function StopWorld():void{ var _local1:int; mTickTimer.removeEventListener("timer", Tick); mTickTimer.stop(); StopUserInputListeners(); while (_local1 < mStars.length) { mStars[_local1].Vanish(); _local1++; }; } public function NorthVsSouth():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mEmpires[0].AddAlly(mEmpires[1]); mEmpires[1].AddAlly(mEmpires[0]); mEmpires[2].AddAlly(mEmpires[3]); mEmpires[3].AddAlly(mEmpires[2]); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); _local1 = 0; mStars[_local1] = new Star(this, _local1, 785, 590, (2.4 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 371, 587, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 11, 596, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 777, 21, (2.4 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 403, 31, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 26, 26, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 101, 43, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 36, 101, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 350, 53, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 454, 63, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 705, 35, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 759, 90, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 640, 48, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 553, 35, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 533, 81, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 591, 126, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 698, 152, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 657, 119, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 758, 175, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 542, 176, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 461, 136, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 373, 157, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 472, 196, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 600, 197, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 720, 212, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 766, 225, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 657, 231, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 355, 177, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 272, 182, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 307, 90, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 405, 215, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 545, 237, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 299, 243, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 241, 126, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 265, 46, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 188, 48, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 156, 76, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 150, 139, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 190, 200, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 222, 239, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 101, 245, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 29, 228, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 77, 154, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 192, 258, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 418, 260, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 86, 590, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 19, 545, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 79, 516, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 158, 546, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 192, 590, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 0x0100, 586, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 279, 534, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 219, 510, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 24, 489, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 132, 480, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 231, 474, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 319, 486, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 397, 480, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 462, 494, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 483, 531, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 484, 562, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 450, 595, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 576, 600, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 534, 536, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 500, 479, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 581, 452, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 637, 468, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 633, 501, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 641, 547, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 695, 577, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 711, 505, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 678, 447, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 764, 480, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 764, 416, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 26, 429, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 105, 444, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 452, 454, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function CampaignLevel8():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mEmpires[1].AddAlly(mEmpires[2]); mEmpires[2].AddAlly(mEmpires[1]); mBots[1] = new Bot(this, 1, this.mEmpires[1]); mBots[1].NoBuild(); mBots[2] = new Bot(this, 2, this.mEmpires[2]); mBots[2].NoBuild(); _local1 = 0; mStars[_local1] = new Star(this, _local1, 57, 353, (1.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 134, 284, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 217, 243, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 311, 199, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 434, 187, (1.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 542, 179, (1.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 672, 415, (2.2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToFighter(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 733, 326, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 733, 453, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 601, 502, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 566, 425, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 598, 326, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 439, 302, (1.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 318, 292, (1.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 236, 437, (1.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 125, 444, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 220, 332, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 386, 495, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 397, 402, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 208, 554, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 419, 38, (1.1 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 392, 118, (1.1 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 509, 88, (1.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 615, 35, (1.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 573, 107, (1.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 655, 97, (1.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 732, 51, (2 * mSizeMod), mEmpires[1]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 712, 201, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 58, 249, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 212, 146, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 266, 43, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 336, 105, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 128, 232, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 34, 35, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); mStars[_local1].AddShips((140 / Math.pow(mSizeMod, 2))); _local1++; mStars[_local1] = new Star(this, _local1, 44, 123, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 130, 46, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 119, 120, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function DumpMap():String{ var _local1:String; var _local2:int; var _local3:*; _local1 = ""; _local1 = (_local1 + "<map>"); _local2 = 0; while (_local2 < mStars.length) { _local3 = mStars[_local2]; _local1 = (_local1 + "<star>"); _local1 = (_local1 + (("<id>" + _local2) + "</id>")); _local1 = (_local1 + (("<xpos>" + _local3.x) + "</xpos>")); _local1 = (_local1 + (("<ypos>" + _local3.y) + "</ypos>")); _local1 = (_local1 + (("<size>" + _local3.mSize) + "</size>")); _local1 = (_local1 + (("<empire>" + _local3.mEmpire.mId) + "</empire>")); _local1 = (_local1 + (("<type>" + _local3.mStarType) + "</type>")); _local1 = (_local1 + "<ships>0</ships>"); _local1 = (_local1 + "<boats>1</boats>"); _local1 = (_local1 + "</star>"); _local2++; }; _local1 = (_local1 + "</map>"); return (_local1); } public function Display():void{ var _local1:int; this.container.addChild(this); _local1 = 0; while (_local1 < mStars.length) { addChild(mStars[_local1]); _local1++; }; } public function DumpMapCode():String{ var _local1:String; var _local2:int; var _local3:*; _local1 = ""; _local1 = (_local1 + ("// AUTO GENERATE STARS" + "\n")); _local1 = (_local1 + ("var agStarId:int = 0;" + "\n")); _local2 = 0; while (_local2 < mStars.length) { _local3 = mStars[_local2]; _local1 = (_local1 + ("// Star" + "\n")); if (_local3.mEmpire.mId == 0){ _local1 = (_local1 + ((((((((("mStars[agStarId] = new Star(this, agStarId, " + _local3.x) + ", ") + _local3.y) + ", ") + _local3.mSize) + ", mEmpires[") + _local3.mEmpire.mId) + "]);") + "\n")); } else { _local1 = (_local1 + ((((((((("mStars[agStarId] = new Star(this, agStarId, " + _local3.x) + ", ") + _local3.y) + ", ") + _local3.mSize) + "*mSizeMod, mEmpires[") + _local3.mEmpire.mId) + "]);") + "\n")); }; _local1 = (_local1 + ((("mStars[agStarId].SetTo" + _local3.mStarType) + "();") + "\n")); _local1 = (_local1 + ("mStars[agStarId].mEfficiency = mStars[agStarId].mEfficiencyMax;" + "\n")); if (_local3.mEmpire.mName != "Grey"){ _local1 = (_local1 + ("mStars[agStarId].AddDefenseBoats(1);" + "\n")); } else { _local1 = (_local1 + ("mStars[agStarId].AddDefenseBoats(1);" + "\n")); }; _local1 = (_local1 + ("mStars[agStarId].AddFighters(mStars[agStarId].mMaxFighters);" + "\n")); _local1 = (_local1 + ("mStars[agStarId].DrawTerritory();" + "\n")); _local1 = (_local1 + ("agStarId++;" + "\n")); _local2++; }; return (_local1); } public function RestoreSelectedStars(_arg1:int):void{ var _local2:int; var _local3:int; _local2 = (_arg1 - 48); UnselectStars(); while (_local3 < mSavedSelectedStars[_local2].length) { mSelectedStars[_local3] = mSavedSelectedStars[_local2][_local3]; mSelectedStars[_local3].Select(); _local3++; }; } public function LoadMapFromServer(_arg1):void{ var _local2:XML; var _local3:XMLList; var _local4:int; var _local5:Timer; var _local6:*; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); _local2 = new XML(_arg1); _local3 = _local2.star; _local4 = 0; while (_local4 < _local3.length()) { _local6 = _local3[_local4]; mStars[_local4] = new Star(this, _local4, _local6.xpos, _local6.ypos, _local6.size, mEmpires[_local6.empire]); mStars[_local4].SetStarType(_local6.type); mStars[_local4].mEfficiency = mStars[_local6.id].mEfficiencyMax; mStars[_local4].AddDefenseBoats(_local6.boats); mStars[_local4].AddShips(_local6.ships); mStars[_local4].AddFighters(mStars[_local6.id].mMaxFighters); mStars[_local4].DrawTerritory(); if ((((_local6.boats == 0)) && ((_local6.empire == 4)))){ mStars[_local4].AddDefenseBoats(1); }; _local4++; }; mDistanceMatrix = new DistanceMatrix(this); _local4 = 0; while (_local4 < mEmpires.length) { mEmpires[_local4].UpdateStats(); _local4++; }; Display(); UnselectStars(); mPlayer = new Player(this, 0, 0); mPlayer.y = -32; mPlayer.Tick(null); addChild(mPlayer); StartWorld(); _local5 = new Timer(500); _local5.addEventListener("timer", mPlayer.Tick); _local5.start(); } public function Expand(_arg1:int, _arg2:int):void{ var iBot:int; var topleft:Star; var topright:Star; var bottomleft:Star; var bottomRight:Star; var star:Star; var mStarsLength:int; var i:int; var killBase:Timer; var killBaseHandler:*; var dm:Array; var extraStar1:Star; var extraStar2:Star; var extraStar3:Star; var extraStar4:Star; var extraStar5:Star; var extraStar6:Star; var numBots = _arg1; var numStars = _arg2; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); iBot = 1; while (iBot <= numBots) { mBots[iBot] = new Bot(this, iBot, this.mEmpires[iBot]); mBots[iBot].mAllowMineLayer = false; if (mBotSpeed >= 4){ mBots[iBot].mGangUpEnabled = true; }; iBot = (iBot + 1); }; if (numBots >= 1){ mBots[1].SetAttackThreshold(0.3); }; if (numBots >= 2){ mBots[2].SetAttackThreshold(0.1); }; if (numBots >= 3){ mBots[3].SetAttackThreshold(0.5); }; GenerateStars(new Rectangle(30, 30, 740, 510), numStars, mEmpires[4]); topleft = mStars[0]; topright = mStars[0]; bottomleft = mStars[0]; bottomRight = mStars[0]; mStarsLength = mStars.length; i = 0; while (i < mStarsLength) { star = mStars[i]; star.AddDefenseBoats(1); star.mDefenseBoatDamage = 0.75; star.mDefenseBoatGrowthRate = 0; if ((star.x + star.y) < (topleft.x + topleft.y)){ topleft = star; } else { if ((star.x - star.y) > (topright.x - topright.y)){ topright = star; } else { if ((star.x - star.y) < (bottomleft.x - bottomleft.y)){ bottomleft = star; } else { if ((star.x + star.y) > (bottomRight.x + bottomRight.y)){ bottomRight = star; }; }; }; }; i = (i + 1); }; mEmpires[4].RemoveStar(topleft); mEmpires[0].AddStar(topleft); mEmpires[0].mStars[0].SetSize(2); mEmpires[0].mStars[0].SetToStandard(true); mEmpires[0].mMinEconomy = 12; topleft.AddShips(12); topleft.SetToStandard(); if (numBots >= 1){ mEmpires[4].RemoveStar(topright); mEmpires[1].AddStar(topright); mEmpires[1].mStars[0].SetSize((2 * mSizeMod)); mEmpires[1].mStars[0].SetToStandard(true); mEmpires[1].mMinEconomy = 14; topright.AddShips(14); dm = mDistanceMatrix.mMatrix; if (mBotSpeed == 4){ mEmpires[1].mMinEconomy = 18; topright.AddShips(4); topright.SetToEconomic(); extraStar1 = mStars[dm[topright.mId][0].starId]; extraStar1.SetSize((1.5 * mSizeMod)); extraStar2 = mStars[dm[topright.mId][1].starId]; extraStar2.SetSize((1.5 * mSizeMod)); extraStar3 = mStars[dm[topright.mId][2].starId]; extraStar3.SetSize((1.5 * mSizeMod)); mEmpires[4].RemoveStar(extraStar1); mEmpires[1].AddStar(extraStar1); mEmpires[4].RemoveStar(extraStar2); mEmpires[1].AddStar(extraStar2); mEmpires[4].RemoveStar(extraStar3); mEmpires[1].AddStar(extraStar3); extraStar1.SetToNaval(); extraStar2.SetToNaval(); extraStar3.SetToNaval(); }; if (mBotSpeed == 5){ mEmpires[1].mMinEconomy = 24; topright.AddShips(10); topright.SetToEconomic(); extraStar1 = mStars[dm[topright.mId][0].starId]; extraStar1.SetSize((1.5 * mSizeMod)); extraStar2 = mStars[dm[topright.mId][1].starId]; extraStar2.SetSize((1.5 * mSizeMod)); extraStar3 = mStars[dm[topright.mId][2].starId]; extraStar3.SetSize((1.5 * mSizeMod)); extraStar4 = mStars[dm[topright.mId][3].starId]; extraStar4.SetSize((1.5 * mSizeMod)); extraStar5 = mStars[dm[topright.mId][4].starId]; extraStar5.SetSize((1.5 * mSizeMod)); extraStar6 = mStars[dm[topright.mId][5].starId]; extraStar6.SetSize((1.5 * mSizeMod)); mEmpires[4].RemoveStar(extraStar1); mEmpires[1].AddStar(extraStar1); mEmpires[4].RemoveStar(extraStar2); mEmpires[1].AddStar(extraStar2); mEmpires[4].RemoveStar(extraStar3); mEmpires[1].AddStar(extraStar3); mEmpires[4].RemoveStar(extraStar4); mEmpires[1].AddStar(extraStar4); mEmpires[4].RemoveStar(extraStar5); mEmpires[1].AddStar(extraStar5); mEmpires[4].RemoveStar(extraStar6); mEmpires[1].AddStar(extraStar6); extraStar1.SetToEconomic(); extraStar2.SetToEconomic(); extraStar3.SetToEconomic(); extraStar4.SetToNaval(); extraStar5.SetToNaval(); extraStar6.SetToNaval(); }; topright.SetToStandard(); }; if (numBots >= 2){ mEmpires[4].RemoveStar(bottomleft); mEmpires[2].AddStar(bottomleft); mEmpires[2].mStars[0].SetSize((2 * mSizeMod)); mEmpires[2].mStars[0].SetToStandard(true); mEmpires[2].mMinEconomy = 14; bottomleft.AddShips(14); bottomleft.SetToStandard(); if (mBotSpeed == 4){ mEmpires[2].mMinEconomy = 18; bottomleft.AddShips(4); bottomleft.SetToEconomic(); extraStar1 = mStars[dm[bottomleft.mId][0].starId]; extraStar1.SetSize((1.5 * mSizeMod)); extraStar2 = mStars[dm[bottomleft.mId][1].starId]; extraStar2.SetSize((1.5 * mSizeMod)); extraStar3 = mStars[dm[bottomleft.mId][2].starId]; extraStar3.SetSize((1.5 * mSizeMod)); mEmpires[4].RemoveStar(extraStar1); mEmpires[2].AddStar(extraStar1); mEmpires[4].RemoveStar(extraStar2); mEmpires[2].AddStar(extraStar2); mEmpires[4].RemoveStar(extraStar3); mEmpires[2].AddStar(extraStar3); extraStar1.SetToNaval(); extraStar2.SetToNaval(); extraStar3.SetToNaval(); }; if (mBotSpeed == 5){ mEmpires[2].mMinEconomy = 24; bottomleft.AddShips(10); bottomleft.SetToEconomic(); extraStar1 = mStars[dm[bottomleft.mId][0].starId]; extraStar1.SetSize((1.5 * mSizeMod)); extraStar2 = mStars[dm[bottomleft.mId][1].starId]; extraStar2.SetSize((1.5 * mSizeMod)); extraStar3 = mStars[dm[bottomleft.mId][2].starId]; extraStar3.SetSize((1.5 * mSizeMod)); extraStar4 = mStars[dm[bottomleft.mId][3].starId]; extraStar4.SetSize((1.5 * mSizeMod)); extraStar5 = mStars[dm[bottomleft.mId][4].starId]; extraStar5.SetSize((1.5 * mSizeMod)); extraStar6 = mStars[dm[bottomleft.mId][5].starId]; extraStar6.SetSize((1.5 * mSizeMod)); mEmpires[4].RemoveStar(extraStar1); mEmpires[2].AddStar(extraStar1); mEmpires[4].RemoveStar(extraStar2); mEmpires[2].AddStar(extraStar2); mEmpires[4].RemoveStar(extraStar3); mEmpires[2].AddStar(extraStar3); mEmpires[4].RemoveStar(extraStar4); mEmpires[2].AddStar(extraStar4); mEmpires[4].RemoveStar(extraStar5); mEmpires[2].AddStar(extraStar5); mEmpires[4].RemoveStar(extraStar6); mEmpires[2].AddStar(extraStar6); extraStar1.SetToEconomic(); extraStar2.SetToEconomic(); extraStar3.SetToEconomic(); extraStar4.SetToNaval(); extraStar5.SetToNaval(); extraStar6.SetToNaval(); }; }; if (numBots >= 3){ mEmpires[4].RemoveStar(bottomRight); mEmpires[3].AddStar(bottomRight); mEmpires[3].mStars[0].SetSize((2 * mSizeMod)); mEmpires[3].mStars[0].SetToStandard(true); mEmpires[3].mMinEconomy = 14; bottomRight.AddShips(14); bottomRight.SetToStandard(); if (mBotSpeed == 4){ mEmpires[3].mMinEconomy = 18; bottomRight.AddShips(4); bottomRight.SetToEconomic(); extraStar1 = mStars[dm[bottomRight.mId][0].starId]; extraStar1.SetSize((1.5 * mSizeMod)); extraStar2 = mStars[dm[bottomRight.mId][1].starId]; extraStar2.SetSize((1.5 * mSizeMod)); extraStar3 = mStars[dm[bottomRight.mId][2].starId]; extraStar3.SetSize((1.5 * mSizeMod)); mEmpires[4].RemoveStar(extraStar1); mEmpires[3].AddStar(extraStar1); mEmpires[4].RemoveStar(extraStar2); mEmpires[3].AddStar(extraStar2); mEmpires[4].RemoveStar(extraStar3); mEmpires[3].AddStar(extraStar3); extraStar1.SetToNaval(); extraStar2.SetToNaval(); extraStar3.SetToNaval(); }; if (mBotSpeed == 5){ mEmpires[3].mMinEconomy = 24; bottomRight.AddShips(10); bottomRight.SetToEconomic(); extraStar1 = mStars[dm[bottomRight.mId][0].starId]; extraStar1.SetSize((1.5 * mSizeMod)); extraStar2 = mStars[dm[bottomRight.mId][1].starId]; extraStar2.SetSize((1.5 * mSizeMod)); extraStar3 = mStars[dm[bottomRight.mId][2].starId]; extraStar3.SetSize((1.5 * mSizeMod)); extraStar4 = mStars[dm[bottomRight.mId][3].starId]; extraStar4.SetSize((1.5 * mSizeMod)); extraStar5 = mStars[dm[bottomRight.mId][4].starId]; extraStar5.SetSize((1.5 * mSizeMod)); extraStar6 = mStars[dm[bottomRight.mId][5].starId]; extraStar6.SetSize((1.5 * mSizeMod)); mEmpires[4].RemoveStar(extraStar1); mEmpires[3].AddStar(extraStar1); mEmpires[4].RemoveStar(extraStar2); mEmpires[3].AddStar(extraStar2); mEmpires[4].RemoveStar(extraStar3); mEmpires[3].AddStar(extraStar3); mEmpires[4].RemoveStar(extraStar4); mEmpires[3].AddStar(extraStar4); mEmpires[4].RemoveStar(extraStar5); mEmpires[3].AddStar(extraStar5); mEmpires[4].RemoveStar(extraStar6); mEmpires[3].AddStar(extraStar6); extraStar1.SetToEconomic(); extraStar2.SetToEconomic(); extraStar3.SetToEconomic(); extraStar4.SetToNaval(); extraStar5.SetToNaval(); extraStar6.SetToNaval(); }; }; killBase = new Timer(5000); killBaseHandler = function (_arg1:TimerEvent):void{ i = 0; while (i < mEmpires.length) { mEmpires[i].mMinEconomy = 0; i++; }; }; killBase.addEventListener("timer", killBaseHandler); killBase.start(); } public function SelectStarsInBox():void{ var _local1:int; if (mBoxSelectRect.width < 0){ mBoxSelectRect.x = (mBoxSelectRect.x + mBoxSelectRect.width); mBoxSelectRect.width = -(mBoxSelectRect.width); }; if (mBoxSelectRect.height < 0){ mBoxSelectRect.y = (mBoxSelectRect.y + mBoxSelectRect.height); mBoxSelectRect.height = -(mBoxSelectRect.height); }; _local1 = 0; while (_local1 < mStars.length) { if (mStars[_local1].mEmpire.mId == 0){ if (true == mBoxSelectRect.containsPoint(new Point(this.mStars[_local1].x, (((this.mStars[_local1].y * 570) / 600) + 30)))){ mStars[_local1].Select(); }; }; _local1++; }; } public function EditMap():void{ var _local1:XML; var _local2:XMLList; var _local3:int; var _local4:*; mEditting = true; mPause = true; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); _local1 = new XML(LoadMap()); _local2 = _local1.star; _local3 = 0; while (_local3 < _local2.length()) { _local4 = _local2[_local3]; mStars[_local3] = new Star(this, _local3, _local4.xpos, _local4.ypos, _local4.size, mEmpires[_local4.empire]); mStars[_local3].SetStarType(_local4.type); mStars[_local3].mEfficiency = mStars[_local4.id].mEfficiencyMax; mStars[_local3].AddDefenseBoats(_local4.boats); mStars[_local3].AddShips(_local4.ships); mStars[_local3].AddFighters(mStars[_local4.id].mMaxFighters); mStars[_local3].DrawTerritory(); _local3++; }; } public function lizard_galaxy():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); _local1 = 0; mStars[_local1] = new Star(this, _local1, 387, 46, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 375, 571, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 74, 291, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 722, 293, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 334, 100, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 306, 159, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 313, 210, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 354, 260, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 408, 277, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 90, 353, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 144, 412, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 218, 424, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 289, 405, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 365, 354, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 427, 522, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 465, 465, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 475, 325, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 417, 360, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 668, 240, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 610, 210, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 544, 212, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 488, 241, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 523, 295, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 303, 570, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 91, 210, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 452, 44, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 720, 384, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 203, 565, (2.4 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 692, 461, (2.4 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 544, 46, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 120, 127, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 498, 401, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 422, 320, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 373, 315, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 449, 278, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 330, 297, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 397, 393, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 508, 348, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 132, 241, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 152, 359, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 244, 363, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 362, 528, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 470, 517, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 433, 438, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 746, 0x0101, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 627, 252, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 577, 174, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 333, 45, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 275, 111, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 353, 171, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 149, 88, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 182, 51, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 600, 65, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 640, 82, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 669, 0x0200, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 625, 548, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 160, 541, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 118, 516, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 106, 549, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 68, 515, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 658, 565, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 623, 585, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 650, 45, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 675, 79, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 144, 38, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 185, 15, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 151, 160, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 530, 85, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 742, 476, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 233, 528, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 539, 376, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 556, 423, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 553, 459, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 541, 501, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 299, 330, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 262, 305, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 237, 276, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 229, 234, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function IslandHopper():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); _local1 = 0; mStars[_local1] = new Star(this, _local1, 12, 17, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 50, 17, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 11, 57, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 48, 56, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 91, 21, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 87, 57, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 10, 101, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 52, 98, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 88, 96, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 124, 54, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 53, 134, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 12, 591, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 11, 549, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 49, 587, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 47, 545, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 13, 507, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 45, 506, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 85, 587, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 83, 546, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 78, 507, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 118, 545, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 43, 466, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 785, 586, (2.4 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 746, 583, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 781, 542, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 743, 545, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 779, 502, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 742, 502, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 706, 583, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 704, 543, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 703, 499, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 665, 544, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 739, 459, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 785, 16, (2.4 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 783, 57, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 743, 17, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 741, 56, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 782, 99, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 739, 98, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 701, 17, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 698, 59, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 698, 100, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 739, 139, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 655, 58, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 50, 292, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 47, 259, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 18, 293, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 79, 293, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 52, 324, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 738, 291, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 764, 291, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 709, 292, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 733, 259, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 736, 320, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 399, 543, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 398, 0x0200, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 428, 541, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 402, 571, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 368, 544, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 389, 56, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 415, 57, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 358, 60, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 388, 27, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 388, 83, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 395, 291, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 391, 252, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 431, 293, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 356, 295, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 399, 331, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function LoadCampaignLevel(){ var _local1:SharedObject; _local1 = SharedObject.getLocal("campaignlevel"); if (_local1.size == 0){ _local1.data.campaignlevel = 1; }; return (_local1.data.campaignlevel); } public function UnselectStar(_arg1:Star):void{ var _local2:int; _local2 = mSelectedStars.indexOf(_arg1); if (_local2 != -1){ mSelectedStars.splice(_local2, 1); }; } public function Asteroids():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); _local1 = 0; mStars[_local1] = new Star(this, _local1, 410, 267, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 323, 312, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 323, 231, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 369, 191, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 458, 187, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 466, 244, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 461, 305, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 391, 353, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 33, 55, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 62, 127, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 24, 140, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 116, 115, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 99, 65, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 93, 25, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 138, 40, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 152, 83, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 769, 26, (2.4 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 767, 69, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 764, 121, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 729, 127, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 684, 82, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 661, 15, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 722, 30, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 633, 95, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 665, 148, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 781, 504, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 748, 536, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 673, 553, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 714, 579, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 776, 586, (2.4 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 698, 495, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 656, 483, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 723, 436, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 775, 419, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 724, 385, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 659, 421, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 27, 588, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 64, 519, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 103, 504, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 145, 484, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 190, 473, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 226, 504, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 213, 555, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 162, 567, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 84, 591, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 265, 576, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 296, 559, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 302, 488, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 275, 446, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 263, 405, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 295, 381, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 345, 398, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 387, 457, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 400, 519, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 369, 581, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 431, 480, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 456, 432, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 484, 388, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 518, 334, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 522, 267, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 515, 224, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 337, 170, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 268, 252, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 238, 339, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 182, 386, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 128, 416, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 90, 434, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 23, 465, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 365, 118, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 375, 75, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 399, 33, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 433, 22, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 430, 80, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 421, 144, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 485, 126, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 484, 74, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 485, 27, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 542, 31, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 529, 78, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 530, 125, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 538, 189, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 394, 412, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 441, 384, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 477, 340, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 487, 279, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 499, 176, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 423, 204, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 376, 157, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 399, 115, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 355, 246, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 293, 284, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 279, 336, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 347, 359, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 387, 319, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 310, 421, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 347, 464, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 351, 518, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 329, 567, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 269, 539, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 0xFF, 481, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 231, 452, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 223, 400, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 167, 425, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 79, 467, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 124, 553, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 206, 590, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 187, 523, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 458, 152, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 342, 284, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 427, 332, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 247, 373, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 315, 522, 0.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 26, 192, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 92, 163, 2, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 157, 139, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(0); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 177, 28, 1.1, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function BackToSplash():void{ StopWorld(); mVanishTimer.addEventListener("timer", BackToSplashHandler); mVanishTimer.start(); if (mPlayer){ mPlayer.visible = false; }; } public function MouseUpHandler(_arg1:MouseEvent):void{ mTwinSelectLine.visible = false; if (mBoxSelecting == true){ mBoxSelecting = false; SelectStarsInBox(); mBoxSelect.graphics.clear(); mBoxSelect.visible = false; return; }; if (mTwinSelectionStart != null){ mTwinSelectionStart.HideTwinLine(); if (mTwinSelectionStart.mTwinSlave != null){ mTwinSelectionStart.mTwinSlave.mTwinMaster = null; mTwinSelectionStart.mTwinSlave = null; }; mTwinSelectionStart = null; }; } public function NextCampaign():void{ StopWorld(); mVanishTimer.addEventListener("timer", NextCampaignHandler); mVanishTimer.start(); } public function CampaignLevel10():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mEmpires[1].AddAlly(mEmpires[2]); mEmpires[1].AddAlly(mEmpires[3]); mEmpires[2].AddAlly(mEmpires[1]); mEmpires[2].AddAlly(mEmpires[3]); mEmpires[3].AddAlly(mEmpires[1]); mEmpires[3].AddAlly(mEmpires[2]); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[1].NoBuild(); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[2].NoBuild(); mBots[3] = new Bot(this, 3, mEmpires[3]); mBots[3].NoBuild(); _local1 = 0; mStars[_local1] = new Star(this, _local1, 84, 54, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 400, 275, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToRocket(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 350, 221, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 447, 215, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 342, 328, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 453, 326, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 394, 102, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToFighter(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 203, 272, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToFighter(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 397, 460, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToFighter(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 236, 132, (1.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 248, 424, (1.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 564, 115, (1.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 623, 235, (1.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 567, 355, (1.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 571, 453, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 197, 42, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 84, 191, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 185, 225, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 185, 342, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 341, 69, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 480, 86, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 60, 354, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 120, 444, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 72, 544, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 220, 540, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 597, 566, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 734, 481, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 716, 351, (1.6 * mSizeMod), mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 0x0300, 234, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 727, 111, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 631, 35, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 139, 117, 1.6, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function CampaignLevel11():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mEmpires[1].AddAlly(mEmpires[2]); mEmpires[1].AddAlly(mEmpires[3]); mEmpires[2].AddAlly(mEmpires[1]); mEmpires[2].AddAlly(mEmpires[3]); mEmpires[3].AddAlly(mEmpires[1]); mEmpires[3].AddAlly(mEmpires[2]); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[1].NoBuild(); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[2].NoBuild(); mBots[3] = new Bot(this, 3, mEmpires[3]); mBots[3].NoBuild(); _local1 = 0; mStars[_local1] = new Star(this, _local1, 54, 266, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(3); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 288, 105, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 228, 55, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 340, 58, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToRocket(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 152, 205, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 106, 94, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 44, 53, 1.8, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 51, 161, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(3); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 178, 330, 1.8, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddShips(3); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 110, 392, 2, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(3); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 48, 510, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 178, 471, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 197, 126, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 258, 571, (1.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 298, 464, (2 * mSizeMod), mEmpires[1]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 340, 376, (2 * mSizeMod), mEmpires[1]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 365, 505, (2 * mSizeMod), mEmpires[1]); mStars[_local1].SetToFighter(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 492, 35, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 599, 38, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 709, 91, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 630, 200, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 462, 202, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 539, 136, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 695, 137, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 474, 520, (1.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 382, 576, (1.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 451, 440, (1.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 718, 531, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 590, 404, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToFighter(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 568, 522, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 657, 457, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 501, 387, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 465, 111, (1.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 707, 203, (1.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 636, 108, (1.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 522, 326, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToRocket(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 380, 312, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 662, 341, (1.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 213, 395, 1.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddShips(3); mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function CampaignLevel12():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mEmpires[1].AddAlly(mEmpires[2]); mEmpires[1].AddAlly(mEmpires[3]); mEmpires[2].AddAlly(mEmpires[1]); mEmpires[2].AddAlly(mEmpires[3]); mEmpires[3].AddAlly(mEmpires[1]); mEmpires[3].AddAlly(mEmpires[2]); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[1].NoBuild(); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[2].NoBuild(); mBots[3] = new Bot(this, 3, mEmpires[3]); mBots[3].NoBuild(); _local1 = 0; mStars[_local1] = new Star(this, _local1, 63, 253, (2.4 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 733, 0xFF, (2.4 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 387, 547, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 82, 73, (1.1 * mSizeMod), mEmpires[1]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 52, 104, (1.1 * mSizeMod), mEmpires[1]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 745, 69, (1.1 * mSizeMod), mEmpires[3]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 707, 107, (1.1 * mSizeMod), mEmpires[3]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 769, 108, (1.1 * mSizeMod), mEmpires[3]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 386, 37, 2.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 324, 75, 2.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 451, 74, 2.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 246, 120, 2.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 303, 145, 2.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 379, 167, 2.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 451, 154, 2.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 534, 110, 2.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 386, 98, 2.1, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 384, 350, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToFighter(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 332, 386, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToRocket(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 437, 391, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToRocket(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 379, 270, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 311, 279, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 446, 278, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 239, 291, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 541, 297, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 325, 563, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 38, 546, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 750, 548, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 34, 453, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 117, 484, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 137, 568, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 645, 572, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 680, 481, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 0x0303, 451, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 141, 143, (1.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 167, 188, (2 * mSizeMod), mEmpires[1]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 203, 249, (2 * mSizeMod), mEmpires[1]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 567, 262, (2 * mSizeMod), mEmpires[3]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 620, 203, (2 * mSizeMod), mEmpires[3]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 666, 159, (2 * mSizeMod), mEmpires[3]); mStars[_local1].SetToDefense(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 160, 56, (0.8 * mSizeMod), mEmpires[1]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 641, 57, 1.2, mEmpires[3]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 119, 265, (1.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToFighter(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 673, 258, (1.6 * mSizeMod), mEmpires[3]); mStars[_local1].SetToFighter(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 88, 213, (2 * mSizeMod), mEmpires[1]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 158, 318, (2 * mSizeMod), mEmpires[1]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 625, 319, (2 * mSizeMod), mEmpires[3]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 77, 311, (2 * mSizeMod), mEmpires[1]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 707, 203, (2 * mSizeMod), mEmpires[3]); mStars[_local1].SetToEconomic(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 704, 314, (2 * mSizeMod), mEmpires[3]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 213, 386, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 273, 387, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 495, 392, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 559, 393, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToNaval(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 72, 400, (0.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 732, 410, (1.1 * mSizeMod), mEmpires[2]); mStars[_local1].SetToMineLayer(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 229, 547, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 228, 464, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 320, 457, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 394, 444, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 483, 477, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 552, 484, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 524, 570, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 442, 562, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 387, 501, (2 * mSizeMod), mEmpires[2]); mStars[_local1].SetToFighter(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function GenerateMap(_arg1:int=3, _arg2:int=60):void{ var star:Star; var mStarsLength:int; var i:int; var loader:URLLoader; var campaignLevelText:*; var numBots = _arg1; var numStars = _arg2; ClearMap(); switch (mGameType){ case "LoadMapFromServer": loader = new URLLoader(); loader.addEventListener(Event.COMPLETE, onLoadMap); loader.load(new URLRequest(("http://www.alienprocess.com/getmap.php?id=" + mCampaignLevel))); mCampaignLevel = 0; return; case "EditMap": EditMap(); break; case "Skirmish": Expand(numBots, numStars); break; case "Challenge": switch (mChallengeName){ case "BaseWar": BaseWar(); break; case "IslandHopper": IslandHopper(); break; case "Asteroids": Asteroids(); break; case "Dusty": Dusty(); break; case "PrisonBreak": PrisonBreak(); break; case "NorthVsSouth": NorthVsSouth(); break; case "Layers": berman_layers(); break; case "Fracture": montel_fracture(); break; case "OpenSace": montel_openspace(); break; case "Ruins": montel_ruins(); break; case "Galaxy": lizard_galaxy(); break; }; break; case "Campaign": if (mCampaignLevel == 0){ mCampaignLevel = 1; }; if (mCampaignLevel == 1){ CampaignLevel1(); } else { if (mCampaignLevel == 2){ CampaignLevel2(); } else { if (mCampaignLevel == 3){ CampaignLevel3(); } else { if (mCampaignLevel == 4){ CampaignLevel4(); } else { if (mCampaignLevel == 5){ CampaignLevel5(); } else { if (mCampaignLevel == 6){ CampaignLevel6(); } else { if (mCampaignLevel == 7){ CampaignLevel7(); } else { if (mCampaignLevel == 8){ CampaignLevel8(); } else { if (mCampaignLevel == 9){ CampaignLevel9(); } else { if (mCampaignLevel == 10){ CampaignLevel10(); } else { if (mCampaignLevel == 11){ CampaignLevel11(); } else { if (mCampaignLevel == 12){ CampaignLevel12(); }; }; }; }; }; }; }; }; }; }; }; }; break; case "Tutorial": Tutorial(); break; }; i = 0; while (i < mEmpires.length) { mEmpires[i].UpdateStats(); i = (i + 1); }; Display(); UnselectStars(); if (mCampaignLevel > 0){ mPause = true; campaignLevelText = new CampaignLevelText(); campaignLevelText.gotoAndStop(mCampaignLevel); campaignLevelText.addEventListener(MouseEvent.MOUSE_DOWN, function (){ mPause = false; campaignLevelText.visible = false; }); addChild(campaignLevelText); }; } public function SelectStar(_arg1:Star):void{ if (mSelectedStars.indexOf(_arg1) == -1){ mSelectedStars.push(_arg1); }; } public function berman_layers():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); _local1 = 0; mStars[_local1] = new Star(this, _local1, 12, 15, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 53, 18, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 8, 57, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 51, 62, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 16, 585, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 60, 583, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 14, 537, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 59, 540, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 6, 313, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 51, 314, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 8, 268, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 51, 265, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 9, 129, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 52, 127, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 54, 174, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 10, 177, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 10, 380, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 7, 431, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 56, 383, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 53, 437, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 788, 19, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 741, 17, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 785, 60, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 743, 58, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 786, 587, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 745, 584, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 781, 541, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 740, 538, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 784, 249, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 737, 251, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 784, 297, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 738, 298, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 781, 114, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 736, 116, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 778, 158, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 735, 160, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 779, 374, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 731, 374, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 778, 432, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 733, 424, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 395, 156, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 393, 208, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 391, 258, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 392, 308, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 391, 358, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 391, 410, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 392, 463, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 392, 515, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 390, 568, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 396, 16, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 393, 64, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 392, 112, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 566, 586, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 564, 533, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 563, 481, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 563, 429, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 565, 377, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 563, 323, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 562, 271, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 561, 222, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 562, 174, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 560, 124, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 564, 79, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 562, 24, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 231, 585, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 230, 536, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 230, 491, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 230, 440, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 230, 387, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 230, 333, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 231, 281, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 231, 231, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 231, 178, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 229, 127, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 231, 80, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 230, 24, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function SelectedFleetsMove(_arg1:Star, _arg2:int, _arg3:int):void{ var _local4:int; _local4 = 0; _local4 = 0; while (_local4 < mSelectedStars.length) { mSelectedStars[_local4].MoveFleet(_arg1, _arg2, _arg3); _local4++; }; } public function Tutorial():void{ var _local1:*; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Red"); _local1 = new TutorialPopup1(this); _local1.x = 300; addChild(_local1); } public function Tick(_arg1:TimerEvent):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; if (mPause == true){ return; }; if ((Math.random() * 100) > 97){ mSoundScape.Play("Pling"); }; if ((Math.random() * 100) > 95){ mSoundScape.Play("Shard1"); }; if ((Math.random() * 100) > 95){ mSoundScape.Play("Shard2"); }; if ((Math.random() * 300) > 299){ mSoundScape.Play("BackgroundCreep"); }; if (mGameOver == false){ _local2 = 0; _local3 = 0; _local4 = 0; while (_local4 < mEmpires.length) { mEmpires[_local4].Tick(); if (_local4 != 0){ while (_local5 < mEmpires[_local4].mStars.length) { _local2++; _local5++; }; }; if (_local4 != 0){ _local3 = (_local3 + mEmpires[_local4].mFleets.length); }; _local4++; }; if ((((mEmpires[0].mStars.length == 0)) && ((mEmpires[0].mFleets.length == 0)))){ SoundMixer.stopAll(); mSoundScape.Play("YouLose"); mGameOverPanel.gotoAndStop("Lose"); mGameOverPanel.visible = true; mGameOver = true; BackToSplash(); } else { if ((((_local2 == 0)) && ((_local3 == 0)))){ SoundMixer.stopAll(); mSoundScape.Play("YouWin"); mGameOverPanel.gotoAndStop("Win"); mGameOverPanel.visible = true; if (mCampaignLevel > 0){ NextCampaign(); } else { addChild(mGameOverPanel); mGameOver = true; BackToSplash(); }; }; }; }; } public function SaveCampaignLevel(_arg1:int){ var _local2:SharedObject; _local2 = SharedObject.getLocal("campaignlevel"); _local2.data.campaignlevel = _arg1; _local2.flush(); } public function GenerateStars(_arg1:Rectangle, _arg2:int, _arg3:Empire):void{ var _local4:*; var _local5:Boolean; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:Number; _local4 = 0; while (_local4 < _arg2) { _local5 = true; _local6 = (_arg1.x + int((Math.random() * _arg1.width))); _local7 = (_arg1.y + int((Math.random() * _arg1.height))); _local8 = 0; while (_local8 < mStars.length) { _local9 = Math.sqrt((Math.pow((_local6 - mStars[_local8].x), 2) + Math.pow((_local7 - mStars[_local8].y), 2))); if (_local9 < mStars[_local8].width){ _local5 = false; break; }; _local8++; }; if (_local5 == true){ if (_local4 < (_arg2 * 0.05)){ _local10 = ((Math.random() * 1) + 1); } else { if (_local4 < (_arg2 * 0.2)){ _local10 = ((Math.random() * 0.5) + 1); } else { _local10 = ((Math.random() * 1.2) + 0.5); }; }; mStars[mStars.length] = new Star(this, mStars.length, _local6, _local7, _local10, _arg3); } else { _local4--; }; _local4++; }; mDistanceMatrix = new DistanceMatrix(this); } public function onLoadMap(_arg1:Event):void{ trace(_arg1.target.data); LoadMapFromServer(_arg1.target.data); } public function Dusty():void{ var _local1:int; mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); _local1 = 0; mStars[_local1] = new Star(this, _local1, 374, 290, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 60, 92, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 136, 85, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 45, 142, 2.4, mEmpires[0]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 51, 557, (2.4 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 753, 578, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 730, 44, (2.4 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 615, 51, (2.4 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 754, 117, (2.4 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 107, 566, (2.4 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 41, 485, (2.4 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 665, 566, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 731, 522, (2.4 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 420, 287, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 420, 343, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 364, 342, 2.4, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 396, 315, 2.4, mEmpires[2]); mStars[_local1].SetToFighter(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 697, 80, (0.6 * mSizeMod), mEmpires[1]); mStars[_local1].SetToStartPoint(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 679, 519, (0.6 * mSizeMod), mEmpires[2]); mStars[_local1].SetToStartPoint(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 104, 508, (1.1 * mSizeMod), mEmpires[3]); mStars[_local1].SetToStartPoint(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 233, 267, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 258, 418, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 352, 515, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 473, 532, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 561, 461, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 591, 326, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 552, 231, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 453, 141, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 340, 126, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 269, 177, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 583, 579, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 595, 530, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 628, 476, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 661, 429, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 704, 426, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 753, 415, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 773, 204, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 713, 204, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 666, 193, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 607, 166, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 539, 133, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 505, 81, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 494, 37, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 0xFF, 21, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 247, 60, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 230, 105, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 200, 134, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 168, 179, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 113, 208, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 61, 243, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 23, 245, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 6, 365, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 30, 390, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 61, 411, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 115, 438, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 94, 427, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 146, 458, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 188, 483, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 169, 482, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 184, 518, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 193, 552, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 190, 580, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 286, 565, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 404, 577, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 123, 314, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 359, 38, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 433, 40, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 654, 319, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 743, 303, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 507, 317, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mStars[_local1] = new Star(this, _local1, 473, 311, 1.6, mEmpires[4]); mStars[_local1].SetToStandard(); mStars[_local1].mEfficiency = mStars[_local1].mEfficiencyMax; mStars[_local1].AddDefenseBoats(1); mStars[_local1].AddFighters(mStars[_local1].mMaxFighters); mStars[_local1].DrawTerritory(); _local1++; mDistanceMatrix = new DistanceMatrix(this); } public function SaveSelectedStars(_arg1:int):void{ var _local2:int; var _local3:int; _local2 = (_arg1 - 48); mSavedSelectedStars[_local2] = new Array(); while (_local3 < mSelectedStars.length) { mSavedSelectedStars[_local2][_local3] = mSelectedStars[_local3]; _local3++; }; } public function SelectedFleetsAttack(_arg1:Star, _arg2:int, _arg3:int):void{ var _local4:int; var _local5:*; _local4 = 0; while (_local4 < mSelectedStars.length) { _local5 = mSelectedStars[_local4].Attack(_arg1, _arg2, _arg3); _local4++; }; } public function TestLevel():void{ mEmpires[0] = new Empire(this, 0, "Blue"); mEmpires[1] = new Empire(this, 1, "Green"); mEmpires[2] = new Empire(this, 2, "Red"); mEmpires[3] = new Empire(this, 3, "Yellow"); mEmpires[4] = new Empire(this, 4, "Grey"); mBots[1] = new Bot(this, 1, mEmpires[1]); mBots[2] = new Bot(this, 2, mEmpires[2]); mBots[3] = new Bot(this, 3, mEmpires[3]); mDistanceMatrix = new DistanceMatrix(this); } public function ClearMap():void{ var _local1:int; var _local2:Star; _local1 = 0; while (_local1 < mStars.length) { mStars[_local1].Vanish(); _local1++; }; do { } while (mStars.pop()); } } }//package
Section 67
//YouLose (YouLose) package { import flash.media.*; public dynamic class YouLose extends Sound { } }//package
Section 68
//YouSure (YouSure) package { import flash.display.*; public dynamic class YouSure extends MovieClip { public var mNo:SimpleButton; public var mYes:SimpleButton; } }//package
Section 69
//YouWin (YouWin) package { import flash.media.*; public dynamic class YouWin extends Sound { } }//package

Library Items

Symbol 1 Sound {YouWin}
Symbol 2 Sound {YouLose}
Symbol 3 Sound {LoseStar}
Symbol 4 Sound {Warning}
Symbol 5 Sound {TitleMusic}
Symbol 6 Sound {ShipLaunch}
Symbol 7 Sound {Shard2}
Symbol 8 Sound {Shard1}
Symbol 9 Sound {Pling}
Symbol 10 Sound {MissileLaunch}
Symbol 11 Sound {Menu3}
Symbol 12 Sound {Menu2}
Symbol 13 Sound {Menu1}
Symbol 14 Sound {ExplodeStar}
Symbol 15 Sound {ExplodeShip}
Symbol 16 Sound {ExplodeBoat}
Symbol 17 Sound {Background}
Symbol 18 Sound {BackgroundCreep}
Symbol 19 Sound {BackgroundMusic}
Symbol 20 BitmapUsed by:21
Symbol 21 GraphicUses:20Used by:30
Symbol 22 BitmapUsed by:23
Symbol 23 GraphicUses:22Used by:30
Symbol 24 BitmapUsed by:25
Symbol 25 GraphicUses:24Used by:30
Symbol 26 BitmapUsed by:27
Symbol 27 GraphicUses:26Used by:30
Symbol 28 BitmapUsed by:29
Symbol 29 GraphicUses:28Used by:30
Symbol 30 MovieClip {Star}Uses:21 23 25 27 29
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:33
Symbol 33 MovieClip {World}Uses:32
Symbol 34 BitmapUsed by:36
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:34 35Used by:68
Symbol 37 FontUsed by:38 39 276 279 282 285 289 293 296
Symbol 38 EditableTextUses:37Used by:68
Symbol 39 EditableTextUses:37Used by:68
Symbol 40 Font
Symbol 41 TextUsed by:68
Symbol 42 BitmapUsed by:43
Symbol 43 GraphicUses:42Used by:46
Symbol 44 BitmapUsed by:45
Symbol 45 GraphicUses:44Used by:46
Symbol 46 ButtonUses:43 45Used by:68
Symbol 47 BitmapUsed by:48 70
Symbol 48 GraphicUses:47Used by:49
Symbol 49 ButtonUses:48Used by:68
Symbol 50 BitmapUsed by:51 71
Symbol 51 GraphicUses:50Used by:52
Symbol 52 ButtonUses:51Used by:68
Symbol 53 BitmapUsed by:54 73
Symbol 54 GraphicUses:53Used by:55
Symbol 55 ButtonUses:54Used by:68
Symbol 56 BitmapUsed by:57 69
Symbol 57 GraphicUses:56Used by:58
Symbol 58 ButtonUses:57Used by:68
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:61
Symbol 61 ButtonUses:60Used by:68
Symbol 62 BitmapUsed by:63 105 290
Symbol 63 GraphicUses:62Used by:64
Symbol 64 ButtonUses:63Used by:68
Symbol 65 BitmapUsed by:66 98
Symbol 66 GraphicUses:65Used by:67 297
Symbol 67 ButtonUses:66Used by:68
Symbol 68 MovieClip {Player}Uses:36 38 39 41 46 49 52 55 58 61 64 67
Symbol 69 GraphicUses:56Used by:112
Symbol 70 GraphicUses:47Used by:112
Symbol 71 GraphicUses:50Used by:112
Symbol 72 GraphicUsed by:112
Symbol 73 GraphicUses:53Used by:112
Symbol 74 BitmapUsed by:75
Symbol 75 GraphicUses:74Used by:112
Symbol 76 BitmapUsed by:77
Symbol 77 GraphicUses:76Used by:112
Symbol 78 BitmapUsed by:79
Symbol 79 GraphicUses:78Used by:112
Symbol 80 BitmapUsed by:81
Symbol 81 GraphicUses:80Used by:112
Symbol 82 BitmapUsed by:83
Symbol 83 GraphicUses:82Used by:112
Symbol 84 BitmapUsed by:85
Symbol 85 GraphicUses:84Used by:112
Symbol 86 BitmapUsed by:87
Symbol 87 GraphicUses:86Used by:112
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:112
Symbol 90 BitmapUsed by:91
Symbol 91 GraphicUses:90Used by:112
Symbol 92 BitmapUsed by:93
Symbol 93 GraphicUses:92Used by:112
Symbol 94 BitmapUsed by:95
Symbol 95 GraphicUses:94Used by:112
Symbol 96 BitmapUsed by:97
Symbol 97 GraphicUses:96Used by:112
Symbol 98 GraphicUses:65Used by:112
Symbol 99 BitmapUsed by:100
Symbol 100 GraphicUses:99Used by:112
Symbol 101 BitmapUsed by:102
Symbol 102 GraphicUses:101Used by:112
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:112
Symbol 105 GraphicUses:62Used by:112
Symbol 106 BitmapUsed by:107
Symbol 107 GraphicUses:106Used by:112
Symbol 108 BitmapUsed by:109
Symbol 109 GraphicUses:108Used by:112
Symbol 110 BitmapUsed by:111
Symbol 111 GraphicUses:110Used by:112
Symbol 112 MovieClip {StarType}Uses:69 70 71 72 73 75 77 79 81 83 85 87 89 91 93 95 97 98 100 102 104 105 107 109 111
Symbol 113 GraphicUsed by:130
Symbol 114 GraphicUsed by:130
Symbol 115 GraphicUsed by:130
Symbol 116 GraphicUsed by:130
Symbol 117 GraphicUsed by:130
Symbol 118 GraphicUsed by:130
Symbol 119 GraphicUsed by:130
Symbol 120 GraphicUsed by:130
Symbol 121 GraphicUsed by:130 372 377
Symbol 122 GraphicUsed by:130 372 377
Symbol 123 GraphicUsed by:130 372 377
Symbol 124 GraphicUsed by:130 372 377
Symbol 125 GraphicUsed by:130 372 377
Symbol 126 GraphicUsed by:130 372 377
Symbol 127 GraphicUsed by:130 372 377
Symbol 128 GraphicUsed by:130 372 377
Symbol 129 GraphicUsed by:130 372
Symbol 130 MovieClip {Ship}Uses:113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
Symbol 131 GraphicUsed by:143
Symbol 132 GraphicUsed by:143
Symbol 133 GraphicUsed by:143
Symbol 134 GraphicUsed by:143
Symbol 135 GraphicUsed by:143
Symbol 136 GraphicUsed by:143
Symbol 137 GraphicUsed by:143
Symbol 138 GraphicUsed by:143
Symbol 139 GraphicUsed by:143
Symbol 140 GraphicUsed by:143
Symbol 141 GraphicUsed by:143
Symbol 142 GraphicUsed by:143
Symbol 143 MovieClip {Boat}Uses:131 132 133 134 135 136 137 138 139 140 141 142
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:144Used by:150
Symbol 146 BitmapUsed by:147
Symbol 147 GraphicUses:146Used by:150
Symbol 148 BitmapUsed by:149
Symbol 149 GraphicUses:148Used by:150
Symbol 150 MovieClip {Bonus}Uses:145 147 149
Symbol 151 GraphicUsed by:156
Symbol 152 GraphicUsed by:156
Symbol 153 GraphicUsed by:156
Symbol 154 GraphicUsed by:156
Symbol 155 GraphicUsed by:156
Symbol 156 MovieClip {StarTypeButton}Uses:151 152 153 154 155
Symbol 157 BitmapUsed by:159
Symbol 158 BitmapUsed by:159
Symbol 159 GraphicUses:157 158Used by:188
Symbol 160 BitmapUsed by:161
Symbol 161 GraphicUses:160Used by:164
Symbol 162 BitmapUsed by:163
Symbol 163 GraphicUses:162Used by:164
Symbol 164 ButtonUses:161 163Used by:188
Symbol 165 BitmapUsed by:166
Symbol 166 GraphicUses:165Used by:169
Symbol 167 BitmapUsed by:168
Symbol 168 GraphicUses:167Used by:169
Symbol 169 ButtonUses:166 168Used by:188
Symbol 170 BitmapUsed by:171
Symbol 171 GraphicUses:170Used by:174
Symbol 172 BitmapUsed by:173
Symbol 173 GraphicUses:172Used by:174
Symbol 174 ButtonUses:171 173Used by:188
Symbol 175 BitmapUsed by:177
Symbol 176 BitmapUsed by:177
Symbol 177 GraphicUses:175 176Used by:188
Symbol 178 BitmapUsed by:179
Symbol 179 GraphicUses:178Used by:182
Symbol 180 BitmapUsed by:181
Symbol 181 GraphicUses:180Used by:182
Symbol 182 ButtonUses:179 181Used by:188
Symbol 183 BitmapUsed by:184
Symbol 184 GraphicUses:183Used by:187
Symbol 185 BitmapUsed by:186
Symbol 186 GraphicUses:185Used by:187
Symbol 187 ButtonUses:184 186Used by:188
Symbol 188 MovieClip {Splash}Uses:159 164 169 174 177 182 187
Symbol 189 BitmapUsed by:190
Symbol 190 GraphicUses:189Used by:193
Symbol 191 BitmapUsed by:192
Symbol 192 GraphicUses:191Used by:193
Symbol 193 MovieClip {GameOver}Uses:190 192
Symbol 194 GraphicUsed by:199
Symbol 195 GraphicUsed by:199
Symbol 196 GraphicUsed by:199
Symbol 197 GraphicUsed by:199
Symbol 198 GraphicUsed by:199
Symbol 199 MovieClip {Cursor}Uses:194 195 196 197 198Used by:231
Symbol 200 GraphicUsed by:231
Symbol 201 FontUsed by:202 203 205 206 208 209 211 212 213 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 233 234 235 236 237 238 239 240 241 242 243 244 248 249 257 258 270 319 324 326 327 329 335 336 379 381 385 389 391 392 393 394 395 399
Symbol 202 TextUses:201Used by:231
Symbol 203 TextUses:201Used by:231
Symbol 204 GraphicUsed by:231
Symbol 205 TextUses:201Used by:231
Symbol 206 TextUses:201Used by:231
Symbol 207 GraphicUsed by:231
Symbol 208 TextUses:201Used by:231
Symbol 209 TextUses:201Used by:231
Symbol 210 GraphicUsed by:231
Symbol 211 TextUses:201Used by:231
Symbol 212 TextUses:201Used by:231
Symbol 213 TextUses:201Used by:231
Symbol 214 GraphicUsed by:231
Symbol 215 TextUses:201Used by:231
Symbol 216 TextUses:201Used by:231
Symbol 217 TextUses:201Used by:231
Symbol 218 TextUses:201Used by:231
Symbol 219 TextUses:201Used by:231
Symbol 220 TextUses:201Used by:231
Symbol 221 TextUses:201Used by:231
Symbol 222 TextUses:201Used by:231
Symbol 223 TextUses:201Used by:231
Symbol 224 TextUses:201Used by:231
Symbol 225 TextUses:201Used by:231
Symbol 226 TextUses:201Used by:231
Symbol 227 TextUses:201Used by:231
Symbol 228 TextUses:201Used by:231
Symbol 229 TextUses:201Used by:231
Symbol 230 TextUses:201Used by:231
Symbol 231 MovieClip {TutorialPopup1}Uses:200 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 199 226 227 228 229 230
Symbol 232 GraphicUsed by:245
Symbol 233 TextUses:201Used by:245
Symbol 234 TextUses:201Used by:245
Symbol 235 TextUses:201Used by:245
Symbol 236 TextUses:201Used by:245
Symbol 237 TextUses:201Used by:245
Symbol 238 TextUses:201Used by:245
Symbol 239 TextUses:201Used by:245
Symbol 240 TextUses:201Used by:245
Symbol 241 TextUses:201Used by:245
Symbol 242 TextUses:201Used by:245
Symbol 243 TextUses:201Used by:245
Symbol 244 TextUses:201Used by:245
Symbol 245 MovieClip {CampaignLevelText}Uses:232 233 234 235 236 237 238 239 240 241 242 243 244
Symbol 246 BitmapUsed by:247 313 333 378 384
Symbol 247 GraphicUses:246Used by:272
Symbol 248 TextUses:201Used by:272
Symbol 249 TextUses:201Used by:272
Symbol 250 FontUsed by:251 325 334 386 390
Symbol 251 TextUses:250Used by:272
Symbol 252 BitmapUsed by:253
Symbol 253 GraphicUses:252Used by:256
Symbol 254 BitmapUsed by:255
Symbol 255 GraphicUses:254Used by:256
Symbol 256 ButtonUses:253 255Used by:272 332 337 387 396 402
Symbol 257 TextUses:201Used by:272 387
Symbol 258 TextUses:201Used by:272 387
Symbol 259 GraphicUsed by:271
Symbol 260 BitmapUsed by:261
Symbol 261 GraphicUses:260Used by:262
Symbol 262 MovieClipUses:261Used by:271
Symbol 263 BitmapUsed by:264
Symbol 264 GraphicUses:263Used by:267
Symbol 265 BitmapUsed by:266
Symbol 266 GraphicUses:265Used by:267
Symbol 267 ButtonUses:264 266Used by:271
Symbol 268 BitmapUsed by:269
Symbol 269 GraphicUses:268Used by:271
Symbol 270 EditableTextUses:201Used by:271
Symbol 271 MovieClip {SliderControl}Uses:259 262 267 269 270Used by:272 332 337 387
Symbol 272 MovieClip {SkirmishSetup}Uses:247 248 249 251 256 257 258 271
Symbol 273 BitmapUsed by:275
Symbol 274 BitmapUsed by:275 278 281 284 287 290 294
Symbol 275 GraphicUses:273 274Used by:297
Symbol 276 TextUses:37Used by:297
Symbol 277 BitmapUsed by:278
Symbol 278 GraphicUses:277 274Used by:297
Symbol 279 TextUses:37Used by:297
Symbol 280 BitmapUsed by:281
Symbol 281 GraphicUses:280 274Used by:297
Symbol 282 TextUses:37Used by:297
Symbol 283 BitmapUsed by:284
Symbol 284 GraphicUses:283 274Used by:297
Symbol 285 TextUses:37Used by:297
Symbol 286 BitmapUsed by:287
Symbol 287 GraphicUses:286 274Used by:297
Symbol 288 FontUsed by:289
Symbol 289 TextUses:37 288Used by:297
Symbol 290 GraphicUses:62 274Used by:297
Symbol 291 FontUsed by:292 295
Symbol 292 TextUses:291Used by:297
Symbol 293 TextUses:37Used by:297
Symbol 294 GraphicUses:274Used by:297
Symbol 295 TextUses:291Used by:297
Symbol 296 TextUses:37Used by:297
Symbol 297 MovieClip {StarTypePopup}Uses:275 276 278 279 281 282 284 285 287 289 290 292 293 294 295 66 296
Symbol 298 BitmapUsed by:299
Symbol 299 GraphicUses:298Used by:312
Symbol 300 BitmapUsed by:301
Symbol 301 GraphicUses:300Used by:304
Symbol 302 BitmapUsed by:303
Symbol 303 GraphicUses:302Used by:304
Symbol 304 ButtonUses:301 303Used by:312
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:309
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:309
Symbol 309 ButtonUses:306 308Used by:312
Symbol 310 BitmapUsed by:311
Symbol 311 GraphicUses:310Used by:312
Symbol 312 MovieClip {YouSure}Uses:299 304 309 311
Symbol 313 GraphicUses:246Used by:321
Symbol 314 BitmapUsed by:315
Symbol 315 GraphicUses:314Used by:318
Symbol 316 BitmapUsed by:317
Symbol 317 GraphicUses:316Used by:318
Symbol 318 ButtonUses:315 317Used by:321 383
Symbol 319 TextUses:201Used by:320
Symbol 320 Button {btnSoundOff}Uses:319Used by:321 383
Symbol 321 MovieClip {MenuInGame}Uses:313 318 320
Symbol 322 BitmapUsed by:323 388
Symbol 323 GraphicUses:322Used by:332
Symbol 324 TextUses:201Used by:332
Symbol 325 TextUses:250Used by:332
Symbol 326 TextUses:201Used by:332
Symbol 327 TextUses:201Used by:332
Symbol 328 GraphicUsed by:331
Symbol 329 TextUses:201Used by:331
Symbol 330 GraphicUsed by:331
Symbol 331 ButtonUses:328 329 330Used by:332
Symbol 332 MovieClip {EditStarPopup}Uses:323 324 325 256 271 326 327 331
Symbol 333 GraphicUses:246Used by:337
Symbol 334 TextUses:250Used by:337
Symbol 335 TextUses:201Used by:337
Symbol 336 TextUses:201Used by:337
Symbol 337 MovieClip {CampaignSetup}Uses:333 334 256 271 335 336
Symbol 338 GraphicUsed by:339
Symbol 339 MovieClip {SelectedCircle}Uses:338
Symbol 340 BitmapUsed by:341
Symbol 341 GraphicUses:340Used by:358
Symbol 342 BitmapUsed by:343 357
Symbol 343 GraphicUses:342Used by:358
Symbol 344 BitmapUsed by:345
Symbol 345 GraphicUses:344Used by:358
Symbol 346 BitmapUsed by:347 354
Symbol 347 GraphicUses:346Used by:358
Symbol 348 BitmapUsed by:349
Symbol 349 GraphicUses:348Used by:358
Symbol 350 BitmapUsed by:351
Symbol 351 GraphicUses:350Used by:358
Symbol 352 BitmapUsed by:353 354
Symbol 353 GraphicUses:352Used by:358
Symbol 354 GraphicUses:346 352Used by:358
Symbol 355 BitmapUsed by:356 357
Symbol 356 GraphicUses:355Used by:358
Symbol 357 GraphicUses:342 355Used by:358
Symbol 358 MovieClip {CampaignMapButton}Uses:341 343 345 347 349 351 353 354 356 357Used by:361
Symbol 359 BitmapUsed by:360
Symbol 360 GraphicUses:359Used by:361
Symbol 361 MovieClip {CampaignMap}Uses:360 358
Symbol 362 GraphicUsed by:363
Symbol 363 MovieClip {BlackHole}Uses:362
Symbol 364 GraphicUsed by:372
Symbol 365 GraphicUsed by:372
Symbol 366 GraphicUsed by:372
Symbol 367 GraphicUsed by:372
Symbol 368 GraphicUsed by:372
Symbol 369 GraphicUsed by:372
Symbol 370 GraphicUsed by:372
Symbol 371 GraphicUsed by:372
Symbol 372 MovieClip {Fighter}Uses:364 365 366 367 368 369 370 371 121 122 123 124 125 126 127 128 129
Symbol 373 GraphicUsed by:377
Symbol 374 GraphicUsed by:377
Symbol 375 GraphicUsed by:377
Symbol 376 GraphicUsed by:377
Symbol 377 MovieClip {Rocket}Uses:373 374 375 376 121 122 123 124 125 126 127 128
Symbol 378 GraphicUses:246Used by:383
Symbol 379 TextUses:201Used by:380
Symbol 380 ButtonUses:379Used by:383
Symbol 381 TextUses:201Used by:382
Symbol 382 ButtonUses:381Used by:383
Symbol 383 MovieClip {MenuInEdit}Uses:378 318 380 382 320
Symbol 384 GraphicUses:246Used by:387
Symbol 385 TextUses:201Used by:387
Symbol 386 TextUses:250Used by:387
Symbol 387 MovieClip {ChallengeSetup}Uses:384 385 386 256 257 258 271
Symbol 388 GraphicUses:322Used by:396
Symbol 389 TextUses:201Used by:396
Symbol 390 TextUses:250Used by:396
Symbol 391 TextUses:201Used by:396
Symbol 392 TextUses:201Used by:396
Symbol 393 EditableTextUses:201Used by:396
Symbol 394 EditableTextUses:201Used by:396
Symbol 395 EditableTextUses:201Used by:396
Symbol 396 MovieClip {MapSubmit}Uses:388 389 390 256 391 392 393 394 395
Symbol 397 BitmapUsed by:398
Symbol 398 GraphicUses:397Used by:402
Symbol 399 EditableTextUses:201Used by:402
Symbol 400 FontUsed by:401
Symbol 401 EditableTextUses:400Used by:402
Symbol 402 MovieClip {MapSubmitting}Uses:398 399 401 256
Symbol 403 BitmapUsed by:404
Symbol 404 GraphicUses:403Used by:405
Symbol 405 Button {Andkon}Uses:404
Symbol 406 MovieClip {com.kongregate.as3.client.KongregateAPI}

Instance Names

"mShipsText"Symbol 68 MovieClip {Player} Frame 1Symbol 38 EditableText
"mEconomyText"Symbol 68 MovieClip {Player} Frame 1Symbol 39 EditableText
"mMenu"Symbol 68 MovieClip {Player} Frame 1Symbol 46 Button
"mDefense"Symbol 68 MovieClip {Player} Frame 1Symbol 49 Button
"mEconomic"Symbol 68 MovieClip {Player} Frame 1Symbol 52 Button
"mMineLayer"Symbol 68 MovieClip {Player} Frame 1Symbol 55 Button
"mNaval"Symbol 68 MovieClip {Player} Frame 1Symbol 58 Button
"mStandard"Symbol 68 MovieClip {Player} Frame 1Symbol 61 Button
"mRocket"Symbol 68 MovieClip {Player} Frame 1Symbol 64 Button
"mFighter"Symbol 68 MovieClip {Player} Frame 1Symbol 67 Button
"btnSkirmish"Symbol 188 MovieClip {Splash} Frame 1Symbol 164 Button
"btnCampaign"Symbol 188 MovieClip {Splash} Frame 1Symbol 169 Button
"btnTutorial"Symbol 188 MovieClip {Splash} Frame 1Symbol 174 Button
"btnEditMap"Symbol 188 MovieClip {Splash} Frame 1Symbol 182 Button
"btnChallenge"Symbol 188 MovieClip {Splash} Frame 1Symbol 187 Button
"x2example"Symbol 231 MovieClip {TutorialPopup1} Frame 15Symbol 199 MovieClip {Cursor}
"x3example"Symbol 231 MovieClip {TutorialPopup1} Frame 15Symbol 199 MovieClip {Cursor}
"x4example"Symbol 231 MovieClip {TutorialPopup1} Frame 15Symbol 199 MovieClip {Cursor}
"sliderBar"Symbol 271 MovieClip {SliderControl} Frame 1Symbol 262 MovieClip
"slider"Symbol 271 MovieClip {SliderControl} Frame 1Symbol 267 Button
"sliderText"Symbol 271 MovieClip {SliderControl} Frame 1Symbol 270 EditableText
"btnGo"Symbol 272 MovieClip {SkirmishSetup} Frame 1Symbol 256 Button
"mBotsControl"Symbol 272 MovieClip {SkirmishSetup} Frame 1Symbol 271 MovieClip {SliderControl}
"mStarsControl"Symbol 272 MovieClip {SkirmishSetup} Frame 1Symbol 271 MovieClip {SliderControl}
"mSpeedControl"Symbol 272 MovieClip {SkirmishSetup} Frame 1Symbol 271 MovieClip {SliderControl}
"mDifficultyControl"Symbol 272 MovieClip {SkirmishSetup} Frame 1Symbol 271 MovieClip {SliderControl}
"mNo"Symbol 312 MovieClip {YouSure} Frame 1Symbol 304 Button
"mYes"Symbol 312 MovieClip {YouSure} Frame 1Symbol 309 Button
"mQuit"Symbol 321 MovieClip {MenuInGame} Frame 1Symbol 318 Button
"mSoundToggle"Symbol 321 MovieClip {MenuInGame} Frame 1Symbol 320 Button {btnSoundOff}
"btnEditStarOk"Symbol 332 MovieClip {EditStarPopup} Frame 1Symbol 256 Button
"mEmpireControl"Symbol 332 MovieClip {EditStarPopup} Frame 1Symbol 271 MovieClip {SliderControl}
"mSizeControl"Symbol 332 MovieClip {EditStarPopup} Frame 1Symbol 271 MovieClip {SliderControl}
"mTypeControl"Symbol 332 MovieClip {EditStarPopup} Frame 1Symbol 271 MovieClip {SliderControl}
"btnEditStarDelete"Symbol 332 MovieClip {EditStarPopup} Frame 1Symbol 331 Button
"btnGo"Symbol 337 MovieClip {CampaignSetup} Frame 1Symbol 256 Button
"mSpeedControl"Symbol 337 MovieClip {CampaignSetup} Frame 1Symbol 271 MovieClip {SliderControl}
"mDifficultyControl"Symbol 337 MovieClip {CampaignSetup} Frame 1Symbol 271 MovieClip {SliderControl}
"level1"Symbol 361 MovieClip {CampaignMap} Frame 1Symbol 358 MovieClip {CampaignMapButton}
"level2"Symbol 361 MovieClip {CampaignMap} Frame 1Symbol 358 MovieClip {CampaignMapButton}
"level3"Symbol 361 MovieClip {CampaignMap} Frame 1Symbol 358 MovieClip {CampaignMapButton}
"level4"Symbol 361 MovieClip {CampaignMap} Frame 1Symbol 358 MovieClip {CampaignMapButton}
"level5"Symbol 361 MovieClip {CampaignMap} Frame 1Symbol 358 MovieClip {CampaignMapButton}
"level6"Symbol 361 MovieClip {CampaignMap} Frame 1Symbol 358 MovieClip {CampaignMapButton}
"level7"Symbol 361 MovieClip {CampaignMap} Frame 1Symbol 358 MovieClip {CampaignMapButton}
"level8"Symbol 361 MovieClip {CampaignMap} Frame 1Symbol 358 MovieClip {CampaignMapButton}
"level9"Symbol 361 MovieClip {CampaignMap} Frame 1Symbol 358 MovieClip {CampaignMapButton}
"level10"Symbol 361 MovieClip {CampaignMap} Frame 1Symbol 358 MovieClip {CampaignMapButton}
"level11"Symbol 361 MovieClip {CampaignMap} Frame 1Symbol 358 MovieClip {CampaignMapButton}
"level12"Symbol 361 MovieClip {CampaignMap} Frame 1Symbol 358 MovieClip {CampaignMapButton}
"mQuit"Symbol 383 MovieClip {MenuInEdit} Frame 1Symbol 318 Button
"mPlay"Symbol 383 MovieClip {MenuInEdit} Frame 1Symbol 380 Button
"mSave"Symbol 383 MovieClip {MenuInEdit} Frame 1Symbol 382 Button
"mSoundToggle"Symbol 383 MovieClip {MenuInEdit} Frame 1Symbol 320 Button {btnSoundOff}
"btnGo"Symbol 387 MovieClip {ChallengeSetup} Frame 1Symbol 256 Button
"mMapControl"Symbol 387 MovieClip {ChallengeSetup} Frame 1Symbol 271 MovieClip {SliderControl}
"mSpeedControl"Symbol 387 MovieClip {ChallengeSetup} Frame 1Symbol 271 MovieClip {SliderControl}
"mDifficultyControl"Symbol 387 MovieClip {ChallengeSetup} Frame 1Symbol 271 MovieClip {SliderControl}
"btnGo"Symbol 396 MovieClip {MapSubmit} Frame 1Symbol 256 Button
"mInputName"Symbol 396 MovieClip {MapSubmit} Frame 1Symbol 393 EditableText
"mInputAuthor"Symbol 396 MovieClip {MapSubmit} Frame 1Symbol 394 EditableText
"mInputDescription"Symbol 396 MovieClip {MapSubmit} Frame 1Symbol 395 EditableText
"mTitle"Symbol 402 MovieClip {MapSubmitting} Frame 1Symbol 399 EditableText
"mMapLink"Symbol 402 MovieClip {MapSubmitting} Frame 1Symbol 401 EditableText
"mMapSubmitOk"Symbol 402 MovieClip {MapSubmitting} Frame 1Symbol 256 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1199 bytes "<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns ..."

Labels

"Blue"Symbol 30 MovieClip {Star} Frame 1
"Green"Symbol 30 MovieClip {Star} Frame 2
"Red"Symbol 30 MovieClip {Star} Frame 3
"Yellow"Symbol 30 MovieClip {Star} Frame 4
"Selected"Symbol 30 MovieClip {Star} Frame 5
"Grey"Symbol 30 MovieClip {Star} Frame 6
"StartPoint"Symbol 30 MovieClip {Star} Frame 7
"BlueNaval"Symbol 112 MovieClip {StarType} Frame 1
"BlueDefense"Symbol 112 MovieClip {StarType} Frame 2
"BlueEconomic"Symbol 112 MovieClip {StarType} Frame 3
"BlueStandard"Symbol 112 MovieClip {StarType} Frame 4
"BlueMineLayer"Symbol 112 MovieClip {StarType} Frame 5
"StartPoint"Symbol 112 MovieClip {StarType} Frame 6
"GreenNaval"Symbol 112 MovieClip {StarType} Frame 7
"GreenDefense"Symbol 112 MovieClip {StarType} Frame 8
"GreenEconomic"Symbol 112 MovieClip {StarType} Frame 9
"GreenStandard"Symbol 112 MovieClip {StarType} Frame 10
"GreenMineLayer"Symbol 112 MovieClip {StarType} Frame 11
"RedNaval"Symbol 112 MovieClip {StarType} Frame 12
"RedDefense"Symbol 112 MovieClip {StarType} Frame 13
"RedEconomic"Symbol 112 MovieClip {StarType} Frame 14
"RedStandard"Symbol 112 MovieClip {StarType} Frame 15
"RedMineLayer"Symbol 112 MovieClip {StarType} Frame 16
"YellowNaval"Symbol 112 MovieClip {StarType} Frame 17
"YellowDefense"Symbol 112 MovieClip {StarType} Frame 18
"YellowEconomic"Symbol 112 MovieClip {StarType} Frame 19
"YellowStandard"Symbol 112 MovieClip {StarType} Frame 20
"YellowMineLayer"Symbol 112 MovieClip {StarType} Frame 21
"GreyStandard"Symbol 112 MovieClip {StarType} Frame 22
"BlueFighter"Symbol 112 MovieClip {StarType} Frame 23
"GreenFighter"Symbol 112 MovieClip {StarType} Frame 24
"YellowFighter"Symbol 112 MovieClip {StarType} Frame 25
"RedFighter"Symbol 112 MovieClip {StarType} Frame 26
"BlueRocket"Symbol 112 MovieClip {StarType} Frame 27
"GreenRocket"Symbol 112 MovieClip {StarType} Frame 28
"YellowRocket"Symbol 112 MovieClip {StarType} Frame 29
"RedRocket"Symbol 112 MovieClip {StarType} Frame 30
"Blue"Symbol 130 MovieClip {Ship} Frame 1
"Green"Symbol 130 MovieClip {Ship} Frame 3
"Red"Symbol 130 MovieClip {Ship} Frame 5
"Yellow"Symbol 130 MovieClip {Ship} Frame 7
"Explode"Symbol 130 MovieClip {Ship} Frame 9
"end"Symbol 130 MovieClip {Ship} Frame 19
"Blue"Symbol 143 MovieClip {Boat} Frame 1
"Green"Symbol 143 MovieClip {Boat} Frame 3
"Red"Symbol 143 MovieClip {Boat} Frame 5
"Yellow"Symbol 143 MovieClip {Boat} Frame 7
"Explode"Symbol 143 MovieClip {Boat} Frame 9
"end"Symbol 143 MovieClip {Boat} Frame 15
"x2"Symbol 150 MovieClip {Bonus} Frame 1
"x3"Symbol 150 MovieClip {Bonus} Frame 2
"x4"Symbol 150 MovieClip {Bonus} Frame 3
"Standard"Symbol 156 MovieClip {StarTypeButton} Frame 1
"Economic"Symbol 156 MovieClip {StarTypeButton} Frame 2
"Naval"Symbol 156 MovieClip {StarTypeButton} Frame 3
"Defense"Symbol 156 MovieClip {StarTypeButton} Frame 4
"MineLayer"Symbol 156 MovieClip {StarTypeButton} Frame 5
"Lose"Symbol 193 MovieClip {GameOver} Frame 1
"Win"Symbol 193 MovieClip {GameOver} Frame 2
"Move"Symbol 199 MovieClip {Cursor} Frame 1
"AttackX1"Symbol 199 MovieClip {Cursor} Frame 2
"AttackX2"Symbol 199 MovieClip {Cursor} Frame 3
"AttackX3"Symbol 199 MovieClip {Cursor} Frame 4
"AttackX4"Symbol 199 MovieClip {Cursor} Frame 5
"task1"Symbol 231 MovieClip {TutorialPopup1} Frame 10
"task2"Symbol 231 MovieClip {TutorialPopup1} Frame 14
"task3"Symbol 231 MovieClip {TutorialPopup1} Frame 15
"end"Symbol 231 MovieClip {TutorialPopup1} Frame 17
"Standard"Symbol 297 MovieClip {StarTypePopup} Frame 1
"Economic"Symbol 297 MovieClip {StarTypePopup} Frame 2
"Naval"Symbol 297 MovieClip {StarTypePopup} Frame 3
"Defense"Symbol 297 MovieClip {StarTypePopup} Frame 4
"MineLayer"Symbol 297 MovieClip {StarTypePopup} Frame 5
"Rocket"Symbol 297 MovieClip {StarTypePopup} Frame 6
"Fighter"Symbol 297 MovieClip {StarTypePopup} Frame 7
"complete"Symbol 358 MovieClip {CampaignMapButton} Frame 1
"current"Symbol 358 MovieClip {CampaignMapButton} Frame 3
"incomplete"Symbol 358 MovieClip {CampaignMapButton} Frame 5
"final_incomplete"Symbol 358 MovieClip {CampaignMapButton} Frame 7
"final_current"Symbol 358 MovieClip {CampaignMapButton} Frame 9
"final_complete"Symbol 358 MovieClip {CampaignMapButton} Frame 11
"Blue"Symbol 372 MovieClip {Fighter} Frame 1
"Green"Symbol 372 MovieClip {Fighter} Frame 3
"Red"Symbol 372 MovieClip {Fighter} Frame 5
"Yellow"Symbol 372 MovieClip {Fighter} Frame 7
"Explode"Symbol 372 MovieClip {Fighter} Frame 9
"end"Symbol 372 MovieClip {Fighter} Frame 19
"Blue"Symbol 377 MovieClip {Rocket} Frame 1
"Red"Symbol 377 MovieClip {Rocket} Frame 2
"Yellow"Symbol 377 MovieClip {Rocket} Frame 3
"Green"Symbol 377 MovieClip {Rocket} Frame 4
"Explode"Symbol 377 MovieClip {Rocket} Frame 5
"end"Symbol 377 MovieClip {Rocket} Frame 13




http://swfchan.com/9/44114/info.shtml
Created: 8/5 -2019 08:33:25 Last modified: 8/5 -2019 08:33:25 Server time: 19/04 -2024 23:16:52