Section 1
//AirportButton (GUI.IACVOBJECTS.AirportButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class AirportButton extends IacvObject {
override public function invoke():void{
container.invoke();
}
}
}//package GUI.IACVOBJECTS
Section 2
//BackCloseWindowButton (GUI.IACVOBJECTS.BackCloseWindowButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class BackCloseWindowButton extends TempIacvObject {
public function BackCloseWindowButton(){
setName("_backCloseWindowButton");
addToInputManager();
}
override public function invoke():void{
InputManager.removeTempIacvObject("_backCloseWindowButton");
GuiManager.closePrimaryGui();
}
}
}//package GUI.IACVOBJECTS
Section 3
//BackCloseWindowButtonSecondary (GUI.IACVOBJECTS.BackCloseWindowButtonSecondary)
package GUI.IACVOBJECTS {
import GUI.*;
public class BackCloseWindowButtonSecondary extends TempIacvObject {
public function BackCloseWindowButtonSecondary(){
setName("_backCloseWindowButtonSecondary");
addToInputManager();
}
override public function invoke():void{
InputManager.removeTempIacvObject("_backCloseWindowButtonSecondary");
GuiManager.closeSecondaryGui();
}
}
}//package GUI.IACVOBJECTS
Section 4
//CityButton (GUI.IACVOBJECTS.CityButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class CityButton extends IacvObject {
override public function invoke():void{
container.invoke();
}
}
}//package GUI.IACVOBJECTS
Section 5
//FinanceButton (GUI.IACVOBJECTS.FinanceButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class FinanceButton extends IacvObject {
override public function invoke():void{
GuiManager.displayFinanceWindow();
}
}
}//package GUI.IACVOBJECTS
Section 6
//FindStateButton (GUI.IACVOBJECTS.FindStateButton)
package GUI.IACVOBJECTS {
import INFORMATIONOBJECTS.*;
import GUI.*;
import flash.geom.*;
public class FindStateButton extends TempIacvObject {
private var informationObject:InformationObject;// = null
private var stateReference:Region;// = null
public function FindStateButton(){
stateReference = null;
informationObject = null;
super();
}
public function setInformationObject(_arg1:InformationObject):void{
informationObject = _arg1;
}
override public function invoke():void{
var _local1:int;
if (informationObject != null){
informationObject.getSurface().scrollSurfaceToCenter(new Point((informationObject.x + (informationObject.width / 2)), informationObject.y));
_local1 = 0;
while (_local1 < 10) {
InputManager.removeTempIacvObject(("findState" + _local1));
_local1++;
};
GuiManager.closePrimaryGui();
};
if (stateReference != null){
stateReference.getSurface().scrollSurfaceToCenter(new Point((stateReference.x + (stateReference.width / 2)), stateReference.y));
_local1 = 0;
while (_local1 < 22) {
InputManager.removeTempIacvObject(("findState" + _local1));
_local1++;
};
GuiManager.closePrimaryGui();
};
}
public function setRegion(_arg1:String):void{
stateReference = RegionManager.getRegion(_arg1);
}
}
}//package GUI.IACVOBJECTS
Section 7
//GenericButton (GUI.IACVOBJECTS.GenericButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class GenericButton extends TempIacvObject {
protected var buttonFunction:Function;// = null
public function GenericButton(){
buttonFunction = null;
super();
}
public function clearInvokeFunction():void{
buttonFunction = null;
}
override public function invoke():void{
if (buttonFunction != null){
buttonFunction();
};
}
public function setInvokeFunction(_arg1:Function):void{
buttonFunction = _arg1;
}
}
}//package GUI.IACVOBJECTS
Section 8
//GovernmentButton (GUI.IACVOBJECTS.GovernmentButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class GovernmentButton extends IacvObject {
override public function invoke():void{
GuiManager.displayNationWindow();
}
}
}//package GUI.IACVOBJECTS
Section 9
//HelpButton (GUI.IACVOBJECTS.HelpButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class HelpButton extends IacvObject {
override public function invoke():void{
GuiManager.displayTutorialWindow(new TutorialWindow());
}
}
}//package GUI.IACVOBJECTS
Section 10
//HospitalButton (GUI.IACVOBJECTS.HospitalButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class HospitalButton extends IacvObject {
override public function invoke():void{
container.invoke();
}
}
}//package GUI.IACVOBJECTS
Section 11
//InterstateButton (GUI.IACVOBJECTS.InterstateButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class InterstateButton extends IacvObject {
override public function invoke():void{
container.invoke();
}
}
}//package GUI.IACVOBJECTS
Section 12
//MediaButton (GUI.IACVOBJECTS.MediaButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class MediaButton extends IacvObject {
override public function invoke():void{
GuiManager.displayMediaWindow();
}
}
}//package GUI.IACVOBJECTS
Section 13
//MenuButton (GUI.IACVOBJECTS.MenuButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class MenuButton extends IacvObject {
override public function invoke():void{
GuiManager.displayOptionsWindow();
}
}
}//package GUI.IACVOBJECTS
Section 14
//OceanButton (GUI.IACVOBJECTS.OceanButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class OceanButton extends IacvObject {
private var surface:ScrollSurface;// = null
public function OceanButton(){
surface = null;
super();
}
override public function getSurface():ScrollSurface{
if (surface != null){
return (surface);
};
return (null);
}
override public function invoke():void{
}
public function setSurface(_arg1:ScrollSurface):void{
surface = _arg1;
}
}
}//package GUI.IACVOBJECTS
Section 15
//OperationButton (GUI.IACVOBJECTS.OperationButton)
package GUI.IACVOBJECTS {
public class OperationButton extends GenericButton {
override public function invoke():void{
if (buttonFunction != null){
buttonFunction(this.parent);
};
}
}
}//package GUI.IACVOBJECTS
Section 16
//PanicButton (GUI.IACVOBJECTS.PanicButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class PanicButton extends IacvObject {
override public function invoke():void{
GuiManager.displayPanicWindow();
}
}
}//package GUI.IACVOBJECTS
Section 17
//RegionButton (GUI.IACVOBJECTS.RegionButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class RegionButton extends IacvObject {
override public function invoke():void{
container.invoke();
}
}
}//package GUI.IACVOBJECTS
Section 18
//SeaportButton (GUI.IACVOBJECTS.SeaportButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class SeaportButton extends IacvObject {
override public function invoke():void{
container.invoke();
}
}
}//package GUI.IACVOBJECTS
Section 19
//TimeButton (GUI.IACVOBJECTS.TimeButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class TimeButton extends IacvObject {
override public function invoke():void{
GuiManager.displayPauseWindow();
}
}
}//package GUI.IACVOBJECTS
Section 20
//ZoomInButton (GUI.IACVOBJECTS.ZoomInButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class ZoomInButton extends IacvObject {
override public function invoke():void{
if (SurfaceManager.getSurface("CampaignMap").getWidth() < 2000){
SurfaceManager.getSurface("CampaignMap").enlargeSurface();
};
}
}
}//package GUI.IACVOBJECTS
Section 21
//ZoomOutButton (GUI.IACVOBJECTS.ZoomOutButton)
package GUI.IACVOBJECTS {
import GUI.*;
public class ZoomOutButton extends IacvObject {
override public function invoke():void{
if (SurfaceManager.getSurface("CampaignMap").getWidth() > 2000){
SurfaceManager.getSurface("CampaignMap").shrinkSurface();
};
}
}
}//package GUI.IACVOBJECTS
Section 22
//CampaignMap (GUI.SCROLLSURFACES.CampaignMap)
package GUI.SCROLLSURFACES {
import GUI.*;
import GUI.IACVOBJECTS.*;
public class CampaignMap extends ScrollSurface {
public var oceanButton:OceanButton;
private var zoom:Number;// = 1
private static const MAX_IN:Number = 1;
private static const MAX_OUT:Number = 0.5;
private static const KEY_FORCE:Number = 25;
public function CampaignMap(){
zoom = 1;
super();
leftBound = 0;
rightBound = 775;
topBound = 0;
bottomBound = 575;
screenWidth = 775;
screenHeight = 575;
surfWidth = 2475;
surfHeight = 1560;
oceanButton.setSurface(this);
SurfaceManager.addSurface(this, "CampaignMap");
shrinkSurface();
}
override public function run():void{
accelerateSurfaceBy(((InputManager.getKeyAi() * -(KEY_FORCE)) + (InputManager.getKeyDi() * KEY_FORCE)), ((InputManager.getKeyWi() * -(KEY_FORCE)) + (InputManager.getKeySi() * KEY_FORCE)));
if (deltaX.length > 0){
x = (x - deltaX.pop());
};
if (deltaY.length > 0){
y = (y - deltaY.pop());
};
if (xForce != 0){
if (checkLeftBound((xForce * FORCE_PERCENT))){
x = leftBound;
xForce = 0;
} else {
if (checkRightBound((xForce * FORCE_PERCENT))){
x = (rightBound - surfWidth);
xForce = 0;
} else {
x = (x - (xForce * FORCE_PERCENT));
xForce = (xForce * FORCE_DECAY);
if (Math.round(xForce) == 0){
xForce = 0;
};
};
};
};
if (yForce != 0){
if (checkTopBound((yForce * FORCE_PERCENT))){
y = topBound;
yForce = 0;
} else {
if (checkBottomBound((yForce * FORCE_PERCENT))){
y = (bottomBound - surfHeight);
yForce = 0;
} else {
y = (y - (yForce * FORCE_PERCENT));
yForce = (yForce * FORCE_DECAY);
if (Math.round(yForce) == 0){
yForce = 0;
};
};
};
};
}
}
}//package GUI.SCROLLSURFACES
Section 23
//GuiManager (GUI.GuiManager)
package GUI {
import flash.display.*;
import SOUND.*;
import MANAGERS.*;
public class GuiManager {
private static const NOTIFIERS_PER_LINE:int = 6;
private static const NOTIFIER_INF_HEIGHT:int = 23;
private static const MAX_NEWS_REPORT:int = 10;
private static const NEWS_REPORT_HEIGHT:Number = 31;
private static const NOTIFIER_VER_START:int = 550;
private static const NOTIFIER_FIN_HEIGHT:int = 16;
private static const NEWS_REPORTS_DIST:Number = 5.75;
private static const NOTIFIER_VER_SPACE:int = 0;
private static const NOTIFIER_HOR_START:int = 98;
private static const NEWS_REPORT_STARTY:Number = 3;
private static const NOTIFIER_HOR_SPACE:int = -3;
private static const NOTIFIER_FIN_HEIGHT_OFFSET:int = 7;
private static var curZoomArrow:MovieClip = null;
private static var panicBar:MovieClip;
private static var secondaryGUI:MovieClip;
private static var opInfNotifiers:Array = new Array();
private static var newsReportList:Array = new Array();
private static var newsFeedBar:MovieClip = null;
private static var opFinNotifiers:Array = new Array();
private static var currentPrimary:MovieClip = null;
private static var numOfInfNotifiers:int = 0;
private static var operationGUI:MovieClip;
private static var dayBar:MovieClip = null;
private static var primaryGUI:MovieClip;
private static var numOfFinNotifiers:int = 0;
private static var financeBar:MovieClip = null;
private static var zoomArrowDisplay:int = 0;
private static var currentSecondary:MovieClip = null;
public static function displayNationWindow():void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = new NationWindow();
primaryGUI.addChild(currentPrimary);
}
private static function enableAllIacv():void{
InputManager.enableStdIacvObject();
InputManager.enableTempIacvObject();
}
public static function updatePanicBar(_arg1:Number):void{
panicBar.panicBar.scaleX = _arg1;
}
public static function updateDayBar(_arg1:int):void{
dayBar.dayText.text = (_arg1 + "");
}
public static function displayTutorialWindow(_arg1:MovieClip):void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = _arg1;
primaryGUI.addChild(_arg1);
}
public static function run():void{
SurfaceManager.run();
zoomArrowDisplay = (zoomArrowDisplay - int(!((curZoomArrow == null))));
if ((((zoomArrowDisplay == 0)) && (!((curZoomArrow == null))))){
SurfaceManager.getSurface("CampaignMap").removeChild(curZoomArrow);
curZoomArrow = null;
};
}
public static function displayOptionsWindow():void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = new MenuWindow();
primaryGUI.addChild(currentPrimary);
}
public static function displayAirportWindow(_arg1:MovieClip):void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = _arg1;
primaryGUI.addChild(_arg1);
}
public static function displayOperationWindow(_arg1:MovieClip):void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = _arg1;
primaryGUI.addChild(_arg1);
}
public static function updateFinanceBar(_arg1:int):void{
financeBar.cashText.text = Helpers.addCommas(_arg1);
}
public static function displayCityWindow(_arg1:MovieClip):void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = _arg1;
primaryGUI.addChild(_arg1);
}
public static function removeNewsReport(_arg1:int):void{
var _local2:int;
_local2 = 0;
while (_local2 < newsReportList.length) {
if (newsReportList[_local2].getEvent().getID() == _arg1){
newsReportList[_local2].destroyReport();
newsFeedBar.reportPlane.removeChild(newsReportList[_local2]);
newsReportList.splice(_local2, 1);
break;
};
_local2++;
};
_local2 = (newsReportList.length - 1);
while (_local2 >= 0) {
newsReportList[_local2].y = (NEWS_REPORT_STARTY + (((newsReportList.length - 1) - _local2) * (NEWS_REPORT_HEIGHT + NEWS_REPORTS_DIST)));
_local2--;
};
}
public static function cleanupPrimaryGui():void{
primaryGUI.removeChild(currentPrimary);
currentPrimary = null;
enableAllIacv();
}
public static function addOpNotifier(_arg1:OpGuiNotifier, _arg2:Boolean=false):void{
var _local3:OpGuiNotifier;
var _local4:OpGuiNotifier;
var _local5:int;
SoundManager.getInstance().playSound("OperationStart");
for each (_local3 in opInfNotifiers) {
operationGUI.removeChild(_local3);
};
for each (_local4 in opFinNotifiers) {
operationGUI.removeChild(_local4);
};
_local5 = 0;
while (_local5 < opInfNotifiers.length) {
opInfNotifiers[_local5].y = (NOTIFIER_VER_START - (Math.floor((_local5 / NOTIFIERS_PER_LINE)) * (NOTIFIER_INF_HEIGHT + NOTIFIER_VER_SPACE)));
opInfNotifiers[_local5].x = (NOTIFIER_HOR_START + (Math.floor((_local5 % NOTIFIERS_PER_LINE)) * (opInfNotifiers[_local5].width + NOTIFIER_HOR_SPACE)));
operationGUI.addChild(opInfNotifiers[_local5]);
_local5++;
};
if (!_arg2){
_arg1.y = (NOTIFIER_VER_START - (Math.floor((opInfNotifiers.length / NOTIFIERS_PER_LINE)) * (NOTIFIER_INF_HEIGHT + NOTIFIER_VER_SPACE)));
_arg1.x = (NOTIFIER_HOR_START + (Math.floor((opInfNotifiers.length % NOTIFIERS_PER_LINE)) * (_arg1.width + NOTIFIER_HOR_SPACE)));
opInfNotifiers.push(_arg1);
operationGUI.addChild(_arg1);
};
_local5 = 0;
while (_local5 < opFinNotifiers.length) {
opFinNotifiers[_local5].y = ((NOTIFIER_VER_START + NOTIFIER_FIN_HEIGHT_OFFSET) - ((Math.floor((_local5 / NOTIFIERS_PER_LINE)) * (NOTIFIER_FIN_HEIGHT + NOTIFIER_VER_SPACE)) + (Math.ceil((opInfNotifiers.length / NOTIFIERS_PER_LINE)) * (NOTIFIER_INF_HEIGHT + NOTIFIER_VER_SPACE))));
opFinNotifiers[_local5].x = (NOTIFIER_HOR_START + (Math.floor((_local5 % NOTIFIERS_PER_LINE)) * (opFinNotifiers[_local5].width + NOTIFIER_HOR_SPACE)));
operationGUI.addChild(opFinNotifiers[_local5]);
_local5++;
};
if (_arg2){
_arg1.y = ((NOTIFIER_VER_START + NOTIFIER_FIN_HEIGHT_OFFSET) - ((Math.floor((opFinNotifiers.length / NOTIFIERS_PER_LINE)) * (NOTIFIER_FIN_HEIGHT + NOTIFIER_VER_SPACE)) + (Math.ceil((opInfNotifiers.length / NOTIFIERS_PER_LINE)) * (NOTIFIER_INF_HEIGHT + NOTIFIER_VER_SPACE))));
_arg1.x = (NOTIFIER_HOR_START + (Math.floor((opFinNotifiers.length % NOTIFIERS_PER_LINE)) * (_arg1.width + NOTIFIER_HOR_SPACE)));
opFinNotifiers.push(_arg1);
operationGUI.addChild(_arg1);
};
}
public static function displayConditionsWindow(_arg1:MovieClip):void{
GameManager.setGamePaused(true);
SoundManager.getInstance().playSound("OpenWindow");
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = _arg1;
primaryGUI.addChild(_arg1);
}
public static function displayReportWindow(_arg1:MovieClip):void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = _arg1;
primaryGUI.addChild(_arg1);
}
public static function displayBorderWindow(_arg1:MovieClip):void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = _arg1;
primaryGUI.addChild(_arg1);
}
public static function remInfOp(_arg1:int):void{
var _local2:int;
var _local3:OpGuiNotifier;
var _local4:OpGuiNotifier;
_local2 = 0;
while (_local2 < opInfNotifiers.length) {
if (opInfNotifiers[_local2].getOpId() == _arg1){
SoundManager.getInstance().playSound("OperationEnd");
opInfNotifiers[_local2].removeButtonListener();
operationGUI.removeChild(opInfNotifiers[_local2]);
opInfNotifiers.splice(_local2, 1);
break;
};
_local2++;
};
for each (_local3 in opInfNotifiers) {
operationGUI.removeChild(_local3);
};
for each (_local4 in opFinNotifiers) {
operationGUI.removeChild(_local4);
};
_local2 = 0;
while (_local2 < opInfNotifiers.length) {
opInfNotifiers[_local2].y = (NOTIFIER_VER_START - (Math.floor((_local2 / NOTIFIERS_PER_LINE)) * (NOTIFIER_INF_HEIGHT + NOTIFIER_VER_SPACE)));
opInfNotifiers[_local2].x = (NOTIFIER_HOR_START + (Math.floor((_local2 % NOTIFIERS_PER_LINE)) * (opInfNotifiers[_local2].width + NOTIFIER_HOR_SPACE)));
operationGUI.addChild(opInfNotifiers[_local2]);
_local2++;
};
_local2 = 0;
while (_local2 < opFinNotifiers.length) {
opFinNotifiers[_local2].y = ((NOTIFIER_VER_START + NOTIFIER_FIN_HEIGHT_OFFSET) - ((Math.floor((_local2 / NOTIFIERS_PER_LINE)) * (NOTIFIER_FIN_HEIGHT + NOTIFIER_VER_SPACE)) + (Math.ceil((opInfNotifiers.length / NOTIFIERS_PER_LINE)) * (NOTIFIER_INF_HEIGHT + NOTIFIER_VER_SPACE))));
opFinNotifiers[_local2].x = (NOTIFIER_HOR_START + (Math.floor((_local2 % NOTIFIERS_PER_LINE)) * (opFinNotifiers[_local2].width + NOTIFIER_HOR_SPACE)));
operationGUI.addChild(opFinNotifiers[_local2]);
_local2++;
};
}
public static function displayStateWindow(_arg1:MovieClip):void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = _arg1;
primaryGUI.addChild(_arg1);
}
public static function displayHospitalWindow(_arg1:MovieClip):void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = _arg1;
primaryGUI.addChild(_arg1);
}
public static function displaySeaportWindow(_arg1:MovieClip):void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = _arg1;
primaryGUI.addChild(_arg1);
}
public static function closeSecondaryGui():void{
SoundManager.getInstance().playSound("CloseWindow");
currentSecondary.gotoAndPlay("closeWindow");
if (currentPrimary == null){
GameManager.setGamePaused(false);
};
}
public static function displayPanicWindow():void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = new PanicWindow();
primaryGUI.addChild(currentPrimary);
}
public static function displayFinanceWindow():void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = new FinanceWindow();
primaryGUI.addChild(currentPrimary);
}
private static function disableAllIacv():void{
InputManager.disableStdIacvObject();
InputManager.disableTempIacvObject();
}
public static function reset():void{
var _local1:NewsReportNotifier;
var _local2:OpGuiNotifier;
var _local3:OpGuiNotifier;
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
if (currentPrimary == null){
GameManager.setGamePaused(false);
};
for each (_local1 in newsReportList) {
newsFeedBar.reportPlane.removeChild(_local1);
};
for each (_local2 in opInfNotifiers) {
operationGUI.removeChild(_local2);
};
for each (_local3 in opFinNotifiers) {
operationGUI.removeChild(_local3);
};
panicBar = null;
primaryGUI = null;
secondaryGUI = null;
operationGUI = null;
financeBar = null;
dayBar = null;
newsFeedBar = null;
newsReportList = new Array();
currentPrimary = null;
currentSecondary = null;
opInfNotifiers = new Array();
opFinNotifiers = new Array();
numOfInfNotifiers = 0;
numOfFinNotifiers = 0;
}
public static function displayMediaWindow():void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = new MediaWindow();
primaryGUI.addChild(currentPrimary);
}
public static function displayZoomArrow(_arg1:Number, _arg2:Number):void{
if (curZoomArrow != null){
SurfaceManager.getSurface("CampaignMap").removeChild(curZoomArrow);
};
curZoomArrow = new ZoomArrow();
curZoomArrow.x = _arg1;
curZoomArrow.y = _arg2;
curZoomArrow.mouseEnabled = false;
curZoomArrow.mouseChildren = false;
zoomArrowDisplay = 90;
SurfaceManager.getSurface("CampaignMap").addChild(curZoomArrow);
}
public static function updateClock(_arg1:Number):void{
dayBar.timeButton.dateClock.gotoAndStop((Math.ceil((_arg1 * 200)) + int((_arg1 < 1))));
}
public static function displayOperationWindowS(_arg1:MovieClip):void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentSecondary != null){
secondaryGUI.removeChild(currentSecondary);
};
currentSecondary = _arg1;
secondaryGUI.addChild(currentSecondary);
}
public static function displayInterstateWindow(_arg1:MovieClip):void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = _arg1;
primaryGUI.addChild(_arg1);
}
public static function remFinOp(_arg1:int):void{
var _local2:int;
var _local3:OpGuiNotifier;
var _local4:OpGuiNotifier;
_local2 = 0;
while (_local2 < opFinNotifiers.length) {
if (opFinNotifiers[_local2].getOpId() == _arg1){
SoundManager.getInstance().playSound("OperationEnd");
opFinNotifiers[_local2].removeButtonListener();
operationGUI.removeChild(opFinNotifiers[_local2]);
opFinNotifiers.splice(_local2, 1);
break;
};
_local2++;
};
for each (_local3 in opInfNotifiers) {
operationGUI.removeChild(_local3);
};
for each (_local4 in opFinNotifiers) {
operationGUI.removeChild(_local4);
};
_local2 = 0;
while (_local2 < opInfNotifiers.length) {
opInfNotifiers[_local2].y = (NOTIFIER_VER_START - (Math.floor((_local2 / NOTIFIERS_PER_LINE)) * (NOTIFIER_INF_HEIGHT + NOTIFIER_VER_SPACE)));
opInfNotifiers[_local2].x = (NOTIFIER_HOR_START + (Math.floor((_local2 % NOTIFIERS_PER_LINE)) * (opInfNotifiers[_local2].width + NOTIFIER_HOR_SPACE)));
operationGUI.addChild(opInfNotifiers[_local2]);
_local2++;
};
_local2 = 0;
while (_local2 < opFinNotifiers.length) {
opFinNotifiers[_local2].y = ((NOTIFIER_VER_START + NOTIFIER_FIN_HEIGHT_OFFSET) - ((Math.floor((_local2 / NOTIFIERS_PER_LINE)) * (NOTIFIER_FIN_HEIGHT + NOTIFIER_VER_SPACE)) + (Math.ceil((opInfNotifiers.length / NOTIFIERS_PER_LINE)) * (NOTIFIER_INF_HEIGHT + NOTIFIER_VER_SPACE))));
opFinNotifiers[_local2].x = (NOTIFIER_HOR_START + (Math.floor((_local2 % NOTIFIERS_PER_LINE)) * (opFinNotifiers[_local2].width + NOTIFIER_HOR_SPACE)));
operationGUI.addChild(opFinNotifiers[_local2]);
_local2++;
};
}
public static function displayPauseWindow():void{
SoundManager.getInstance().playSound("OpenWindow");
GameManager.setGamePaused(true);
disableAllIacv();
if (currentPrimary != null){
primaryGUI.removeChild(currentPrimary);
};
currentPrimary = new PauseWindow();
primaryGUI.addChild(currentPrimary);
}
public static function addNewsReport(_arg1:NewsReportNotifier):Boolean{
var _local2:Boolean;
var _local3:NewsReportNotifier;
_local2 = false;
for each (_local3 in newsReportList) {
_local3.y = (_local3.y + (NEWS_REPORT_HEIGHT + NEWS_REPORTS_DIST));
};
if (newsReportList.length >= MAX_NEWS_REPORT){
newsReportList[0].destroyReport();
newsFeedBar.reportPlane.removeChild(newsReportList[0]);
newsReportList.splice(0, 1);
_local2 = true;
};
_arg1.x = 0;
_arg1.y = NEWS_REPORT_STARTY;
newsReportList.push(_arg1);
newsFeedBar.reportPlane.addChild(_arg1);
return (_local2);
}
public static function closePrimaryGui():void{
currentPrimary.gotoAndPlay("closeWindow");
GameManager.setGamePaused(false);
SoundManager.getInstance().playSound("CloseWindow");
}
public static function returnToTutorials():void{
var _local1:int;
_local1 = 0;
while (_local1 < 20) {
InputManager.removeTempIacvObject("_stopTut");
InputManager.removeTempIacvObject("_prevTutScreen");
InputManager.removeTempIacvObject("_nextTutScreen");
_local1++;
};
InputManager.removeTempIacvObject("_gameMapTutButton");
InputManager.removeTempIacvObject("_panicMediaTutButton");
InputManager.removeTempIacvObject("_nationOpTutButton");
GameManager.setGamePaused(false);
SoundManager.getInstance().playSound("CloseWindow");
primaryGUI.removeChild(currentPrimary);
currentPrimary = null;
enableAllIacv();
displayTutorialWindow(new TutorialWindow());
}
public static function cleanupSecondaryGui():void{
secondaryGUI.removeChild(currentSecondary);
currentSecondary = null;
InputManager.enableTempIacvObject();
}
public static function setup(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip, _arg4:MovieClip, _arg5:MovieClip, _arg6:MovieClip, _arg7:MovieClip):void{
panicBar = _arg1;
panicBar.panicBar.scaleX = 0;
newsFeedBar = _arg2;
operationGUI = _arg3;
primaryGUI = _arg4;
secondaryGUI = _arg5;
financeBar = _arg6;
financeBar.cashText.text = "";
dayBar = _arg7;
dayBar.dayText.text = "1";
}
}
}//package GUI
Section 24
//Helpers (GUI.Helpers)
package GUI {
public class Helpers {
public static function makeIntSafe2(_arg1:int, _arg2:int):int{
return ((((int((((_arg1 == Infinity)) || ((_arg1 == -(Infinity))))) * 0) + (int(((((!((_arg1 == Infinity))) && (!((_arg1 == -(Infinity)))))) && ((_arg1 >= _arg2)))) * _arg1)) + (int(((((!((_arg1 == Infinity))) && (!((_arg1 == -(Infinity)))))) && ((_arg1 < _arg2)))) * _arg2)));
}
public static function makeIntSafe3(_arg1:int):int{
return (((int((((_arg1 == Infinity)) || ((_arg1 == -(Infinity))))) * 0) + (int(((!((_arg1 == Infinity))) && (!((_arg1 == -(Infinity)))))) * _arg1)));
}
public static function roundTo(_arg1:Number, _arg2:Number, _arg3:int, _arg4:Number):String{
var _local5:int;
var _local6:String;
var _local7:String;
_local5 = Math.round((((_arg1 / _arg2) * Math.pow(10, _arg3)) + (Math.pow(10, _arg3) * _arg4)));
_local6 = _local5.toString();
if (_local6.length <= _arg3){
return (("0." + _local6));
};
_local7 = new String();
_local7 = _local6.slice(0, (_local6.length - _arg3));
_local7 = (_local7 + ("." + _local6.slice((_local6.length - _arg3))));
return (_local7);
}
public static function calcPythagTheorem(_arg1:Number, _arg2:Number):Number{
return (Math.sqrt(((_arg1 * _arg1) + (_arg2 * _arg2))));
}
public static function makeIntSafe(_arg1:int):int{
return (((int((((((_arg1 < 0)) || ((_arg1 == Infinity)))) || ((_arg1 == -(Infinity))))) * 0) + (int((((((_arg1 >= 0)) && (!((_arg1 == Infinity))))) && (!((_arg1 == -(Infinity)))))) * _arg1)));
}
public static function addCommas(_arg1:int):String{
var _local2:Boolean;
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:int;
_local2 = (_arg1 < 0);
_arg1 = Math.abs(_arg1);
_local3 = _arg1.toString();
_local4 = new String();
_local5 = (_local3.length % 3);
if (_local2){
_local4 = (_local4 + "- ");
};
_local6 = 0;
while ((((_local6 < _local5)) && ((_local6 < _local3.length)))) {
_local4 = (_local4 + _local3.charAt(_local6));
_local6++;
};
if ((((_local3.length > _local5)) && (!((_local5 == 0))))){
_local4 = (_local4 + ",");
};
_local7 = _local5;
while (_local7 < _local3.length) {
if ((((((_local7 - _local5) % 3) == 0)) && (!((_local7 == _local5))))){
_local4 = (_local4 + ",");
};
_local4 = (_local4 + _local3.charAt(_local7));
_local7++;
};
return (_local4);
}
}
}//package GUI
Section 25
//IacvObject (GUI.IacvObject)
package GUI {
import INFORMATIONOBJECTS.*;
import flash.display.*;
public class IacvObject extends SimpleButton {
protected var container:InformationObject;// = null
public function IacvObject(_arg1:Boolean=true){
container = null;
super();
if (_arg1){
InputManager.addStdIacvObject(this);
};
}
public function getSurface():ScrollSurface{
if (container != null){
return (container.getSurface());
};
return (null);
}
public function getContainer():InformationObject{
return (container);
}
public function setContainer(_arg1:InformationObject):void{
container = _arg1;
}
public function invoke():void{
}
}
}//package GUI
Section 26
//InputManager (GUI.InputManager)
package GUI {
import SOUND.*;
import flash.events.*;
import flash.geom.*;
import MANAGERS.*;
import flash.utils.*;
public class InputManager {
private static const KEY_CODE_S:int = 40;
private static const KEY_CODE_W:int = 38;
private static const DRAG_SPACE_THRESH:Number = 7;
private static const DRAG_TIME_THRESH:int = 1000;
private static const KEY_CODE_A:int = 37;
private static const KEY_CODE_D:int = 39;
private static var iacvObjStd:Array = new Array();
private static var aDown:Boolean = false;
private static var dDown:Boolean = false;
private static var topLevel:EngineCore;
private static var sDown:Boolean = false;
private static var wDown:Boolean = false;
private static var iacvObjTempNames:Array = new Array();
private static var curSurface:ScrollSurface = null;
private static var lastMoveLocation:Point = new Point(0, 0);
private static var iacvObjTemp:Array = new Array();
private static var lastClickLocation:Point = new Point(0, 0);
private static var mouseIsDown:Boolean = false;
private static var lastClickTime:int;
public static function enableTempIacvObject():void{
var _local1:IacvObject;
for each (_local1 in iacvObjTemp) {
_local1.enabled = true;
_local1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownManager);
_local1.addEventListener(MouseEvent.MOUSE_UP, mouseUpManager);
_local1.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveManager);
};
}
public static function removeStdIacvObject():void{
var _local1:IacvObject;
for each (_local1 in iacvObjStd) {
_local1.enabled = false;
_local1.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownManager);
_local1.removeEventListener(MouseEvent.MOUSE_UP, mouseUpManager);
_local1.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveManager);
};
iacvObjStd = new Array();
}
public static function addStdIacvObject(_arg1:IacvObject):void{
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownManager);
_arg1.addEventListener(MouseEvent.MOUSE_UP, mouseUpManager);
_arg1.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveManager);
iacvObjStd.push(_arg1);
}
public static function getKeyDi():int{
return (int(dDown));
}
public static function addTempIacvObject(_arg1:IacvObject, _arg2:String):void{
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownManager);
_arg1.addEventListener(MouseEvent.MOUSE_UP, mouseUpManager);
_arg1.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveManager);
iacvObjTemp.push(_arg1);
iacvObjTempNames.push(_arg2);
}
public static function disableStdIacvObject():void{
var _local1:IacvObject;
for each (_local1 in iacvObjStd) {
_local1.enabled = false;
_local1.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownManager);
_local1.removeEventListener(MouseEvent.MOUSE_UP, mouseUpManager);
_local1.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveManager);
};
}
public static function disableTempIacvObject():void{
var _local1:IacvObject;
for each (_local1 in iacvObjTemp) {
_local1.enabled = false;
_local1.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownManager);
_local1.removeEventListener(MouseEvent.MOUSE_UP, mouseUpManager);
_local1.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveManager);
};
}
public static function enableStdIacvObject():void{
var _local1:IacvObject;
for each (_local1 in iacvObjStd) {
_local1.enabled = true;
_local1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownManager);
_local1.addEventListener(MouseEvent.MOUSE_UP, mouseUpManager);
_local1.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveManager);
};
}
public static function getKeyAi():int{
return (int(aDown));
}
public static function traceTempInformation():void{
var _local1:int;
_local1 = 0;
while (_local1 < iacvObjTempNames.length) {
_local1++;
};
}
private static function mouseMoveManager(_arg1:MouseEvent):void{
if (((mouseIsDown) && (!((curSurface == null))))){
curSurface.accelerateSurfaceBy((lastMoveLocation.x - EngineCore.getEngineCore().mouseX), (lastMoveLocation.y - EngineCore.getEngineCore().mouseY));
lastMoveLocation = new Point(EngineCore.getEngineCore().mouseX, EngineCore.getEngineCore().mouseY);
};
}
public static function getKeyA():Boolean{
return (aDown);
}
public static function getKeyD():Boolean{
return (dDown);
}
private static function determineInput(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
_local2 = EngineCore.getEngineCore().mouseX;
_local3 = EngineCore.getEngineCore().mouseY;
if ((((Helpers.calcPythagTheorem((lastClickLocation.x - _local2), (lastClickLocation.y - _local3)) <= DRAG_SPACE_THRESH)) && (((getTimer() - lastClickTime) <= DRAG_TIME_THRESH)))){
SoundManager.getInstance().playSound("MouseClick");
_arg1.target.invoke();
};
}
public static function removeTempIacvObject(_arg1:String):void{
var _local2:int;
_local2 = 0;
while (_local2 < iacvObjTempNames.length) {
if (iacvObjTempNames[_local2] == _arg1){
iacvObjTemp[_local2].removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownManager);
iacvObjTemp[_local2].removeEventListener(MouseEvent.MOUSE_UP, mouseUpManager);
iacvObjTemp[_local2].removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveManager);
iacvObjTemp.splice(_local2, 1);
iacvObjTempNames.splice(_local2, 1);
break;
};
_local2++;
};
}
public static function getKeyS():Boolean{
return (sDown);
}
public static function clearTempIacvObject():void{
var _local1:IacvObject;
for each (_local1 in iacvObjTemp) {
_local1.enabled = false;
_local1.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownManager);
_local1.removeEventListener(MouseEvent.MOUSE_UP, mouseUpManager);
_local1.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveManager);
};
iacvObjTemp = new Array();
iacvObjTempNames = new Array();
}
public static function reset():void{
topLevel.stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyboardManager);
topLevel.stage.removeEventListener(KeyboardEvent.KEY_UP, keyboardManager);
topLevel.stage.removeEventListener(Event.MOUSE_LEAVE, gameFocusManager);
clearTempIacvObject();
removeStdIacvObject();
topLevel = null;
wDown = false;
aDown = false;
sDown = false;
dDown = false;
iacvObjStd = new Array();
iacvObjTemp = new Array();
iacvObjTempNames = new Array();
mouseIsDown = false;
curSurface = null;
lastClickLocation = new Point(0, 0);
lastMoveLocation = new Point(0, 0);
lastClickTime = 0;
}
public static function getKeyW():Boolean{
return (wDown);
}
private static function gameFocusManager(_arg1:Event):void{
mouseIsDown = false;
curSurface = null;
}
public static function disableTempIacvObjectByName(_arg1:String):void{
var _local2:int;
_local2 = 0;
while (_local2 < iacvObjTempNames.length) {
if (iacvObjTempNames[_local2] == _arg1){
iacvObjTemp[_local2].enabled = false;
iacvObjTemp[_local2].removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownManager);
iacvObjTemp[_local2].removeEventListener(MouseEvent.MOUSE_UP, mouseUpManager);
iacvObjTemp[_local2].removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveManager);
break;
};
_local2++;
};
}
public static function getKeyWi():int{
return (int(wDown));
}
public static function getKeySi():int{
return (int(sDown));
}
private static function keyboardManager(_arg1:KeyboardEvent):void{
if (((!(GameManager.getGameLocked())) && (!(GameManager.getGamePaused())))){
if (_arg1.type == KeyboardEvent.KEY_DOWN){
switch (_arg1.keyCode){
case KEY_CODE_W:
wDown = true;
break;
case KEY_CODE_A:
aDown = true;
break;
case KEY_CODE_S:
sDown = true;
break;
case KEY_CODE_D:
dDown = true;
break;
};
} else {
if (_arg1.type == KeyboardEvent.KEY_UP){
switch (_arg1.keyCode){
case KEY_CODE_W:
wDown = false;
break;
case KEY_CODE_A:
aDown = false;
break;
case KEY_CODE_S:
sDown = false;
break;
case KEY_CODE_D:
dDown = false;
break;
};
};
};
};
}
private static function mouseUpManager(_arg1:MouseEvent):void{
if (mouseIsDown){
determineInput(_arg1);
curSurface = null;
mouseIsDown = false;
};
}
public static function resetKeyboardKeys():void{
wDown = false;
aDown = false;
sDown = false;
dDown = false;
}
private static function mouseDownManager(_arg1:MouseEvent):void{
lastClickLocation = new Point(EngineCore.getEngineCore().mouseX, EngineCore.getEngineCore().mouseY);
lastMoveLocation = new Point(EngineCore.getEngineCore().mouseX, EngineCore.getEngineCore().mouseY);
lastClickTime = getTimer();
curSurface = _arg1.target.getSurface();
mouseIsDown = true;
}
public static function releaseMouse():void{
mouseIsDown = false;
curSurface = null;
}
public static function enableTempIacvObjectByName(_arg1:String):void{
var _local2:int;
_local2 = 0;
while (_local2 < iacvObjTempNames.length) {
if (iacvObjTempNames[_local2] == _arg1){
iacvObjTemp[_local2].enabled = true;
iacvObjTemp[_local2].addEventListener(MouseEvent.MOUSE_DOWN, mouseDownManager);
iacvObjTemp[_local2].addEventListener(MouseEvent.MOUSE_UP, mouseUpManager);
iacvObjTemp[_local2].addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveManager);
break;
};
_local2++;
};
}
public static function setup(_arg1:EngineCore):void{
topLevel = _arg1;
wDown = false;
aDown = false;
sDown = false;
dDown = false;
topLevel.stage.addEventListener(KeyboardEvent.KEY_DOWN, keyboardManager);
topLevel.stage.addEventListener(KeyboardEvent.KEY_UP, keyboardManager);
topLevel.stage.addEventListener(Event.MOUSE_LEAVE, gameFocusManager);
}
}
}//package GUI
Section 27
//NewsReportNotifier (GUI.NewsReportNotifier)
package GUI {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import flash.events.*;
import INFORMATIONOBJECTS.WINDOWS.*;
public class NewsReportNotifier extends MovieClip {
public var titlePopup:MovieClip;
public var newsSymbol:MovieClip;
private var newsEvent:NewsEvent;
public var coreButton:ReportButton;
public var reportInto:MovieClip;
public var newsOutline:MovieClip;
public function NewsReportNotifier(_arg1:NewsEvent){
addFrameScript(0, frame1);
newsEvent = _arg1;
titlePopup.reportTitle.text = newsEvent.getEventTitle();
coreButton.addEventListener(MouseEvent.MOUSE_OVER, showReportTitle);
coreButton.addEventListener(MouseEvent.MOUSE_OUT, hideReportTitle);
coreButton.setInvokeFunction(invoke);
coreButton.setName(("_newsReportNotifier" + _arg1.getID()));
coreButton.addToInputManager();
newsSymbol.gotoAndStop((int((newsEvent.getEventPanic() == NewsEvent.EVENT_PANIC_DECREASED)) + 1));
}
public function getEvent():NewsEvent{
return (newsEvent);
}
private function showReportTitle(_arg1:MouseEvent):void{
titlePopup.visible = true;
}
function frame1(){
newsOutline.mouseEnabled = false;
newsOutline.mouseChildren = false;
newsSymbol.mouseEnabled = false;
newsSymbol.mouseChildren = false;
reportInto.mouseEnabled = false;
reportInto.mouseChildren = false;
titlePopup.mouseEnabled = false;
titlePopup.mouseChildren = false;
titlePopup.visible = false;
}
public function invoke():void{
GuiManager.displayReportWindow(new NewsReportWindow(newsEvent));
}
public function destroyReport():void{
titlePopup.visible = false;
InputManager.removeTempIacvObject(("_newsReportNotifier" + newsEvent.getID()));
coreButton.removeEventListener(MouseEvent.MOUSE_OVER, showReportTitle);
coreButton.removeEventListener(MouseEvent.MOUSE_OUT, hideReportTitle);
}
private function hideReportTitle(_arg1:MouseEvent):void{
titlePopup.visible = false;
}
}
}//package GUI
Section 28
//OpGuiNotifier (GUI.OpGuiNotifier)
package GUI {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import flash.text.*;
import INFORMATIONOBJECTS.WINDOWS.*;
public class OpGuiNotifier extends MovieClip {
public var costBar:MovieClip;
public var opProgress:MovieClip;
public var coreButton:basicOperationButton;
public var opText:TextField;
private var op:Operation;
public function OpGuiNotifier(_arg1:Operation, _arg2:Boolean=false){
var _local3:int;
super();
_local3 = Math.round((_arg1.getOperationCost() / 2000));
if (_local3 > 6){
_local3 = 6;
};
op = _arg1;
opText.mouseEnabled = false;
opText.text = _arg1.getName();
opProgress.mouseEnabled = false;
opProgress.mouseChildren = false;
costBar.visible = !(_arg2);
opProgress.gotoAndStop(1);
costBar.gotoAndStop((1 + _local3));
switch (op.getOperationType()){
case Operation.OP_MILITARY_INFRASTRUCTURE:
coreButton.setInvokeFunction(openOpWindowA);
break;
case Operation.OP_MILITARY_REGION:
coreButton.setInvokeFunction(openOpWindowA);
break;
case Operation.OP_VACCINE_RESEARCH:
coreButton.setInvokeFunction(openOpWindowA);
break;
case Operation.OP_ROAD_BLOCK:
coreButton.setInvokeFunction(openOpWindowA);
break;
case Operation.OP_ROAD_BARRICADE:
coreButton.setInvokeFunction(openOpWindowA);
break;
case Operation.OP_DEPORT_INFECTED:
coreButton.setInvokeFunction(openOpWindowA);
break;
case Operation.OP_INFO_CAMPAIGN:
coreButton.setInvokeFunction(openOpWindowB);
break;
case Operation.OP_EXTREME_POLICIES:
coreButton.setInvokeFunction(openOpWindowA);
break;
case Operation.OP_MEDIA_CENSOR:
coreButton.setInvokeFunction(openOpWindowB);
break;
case Operation.OP_MEDIA_SPIN:
coreButton.setInvokeFunction(openOpWindowB);
break;
case Operation.OP_MEDIA_FEAR:
coreButton.setInvokeFunction(openOpWindowB);
break;
case Operation.OP_CITY_QUARANTINE:
coreButton.setInvokeFunction(openOpWindowA);
break;
case Operation.OP_CITY_NEUTRON:
coreButton.setInvokeFunction(openOpWindowB);
break;
case Operation.OP_CITY_NUKE:
coreButton.setInvokeFunction(openOpWindowB);
break;
case Operation.OP_ENFORCE_CURFEW:
coreButton.setInvokeFunction(openOpWindowA);
break;
case Operation.OP_DISTRIBUTE_VACCINE:
coreButton.setInvokeFunction(openOpWindowA);
break;
case Operation.OP_DISTRIBUTE_MASKS:
coreButton.setInvokeFunction(openOpWindowB);
break;
};
coreButton.setName(("_guiOpWindow" + op.getID()));
coreButton.addToInputManager();
}
private function openOpWindowA():void{
GuiManager.displayOperationWindow(new OperationWindowInfiniteA((op as InfiniteOperation)));
}
private function openOpWindowB():void{
GuiManager.displayOperationWindow(new OperationWindowFiniteA((op as FiniteOperation)));
}
public function getOpId():uint{
return (op.getID());
}
public function updateDuration(_arg1:Number):void{
_arg1 = (_arg1 + int((_arg1 == 0)));
opProgress.gotoAndStop(Math.round(_arg1));
}
public function removeButtonListener():void{
InputManager.removeTempIacvObject(("_guiOpWindow" + op.getID()));
}
public function getOp():Operation{
return (op);
}
}
}//package GUI
Section 29
//ScrollSurface (GUI.ScrollSurface)
package GUI {
import flash.display.*;
import flash.geom.*;
public class ScrollSurface extends MovieClip {
protected var bottomBound:int;
protected var surfaceActive:Boolean;// = false
protected var topBound:int;
protected var surfWidth:Number;
protected var xForce:Number;// = 0
protected var deltaY:Array;
protected var deltaX:Array;
protected var screenHeight:int;
protected var leftBound:int;
protected var screenWidth:int;
protected var rightBound:int;
protected var surfHeight:Number;
protected var yForce:Number;// = 0
protected static const FORCE_PERCENT:Number = 0.35;
protected static const SCROLL_ACCE_SOFT:Number = 0.5;
protected static const FORCE_DECAY:Number = 0.7;
protected static const SCROLL_ACCE:Number = 1.25;
protected static const SCROLL_AMPLI:Number = 1.3;
public function ScrollSurface(){
deltaX = new Array();
deltaY = new Array();
xForce = 0;
yForce = 0;
surfaceActive = false;
super();
leftBound = 0;
rightBound = 0;
topBound = 0;
bottomBound = 0;
screenWidth = 0;
screenHeight = 0;
surfWidth = 0;
surfHeight = 0;
}
protected function checkBottomBound(_arg1:Number):Boolean{
return ((((y + surfHeight) - _arg1) < bottomBound));
}
public function getWidth():Number{
return (surfWidth);
}
public function enlargeSurface():void{
var _local1:Number;
var _local2:Number;
_local1 = (x + (leftBound + (screenWidth / 2)));
_local2 = (y + (leftBound + (screenHeight / 2)));
x = (x - _local1);
y = (y - _local2);
surfWidth = (surfWidth * 2);
surfHeight = (surfHeight * 2);
this.scaleX = (this.scaleX * 2);
this.scaleY = (this.scaleY * 2);
stayInBounds();
}
protected function checkLeftBound(_arg1:Number):Boolean{
return (((x - _arg1) > leftBound));
}
public function getHeight():Number{
return (surfHeight);
}
public function setHeight(_arg1:Number):void{
surfHeight = _arg1;
}
protected function checkTopBound(_arg1:Number):Boolean{
return (((y - _arg1) > topBound));
}
public function shrinkSurface():void{
var _local1:Number;
var _local2:Number;
_local1 = (x + (topBound + (screenWidth / 2)));
_local2 = (y + (topBound + (screenHeight / 2)));
x = (x + _local1);
y = (y + _local2);
surfWidth = (surfWidth * 0.5);
surfHeight = (surfHeight * 0.5);
this.scaleX = (this.scaleX * 0.5);
this.scaleY = (this.scaleY * 0.5);
stayInBounds();
}
public function accelerateSurfaceBy(_arg1:Number, _arg2:Number):void{
xForce = (xForce + _arg1);
yForce = (yForce + _arg2);
}
public function scrollSurfaceBy(_arg1:Number, _arg2:Number):void{
calcHorScrolling(_arg1);
calcVerScrolling(_arg2);
}
public function surfaceStopped():Boolean{
return ((((((((deltaX.length == 0)) && ((deltaY.length == 0)))) && ((xForce == 0)))) && ((yForce == 0))));
}
public function run():void{
if (deltaX.length > 0){
x = (x - deltaX.pop());
};
if (deltaY.length > 0){
y = (y - deltaY.pop());
};
if (xForce != 0){
if (checkLeftBound((xForce * FORCE_PERCENT))){
x = leftBound;
xForce = 0;
} else {
if (checkRightBound((xForce * FORCE_PERCENT))){
x = (rightBound - surfWidth);
xForce = 0;
} else {
x = (x - (xForce * FORCE_PERCENT));
xForce = (xForce * FORCE_DECAY);
if (Math.round(xForce) == 0){
xForce = 0;
};
};
};
};
if (yForce != 0){
if (checkTopBound((yForce * FORCE_PERCENT))){
y = topBound;
yForce = 0;
} else {
if (checkBottomBound((yForce * FORCE_PERCENT))){
y = (bottomBound - surfHeight);
yForce = 0;
} else {
y = (y - (yForce * FORCE_PERCENT));
yForce = (yForce * FORCE_DECAY);
if (Math.round(yForce) == 0){
yForce = 0;
};
};
};
};
}
protected function calcVerScrolling(_arg1:Number, _arg2:Boolean=true):void{
var _local3:Number;
var _local4:Number;
var _local5:Number;
deltaY = new Array();
_local3 = 1;
_local4 = 0;
if (_arg2){
_local5 = (_arg1 * SCROLL_AMPLI);
} else {
_local5 = _arg1;
};
if ((y - _local5) > topBound){
_local5 = (topBound + y);
} else {
if (((y + surfHeight) - _local5) < bottomBound){
_local5 = ((surfHeight - bottomBound) + y);
};
};
_local5 = ((int((_local5 == 0)) * 1E-8) + (int(!((_local5 == 0))) * _local5));
if (_local5 >= 0){
while (_local4 < _local5) {
if (((_local4 + _local3) + (_local3 * SCROLL_ACCE)) > _local5){
_local3 = (_local5 - _local4);
};
deltaY.push(_local3);
_local4 = (_local4 + _local3);
_local3 = (_local3 * SCROLL_ACCE);
};
} else {
_local3 = -1;
while (_local4 > _local5) {
if (((_local4 + _local3) + (_local3 * SCROLL_ACCE)) < _local5){
_local3 = (_local5 - _local4);
};
deltaY.push(_local3);
_local4 = (_local4 + _local3);
_local3 = (_local3 * SCROLL_ACCE);
};
};
deltaY.push((deltaY[(deltaY.length - 1)] * SCROLL_ACCE_SOFT));
deltaY.push((deltaY[(deltaY.length - 1)] * SCROLL_ACCE_SOFT));
deltaY[(deltaY.length - 3)] = (deltaY[(deltaY.length - 3)] * (1 - SCROLL_ACCE_SOFT));
deltaY[(deltaY.length - 2)] = (deltaY[(deltaY.length - 2)] * (1 - SCROLL_ACCE_SOFT));
}
public function setWidth(_arg1:Number):void{
surfWidth = _arg1;
}
protected function stayInBounds():void{
if ((x + surfWidth) < rightBound){
x = (rightBound - surfWidth);
};
if (x > leftBound){
x = leftBound;
};
if (y > topBound){
y = topBound;
};
if ((y + surfHeight) < bottomBound){
y = (bottomBound - surfHeight);
};
}
protected function calcHorScrolling(_arg1:Number, _arg2:Boolean=true):void{
var _local3:Number;
var _local4:Number;
var _local5:Number;
deltaX = new Array();
_local3 = 1;
_local4 = 0;
if (_arg2){
_local5 = (_arg1 * SCROLL_AMPLI);
} else {
_local5 = _arg1;
};
if ((x - _local5) > leftBound){
_local5 = (leftBound + x);
} else {
if (((x + surfWidth) - _local5) < rightBound){
_local5 = ((surfWidth - rightBound) + x);
};
};
_local5 = ((int((_local5 == 0)) * 1E-8) + (int(!((_local5 == 0))) * _local5));
if (_local5 >= 0){
while (_local4 < _local5) {
if (((_local4 + _local3) + (_local3 * SCROLL_ACCE)) > _local5){
_local3 = (_local5 - _local4);
};
deltaX.push(_local3);
_local4 = (_local4 + _local3);
_local3 = (_local3 * SCROLL_ACCE);
};
} else {
_local3 = -1;
while (_local4 > _local5) {
if (((_local4 + _local3) + (_local3 * SCROLL_ACCE)) < _local5){
_local3 = (_local5 - _local4);
};
deltaX.push(_local3);
_local4 = (_local4 + _local3);
_local3 = (_local3 * SCROLL_ACCE);
};
};
deltaX.push((deltaX[(deltaX.length - 1)] * SCROLL_ACCE_SOFT));
deltaX.push((deltaX[(deltaX.length - 1)] * SCROLL_ACCE_SOFT));
deltaX[(deltaX.length - 3)] = (deltaX[(deltaX.length - 3)] * (1 - SCROLL_ACCE_SOFT));
deltaX[(deltaX.length - 2)] = (deltaX[(deltaX.length - 2)] * (1 - SCROLL_ACCE_SOFT));
}
protected function checkRightBound(_arg1:Number):Boolean{
return ((((x + surfWidth) - _arg1) < rightBound));
}
public function scrollSurfaceToCenter(_arg1:Point):void{
if ((((deltaX.length > 0)) || ((deltaY.length > 0)))){
deltaX = new Array();
deltaY = new Array();
};
GuiManager.displayZoomArrow(_arg1.x, _arg1.y);
if (surfWidth < 2200){
_arg1.x = (_arg1.x / 2);
_arg1.y = (_arg1.y / 2);
};
calcHorScrolling(((_arg1.x + x) - (screenWidth / 2)), false);
calcVerScrolling(((_arg1.y + y) - (screenHeight / 2)), false);
}
}
}//package GUI
Section 30
//SurfaceManager (GUI.SurfaceManager)
package GUI {
public class SurfaceManager {
private static var surfaceNames:Array = new Array();
private static var surfaces:Array = new Array();
public static function getSurface(_arg1:String):ScrollSurface{
var _local2:int;
_local2 = 0;
while (_local2 < surfaceNames.length) {
if (surfaceNames[_local2] == _arg1){
return (surfaces[_local2]);
};
_local2++;
};
return (null);
}
public static function run():void{
var _local1:ScrollSurface;
for each (_local1 in surfaces) {
_local1.run();
};
}
public static function addSurface(_arg1:ScrollSurface, _arg2:String):void{
surfaces.push(_arg1);
surfaceNames.push(_arg2);
}
public static function reset():void{
surfaceNames = new Array();
surfaces = new Array();
}
}
}//package GUI
Section 31
//TempIacvObject (GUI.TempIacvObject)
package GUI {
public class TempIacvObject extends IacvObject {
protected var iacvName:String;
public function TempIacvObject(){
super(false);
iacvName = new String("unidentifiable");
}
public function getName():String{
return (iacvName);
}
public function setName(_arg1:String):void{
iacvName = _arg1;
}
public function addToInputManager():void{
InputManager.addTempIacvObject(this, iacvName);
}
public function removeFromInputManager():void{
InputManager.removeTempIacvObject(iacvName);
}
}
}//package GUI
Section 32
//CensorMediaContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.CensorMediaContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class CensorMediaContainer extends OperationButtonContainer {
public var coreButton:AWESOMEBUTTON_LD;
public function CensorMediaContainer():void{
buttonString = "_censorMediaButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 33
//CurfewContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.CurfewContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class CurfewContainer extends OperationButtonContainer {
public var coreButton:StateCurfew;
public function CurfewContainer():void{
buttonString = "_curfewContainerButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 34
//DeportContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.DeportContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class DeportContainer extends OperationButtonContainer {
public var coreButton:DeportInfected;
public function DeportContainer():void{
buttonString = "_deportInfectedButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 35
//DisburseVaccineContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.DisburseVaccineContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class DisburseVaccineContainer extends OperationButtonContainer {
public var coreButton:DisburseVaccine;
public function DisburseVaccineContainer():void{
buttonString = "_disburseVaccineButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 36
//FearMediaContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.FearMediaContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class FearMediaContainer extends OperationButtonContainer {
public var coreButton:SolicitFearButton;
public function FearMediaContainer():void{
buttonString = "_fearMediaButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 37
//HandMasksContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.HandMasksContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class HandMasksContainer extends OperationButtonContainer {
public var coreButton:HandMasks;
public function HandMasksContainer():void{
buttonString = "_handOutMasksButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 38
//InfoContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.InfoContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class InfoContainer extends OperationButtonContainer {
public var coreButton:InfoCampaign;
public function InfoContainer():void{
buttonString = "_infoCampButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 39
//NeutronStrikeContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.NeutronStrikeContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class NeutronStrikeContainer extends OperationButtonContainer {
public var coreButton:NeutronStrike;
public function NeutronStrikeContainer():void{
buttonString = "_neutronStrikeButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 40
//NuclearStrikeContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.NuclearStrikeContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class NuclearStrikeContainer extends OperationButtonContainer {
public var coreButton:NuclearStrike;
public function NuclearStrikeContainer():void{
buttonString = "_nuclearStrikeButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 41
//PoliciesContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.PoliciesContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class PoliciesContainer extends OperationButtonContainer {
public var coreButton:ExtremePolicies;
public function PoliciesContainer():void{
buttonString = "_policiesButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 42
//QuarantineContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.QuarantineContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class QuarantineContainer extends OperationButtonContainer {
public var coreButton:Quarantine;
public function QuarantineContainer():void{
buttonString = "_quarantineContainerButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 43
//RegionMilitaryContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.RegionMilitaryContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class RegionMilitaryContainer extends OperationButtonContainer {
public var coreButton:MilitarySupport;
public function RegionMilitaryContainer():void{
buttonString = "_militaryContainerButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 44
//RoadBarricadeContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.RoadBarricadeContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class RoadBarricadeContainer extends OperationButtonContainer {
public var coreButton:BarricadeButton;
public function RoadBarricadeContainer():void{
buttonString = "_roadBarricadeButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 45
//RoadBlockContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.RoadBlockContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class RoadBlockContainer extends OperationButtonContainer {
public var coreButton:RoadBlockButton;
public function RoadBlockContainer():void{
buttonString = "_roadBlockButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 46
//SpinMediaContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.SpinMediaContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class SpinMediaContainer extends OperationButtonContainer {
public var coreButton:SpinButton;
public function SpinMediaContainer():void{
buttonString = "_spinMediaButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 47
//VaccineContainer (INFORMATIONOBJECTS.BUTTONCONTAINERS.VaccineContainer)
package INFORMATIONOBJECTS.BUTTONCONTAINERS {
import INFORMATIONOBJECTS.*;
public class VaccineContainer extends OperationButtonContainer {
public var coreButton:ResearchVaccine;
public function VaccineContainer():void{
buttonString = "_vaccineButton";
}
}
}//package INFORMATIONOBJECTS.BUTTONCONTAINERS
Section 48
//Alabama (INFORMATIONOBJECTS.REGIONS.Alabama)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Alabama extends Region {
public var coreButton:AlabamaButton;
public function Alabama(){
setup("Alabama", Region.EASTERN, 4661900);
coreButton.setContainer(this);
stateOpFieldVert = true;
stateOpFieldX = (stateOpFieldX - 15);
stateOpFieldY = (stateOpFieldY + 0);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 49
//Arizona (INFORMATIONOBJECTS.REGIONS.Arizona)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
import MANAGERS.*;
public class Arizona extends Region {
public var coreButton:ArizonaButton;
public function Arizona(){
setup("Arizona", Region.WESTERN, 6500180);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX + 15);
stateOpFieldY = (stateOpFieldY - 55);
southernRegion = true;
if ((((GameManager.getDiffType() == GameManager.DIFFICULTY_HARD)) || ((GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME)))){
addInfected(4012, true);
};
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 50
//Arkansas (INFORMATIONOBJECTS.REGIONS.Arkansas)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Arkansas extends Region {
public var coreButton:ArkansasButton;
public function Arkansas(){
setup("Arkansas", Region.CENTRAL, 2855390);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX - 10);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 51
//California (INFORMATIONOBJECTS.REGIONS.California)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class California extends Region {
public var coreButton:CaliforniaButton;
public function California(){
setup("California", Region.WESTERN, 36744615);
coreButton.setContainer(this);
addInfected(12051, true);
stateOpFieldX = (stateOpFieldX - 25);
stateOpFieldY = (stateOpFieldY + 50);
southernRegion = true;
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 52
//Canada (INFORMATIONOBJECTS.REGIONS.Canada)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
import GUI.*;
import MANAGERS.*;
import INFORMATIONOBJECTS.WINDOWS.*;
public class Canada extends Region {
private var borderOpen:Boolean;// = true
public var coreButton:CanadaButton;
public function Canada(){
borderOpen = true;
super();
setup("Canada", Region.MISC, 33212696);
coreButton.setContainer(this);
CountryManager.setCanadaRef(this);
}
override public function invoke():void{
GuiManager.displayBorderWindow(new BorderWindow(this));
}
public function setBorderStatus(_arg1:Boolean):void{
borderOpen = _arg1;
}
public function getBorderStatus():Boolean{
return (borderOpen);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 53
//Colorado (INFORMATIONOBJECTS.REGIONS.Colorado)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Colorado extends Region {
public var coreButton:ColoradoButton;
public function Colorado(){
setup("Colorado", Region.WESTERN, 4939456);
coreButton.setContainer(this);
stateOpFieldY = (stateOpFieldY + 70);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 54
//Connecticut (INFORMATIONOBJECTS.REGIONS.Connecticut)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Connecticut extends Region {
public var coreButton:ConnecticutButton;
public function Connecticut(){
setup("Connecticut", Region.EASTERN, 3501252);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX + 94);
stateOpFieldY = (stateOpFieldY + 26);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 55
//Delaware (INFORMATIONOBJECTS.REGIONS.Delaware)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Delaware extends Region {
public var coreButton:DelawareButton;
public function Delaware(){
setup("Delaware", Region.EASTERN, 873092);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX + 91);
stateOpFieldY = (stateOpFieldY + 34);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 56
//Florida (INFORMATIONOBJECTS.REGIONS.Florida)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Florida extends Region {
public var coreButton:FloridaButton;
public function Florida(){
setup("Florida", Region.EASTERN, 18322254);
coreButton.setContainer(this);
addInfected(6086, true);
stateOpFieldX = (stateOpFieldX - 30);
stateOpFieldY = (stateOpFieldY - 85);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 57
//Georgia (INFORMATIONOBJECTS.REGIONS.Georgia)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Georgia extends Region {
public var coreButton:GeorgiaButton;
public function Georgia(){
setup("Georgia", Region.EASTERN, 9685744);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX + 25);
stateOpFieldY = (stateOpFieldY + 30);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 58
//Idaho (INFORMATIONOBJECTS.REGIONS.Idaho)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Idaho extends Region {
public var coreButton:IdahoButton;
public function Idaho(){
setup("Idaho", Region.WESTERN, 1513868);
coreButton.setContainer(this);
stateOpFieldY = (stateOpFieldY + 120);
northernRegion = true;
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 59
//Illinois (INFORMATIONOBJECTS.REGIONS.Illinois)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Illinois extends Region {
public var coreButton:IllinoisButton;
public function Illinois(){
setup("Illinois", Region.CENTRAL, 12901563);
coreButton.setContainer(this);
stateOpFieldVert = true;
stateOpFieldX = (stateOpFieldX + 35);
stateOpFieldY = (stateOpFieldY + 42);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 60
//Indiana (INFORMATIONOBJECTS.REGIONS.Indiana)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Indiana extends Region {
public var coreButton:IndianaButton;
public function Indiana(){
setup("Indiana", Region.EASTERN, 6376792);
coreButton.setContainer(this);
stateOpFieldVert = true;
stateOpFieldX = (stateOpFieldX - 0);
stateOpFieldY = (stateOpFieldY + 0);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 61
//Iowa (INFORMATIONOBJECTS.REGIONS.Iowa)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Iowa extends Region {
public var coreButton:IowaButton;
public function Iowa(){
setup("Iowa", Region.CENTRAL, 3002555);
coreButton.setContainer(this);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 62
//Kansas (INFORMATIONOBJECTS.REGIONS.Kansas)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Kansas extends Region {
public var coreButton:KansasButton;
public function Kansas(){
setup("Kansas", Region.CENTRAL, 2802134);
coreButton.setContainer(this);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 63
//Kentucky (INFORMATIONOBJECTS.REGIONS.Kentucky)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Kentucky extends Region {
public var coreButton:KentuckyButton;
public function Kentucky(){
setup("Kentucky", Region.EASTERN, 4269245);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX + 40);
stateOpFieldY = (stateOpFieldY + 20);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 64
//Louisiana (INFORMATIONOBJECTS.REGIONS.Louisiana)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Louisiana extends Region {
public var coreButton:LouisianaButton;
public function Louisiana(){
setup("Louisiana", Region.CENTRAL, 4410796);
coreButton.setContainer(this);
stateOpFieldVert = true;
stateOpFieldX = (stateOpFieldX - 45);
stateOpFieldY = (stateOpFieldY - 10);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 65
//Maine (INFORMATIONOBJECTS.REGIONS.Maine)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Maine extends Region {
public var coreButton:MaineButton;
public function Maine(){
setup("Maine", Region.EASTERN, 1316456);
coreButton.setContainer(this);
stateOpFieldVert = true;
stateOpFieldX = (stateOpFieldX - 21);
stateOpFieldY = (stateOpFieldY - 23);
northernRegion = true;
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 66
//Maryland (INFORMATIONOBJECTS.REGIONS.Maryland)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Maryland extends Region {
public var coreButton:MarylandButton;
public function Maryland(){
setup("Maryland", Region.EASTERN, 5633597);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX - 30);
stateOpFieldY = (stateOpFieldY - 16);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 67
//Massachusetts (INFORMATIONOBJECTS.REGIONS.Massachusetts)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Massachusetts extends Region {
public var coreButton:MassachusettsButton;
public function Massachusetts(){
setup("Massachusetts", Region.EASTERN, 6497967);
coreButton.setContainer(this);
stateOpFieldVert = true;
stateOpFieldX = (stateOpFieldX + 77);
stateOpFieldY = (stateOpFieldY - 45);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 68
//Mexico (INFORMATIONOBJECTS.REGIONS.Mexico)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
import GUI.*;
import MANAGERS.*;
import INFORMATIONOBJECTS.WINDOWS.*;
public class Mexico extends Region {
private var borderOpen:Boolean;// = true
public var coreButton:MexicoButton;
public function Mexico(){
borderOpen = true;
super();
setup("Mexico", Region.MISC, 109955400);
coreButton.setContainer(this);
CountryManager.setMexicoRef(this);
}
override public function invoke():void{
GuiManager.displayBorderWindow(new BorderWindow(null, this));
}
public function setBorderStatus(_arg1:Boolean):void{
borderOpen = _arg1;
}
public function getBorderStatus():Boolean{
return (borderOpen);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 69
//Michigan (INFORMATIONOBJECTS.REGIONS.Michigan)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Michigan extends Region {
public var coreButton:MichiganButton;
public function Michigan(){
setup("Michigan", Region.CENTRAL, 10003422);
coreButton.setContainer(this);
stateOpFieldVert = true;
stateOpFieldX = (stateOpFieldX + 75);
stateOpFieldY = (stateOpFieldY + 5);
northernRegion = true;
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 70
//Minnesota (INFORMATIONOBJECTS.REGIONS.Minnesota)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Minnesota extends Region {
public var coreButton:MinnesotaButton;
public function Minnesota(){
setup("Minnesota", Region.CENTRAL, 5220393);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX - 35);
stateOpFieldY = (stateOpFieldY - 45);
northernRegion = true;
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 71
//Mississippi (INFORMATIONOBJECTS.REGIONS.Mississippi)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Mississippi extends Region {
public var coreButton:MississippiButton;
public function Mississippi(){
setup("Mississippi", Region.CENTRAL, 2938618);
coreButton.setContainer(this);
stateOpFieldVert = true;
stateOpFieldX = (stateOpFieldX - 0);
stateOpFieldY = (stateOpFieldY + 0);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 72
//Missouri (INFORMATIONOBJECTS.REGIONS.Missouri)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Missouri extends Region {
public var coreButton:MissouriButton;
public function Missouri(){
setup("Missouri", Region.CENTRAL, 5911605);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX - 5);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 73
//Montana (INFORMATIONOBJECTS.REGIONS.Montana)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Montana extends Region {
public var coreButton:MontanaButton;
public function Montana(){
setup("Montana", Region.WESTERN, 967440);
coreButton.setContainer(this);
northernRegion = true;
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 74
//Nebraska (INFORMATIONOBJECTS.REGIONS.Nebraska)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Nebraska extends Region {
public var coreButton:NebraskaButton;
public function Nebraska(){
setup("Nebraska", Region.CENTRAL, 1783432);
coreButton.setContainer(this);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 75
//Nevada (INFORMATIONOBJECTS.REGIONS.Nevada)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Nevada extends Region {
public var coreButton:NevadaButton;
public function Nevada(){
setup("Nevada", Region.WESTERN, 2596189);
coreButton.setContainer(this);
addInfected(3978, true);
stateOpFieldY = (stateOpFieldY - 60);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 76
//NewHampshire (INFORMATIONOBJECTS.REGIONS.NewHampshire)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class NewHampshire extends Region {
public var coreButton:NewHampshireButton;
public function NewHampshire(){
setup("New Hampshire", Region.EASTERN, 1315809);
coreButton.setContainer(this);
stateOpFieldVert = true;
stateOpFieldX = (stateOpFieldX - 33);
stateOpFieldY = (stateOpFieldY - 140);
northernRegion = true;
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 77
//NewJersey (INFORMATIONOBJECTS.REGIONS.NewJersey)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class NewJersey extends Region {
public var coreButton:NewJerseyButton;
public function NewJersey(){
setup("New Jersey", Region.EASTERN, 8682661);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX + 127);
stateOpFieldY = (stateOpFieldY + 15);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 78
//NewMexico (INFORMATIONOBJECTS.REGIONS.NewMexico)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class NewMexico extends Region {
public var coreButton:NewMexicoButton;
public function NewMexico(){
setup("New Mexico", Region.WESTERN, 1977211);
coreButton.setContainer(this);
addInfected(7145, true);
southernRegion = true;
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 79
//NewYork (INFORMATIONOBJECTS.REGIONS.NewYork)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class NewYork extends Region {
public var coreButton:NewYorkButton;
public function NewYork(){
setup("New York", Region.EASTERN, 19490297);
coreButton.setContainer(this);
stateOpFieldVert = true;
stateOpFieldX = (stateOpFieldX + 26);
stateOpFieldY = (stateOpFieldY - 27);
northernRegion = true;
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 80
//NorthCarolina (INFORMATIONOBJECTS.REGIONS.NorthCarolina)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class NorthCarolina extends Region {
public var coreButton:NorthCarolinaButton;
public function NorthCarolina(){
setup("North Carolina", Region.EASTERN, 9222414);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX + 115);
stateOpFieldY = (stateOpFieldY - 8);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 81
//NorthDakota (INFORMATIONOBJECTS.REGIONS.NorthDakota)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class NorthDakota extends Region {
public var coreButton:NorthDakotaButton;
public function NorthDakota(){
setup("North Dakota", Region.CENTRAL, 641481);
coreButton.setContainer(this);
northernRegion = true;
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 82
//Ohio (INFORMATIONOBJECTS.REGIONS.Ohio)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Ohio extends Region {
public var coreButton:OhioButton;
public function Ohio(){
setup("Ohio", Region.EASTERN, 11485910);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX + 3);
stateOpFieldY = (stateOpFieldY + 20);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 83
//Oklahoma (INFORMATIONOBJECTS.REGIONS.Oklahoma)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Oklahoma extends Region {
public var coreButton:OklahomaButton;
public function Oklahoma(){
setup("Oklahoma", Region.CENTRAL, 3642361);
coreButton.setContainer(this);
stateOpFieldVert = true;
stateOpFieldX = (stateOpFieldX + 140);
stateOpFieldY = (stateOpFieldY - 5);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 84
//Oregon (INFORMATIONOBJECTS.REGIONS.Oregon)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
import MANAGERS.*;
public class Oregon extends Region {
public var coreButton:OregonButton;
public function Oregon(){
setup("Oregon", Region.WESTERN, 3790060);
coreButton.setContainer(this);
if (GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME){
addInfected(336, true);
};
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 85
//Pennsylvania (INFORMATIONOBJECTS.REGIONS.Pennsylvania)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Pennsylvania extends Region {
public var coreButton:PennsylvaniaButton;
public function Pennsylvania(){
setup("Pennsylvania", Region.EASTERN, 12448279);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX - 40);
stateOpFieldY = (stateOpFieldY + 24);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 86
//RhodeIsland (INFORMATIONOBJECTS.REGIONS.RhodeIsland)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class RhodeIsland extends Region {
public var coreButton:RhodeIslandButton;
public function RhodeIsland(){
setup("Rhode Island", Region.EASTERN, 1050788);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX + 70);
stateOpFieldY = (stateOpFieldY + 13);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 87
//SouthCarolina (INFORMATIONOBJECTS.REGIONS.SouthCarolina)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class SouthCarolina extends Region {
public var coreButton:SouthCarolinaButton;
public function SouthCarolina(){
setup("South Carolina", Region.EASTERN, 4479800);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX + 15);
stateOpFieldY = (stateOpFieldY - 25);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 88
//SouthDakota (INFORMATIONOBJECTS.REGIONS.SouthDakota)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class SouthDakota extends Region {
public var coreButton:SouthDakotaButton;
public function SouthDakota(){
setup("South Dakota", Region.CENTRAL, 804194);
coreButton.setContainer(this);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 89
//Tennessee (INFORMATIONOBJECTS.REGIONS.Tennessee)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Tennessee extends Region {
public var coreButton:TennesseeButton;
public function Tennessee(){
setup("Tennessee", Region.EASTERN, 6214888);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX + 15);
stateOpFieldY = (stateOpFieldY - 7);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 90
//Texas (INFORMATIONOBJECTS.REGIONS.Texas)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Texas extends Region {
public var coreButton:TexasButton;
public function Texas(){
setup("Texas", Region.CENTRAL, 24311945);
coreButton.setContainer(this);
addInfected(15029, true);
stateOpFieldX = (stateOpFieldX + 10);
southernRegion = true;
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 91
//Utah (INFORMATIONOBJECTS.REGIONS.Utah)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Utah extends Region {
public var coreButton:UtahButton;
public function Utah(){
setup("Utah", Region.WESTERN, 2736424);
coreButton.setContainer(this);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 92
//Washington (INFORMATIONOBJECTS.REGIONS.Washington)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
import MANAGERS.*;
public class Washington extends Region {
public var coreButton:WashingtonButton;
public function Washington(){
setup("Washington", Region.WESTERN, 6549224);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX + 20);
stateOpFieldY = (stateOpFieldY + 50);
northernRegion = true;
if (GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME){
addInfected(7902, true);
};
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 93
//Vermont (INFORMATIONOBJECTS.REGIONS.Vermont)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Vermont extends Region {
public var coreButton:VermontButton;
public function Vermont(){
setup("Vermont", Region.EASTERN, 621270);
coreButton.setContainer(this);
stateOpFieldVert = true;
stateOpFieldX = (stateOpFieldX - 11);
stateOpFieldY = (stateOpFieldY - 127);
northernRegion = true;
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 94
//WestVirginia (INFORMATIONOBJECTS.REGIONS.WestVirginia)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class WestVirginia extends Region {
public var coreButton:WestVirginiaButton;
public function WestVirginia(){
setup("West Virginia", Region.EASTERN, 1814468);
coreButton.setContainer(this);
stateOpFieldVert = true;
stateOpFieldX = (stateOpFieldX - 37);
stateOpFieldY = (stateOpFieldY + 7);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 95
//Virginia (INFORMATIONOBJECTS.REGIONS.Virginia)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Virginia extends Region {
public var coreButton:VirginiaButton;
public function Virginia(){
setup("Virginia", Region.EASTERN, 7769089);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX + 42);
stateOpFieldY = (stateOpFieldY + 10);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 96
//Wisconsin (INFORMATIONOBJECTS.REGIONS.Wisconsin)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Wisconsin extends Region {
public var coreButton:WisonsinButton;
public function Wisconsin(){
setup("Wisconsin", Region.CENTRAL, 5627967);
coreButton.setContainer(this);
stateOpFieldX = (stateOpFieldX - 5);
stateOpFieldY = (stateOpFieldY - 25);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 97
//Wyoming (INFORMATIONOBJECTS.REGIONS.Wyoming)
package INFORMATIONOBJECTS.REGIONS {
import INFORMATIONOBJECTS.*;
public class Wyoming extends Region {
public var coreButton:WyomingButton;
public function Wyoming(){
setup("Wyoming", Region.WESTERN, 532668);
coreButton.setContainer(this);
}
}
}//package INFORMATIONOBJECTS.REGIONS
Section 98
//AirportWindow (INFORMATIONOBJECTS.WINDOWS.AirportWindow)
package INFORMATIONOBJECTS.WINDOWS {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import GUI.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import flash.text.*;
import INFORMATIONOBJECTS.BUTTONCONTAINERS.*;
public class AirportWindow extends MovieClip {
public var domRev:TextField;
public var cost0:TextField;
public var clickout1:MovieClip;
public var militaryContainer:RegionMilitaryContainer;
public var clickout0:MovieClip;
public var intRev:TextField;
private var region:Region;
public var airClosed:MovieClip;
public var closeWindowButton:BackCloseWindowButton;
public var totalFunds:TextField;
public var domBan:MovieClip;
public var s:int;
public var intBan:MovieClip;
public var airOpen:MovieClip;
private var airport:Airport;
public var intPermit:MovieClip;
public var domPermit:MovieClip;
public var intInfectionChance:TextField;
public function AirportWindow(_arg1:Airport, _arg2:Region){
addFrameScript(5, frame6, 11, frame12);
airport = _arg1;
region = _arg2;
if (region == null){
};
}
public function turnOnInt():void{
airport.permitInt();
intPermit.gotoAndStop((int(airport.getIntStatus()) + 1));
intBan.gotoAndStop((int(!(airport.getIntStatus())) + 1));
InputManager.removeTempIacvObject("_airportIntPermit");
intBan.coreButton.addToInputManager();
intPermit.coreButton.enabled = false;
intBan.coreButton.enabled = true;
}
public function shutdownAir():void{
militaryContainer.setActivation(false);
militaryContainer.setDisabled(true);
militaryContainer.setButtonStatus(false);
airport.closeAirport();
domPermit.gotoAndStop((int(airport.getDomStatus()) + 1));
domBan.gotoAndStop((int(!(airport.getDomStatus())) + 1));
intPermit.gotoAndStop((int(airport.getIntStatus()) + 1));
intBan.gotoAndStop((int(!(airport.getIntStatus())) + 1));
domPermit.alpha = 0.5;
domBan.alpha = 0.5;
intPermit.alpha = 0.5;
intBan.alpha = 0.5;
InputManager.removeTempIacvObject("_airportDomPermit");
InputManager.removeTempIacvObject("_airportIntPermit");
InputManager.removeTempIacvObject("_airportDomBan");
InputManager.removeTempIacvObject("_airportIntBan");
InputManager.removeTempIacvObject("_airportClosedButton");
airOpen.coreButton.addToInputManager();
airOpen.coreButton.enabled = true;
airClosed.coreButton.enabled = false;
domPermit.coreButton.enabled = false;
domBan.coreButton.enabled = false;
intPermit.coreButton.enabled = false;
intBan.coreButton.enabled = false;
airOpen.gotoAndStop((int(airport.getAirportStatus()) + 1));
airClosed.gotoAndStop((int(!(airport.getAirportStatus())) + 1));
}
public function turnOffDom():void{
airport.banDom();
domBan.gotoAndStop((int(!(airport.getDomStatus())) + 1));
domPermit.gotoAndStop((int(airport.getDomStatus()) + 1));
InputManager.removeTempIacvObject("_airportDomBan");
domPermit.coreButton.addToInputManager();
domBan.coreButton.enabled = false;
domPermit.coreButton.enabled = true;
}
public function turnOnDom():void{
airport.permitDom();
domPermit.gotoAndStop((int(airport.getDomStatus()) + 1));
domBan.gotoAndStop((int(!(airport.getDomStatus())) + 1));
InputManager.removeTempIacvObject("_airportDomPermit");
domBan.coreButton.addToInputManager();
domPermit.coreButton.enabled = false;
domBan.coreButton.enabled = true;
}
function frame6(){
s = 0;
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
totalFunds.text = (("$" + Helpers.addCommas(EconomyManager.getCurrentFunds())) + " FUNDS AVAILABLE");
cost0.text = ("$" + Helpers.addCommas(airport.getMilitaryOp().getOperationCost()));
militaryContainer.setup(airport.getMilitaryOp().getOperationCost(), airport.getMilitaryOp(), militaryContainer.coreButton);
domPermit.gotoAndStop((int(airport.getDomStatus()) + 1));
domBan.gotoAndStop((int(!(airport.getDomStatus())) + 1));
intPermit.gotoAndStop((int(airport.getIntStatus()) + 1));
intBan.gotoAndStop((int(!(airport.getIntStatus())) + 1));
airOpen.gotoAndStop((int(airport.getAirportStatus()) + 1));
airClosed.gotoAndStop((int(!(airport.getAirportStatus())) + 1));
if (!airport.getAirportStatus()){
domPermit.alpha = 0.5;
domBan.alpha = 0.5;
intPermit.alpha = 0.5;
intBan.alpha = 0.5;
militaryContainer.setActivation(false);
militaryContainer.setDisabled(true);
militaryContainer.setButtonStatus(false);
};
domRev.text = ("$" + Helpers.addCommas(airport.getDomTourismRevenue()));
intRev.text = ("$" + Helpers.addCommas(airport.getIntTourismRevenue()));
intInfectionChance.text = (Helpers.roundTo((airport.getInfectedDetectionOdds() * 100), 1, 2, 0) + "% CHANCE OF INFECTED.");
domPermit.coreButton.setInvokeFunction(turnOnDom);
domPermit.coreButton.setName("_airportDomPermit");
if (((!(airport.getDomStatus())) && (airport.getAirportStatus()))){
domPermit.coreButton.addToInputManager();
} else {
domPermit.coreButton.enabled = false;
};
domBan.coreButton.setInvokeFunction(turnOffDom);
domBan.coreButton.setName("_airportDomBan");
if (((airport.getDomStatus()) && (airport.getAirportStatus()))){
domBan.coreButton.addToInputManager();
} else {
domBan.coreButton.enabled = false;
};
intPermit.coreButton.setInvokeFunction(turnOnInt);
intPermit.coreButton.setName("_airportIntPermit");
if (((!(airport.getIntStatus())) && (airport.getAirportStatus()))){
intPermit.coreButton.addToInputManager();
} else {
intPermit.coreButton.enabled = false;
};
intBan.coreButton.setInvokeFunction(turnOffInt);
intBan.coreButton.setName("_airportIntBan");
if (((airport.getIntStatus()) && (airport.getAirportStatus()))){
intBan.coreButton.addToInputManager();
} else {
intBan.coreButton.enabled = false;
};
airOpen.coreButton.setInvokeFunction(openAir);
airOpen.coreButton.setName("_airportOpenButton");
if (!airport.getAirportStatus()){
airOpen.coreButton.addToInputManager();
} else {
airOpen.coreButton.enabled = false;
};
airClosed.coreButton.setInvokeFunction(shutdownAir);
airClosed.coreButton.setName("_airportClosedButton");
if (airport.getAirportStatus()){
airClosed.coreButton.addToInputManager();
} else {
airClosed.coreButton.enabled = false;
};
stop();
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_militaryContainerButton");
InputManager.removeTempIacvObject("_airportDomPermit");
InputManager.removeTempIacvObject("_airportIntPermit");
InputManager.removeTempIacvObject("_airportDomBan");
InputManager.removeTempIacvObject("_airportIntBan");
InputManager.removeTempIacvObject("_airportClosedButton");
InputManager.removeTempIacvObject("_airportOpenButton");
GuiManager.cleanupPrimaryGui();
}
public function openAir():void{
militaryContainer.setDisabled(false);
militaryContainer.setButtonStatus(true);
militaryContainer.setup(s, airport.getMilitaryOp(), militaryContainer.coreButton);
airport.openAirport();
domPermit.gotoAndStop((int(airport.getDomStatus()) + 1));
domBan.gotoAndStop((int(!(airport.getDomStatus())) + 1));
intPermit.gotoAndStop((int(airport.getIntStatus()) + 1));
intBan.gotoAndStop((int(!(airport.getIntStatus())) + 1));
domPermit.alpha = 1;
domBan.alpha = 1;
intPermit.alpha = 1;
intBan.alpha = 1;
InputManager.removeTempIacvObject("_airportOpenButton");
domBan.coreButton.addToInputManager();
intBan.coreButton.addToInputManager();
airClosed.coreButton.addToInputManager();
airClosed.coreButton.enabled = true;
airOpen.coreButton.enabled = false;
domBan.coreButton.enabled = true;
intBan.coreButton.enabled = true;
airOpen.gotoAndStop((int(airport.getAirportStatus()) + 1));
airClosed.gotoAndStop((int(!(airport.getAirportStatus())) + 1));
}
public function turnOffInt():void{
airport.banInt();
intBan.gotoAndStop((int(!(airport.getIntStatus())) + 1));
intPermit.gotoAndStop((int(airport.getIntStatus()) + 1));
InputManager.removeTempIacvObject("_airportIntBan");
intPermit.coreButton.addToInputManager();
intBan.coreButton.enabled = false;
intPermit.coreButton.enabled = true;
}
}
}//package INFORMATIONOBJECTS.WINDOWS
Section 99
//BorderWindow (INFORMATIONOBJECTS.WINDOWS.BorderWindow)
package INFORMATIONOBJECTS.WINDOWS {
import flash.display.*;
import GUI.*;
import INFORMATIONOBJECTS.REGIONS.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import flash.text.*;
public class BorderWindow extends MovieClip {
public var clickout1:MovieClip;
public var clickout0:MovieClip;
public var intRev:TextField;
public var closeWindowButton:BackCloseWindowButton;
public var borderOpen:MovieClip;
private var mexico:Mexico;// = null
public var borderTitle:TextField;
public var borderClosed:MovieClip;
private var canada:Canada;// = null
public var infectionChance:TextField;
public function BorderWindow(_arg1:Canada=null, _arg2:Mexico=null){
canada = null;
mexico = null;
super();
addFrameScript(5, frame6, 11, frame12);
canada = _arg1;
mexico = _arg2;
}
public function openBorder():void{
setBorderStatus(true);
InputManager.removeTempIacvObject("_borderOpenButton");
borderClosed.coreButton.addToInputManager();
borderClosed.coreButton.enabled = true;
borderOpen.coreButton.enabled = false;
borderOpen.gotoAndStop((int(getBorderStatus()) + 1));
borderClosed.gotoAndStop((int(!(getBorderStatus())) + 1));
}
public function closeBorder():void{
setBorderStatus(false);
InputManager.removeTempIacvObject("_borderCloseButton");
borderOpen.coreButton.addToInputManager();
borderOpen.coreButton.enabled = true;
borderClosed.coreButton.enabled = false;
borderOpen.gotoAndStop((int(getBorderStatus()) + 1));
borderClosed.gotoAndStop((int(!(getBorderStatus())) + 1));
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_militaryContainerButton");
InputManager.removeTempIacvObject("_airportDomPermit");
GuiManager.cleanupPrimaryGui();
}
public function getBorderRevenue():String{
if (canada != null){
return (Helpers.addCommas(canada.getLastRevenue()));
};
if (mexico != null){
return (Helpers.addCommas(mexico.getLastRevenue()));
};
return (null);
}
function frame6(){
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
borderOpen.gotoAndStop((int(getBorderStatus()) + 1));
borderClosed.gotoAndStop((int(!(getBorderStatus())) + 1));
borderTitle.text = getBorderName();
intRev.text = ("$" + getBorderRevenue());
infectionChance.text = (" " + getBorderInfected());
borderOpen.coreButton.setInvokeFunction(openBorder);
borderOpen.coreButton.setName("_borderOpenButton");
if (!getBorderStatus()){
borderOpen.coreButton.addToInputManager();
} else {
borderOpen.coreButton.enabled = false;
};
borderClosed.coreButton.setInvokeFunction(closeBorder);
borderClosed.coreButton.setName("_borderCloseButton");
if (getBorderStatus()){
borderClosed.coreButton.addToInputManager();
} else {
borderClosed.coreButton.enabled = false;
};
stop();
}
public function getBorderInfected():String{
if (canada != null){
return ((Helpers.roundTo((CountryManager.getCanadaInfection() * 100), 1, 2, 0) + "% CHANCE OF INTRODUCING MORE INFECTED INTO THE COUNTRY."));
};
if (mexico != null){
return ((Helpers.roundTo((CountryManager.getMexicoInfection() * 100), 1, 2, 0) + "% CHANCE OF INTRODUCING MORE INFECTED INTO THE COUNTRY."));
};
return (null);
}
public function getBorderStatus():Boolean{
if (canada != null){
return (canada.getBorderStatus());
};
if (mexico != null){
return (mexico.getBorderStatus());
};
return (false);
}
public function getBorderName():String{
var _local1:String;
_local1 = new String();
if (canada != null){
_local1 = canada.getRegionName();
return ((_local1.toUpperCase() + " INFORMATION"));
};
if (mexico != null){
_local1 = mexico.getRegionName();
return ((_local1.toUpperCase() + " INFORMATION"));
};
return (null);
}
public function setBorderStatus(_arg1:Boolean):void{
if (canada != null){
canada.setBorderStatus(_arg1);
};
if (mexico != null){
mexico.setBorderStatus(_arg1);
};
}
}
}//package INFORMATIONOBJECTS.WINDOWS
Section 100
//CityWindow (INFORMATIONOBJECTS.WINDOWS.CityWindow)
package INFORMATIONOBJECTS.WINDOWS {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import GUI.*;
import MANAGERS.*;
import flash.text.*;
import INFORMATIONOBJECTS.BUTTONCONTAINERS.*;
public class CityWindow extends MovieClip {
public var riotingImage:MovieClip;
public var cost2:TextField;
public var cost1:TextField;
public var cost0:TextField;
public var deadBar:MovieClip;
public var clickout1:MovieClip;
public var quarantineContainer:QuarantineContainer;
private var region:Region;
public var nuclearLock:MovieClip;
public var infectedNumbers:TextField;
public var totalRevenue:TextField;
public var healthyBar:MovieClip;
public var lootingImage:MovieClip;
public var clickout0:MovieClip;
public var immuneNumbers:TextField;
public var totalFunds:TextField;
private var city:City;
public var neutronContainer:NeutronStrikeContainer;
public var nukeContainer:NuclearStrikeContainer;
public var immuneBar:MovieClip;
public var totalExpenses:TextField;
public var neutronLock:MovieClip;
public var netIncome:TextField;
public var deadNumbers:TextField;
public var s:int;
public var cityTitle:TextField;
public var healthyNumbers:TextField;
public var currentString:String;
public var infectedBar:MovieClip;
public function CityWindow(_arg1:City, _arg2:Region){
addFrameScript(5, frame6, 11, frame12);
city = _arg1;
region = _arg2;
if (region == null){
};
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_neutronStrikeButton");
InputManager.removeTempIacvObject("_nuclearStrikeButton");
InputManager.removeTempIacvObject("_quarantineContainerButton");
GuiManager.cleanupPrimaryGui();
}
function frame6(){
s = 0;
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
immuneNumbers.text = Helpers.addCommas(city.getImmunePop());
healthyNumbers.text = Helpers.addCommas(city.getHealthyPop());
infectedNumbers.text = Helpers.addCommas(city.getInfectedPop());
deadNumbers.text = Helpers.addCommas(city.getDeadPop());
s = (((city.getImmunePop() + city.getHealthyPop()) + city.getInfectedPop()) + city.getDeadPop());
immuneBar.fillBar.scaleX = (city.getImmunePop() / s);
healthyBar.fillBar.scaleX = (city.getHealthyPop() / s);
infectedBar.fillBar.scaleX = (city.getInfectedPop() / s);
deadBar.fillBar.scaleX = (city.getDeadPop() / s);
totalRevenue.text = ("$" + Helpers.addCommas(city.getLastRevenue()));
totalExpenses.text = ("$" + Helpers.addCommas(city.getLastExpenses()));
netIncome.text = ("$" + Helpers.addCommas((city.getLastRevenue() - city.getLastExpenses())));
currentString = new String(city.getCityName());
cityTitle.text = (currentString.toUpperCase() + " INFORMATION");
totalFunds.text = (("$" + Helpers.addCommas(EconomyManager.getCurrentFunds())) + " FUNDS AVAILABLE");
if (region.getLooting()){
lootingImage.gotoAndStop(2);
};
if (region.getRioting()){
riotingImage.gotoAndStop(2);
};
if (GameManager.getGovType() == GameManager.GOV_CLOSED){
neutronLock.visible = true;
} else {
neutronLock.visible = false;
};
if (GameManager.getGovType() == GameManager.GOV_OPEN){
nuclearLock.visible = true;
} else {
nuclearLock.visible = false;
};
s = EconomyManager.COST_CITY_QUARANTINE_BASE;
s = (s + (EconomyManager.COST_CITY_QUARANTINE_HEALTHY * city.getHealthyPop()));
s = (s + (EconomyManager.COST_CITY_QUARANTINE_IMMUNE * city.getImmunePop()));
s = (s + (EconomyManager.COST_CITY_QUARANTINE_INFECTED * city.getInfectedPop()));
if (region.getLooting()){
s = (s * EconomyManager.COST_CITY_QUARANTINE_LOOTING);
};
if (region.getRioting()){
s = (s * EconomyManager.COST_CITY_QUARANTINE_RIOTING);
};
s = (s + (s * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
s = (s * ((int((GameManager.getGovType() == GameManager.GOV_CLOSED)) * 0.9) + int(!((GameManager.getGovType() == GameManager.GOV_CLOSED)))));
cost0.text = ("$" + Helpers.addCommas(s));
quarantineContainer.setup(s, city.getQuarantineOp(), quarantineContainer.coreButton);
s = EconomyManager.COST_CITY_NEUTRON_BASE;
s = (s + (s * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
cost1.text = ("$" + Helpers.addCommas(s));
neutronContainer.setup(s, city.getNeutronOp(), neutronContainer.coreButton, true);
s = EconomyManager.COST_CITY_NUKE_BASE;
s = (s + (s * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
cost2.text = ("$" + Helpers.addCommas(s));
nukeContainer.setup(s, city.getNukeOp(), nukeContainer.coreButton, true);
stop();
}
}
}//package INFORMATIONOBJECTS.WINDOWS
Section 101
//HospitalWindow (INFORMATIONOBJECTS.WINDOWS.HospitalWindow)
package INFORMATIONOBJECTS.WINDOWS {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import GUI.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import flash.text.*;
import INFORMATIONOBJECTS.BUTTONCONTAINERS.*;
public class HospitalWindow extends MovieClip {
public var hospitalClosedStatus:MovieClip;
public var cost0:TextField;
public var clickout1:MovieClip;
public var militaryContainer:RegionMilitaryContainer;
public var clickout0:MovieClip;
private var region:Region;
public var closeWindowButton:BackCloseWindowButton;
public var totalFunds:TextField;
public var s:int;
private var hospital:Hospital;
public var hospitalOpenStatus:MovieClip;
public function HospitalWindow(_arg1:Hospital, _arg2:Region){
addFrameScript(5, frame6, 11, frame12);
hospital = _arg1;
region = _arg2;
if (region == null){
};
}
public function turnHospitalOn():void{
militaryContainer.setDisabled(false);
militaryContainer.setButtonStatus(true);
militaryContainer.setup(s, hospital.getMilitaryOp(), militaryContainer.coreButton);
hospital.openHospital();
InputManager.removeTempIacvObject("_hospitalOpenButton");
hospitalOpenStatus.hospitalButton.enabled = false;
hospitalClosedStatus.hospitalButton.enabled = true;
hospitalClosedStatus.hospitalButton.addToInputManager();
hospitalOpenStatus.gotoAndStop(2);
hospitalClosedStatus.gotoAndStop(1);
}
public function turnHospitalOff():void{
militaryContainer.setActivation(false);
militaryContainer.setDisabled(true);
militaryContainer.setButtonStatus(false);
hospital.closeHospital();
InputManager.removeTempIacvObject("_hospitalClosedButton");
hospitalClosedStatus.hospitalButton.enabled = false;
hospitalOpenStatus.hospitalButton.enabled = true;
hospitalOpenStatus.hospitalButton.addToInputManager();
hospitalOpenStatus.gotoAndStop(1);
hospitalClosedStatus.gotoAndStop(2);
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_militaryContainerButton");
InputManager.removeTempIacvObject("_hospitalOpenButton");
InputManager.removeTempIacvObject("_hospitalClosedButton");
GuiManager.cleanupPrimaryGui();
}
function frame6(){
s = 0;
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
totalFunds.text = (("$" + Helpers.addCommas(EconomyManager.getCurrentFunds())) + " FUNDS AVAILABLE");
cost0.text = ("$" + Helpers.addCommas(hospital.getMilitaryOp().getOperationCost()));
militaryContainer.setup(hospital.getMilitaryOp().getOperationCost(), hospital.getMilitaryOp(), militaryContainer.coreButton);
if (hospital.getHospitalStatus()){
hospitalOpenStatus.gotoAndStop(2);
hospitalClosedStatus.gotoAndStop(1);
hospitalOpenStatus.hospitalButton.enabled = false;
} else {
militaryContainer.setDisabled(true);
militaryContainer.setButtonStatus(false);
hospitalOpenStatus.gotoAndStop(1);
hospitalClosedStatus.gotoAndStop(2);
hospitalClosedStatus.hospitalButton.enabled = false;
};
hospitalOpenStatus.hospitalButton.setInvokeFunction(turnHospitalOn);
hospitalOpenStatus.hospitalButton.setName("_hospitalOpenButton");
hospitalOpenStatus.hospitalButton.addToInputManager();
hospitalClosedStatus.hospitalButton.setInvokeFunction(turnHospitalOff);
hospitalClosedStatus.hospitalButton.setName("_hospitalClosedButton");
hospitalClosedStatus.hospitalButton.addToInputManager();
stop();
}
}
}//package INFORMATIONOBJECTS.WINDOWS
Section 102
//InterstateWindow (INFORMATIONOBJECTS.WINDOWS.InterstateWindow)
package INFORMATIONOBJECTS.WINDOWS {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import GUI.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import flash.text.*;
import INFORMATIONOBJECTS.BUTTONCONTAINERS.*;
public class InterstateWindow extends MovieClip {
public var cost1:TextField;
public var cost0:TextField;
public var clickout1:MovieClip;
public var clickout0:MovieClip;
private var interstate:Interstate;
public var closeWindowButton:BackCloseWindowButton;
public var totalFunds:TextField;
public var s:int;
public var roadBlocks:RoadBlockContainer;
public var roadBarricades:RoadBarricadeContainer;
public function InterstateWindow(_arg1:Interstate){
addFrameScript(5, frame6, 11, frame12);
interstate = _arg1;
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_roadBarricadeButton");
InputManager.removeTempIacvObject("_roadBlockButton");
GuiManager.cleanupPrimaryGui();
}
function frame6(){
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
s = 0;
totalFunds.text = (("$" + Helpers.addCommas(EconomyManager.getCurrentFunds())) + " FUNDS AVAILABLE");
s = EconomyManager.COST_ROAD_BLOCK;
s = (s + (s * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
cost0.text = ("$" + Helpers.addCommas(s));
roadBlocks.setup(s, interstate.getBlockOp(), roadBlocks.coreButton);
s = EconomyManager.COST_ROAD_BARRICADE;
s = (s + (s * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
cost1.text = ("$" + Helpers.addCommas(s));
roadBarricades.setup(s, interstate.getBarricadeOp(), roadBarricades.coreButton);
stop();
}
}
}//package INFORMATIONOBJECTS.WINDOWS
Section 103
//NewsReportWindow (INFORMATIONOBJECTS.WINDOWS.NewsReportWindow)
package INFORMATIONOBJECTS.WINDOWS {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import GUI.*;
import flash.geom.*;
import GUI.IACVOBJECTS.*;
import flash.text.*;
public class NewsReportWindow extends MovieClip {
public var clickout1:MovieClip;
public var clickout0:MovieClip;
public var closeWindowButton:BackCloseWindowButton;
public var reportTitle:TextField;
private var newsEvent:NewsEvent;
public var s:int;
public var findTarget:FindTarget;
public var noTarget:MovieClip;
public var reportDesc:TextField;
public function NewsReportWindow(_arg1:NewsEvent){
addFrameScript(5, frame6, 11, frame12);
newsEvent = _arg1;
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_findTargetButton");
GuiManager.cleanupPrimaryGui();
}
function frame6(){
s = 0;
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
reportTitle.text = newsEvent.getEventTitle();
reportDesc.text = newsEvent.getEventBody();
noTarget.visible = false;
if ((((((newsEvent.getEventTarget() == NewsEvent.EVENT_TARGET_NATIONAL)) || ((newsEvent.getEventTarget() == NewsEvent.EVENT_TARGET_GLOBAL)))) || ((newsEvent.getPrimaryTarget() == null)))){
noTarget.visible = true;
};
findTarget.setInvokeFunction(findOpTarget);
findTarget.setName("_findTargetButton");
findTarget.addToInputManager();
stop();
}
public function findOpTarget():void{
InputManager.removeTempIacvObject("_findTargetButton");
if (newsEvent.getPrimaryTarget() != null){
newsEvent.getPrimaryTarget().getSurface().scrollSurfaceToCenter(new Point((newsEvent.getPrimaryTarget().x + (newsEvent.getPrimaryTarget().width / 2)), newsEvent.getPrimaryTarget().y));
GuiManager.closePrimaryGui();
};
}
}
}//package INFORMATIONOBJECTS.WINDOWS
Section 104
//OperationWindowFiniteA (INFORMATIONOBJECTS.WINDOWS.OperationWindowFiniteA)
package INFORMATIONOBJECTS.WINDOWS {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import GUI.*;
import flash.geom.*;
import GUI.IACVOBJECTS.*;
import flash.text.*;
public class OperationWindowFiniteA extends MovieClip {
public var clickout1:MovieClip;
public var operationTitle:TextField;
public var clickout0:MovieClip;
public var closeWindowButton:BackCloseWindowButton;
public var s:int;
public var operationDesc:TextField;
public var findTarget:FindTarget;
public var noTarget:MovieClip;
private var op:FiniteOperation;
public function OperationWindowFiniteA(_arg1:FiniteOperation){
addFrameScript(5, frame6, 11, frame12);
op = _arg1;
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_findTargetButton");
GuiManager.cleanupPrimaryGui();
}
function frame6(){
s = 0;
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
operationTitle.text = op.getName();
operationDesc.text = "";
noTarget.visible = false;
switch (op.getOperationType()){
case Operation.OP_INFO_CAMPAIGN:
noTarget.visible = true;
operationDesc.text = "INFO CAMPAIGNS FULLY INFORM THE PUBLIC ABOUT ALL OPERATIONS AND DISEASE CONDITIONS TO REDUCE PANIC AND INFECTION RATES.";
break;
case Operation.OP_MEDIA_CENSOR:
noTarget.visible = true;
operationDesc.text = "THE MEDIA IS CENSORED FOR A PERIOD OF TIME PREVENTING ANY NEW MEDIA REPORTS FROM BEING RELEASED TO THE PUBLIC.";
break;
case Operation.OP_MEDIA_SPIN:
noTarget.visible = true;
operationDesc.text = "ANY NEW REPORTS RELEASED TO THE PUBLIC GENERATE FAR LESS PANIC THAN THEY NORMALLY WOULD. POSITIVE REPORTS HAVE A LARGER IMPACT ON PANIC.";
break;
case Operation.OP_MEDIA_FEAR:
noTarget.visible = true;
operationDesc.text = "A NEW SERIES OF REPORTS ARE WRITTEN TO PROMOTE PANIC AND FEAR. AS THE REPORTS ARE RELEASED PUBLIC PANIC IS INCREASED.";
break;
case Operation.OP_CITY_NEUTRON:
operationDesc.text = "A NEUTRON BOMB IS DROPPED ONTO THE TARGETED CITY INSTANTLY KILLING THE ENTIRE POPULATION BUT LEAVING THE CITY INTACT.";
break;
case Operation.OP_CITY_NUKE:
operationDesc.text = "A NUCLEAR BOMB IS DROPPED ONTO THE TARGETED CITY INSTANTLY KILLING THE ENTIRE POPULATION AND DESTROYING EVERY BUILDING.";
break;
case Operation.OP_DISTRIBUTE_MASKS:
operationDesc.text = "MASKS ARE DISTRIBUTED TO THE PUBLIC WITHIN THE TARGETED CITY FOR A PERIOD OF TIME GREATLY LOWERING INFECTION RATES.";
break;
};
if ((((op.getRegion() == null)) && ((op.getSecondRegion() == null)))){
noTarget.visible = true;
};
findTarget.setInvokeFunction(findOpTarget);
findTarget.setName("_findTargetButton");
findTarget.addToInputManager();
stop();
}
public function findOpTarget():void{
InputManager.removeTempIacvObject("_findTargetButton");
if (((!((op.getSecondRegion() == null))) && (op.getStatus()))){
op.getRegion().getSurface().scrollSurfaceToCenter(new Point((op.getSecondRegion().x + (op.getSecondRegion().width / 2)), op.getSecondRegion().y));
GuiManager.closePrimaryGui();
} else {
if (((!((op.getRegion() == null))) && (op.getStatus()))){
op.getRegion().getSurface().scrollSurfaceToCenter(new Point((op.getRegion().x + (op.getRegion().width / 2)), op.getRegion().y));
GuiManager.closePrimaryGui();
};
};
}
}
}//package INFORMATIONOBJECTS.WINDOWS
Section 105
//OperationWindowInfiniteA (INFORMATIONOBJECTS.WINDOWS.OperationWindowInfiniteA)
package INFORMATIONOBJECTS.WINDOWS {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import GUI.*;
import flash.geom.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import flash.text.*;
public class OperationWindowInfiniteA extends MovieClip {
public var clickout1:MovieClip;
public var operationTitle:TextField;
public var clickout0:MovieClip;
public var stopOpLock:MovieClip;
public var closeWindowButton:BackCloseWindowButton;
public var totalFunds:TextField;
public var s:int;
public var operationDesc:TextField;
public var stopOperation:StopOperation;
public var findTarget:FindTarget;
public var noTarget:MovieClip;
public var operationCost:TextField;
private var op:InfiniteOperation;
public function OperationWindowInfiniteA(_arg1:InfiniteOperation){
addFrameScript(5, frame6, 11, frame12);
op = _arg1;
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_findTargetButton");
InputManager.removeTempIacvObject("_stopOperationButton");
GuiManager.cleanupPrimaryGui();
}
function frame6(){
s = 0;
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
totalFunds.text = (("$" + Helpers.addCommas(EconomyManager.getCurrentFunds())) + " FUNDS AVAILABLE");
operationTitle.text = op.getName();
operationDesc.text = "";
noTarget.visible = false;
switch (op.getOperationType()){
case Operation.OP_MILITARY_INFRASTRUCTURE:
operationDesc.text = "MILITARY SUPPORT INCREASES PUBLIC ORDER. THE EFFECTS OF OPERATIONS ARE INCREASED WHEN MILITARY SUPPORT IS ENABLED.";
break;
case Operation.OP_MILITARY_REGION:
operationDesc.text = "MILITARY SUPPORT INCREASES PUBLIC ORDER. THE EFFECTS OF OPERATIONS ARE INCREASED WHEN MILITARY SUPPORT IS ENABLED.";
break;
case Operation.OP_VACCINE_RESEARCH:
noTarget.visible = true;
operationDesc.text = "RESEARCHING A VACCINE WILL EVENTUALLY PROVIDE YOU WITH THE OPTION OF DISTRIBUTING VACCINES TO THE PUBLIC TO STOP INFECTION RATES.";
break;
case Operation.OP_ROAD_BLOCK:
operationDesc.text = "ROAD BLOCKS PREVENT INFECTIONS FROM SPREADING BY INSPECTING TRAFFIC AND TURNING AWAY ANYONE WHO APPEARS TO BE INFECTED.";
break;
case Operation.OP_ROAD_BARRICADE:
operationDesc.text = "ROAD BARRICADES CLOSE THE ROAD TO ALL TRAFFIC PREVENTING ANYONE FROM LEAVING OR ENTERING VIA THE ROAD REGARDLESS OF HEALTH.";
break;
case Operation.OP_DEPORT_INFECTED:
noTarget.visible = true;
operationDesc.text = "DEPORTING INFECTED RESULTS IN ANY NON AMERICANS BEING DEPORTED IF THEY SHOW SIGNS OF BEING INFECTED WITH THE SWINE FLU.";
break;
case Operation.OP_EXTREME_POLICIES:
noTarget.visible = true;
operationDesc.text = "EXTREME POLICIES COMPLETELY STOPS THE INFECTION FROM ENTERING NEW STATES BY EMPLOYING UNJUST AND QUESTIONABLE MEASURES.";
break;
case Operation.OP_CITY_QUARANTINE:
operationDesc.text = "CITY QUARANTINES ATTEMPT TO COMPLETELY SEAL OFF A CITY FROM THE OUTSIDE WORLD. NO ONE CAN ENTER AND NO ONE CAN LEAVE THE CITY.";
break;
case Operation.OP_ENFORCE_CURFEW:
operationDesc.text = "CURFEWS ARE ENFORCED CAUSING INFECTION RATES TO BECOME GREATLY REDUCED WITHIN THE AFFECTED REGION.";
break;
case Operation.OP_DISTRIBUTE_VACCINE:
operationDesc.text = "VACCINES ARE DISTRIBUTED TO THE PUBLIC RESULTING IN HEALTHY POPULATIONS BECOMING IMMUNE TO THE SWINE FLU.";
break;
};
if ((((op.getRegion() == null)) && ((op.getSecondRegion() == null)))){
noTarget.visible = true;
};
stopOpLock.visible = !(op.getStatus());
operationCost.text = ("$" + Helpers.addCommas(op.getOperationCost()));
findTarget.setInvokeFunction(findOpTarget);
findTarget.setName("_findTargetButton");
findTarget.addToInputManager();
stopOperation.setInvokeFunction(stopOp);
stopOperation.setName("_stopOperationButton");
stopOperation.addToInputManager();
stop();
}
public function stopOp():void{
InputManager.removeTempIacvObject("_findTargetButton");
InputManager.removeTempIacvObject("_stopOperationButton");
op.deactivateOperation();
stopOpLock.visible = !(op.getStatus());
noTarget.visible = true;
}
public function findOpTarget():void{
InputManager.removeTempIacvObject("_findTargetButton");
InputManager.removeTempIacvObject("_stopOperationButton");
if (((!((op.getSecondRegion() == null))) && (op.getStatus()))){
op.getRegion().getSurface().scrollSurfaceToCenter(new Point((op.getSecondRegion().x + (op.getSecondRegion().width / 2)), op.getSecondRegion().y));
GuiManager.closePrimaryGui();
} else {
if (((!((op.getRegion() == null))) && (op.getStatus()))){
op.getRegion().getSurface().scrollSurfaceToCenter(new Point((op.getRegion().x + (op.getRegion().width / 2)), op.getRegion().y));
GuiManager.closePrimaryGui();
};
};
}
}
}//package INFORMATIONOBJECTS.WINDOWS
Section 106
//OperationWindowInfiniteB (INFORMATIONOBJECTS.WINDOWS.OperationWindowInfiniteB)
package INFORMATIONOBJECTS.WINDOWS {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import GUI.*;
import flash.geom.*;
import MANAGERS.*;
import flash.text.*;
public class OperationWindowInfiniteB extends MovieClip {
public var clickout1:MovieClip;
public var operationTitle:TextField;
public var clickout0:MovieClip;
public var stopOpLock:MovieClip;
public var totalFunds:TextField;
public var s:int;
public var operationDesc:TextField;
public var stopOperation:StopOperation;
public var findTarget:FindTarget;
public var noTarget:MovieClip;
public var operationCost:TextField;
private var op:InfiniteOperation;
public function OperationWindowInfiniteB(_arg1:InfiniteOperation){
addFrameScript(5, frame6, 11, frame12);
op = _arg1;
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_findTargetButton");
InputManager.removeTempIacvObject("_stopOperationButton");
GuiManager.cleanupSecondaryGui();
}
function frame6(){
s = 0;
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
totalFunds.text = (("$" + Helpers.addCommas(EconomyManager.getCurrentFunds())) + " FUNDS AVAILABLE");
operationTitle.text = op.getName();
operationDesc.text = "";
noTarget.visible = false;
switch (op.getOperationType()){
case Operation.OP_MILITARY_INFRASTRUCTURE:
operationDesc.text = "MILITARY SUPPORT INCREASES PUBLIC ORDER. THE EFFECTS OF OPERATIONS ARE INCREASED WHEN MILITARY SUPPORT IS ENABLED.";
break;
case Operation.OP_MILITARY_REGION:
operationDesc.text = "MILITARY SUPPORT INCREASES PUBLIC ORDER. THE EFFECTS OF OPERATIONS ARE INCREASED WHEN MILITARY SUPPORT IS ENABLED.";
break;
case Operation.OP_VACCINE_RESEARCH:
noTarget.visible = true;
operationDesc.text = "RESEARCHING A VACCINE WILL EVENTUALLY PROVIDE YOU WITH THE OPTION OF DISTRIBUTING VACCINES TO THE PUBLIC TO STOP INFECTION RATES.";
break;
case Operation.OP_ROAD_BLOCK:
operationDesc.text = "ROAD BLOCKS PREVENT INFECTIONS FROM SPREADING BY INSPECTING TRAFFIC AND TURNING AWAY ANYONE WHO APPEARS TO BE INFECTED.";
break;
case Operation.OP_ROAD_BARRICADE:
operationDesc.text = "ROAD BARRICADES CLOSE THE ROAD TO ALL TRAFFIC PREVENTING ANYONE FROM LEAVING OR ENTERING VIA THE ROAD REGARDLESS OF HEALTH.";
break;
case Operation.OP_DEPORT_INFECTED:
noTarget.visible = true;
operationDesc.text = "DEPORTING INFECTED RESULTS IN ANY NON AMERICANS BEING DEPORTED IF THEY SHOW SIGNS OF BEING INFECTED WITH THE SWINE FLU.";
break;
case Operation.OP_EXTREME_POLICIES:
noTarget.visible = true;
operationDesc.text = "EXTREME POLICIES COMPLETELY STOPS THE INFECTION FROM ENTERING NEW STATES BY EMPLOYING UNJUST AND QUESTIONABLE MEASURES.";
break;
case Operation.OP_CITY_QUARANTINE:
operationDesc.text = "CITY QUARANTINES ATTEMPT TO COMPLETELY SEAL OFF A CITY FROM THE OUTSIDE WORLD. NO ONE CAN ENTER AND NO ONE CAN LEAVE THE CITY.";
break;
case Operation.OP_ENFORCE_CURFEW:
operationDesc.text = "CURFEWS ARE ENFORCED CAUSING INFECTION RATES TO BECOME GREATLY REDUCED WITHIN THE AFFECTED REGION.";
break;
case Operation.OP_DISTRIBUTE_VACCINE:
operationDesc.text = "VACCINES ARE DISTRIBUTED TO THE PUBLIC RESULTING IN HEALTHY POPULATIONS BECOMING IMMUNE TO THE SWINE FLU.";
break;
};
if ((((op.getRegion() == null)) && ((op.getSecondRegion() == null)))){
noTarget.visible = true;
};
stopOpLock.visible = !(op.getStatus());
operationCost.text = ("$" + Helpers.addCommas(op.getOperationCost()));
findTarget.setInvokeFunction(findOpTarget);
findTarget.setName("_findTargetButton");
findTarget.addToInputManager();
stopOperation.setInvokeFunction(stopOp);
stopOperation.setName("_stopOperationButton");
stopOperation.addToInputManager();
stop();
}
public function stopOp():void{
InputManager.removeTempIacvObject("_findTargetButton");
InputManager.removeTempIacvObject("_stopOperationButton");
op.deactivateOperation();
stopOpLock.visible = !(op.getStatus());
noTarget.visible = true;
}
public function findOpTarget():void{
InputManager.removeTempIacvObject("_findTargetButton");
InputManager.removeTempIacvObject("_stopOperationButton");
if (((!((op.getSecondRegion() == null))) && (op.getStatus()))){
op.getRegion().getSurface().scrollSurfaceToCenter(new Point((op.getSecondRegion().x + (op.getSecondRegion().width / 2)), op.getSecondRegion().y));
GuiManager.closeSecondaryGui();
GuiManager.closePrimaryGui();
} else {
if (((!((op.getRegion() == null))) && (op.getStatus()))){
op.getRegion().getSurface().scrollSurfaceToCenter(new Point((op.getRegion().x + (op.getRegion().width / 2)), op.getRegion().y));
GuiManager.closeSecondaryGui();
GuiManager.closePrimaryGui();
};
};
}
}
}//package INFORMATIONOBJECTS.WINDOWS
Section 107
//SeaportWindow (INFORMATIONOBJECTS.WINDOWS.SeaportWindow)
package INFORMATIONOBJECTS.WINDOWS {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import GUI.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import flash.text.*;
import INFORMATIONOBJECTS.BUTTONCONTAINERS.*;
public class SeaportWindow extends MovieClip {
public var domRev:TextField;
public var cost0:TextField;
public var clickout1:MovieClip;
public var militaryContainer:RegionMilitaryContainer;
public var clickout0:MovieClip;
public var intRev:TextField;
private var region:Region;
private var seaport:Seaport;
public var airClosed:MovieClip;
public var closeWindowButton:BackCloseWindowButton;
public var totalFunds:TextField;
public var domBan:MovieClip;
public var s:int;
public var intBan:MovieClip;
public var airOpen:MovieClip;
public var intPermit:MovieClip;
public var domPermit:MovieClip;
public var intInfectionChance:TextField;
public function SeaportWindow(_arg1:Seaport, _arg2:Region){
addFrameScript(5, frame6, 11, frame12);
seaport = _arg1;
region = _arg2;
if (region == null){
};
}
public function turnOnInt():void{
seaport.permitInt();
intPermit.gotoAndStop((int(seaport.getIntStatus()) + 1));
intBan.gotoAndStop((int(!(seaport.getIntStatus())) + 1));
InputManager.removeTempIacvObject("_seaportIntPermit");
intBan.coreButton.addToInputManager();
intPermit.coreButton.enabled = false;
intBan.coreButton.enabled = true;
}
public function shutdownAir():void{
militaryContainer.setActivation(false);
militaryContainer.setDisabled(true);
militaryContainer.setButtonStatus(false);
seaport.closeSeaport();
domPermit.gotoAndStop((int(seaport.getDomStatus()) + 1));
domBan.gotoAndStop((int(!(seaport.getDomStatus())) + 1));
intPermit.gotoAndStop((int(seaport.getIntStatus()) + 1));
intBan.gotoAndStop((int(!(seaport.getIntStatus())) + 1));
domPermit.alpha = 0.5;
domBan.alpha = 0.5;
intPermit.alpha = 0.5;
intBan.alpha = 0.5;
InputManager.removeTempIacvObject("_seaportDomPermit");
InputManager.removeTempIacvObject("_seaportIntPermit");
InputManager.removeTempIacvObject("_seaportDomBan");
InputManager.removeTempIacvObject("_seaportIntBan");
InputManager.removeTempIacvObject("_seaportClosedButton");
airOpen.coreButton.addToInputManager();
airOpen.coreButton.enabled = true;
airClosed.coreButton.enabled = false;
domPermit.coreButton.enabled = false;
domBan.coreButton.enabled = false;
intPermit.coreButton.enabled = false;
intBan.coreButton.enabled = false;
airOpen.gotoAndStop((int(seaport.getSeaportStatus()) + 1));
airClosed.gotoAndStop((int(!(seaport.getSeaportStatus())) + 1));
}
public function turnOffDom():void{
seaport.banDom();
domBan.gotoAndStop((int(!(seaport.getDomStatus())) + 1));
domPermit.gotoAndStop((int(seaport.getDomStatus()) + 1));
InputManager.removeTempIacvObject("_seaportDomBan");
domPermit.coreButton.addToInputManager();
domBan.coreButton.enabled = false;
domPermit.coreButton.enabled = true;
}
public function turnOnDom():void{
seaport.permitDom();
domPermit.gotoAndStop((int(seaport.getDomStatus()) + 1));
domBan.gotoAndStop((int(!(seaport.getDomStatus())) + 1));
InputManager.removeTempIacvObject("_seaportDomPermit");
domBan.coreButton.addToInputManager();
domPermit.coreButton.enabled = false;
domBan.coreButton.enabled = true;
}
function frame6(){
s = 0;
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
totalFunds.text = (("$" + Helpers.addCommas(EconomyManager.getCurrentFunds())) + " FUNDS AVAILABLE");
cost0.text = ("$" + Helpers.addCommas(seaport.getMilitaryOp().getOperationCost()));
militaryContainer.setup(seaport.getMilitaryOp().getOperationCost(), seaport.getMilitaryOp(), militaryContainer.coreButton);
domPermit.gotoAndStop((int(seaport.getDomStatus()) + 1));
domBan.gotoAndStop((int(!(seaport.getDomStatus())) + 1));
intPermit.gotoAndStop((int(seaport.getIntStatus()) + 1));
intBan.gotoAndStop((int(!(seaport.getIntStatus())) + 1));
airOpen.gotoAndStop((int(seaport.getSeaportStatus()) + 1));
airClosed.gotoAndStop((int(!(seaport.getSeaportStatus())) + 1));
if (!seaport.getSeaportStatus()){
domPermit.alpha = 0.5;
domBan.alpha = 0.5;
intPermit.alpha = 0.5;
intBan.alpha = 0.5;
militaryContainer.setActivation(false);
militaryContainer.setDisabled(true);
militaryContainer.setButtonStatus(false);
};
domRev.text = ("$" + Helpers.addCommas(seaport.getDomTourismRevenue()));
intRev.text = ("$" + Helpers.addCommas(seaport.getIntTourismRevenue()));
intInfectionChance.text = (Helpers.roundTo((seaport.getInfectedDetectionOdds() * 100), 1, 2, 0) + "% CHANCE OF INFECTED.");
domPermit.coreButton.setInvokeFunction(turnOnDom);
domPermit.coreButton.setName("_seaportDomPermit");
if (((!(seaport.getDomStatus())) && (seaport.getSeaportStatus()))){
domPermit.coreButton.addToInputManager();
} else {
domPermit.coreButton.enabled = false;
};
domBan.coreButton.setInvokeFunction(turnOffDom);
domBan.coreButton.setName("_seaportDomBan");
if (((seaport.getDomStatus()) && (seaport.getSeaportStatus()))){
domBan.coreButton.addToInputManager();
} else {
domBan.coreButton.enabled = false;
};
intPermit.coreButton.setInvokeFunction(turnOnInt);
intPermit.coreButton.setName("_seaportIntPermit");
if (((!(seaport.getIntStatus())) && (seaport.getSeaportStatus()))){
intPermit.coreButton.addToInputManager();
} else {
intPermit.coreButton.enabled = false;
};
intBan.coreButton.setInvokeFunction(turnOffInt);
intBan.coreButton.setName("_seaportIntBan");
if (((seaport.getIntStatus()) && (seaport.getSeaportStatus()))){
intBan.coreButton.addToInputManager();
} else {
intBan.coreButton.enabled = false;
};
airOpen.coreButton.setInvokeFunction(openAir);
airOpen.coreButton.setName("_seaportOpenButton");
if (!seaport.getSeaportStatus()){
airOpen.coreButton.addToInputManager();
} else {
airOpen.coreButton.enabled = false;
};
airClosed.coreButton.setInvokeFunction(shutdownAir);
airClosed.coreButton.setName("_seaportClosedButton");
if (seaport.getSeaportStatus()){
airClosed.coreButton.addToInputManager();
} else {
airClosed.coreButton.enabled = false;
};
stop();
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_militaryContainerButton");
InputManager.removeTempIacvObject("_airportDomPermit");
InputManager.removeTempIacvObject("_airportIntPermit");
InputManager.removeTempIacvObject("_airportDomBan");
InputManager.removeTempIacvObject("_airportIntBan");
InputManager.removeTempIacvObject("_airportClosedButton");
InputManager.removeTempIacvObject("_airportOpenButton");
GuiManager.cleanupPrimaryGui();
}
public function openAir():void{
militaryContainer.setDisabled(false);
militaryContainer.setButtonStatus(true);
militaryContainer.setup(s, seaport.getMilitaryOp(), militaryContainer.coreButton);
seaport.openSeaport();
domPermit.gotoAndStop((int(seaport.getDomStatus()) + 1));
domBan.gotoAndStop((int(!(seaport.getDomStatus())) + 1));
intPermit.gotoAndStop((int(seaport.getIntStatus()) + 1));
intBan.gotoAndStop((int(!(seaport.getIntStatus())) + 1));
domPermit.alpha = 1;
domBan.alpha = 1;
intPermit.alpha = 1;
intBan.alpha = 1;
InputManager.removeTempIacvObject("_seaportOpenButton");
domBan.coreButton.addToInputManager();
intBan.coreButton.addToInputManager();
airClosed.coreButton.addToInputManager();
airClosed.coreButton.enabled = true;
airOpen.coreButton.enabled = false;
domBan.coreButton.enabled = true;
intBan.coreButton.enabled = true;
airOpen.gotoAndStop((int(seaport.getSeaportStatus()) + 1));
airClosed.gotoAndStop((int(!(seaport.getSeaportStatus())) + 1));
}
public function turnOffInt():void{
seaport.banInt();
intBan.gotoAndStop((int(!(seaport.getIntStatus())) + 1));
intPermit.gotoAndStop((int(seaport.getIntStatus()) + 1));
InputManager.removeTempIacvObject("_seaportIntBan");
intPermit.coreButton.addToInputManager();
intBan.coreButton.enabled = false;
intPermit.coreButton.enabled = true;
}
}
}//package INFORMATIONOBJECTS.WINDOWS
Section 108
//StateWindow (INFORMATIONOBJECTS.WINDOWS.StateWindow)
package INFORMATIONOBJECTS.WINDOWS {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import GUI.*;
import MANAGERS.*;
import flash.text.*;
import INFORMATIONOBJECTS.BUTTONCONTAINERS.*;
public class StateWindow extends MovieClip {
public var riotingImage:MovieClip;
public var cost2:TextField;
public var curfewContainer:CurfewContainer;
public var cost1:TextField;
public var cost3:TextField;
public var maskContainer:HandMasksContainer;
public var cost0:TextField;
public var deadBar:MovieClip;
public var clickout1:MovieClip;
public var militaryContainer:RegionMilitaryContainer;
public var currentString:String;
public var clickout0:MovieClip;
public var infectedNumbers:TextField;
public var totalRevenue:TextField;
public var maskLock:MovieClip;
public var healthyBar:MovieClip;
public var riotingExpenses:TextField;
public var vaccineContainer:DisburseVaccineContainer;
public var lootingImage:MovieClip;
private var region:Region;
public var immuneNumbers:TextField;
public var stateTitle:TextField;
public var totalFunds:TextField;
public var lootingExpenses:TextField;
public var totalExpenses:TextField;
public var vaccineLock:MovieClip;
public var immuneBar:MovieClip;
public var deadNumbers:TextField;
public var netIncome:TextField;
public var s:int;
public var healthyNumbers:TextField;
public var infectedBar:MovieClip;
public function StateWindow(_arg1:Region){
addFrameScript(5, frame6, 11, frame12);
region = _arg1;
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_militaryContainerButton");
InputManager.removeTempIacvObject("_disburseVaccineButton");
InputManager.removeTempIacvObject("_handOutMasksButton");
InputManager.removeTempIacvObject("_curfewContainerButton");
GuiManager.cleanupPrimaryGui();
}
function frame6(){
s = 0;
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
immuneNumbers.text = Helpers.addCommas(region.getImmunePopTot());
healthyNumbers.text = Helpers.addCommas(region.getHealthyPopTot());
infectedNumbers.text = Helpers.addCommas(region.getInfectedPopTot());
deadNumbers.text = Helpers.addCommas(region.getDeadPopTot());
s = (((region.getImmunePopTot() + region.getHealthyPopTot()) + region.getInfectedPopTot()) + region.getDeadPopTot());
immuneBar.fillBar.scaleX = (region.getImmunePopTot() / s);
healthyBar.fillBar.scaleX = (region.getHealthyPopTot() / s);
infectedBar.fillBar.scaleX = (region.getInfectedPopTot() / s);
deadBar.fillBar.scaleX = (region.getDeadPopTot() / s);
totalRevenue.text = ("$" + Helpers.addCommas(region.getLastRevenue()));
totalExpenses.text = ("$" + Helpers.addCommas(region.getLastExpenses()));
netIncome.text = ("$" + Helpers.addCommas((region.getLastRevenue() - region.getLastExpenses())));
currentString = new String(region.getRegionName());
stateTitle.text = (currentString.toUpperCase() + " INFORMATION");
totalFunds.text = (("$" + Helpers.addCommas(EconomyManager.getCurrentFunds())) + " FUNDS AVAILABLE");
lootingExpenses.text = "";
riotingExpenses.text = "";
if (region.getLooting()){
s = (((EconomyManager.COST_LOOTING_HEALTHY * region.getHealthyPop()) + (EconomyManager.COST_LOOTING_IMMUNE * region.getImmunePop())) + (EconomyManager.COST_LOOTING_INFECTED * region.getInfectedPop()));
lootingImage.gotoAndStop(2);
lootingExpenses.text = (("$" + Helpers.addCommas(s)) + " TO EXPENSES");
};
if (region.getRioting()){
s = (((EconomyManager.COST_RIOTING_HEALTHY * region.getHealthyPop()) + (EconomyManager.COST_RIOTING_IMMUNE * region.getImmunePop())) + (EconomyManager.COST_RIOTING_INFECTED * region.getInfectedPop()));
riotingImage.gotoAndStop(2);
riotingExpenses.text = (("$" + Helpers.addCommas(s)) + " TO EXPENSES");
};
if (region.getInfectedPopTot() == 0){
maskLock.visible = true;
} else {
maskLock.visible = false;
};
if (CountryManager.getVaccineStatus()){
vaccineLock.visible = false;
} else {
vaccineLock.visible = true;
};
cost0.text = ("$" + Helpers.addCommas(region.getMilitaryOp().getOperationCost()));
militaryContainer.setup(region.getMilitaryOp().getOperationCost(), region.getMilitaryOp(), militaryContainer.coreButton);
cost1.text = ("$" + Helpers.addCommas(region.getCurfewsOp().getOperationCost()));
curfewContainer.setup(region.getCurfewsOp().getOperationCost(), region.getCurfewsOp(), curfewContainer.coreButton);
s = EconomyManager.COST_DISTRIBUTE_MASKS_BASE;
s = (s + (EconomyManager.COST_DISTRIBUTE_MASKS_HEALTHY * region.getHealthyPopTot()));
s = (s + (EconomyManager.COST_DISTRIBUTE_MASKS_IMMUNE * region.getImmunePopTot()));
s = (s + (EconomyManager.COST_DISTRIBUTE_MASKS_INFECTED * region.getInfectedPopTot()));
if (region.getLooting()){
s = (s * EconomyManager.COST_DISTRIBUTE_MASKS_LOOTING);
};
if (region.getRioting()){
s = (s * EconomyManager.COST_DISTRIBUTE_MASKS_RIOTING);
};
s = (s + (s * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
s = (s * ((int((GameManager.getGovType() == GameManager.GOV_AVERAGE)) * 0.9) + int(!((GameManager.getGovType() == GameManager.GOV_AVERAGE)))));
cost2.text = ("$" + Helpers.addCommas(s));
maskContainer.setup(s, region.getMasksOp(), maskContainer.coreButton, true);
cost3.text = ("$" + Helpers.addCommas(region.getVaccinesOp().getOperationCost()));
vaccineContainer.setup(region.getVaccinesOp().getOperationCost(), region.getVaccinesOp(), vaccineContainer.coreButton);
stop();
}
}
}//package INFORMATIONOBJECTS.WINDOWS
Section 109
//Airport (INFORMATIONOBJECTS.Airport)
package INFORMATIONOBJECTS {
import flash.display.*;
import GUI.*;
import flash.geom.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import INFORMATIONOBJECTS.WINDOWS.*;
public class Airport extends InformationObject {
private var militarySupport:InfiniteOperation;// = null
private var airportName:String;
private var airportDepartureBusy:Boolean;
private var intTourismRevenue:int;
private var domFlights:Boolean;
private var domTourismRevenue:int;
private var domArrivalsImmune:int;
private var intArrivals:int;
private var intArrivalsI:int;
private var domArrivalsI:int;
private var domArrivals:int;
public var airportGlow:MovieClip;
private var intFlights:Boolean;
private var airportID:int;
public var airportDepartures:MovieClip;
public var airportArrivals:MovieClip;
private var regionObjects:Array;
private var airportRegion:Region;// = null
private var regionName:String;// = ""
public var coreButton:AirportButton;
private var airportOpen:Boolean;
private var airportArrivalBusy:Boolean;
protected static var airportSurface:ScrollSurface = null;
private static var AIRPORT_IDS:int = 0;
public function Airport(_arg1:String, _arg2:String){
airportRegion = null;
regionName = "";
militarySupport = null;
super();
addFrameScript(0, frame1);
airportID = AIRPORT_IDS++;
objectIdentity = InformationObject.OBJECT_AIRPORT;
airportName = _arg1;
regionName = _arg2;
airportRegion = RegionManager.getRegion(regionName);
if (airportRegion == null){
};
militarySupport = new InfiniteOperation("MILITARY SUPPORT", Operation.OP_MILITARY_INFRASTRUCTURE, airportRegion);
militarySupport.setSecondRegion(this);
airportDepartureBusy = false;
airportArrivalBusy = false;
airportOpen = true;
domFlights = true;
intFlights = true;
domArrivals = 0;
intArrivals = 0;
domArrivalsI = 0;
intArrivalsI = 0;
domArrivalsImmune = 0;
domTourismRevenue = 0;
intTourismRevenue = 0;
AirportManager.addAirport(this);
coreButton.setContainer(this);
}
public function pauseAnimations():void{
airportDepartures.stop();
airportArrivals.stop();
}
public function getIntStatus():Boolean{
return (intFlights);
}
public function setDomTourismRevenue(_arg1:int):void{
domTourismRevenue = _arg1;
}
override public function updateColor():void{
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = 0;
_local2 = 0;
_local3 = 0;
_local1 = (int(getMilitary()) * 55);
_local2 = (_local2 - (int(getMilitary()) * 20));
_local3 = (_local3 - (int(getMilitary()) * 5));
transform.colorTransform = new ColorTransform(1, 1, 1, 1, _local1, _local2, _local3);
}
public function playDeparture():void{
airportDepartureBusy = true;
airportDepartures.gotoAndPlay(2);
}
public function setAirportName(_arg1:String):void{
airportName = _arg1;
}
public function modIntArrivals(_arg1:int):void{
airportRegion.addIntTourHealthy(_arg1);
airportRegion.modHealthyPop(_arg1);
intArrivals = (intArrivals + _arg1);
}
public function getArrivalBusy():Boolean{
return (airportArrivalBusy);
}
function frame1(){
this.mouseEnabled = false;
airportGlow.mouseEnabled = false;
airportDepartures.mouseEnabled = false;
airportDepartures.mouseChildren = false;
airportArrivals.mouseEnabled = false;
airportArrivals.mouseChildren = false;
stop();
}
public function getAirportID():int{
return (airportID);
}
override public function getSurface():ScrollSurface{
if (airportSurface == null){
airportSurface = SurfaceManager.getSurface("CampaignMap");
};
return (airportSurface);
}
override public function invoke():void{
var _local1:AirportWindow;
_local1 = new AirportWindow(this, RegionManager.getRegion(regionName));
GuiManager.displayAirportWindow(_local1);
}
public function getMilitary():Boolean{
return (militarySupport.getStatus());
}
public function getInfectedDetectionOdds():Number{
return (((CountryManager.getWorldInfection() * 0.75) * ((int(getMilitary()) * 0.45) + int(!(getMilitary())))));
}
public function modDomArrivals(_arg1:int):void{
airportRegion.modHealthyPop(_arg1);
airportRegion.addDomTourHealthy(_arg1);
domArrivals = (domArrivals + _arg1);
}
public function banDom():void{
domFlights = false;
}
public function getAirportName():String{
return (airportName);
}
public function getAirportStatus():Boolean{
return (airportOpen);
}
public function modIntArrivalsI(_arg1:int):void{
airportRegion.addIntTourInf(_arg1);
airportRegion.addInfected(_arg1);
intArrivalsI = (intArrivalsI + _arg1);
}
public function playArrivals():void{
airportArrivalBusy = true;
airportArrivals.gotoAndPlay(2);
}
public function modDomArrivalsI(_arg1:int):void{
airportRegion.addDomTourInf(_arg1);
airportRegion.addInfected(_arg1);
domArrivalsI = (domArrivalsI + _arg1);
}
public function getDomStatus():Boolean{
return (domFlights);
}
public function openAirport():void{
domFlights = true;
intFlights = true;
airportOpen = true;
}
public function permitDom():void{
domFlights = true;
}
public function getIntArrivalsI():int{
return (intArrivalsI);
}
public function getDomArrivalsI():int{
return (domArrivalsI);
}
public function clearTourismPop():void{
domArrivalsImmune = 0;
intArrivalsI = 0;
domArrivalsI = 0;
intArrivals = 0;
domArrivals = 0;
}
public function getDepartureBusy():Boolean{
return (airportDepartureBusy);
}
public function banInt():void{
intFlights = false;
}
public function getIntArrivals():int{
return (intArrivals);
}
public function resumeAnimations():void{
if (airportDepartures.currentFrame != 1){
airportDepartures.play();
};
if (airportArrivals.currentFrame != 1){
airportArrivals.play();
};
}
public function getIntTourismRevenue():int{
return (intTourismRevenue);
}
public function getRegionName():String{
return (regionName);
}
public function getDomTourismRevenue():int{
return (domTourismRevenue);
}
public function closeAirport():void{
airportOpen = false;
domFlights = false;
intFlights = false;
if (militarySupport.getStatus()){
militarySupport.deactivateOperation();
};
}
public function modDomArrivalsImmune(_arg1:int):void{
airportRegion.addDomTourImmune(_arg1);
airportRegion.modImmunePop(_arg1);
domArrivalsImmune = (domArrivalsImmune + _arg1);
}
public function getDomArrivals():int{
return (domArrivals);
}
public function setArrivalBusy(_arg1:Boolean):void{
airportArrivalBusy = _arg1;
}
public function setDepartureBusy(_arg1:Boolean):void{
airportDepartureBusy = _arg1;
}
public function getMilitaryOp():Operation{
return (militarySupport);
}
public function permitInt():void{
intFlights = true;
}
public function getDomArrivalsImmune():int{
return (domArrivalsImmune);
}
override public function setSurface(_arg1:ScrollSurface):void{
airportSurface = _arg1;
}
public function getRegion():Region{
return (airportRegion);
}
public function setRegion(_arg1:Region):void{
}
public function setIntTourismRevenue(_arg1:int):void{
intTourismRevenue = _arg1;
}
}
}//package INFORMATIONOBJECTS
Section 110
//AirportManager (INFORMATIONOBJECTS.AirportManager)
package INFORMATIONOBJECTS {
import GUI.*;
public class AirportManager {
private static var airportList:Array = new Array();
public static function resumeAllAnimations():void{
var _local1:Airport;
for each (_local1 in airportList) {
_local1.resumeAnimations();
};
}
public static function setupAirports():void{
var _local1:Region;
var _local2:Airport;
var _local3:ScrollSurface;
var _local4:Airport;
_local3 = SurfaceManager.getSurface("CampaignMap");
_local2 = new Airport("Airport", "California");
_local3.addChild(_local2);
_local2.x = 154.8;
_local2.y = 723.3;
_local2 = new Airport("Airport", "Colorado");
_local3.addChild(_local2);
_local2.x = 955;
_local2.y = 682.8;
_local2 = new Airport("Airport", "Texas");
_local3.addChild(_local2);
_local2.x = 1290;
_local2.y = 1130;
_local2 = new Airport("Airport", "Georgia");
_local3.addChild(_local2);
_local2.x = 1847;
_local2.y = 985;
_local2 = new Airport("Airport", "New Jersey");
_local3.addChild(_local2);
_local2.x = 2238;
_local2.y = 610;
_local2 = new Airport("Airport", "Florida");
_local3.addChild(_local2);
_local2.x = 2026.3;
_local2.y = 1320;
for each (_local4 in airportList) {
_local1 = RegionManager.getRegion(_local4.getRegionName());
if (_local1 != null){
_local1.addAirport(_local4);
_local4.setRegion(_local1);
};
};
}
public static function getOtherAirport(_arg1:int):Airport{
var _local2:Airport;
for each (_local2 in airportList) {
if (((((_local2.getDomStatus()) && (!(_local2.getArrivalBusy())))) && (!((_local2.getAirportID() == _arg1))))){
return (_local2);
};
};
return (null);
}
public static function addAirport(_arg1:Airport):void{
airportList.push(_arg1);
}
public static function pauseAllAnimations():void{
var _local1:Airport;
for each (_local1 in airportList) {
_local1.pauseAnimations();
};
}
public static function reset():void{
airportList = new Array();
}
}
}//package INFORMATIONOBJECTS
Section 111
//City (INFORMATIONOBJECTS.City)
package INFORMATIONOBJECTS {
import flash.display.*;
import SOUND.*;
import GUI.*;
import flash.geom.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import INFORMATIONOBJECTS.WINDOWS.*;
public class City extends InformationObject {
public var smokePlane:SmokeEmitterVector1;
private var cityRegion:Region;// = null
private var infectedPop:Array;
private var cityName:String;// = ""
private var lastRevenue:int;// = 0
private var quarantineOp:InfiniteOperation;// = null
private var neutronOp:FiniteOperation;// = null
private var immunePop:int;// = 0
private var infectedPopSum:int;// = 0
private var nukeOp:FiniteOperation;// = null
private var nuked:Boolean;// = false
private var deadPop:int;// = 0
public var particlePlane0:MovieClip;
public var particlePlane1:MovieClip;
private var healthyPop:int;
public var cityGlow:MovieClip;
private var regionName:String;// = ""
public var coreButton:CityButton;
private var lastExpenses:int;// = 0
protected static var citySurface:ScrollSurface = null;
public function City(_arg1:String, _arg2:String, _arg3:int){
var _local4:int;
immunePop = 0;
deadPop = 0;
infectedPopSum = 0;
infectedPop = new Array(3);
lastRevenue = 0;
lastExpenses = 0;
cityRegion = null;
cityName = "";
regionName = "";
nuked = false;
quarantineOp = null;
nukeOp = null;
neutronOp = null;
super();
addFrameScript(0, frame1, 1, frame2, 4, frame5, 31, frame32, 65, frame66, 69, frame70, 70, frame71, 95, frame96, 125, frame126);
objectIdentity = InformationObject.OBJECT_CITY;
cityName = _arg1;
regionName = _arg2;
setHealthyPop(_arg3);
cityRegion = RegionManager.getRegion(regionName);
if (cityRegion == null){
};
cityRegion.modHealthyPop(-(_arg3));
CityManager.addCity(this);
coreButton.setContainer(this);
quarantineOp = new InfiniteOperation("CITY QUARANTINE", Operation.OP_CITY_QUARANTINE, cityRegion);
quarantineOp.setSecondRegion(this);
nukeOp = new FiniteOperation("NUCLEAR STRIKE", Operation.OP_CITY_NUKE, cityRegion);
nukeOp.setSecondRegion(this);
neutronOp = new FiniteOperation("NEUTRON STRIKE", Operation.OP_CITY_NEUTRON, cityRegion);
neutronOp.setSecondRegion(this);
_local4 = 0;
while (_local4 < infectedPop.length) {
infectedPop[_local4] = 0;
_local4++;
};
}
public function getNeutronOp():Operation{
return (neutronOp);
}
public function getCityName():String{
return (cityName);
}
public function modHealthyPop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe2(_arg1, -(healthyPop));
CountryManager.modHealthyPop(_arg1);
healthyPop = (healthyPop + _arg1);
}
public function getNukeOp():Operation{
return (nukeOp);
}
override public function updateColor():void{
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = 0;
_local2 = 0;
_local3 = 0;
_local1 = (int(getQuarantine()) * 55);
_local2 = (_local2 - (int(getQuarantine()) * 20));
_local3 = (_local3 - (int(getQuarantine()) * 5));
transform.colorTransform = new ColorTransform(1, 1, 1, 1, _local1, _local2, _local3);
}
public function getQuarantine():Boolean{
return (quarantineOp.getStatus());
}
public function makeInfectionsOlder():void{
var _local1:int;
_local1 = 0;
while (_local1 < (infectedPop.length - 1)) {
infectedPop[_local1] = (infectedPop[_local1] + infectedPop[(_local1 + 1)]);
infectedPop[(_local1 + 1)] = 0;
_local1++;
};
}
public function removeInfected(_arg1:int):void{
var _local2:int;
_arg1 = Helpers.makeIntSafe(_arg1);
_arg1 = ((int((_arg1 > infectedPopSum)) * infectedPopSum) + (int((_arg1 <= infectedPopSum)) * _arg1));
CountryManager.modInfectedPop(-(_arg1));
infectedPopSum = (infectedPopSum - _arg1);
_local2 = 0;
while (_local2 < infectedPop.length) {
if (infectedPop[_local2] < _arg1){
_arg1 = (_arg1 - infectedPop[_local2]);
infectedPop[_local2] = 0;
} else {
infectedPop[_local2] = (infectedPop[_local2] - _arg1);
_arg1 = 0;
break;
};
_local2++;
};
}
public function getImmunePop():int{
return (immunePop);
}
public function getLastExpenses():int{
return (lastExpenses);
}
public function getHealthyPopStr():String{
return (Helpers.addCommas(healthyPop));
}
function frame5(){
SoundManager.getInstance().playSound("BombDrop");
}
function frame1(){
this.mouseEnabled = false;
cityGlow.mouseEnabled = false;
updateButtonCore();
stop();
}
public function nukeCity():void{
if (EngineCore.getEngineCore().kongValid){
EngineCore.getEngineCore().kongregate.stats.submit("Bomb Happy", 1);
};
modDeadPop(((healthyPop + immunePop) + infectedPopSum));
modHealthyPop(-(healthyPop));
modImmunePop(-(immunePop));
removeInfected(infectedPopSum);
gotoAndPlay("nukeCity");
nuked = true;
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_HIGH, NewsEvent.EVENT_TARGET_INFA, NewsEvent.EVENT_PANIC_INCREASED, NewsEvent.EVENT_SUBJECT_CITY_NUKED, cityRegion, this));
}
function frame2(){
this.mouseEnabled = false;
particlePlane0.mouseEnabled = false;
particlePlane0.mouseChildren = false;
particlePlane1.mouseEnabled = false;
particlePlane1.mouseChildren = false;
smokePlane.mouseEnabled = false;
smokePlane.mouseChildren = false;
PhysicsManager.registerNukePlane(particlePlane0);
PhysicsManager.registerNukePlane(particlePlane1);
stop();
}
override public function getSurface():ScrollSurface{
if (citySurface == null){
citySurface = SurfaceManager.getSurface("CampaignMap");
};
return (citySurface);
}
public function setInfectedPop(_arg1:int):void{
var _local2:int;
_arg1 = Helpers.makeIntSafe(_arg1);
infectedPop = new Array();
_local2 = 0;
while (_local2 < infectedPop.length) {
infectedPop[_local2] = 0;
_local2++;
};
infectedPop[(infectedPop.length - 1)] = _arg1;
CountryManager.modInfectedPop((_arg1 - infectedPopSum));
infectedPopSum = _arg1;
}
override public function invoke():void{
var _local1:CityWindow;
_local1 = new CityWindow(this, RegionManager.getRegion(regionName));
GuiManager.displayCityWindow(_local1);
}
public function getNeutroning():Boolean{
return (neutronOp.getStatus());
}
public function setImmunePop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe2(_arg1, -(immunePop));
CountryManager.modImmunePop(_arg1);
immunePop = _arg1;
}
function frame32(){
SoundManager.getInstance().playSound("Explosion");
}
public function setDeadPop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe(_arg1);
CountryManager.modDeadPop((_arg1 - deadPop));
deadPop = _arg1;
}
public function getNukeStatus():Boolean{
return (nuked);
}
public function getNuking():Boolean{
return (nukeOp.getStatus());
}
public function setLastRevenue(_arg1:int):void{
lastRevenue = _arg1;
}
function frame66(){
gotoAndStop(2);
}
public function getImmunePopStr():String{
return (Helpers.addCommas(immunePop));
}
function frame70(){
SoundManager.getInstance().playSound("BombDrop");
}
public function getInfectedPop():int{
return (infectedPopSum);
}
public function getDeadPop():int{
return (deadPop);
}
public function getFullPop():int{
return (((healthyPop + immunePop) + infectedPopSum));
}
function frame71(){
SoundManager.getInstance().playSound("Explosion");
}
public function addInfected(_arg1:int):void{
if ((((infectedPopSum == 0)) && ((_arg1 > 0)))){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_MID, NewsEvent.EVENT_TARGET_INFA, NewsEvent.EVENT_PANIC_INCREASED, NewsEvent.EVENT_SUBJECT_CITY_NEWLY_INFECTED, cityRegion, this));
};
_arg1 = Helpers.makeIntSafe(_arg1);
infectedPop[0] = (infectedPop[0] + Math.floor((_arg1 / 4)));
infectedPop[(infectedPop.length - 1)] = (infectedPop[(infectedPop.length - 1)] + (_arg1 - Math.floor((_arg1 / 4))));
CountryManager.modInfectedPop(_arg1);
infectedPopSum = (infectedPopSum + _arg1);
}
public function setCityName(_arg1:String):void{
cityName = _arg1;
}
public function getQuarantineOp():Operation{
return (quarantineOp);
}
public function setLastExpenses(_arg1:int):void{
lastExpenses = _arg1;
}
public function getHealthyPop():int{
return (healthyPop);
}
public function getLastRevenue():int{
return (lastRevenue);
}
public function setHealthyPop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe2(_arg1, -(healthyPop));
CountryManager.modHealthyPop(_arg1);
healthyPop = _arg1;
}
function frame96(){
SoundManager.getInstance().playSound("Explosion");
}
public function getOldInfected():int{
return (infectedPop[0]);
}
public function getRegionName():String{
return (regionName);
}
public function updateButtonCore():void{
coreButton.setContainer(this);
}
public function getFullPopStr():String{
return (Helpers.addCommas(((healthyPop + infectedPopSum) + infectedPop)));
}
public function neutronCity():void{
if (EngineCore.getEngineCore().kongValid){
EngineCore.getEngineCore().kongregate.stats.submit("Bomb Happy", 1);
};
modDeadPop(((healthyPop + immunePop) + infectedPopSum));
modHealthyPop(-(healthyPop));
modImmunePop(-(immunePop));
removeInfected(infectedPopSum);
gotoAndPlay("neutronCity");
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_HIGH, NewsEvent.EVENT_TARGET_INFA, NewsEvent.EVENT_PANIC_INCREASED, NewsEvent.EVENT_SUBJECT_CITY_NEUTRON, cityRegion, this));
}
public function getDeadPopStr():String{
return (Helpers.addCommas(deadPop));
}
function frame126(){
gotoAndStop(1);
}
public function getInfectedPopStr():String{
return (Helpers.addCommas(infectedPopSum));
}
public function getCityNameF():String{
return (new String(cityName).toUpperCase());
}
override public function setSurface(_arg1:ScrollSurface):void{
citySurface = _arg1;
}
public function modDeadPop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe(_arg1);
CountryManager.modDeadPop(_arg1);
deadPop = (deadPop + _arg1);
}
public function modImmunePop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe2(_arg1, -(immunePop));
CountryManager.modImmunePop(_arg1);
immunePop = (immunePop + _arg1);
}
public function setRegion(_arg1:Region):void{
cityRegion = _arg1;
}
}
}//package INFORMATIONOBJECTS
Section 112
//CityManager (INFORMATIONOBJECTS.CityManager)
package INFORMATIONOBJECTS {
import GUI.*;
public class CityManager {
private static var cityList:Array = new Array();
public static function getCities():Array{
return (cityList);
}
public static function addCity(_arg1:City):void{
cityList.push(_arg1);
}
public static function setupCities():void{
var _local1:Region;
var _local2:City;
var _local3:ScrollSurface;
var _local4:City;
_local3 = SurfaceManager.getSurface("CampaignMap");
_local2 = new City("Seattle", "Washington", 594210);
_local3.addChild(_local2);
_local2.x = 272.5;
_local2.y = 142.7;
_local2 = new City("Los Angeles", "California", 3834340);
_local3.addChild(_local2);
_local2.x = 263.9;
_local2.y = 933.8;
_local2 = new City("Las Vegas", "Nevada", 558880);
_local3.addChild(_local2);
_local2.x = 410.1;
_local2.y = 811.3;
_local2 = new City("Phoenix", "Arizona", 1552259);
_local3.addChild(_local2);
_local2.x = 478.9;
_local2.y = 1031;
_local2 = new City("Houston", "Texas", 2208180);
_local3.addChild(_local2);
_local2.x = 1304.3;
_local2.y = 1272.7;
_local2 = new City("Colorado Springs", "Colorado", 376427);
_local3.addChild(_local2);
_local2.x = 896.9;
_local2.y = 729.6;
_local2 = new City("Oklahoma City", "Oklahoma", 547274);
_local3.addChild(_local2);
_local2.x = 1220.5;
_local2.y = 958.6;
_local2 = new City("Memphis", "Tennessee", 674028);
_local3.addChild(_local2);
_local2.x = 1609.7;
_local2.y = 907.4;
_local2 = new City("Jacksonville", "Florida", 808605);
_local3.addChild(_local2);
_local2.x = 2009.8;
_local2.y = 1211.2;
_local2 = new City("Minneapolis", "Minnesota", 377392);
_local3.addChild(_local2);
_local2.x = 1362.2;
_local2.y = 408.4;
_local2 = new City("Chicago", "Illinois", 2836658);
_local3.addChild(_local2);
_local2.x = 1603.9;
_local2.y = 593.8;
_local2 = new City("Detroit", "Michigan", 916952);
_local3.addChild(_local2);
_local2.x = 1792.6;
_local2.y = 490.1;
_local2 = new City("Philadelphia", "Pennsylvania", 1449634);
_local3.addChild(_local2);
_local2.x = 2135.8;
_local2.y = 535.4;
_local2 = new City("New York City", "New York", 8310212);
_local3.addChild(_local2);
_local2.x = 2255.6;
_local2.y = 490.8;
for each (_local4 in cityList) {
_local1 = RegionManager.getRegion(_local4.getRegionName());
if (_local1 != null){
_local1.addCity(_local4);
_local4.setRegion(_local1);
};
};
}
public static function reset():void{
cityList = new Array();
}
}
}//package INFORMATIONOBJECTS
Section 113
//ConfettiPackage (INFORMATIONOBJECTS.ConfettiPackage)
package INFORMATIONOBJECTS {
import flash.display.*;
public class ConfettiPackage extends MovieClip {
private var verVel:Number;// = 0
private var horVel:Number;// = 0
private var rotRat:Number;// = 0
public function ConfettiPackage(){
horVel = 0;
verVel = 0;
rotRat = 0;
super();
}
public function setup(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):void{
this.x = _arg1;
this.y = _arg2;
this.scaleX = _arg3;
this.scaleY = _arg4;
horVel = _arg5;
verVel = _arg6;
rotRat = _arg7;
this.rotation = (Math.random() * 360);
}
public function run():Boolean{
verVel = (verVel + PhysicsManager.PHYS_GRAVITY);
verVel = (verVel * PhysicsManager.PHYS_AIR_FRI);
verVel = (((int((verVel > 0)) * verVel) / 1.1) + (int((verVel <= 0)) * verVel));
horVel = (horVel * PhysicsManager.PHYS_AIR_FRI);
rotRat = (rotRat * PhysicsManager.PHYS_CONF_ROT);
rotRat = (int((Math.abs(rotRat) >= PhysicsManager.PHYS_CONF_ROT_THRESH)) * rotRat);
alpha = (alpha - (PhysicsManager.PHYS_CONF_FADE * int((((y >= PhysicsManager.PHYS_CONF_YFADE)) && ((verVel > 0))))));
alpha = (int((alpha > 0)) * alpha);
scaleX = (scaleX + PhysicsManager.PHYS_SCALE_X);
scaleY = (scaleY + PhysicsManager.PHYS_SCALE_Y);
this.x = (this.x + horVel);
this.y = (this.y + verVel);
this.rotation = (this.rotation + rotRat);
return ((alpha <= PhysicsManager.PHYS_CONF_FADE));
}
}
}//package INFORMATIONOBJECTS
Section 114
//FiniteOperation (INFORMATIONOBJECTS.FiniteOperation)
package INFORMATIONOBJECTS {
import GUI.*;
import MANAGERS.*;
public class FiniteOperation extends Operation {
private var opDurationProgress:int;
private var opDuration:int;
public function FiniteOperation(_arg1:String, _arg2:int, _arg3:Region=null){
super(_arg1, _arg2, _arg3);
switch (_arg2){
case OP_INFO_CAMPAIGN:
opDuration = 3000;
opRechargeTime = 2000;
break;
case OP_MEDIA_CENSOR:
opDuration = 2500;
opRechargeTime = 4000;
opRechargeTime = (opRechargeTime * ((int((GameManager.getGovType() == GameManager.GOV_CLOSED)) * 0.8) + int(!((GameManager.getGovType() == GameManager.GOV_CLOSED)))));
break;
case OP_MEDIA_SPIN:
opDuration = 1500;
opRechargeTime = 1000;
opRechargeTime = (opRechargeTime * ((int((GameManager.getGovType() == GameManager.GOV_CLOSED)) * 0.8) + int(!((GameManager.getGovType() == GameManager.GOV_CLOSED)))));
break;
case OP_MEDIA_FEAR:
opDuration = 1200;
opRechargeTime = 500;
opRechargeTime = (opRechargeTime * ((int((GameManager.getGovType() == GameManager.GOV_CLOSED)) * 0.8) + int(!((GameManager.getGovType() == GameManager.GOV_CLOSED)))));
break;
case OP_CITY_NEUTRON:
opDuration = 250;
opRechargeTime = 20000;
break;
case OP_CITY_NUKE:
opDuration = 250;
opRechargeTime = 300;
break;
case OP_DISTRIBUTE_MASKS:
opDuration = 1500;
opRechargeTime = 500;
break;
};
opDuration = (opDuration * ((int((GameManager.getGovType() == GameManager.GOV_AVERAGE)) * 1.05) + int(!((GameManager.getGovType() == GameManager.GOV_AVERAGE)))));
opRechargeTime = (opRechargeTime + (opRechargeTime * ((int((GameManager.getDiffType() == GameManager.DIFFICULTY_HARD)) * 1.04) + (int((GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME)) * 1.1))));
opDurationProgress = 0;
opRechargeProgress = opRechargeTime;
}
override public function getDurationProgress():Number{
if (opDuration == 0){
return (100);
};
return (((opDurationProgress / opDuration) * 100));
}
override public function run():Boolean{
opOn = ((opOn) && (!((opDuration == 0))));
opDurationProgress = (opDurationProgress + int(opOn));
if (opGui != null){
opGui.updateDuration(getDurationProgress());
};
if (((opOn) && ((opDurationProgress == opDuration)))){
GuiManager.remFinOp(opID);
opGui = null;
};
if (((((opOn) && ((opDurationProgress == opDuration)))) && ((opType == OP_CITY_NUKE)))){
region.nukeActiveCities();
};
if (((((opOn) && ((opDurationProgress == opDuration)))) && ((opType == OP_CITY_NEUTRON)))){
region.neutronActiveCities();
};
opOn = ((!((opDurationProgress == opDuration))) && (opOn));
opRechargeProgress = (opRechargeProgress + int(((!((opRechargeProgress == opRechargeTime))) && (!(opOn)))));
return (((((!(opOn)) && ((opDurationProgress == opDuration)))) && ((opRechargeProgress == opRechargeTime))));
}
override public function activateOperation(_arg1:Object=null):void{
var _local2:OperationButtonContainer;
switch (opType){
case OP_INFO_CAMPAIGN:
opCost = EconomyManager.COST_INFO_CAMPAIGN_BASE;
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_HIGH, NewsEvent.EVENT_TARGET_NATIONAL, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_NATION_INFO_CAMPAIGN));
break;
case OP_MEDIA_CENSOR:
opCost = EconomyManager.COST_MEDIA_CENSOR;
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
break;
case OP_MEDIA_SPIN:
opCost = EconomyManager.COST_MEDIA_SPIN;
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
break;
case OP_MEDIA_FEAR:
opCost = EconomyManager.COST_MEDIA_FEAR;
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_HIGH, NewsEvent.EVENT_TARGET_NATIONAL, NewsEvent.EVENT_PANIC_INCREASED, NewsEvent.EVENT_SUBJECT_NATION_FEAR_REPORTS));
break;
case OP_CITY_NEUTRON:
opCost = EconomyManager.COST_CITY_NEUTRON_BASE;
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
break;
case OP_CITY_NUKE:
opCost = EconomyManager.COST_CITY_NUKE_BASE;
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
break;
case OP_DISTRIBUTE_MASKS:
opCost = EconomyManager.COST_DISTRIBUTE_MASKS_BASE;
opCost = (opCost + (EconomyManager.COST_DISTRIBUTE_MASKS_HEALTHY * region.getHealthyPopTot()));
opCost = (opCost + (EconomyManager.COST_DISTRIBUTE_MASKS_IMMUNE * region.getImmunePopTot()));
opCost = (opCost + (EconomyManager.COST_DISTRIBUTE_MASKS_INFECTED * region.getInfectedPopTot()));
if (region.getLooting()){
opCost = (opCost * EconomyManager.COST_DISTRIBUTE_MASKS_LOOTING);
};
if (region.getRioting()){
opCost = (opCost * EconomyManager.COST_DISTRIBUTE_MASKS_RIOTING);
};
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
opCost = (opCost * ((int((GameManager.getGovType() == GameManager.GOV_AVERAGE)) * 0.9) + int(!((GameManager.getGovType() == GameManager.GOV_AVERAGE)))));
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_LOW, NewsEvent.EVENT_TARGET_REGION, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_REGION_HAND_MASKS, region));
break;
};
if ((((EconomyManager.getCurrentFunds() >= opCost)) && (!(opOn)))){
opRechargeProgress = 0;
opDurationProgress = 0;
opOn = true;
OperationManager.registerOperation(this);
opCost = Math.floor(opCost);
EconomyManager.spendMoney(opCost);
if (_arg1 != null){
_local2 = (_arg1 as OperationButtonContainer);
_local2.setDisabled(false);
_local2.setActivation(true);
_local2.setRecharge(true, getDurationProgress());
_local2.setButtonStatus(false);
};
opGui = new OpGuiNotifier(this, true);
GuiManager.addOpNotifier(opGui, true);
};
}
}
}//package INFORMATIONOBJECTS
Section 115
//Hospital (INFORMATIONOBJECTS.Hospital)
package INFORMATIONOBJECTS {
import flash.display.*;
import GUI.*;
import flash.geom.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import INFORMATIONOBJECTS.WINDOWS.*;
public class Hospital extends InformationObject {
private var militarySupport:InfiniteOperation;// = null
private var regionName:String;// = ""
public var coreButton:HospitalButton;
private var hospitalOpen:Boolean;
private var hospitalRegion:Region;// = null
private var hospitalName:String;
public var hospitalGlow:MovieClip;
public static const HOSPITAL_CAPACITY:int = 50;
protected static var hospitalSurface:ScrollSurface = null;
public function Hospital(_arg1:String, _arg2:String){
hospitalRegion = null;
regionName = "";
militarySupport = null;
super();
addFrameScript(0, frame1);
objectIdentity = InformationObject.OBJECT_HOSPITAL;
hospitalOpen = true;
hospitalRegion = RegionManager.getRegion(_arg2);
militarySupport = new InfiniteOperation("MILITARY SUPPORT", Operation.OP_MILITARY_INFRASTRUCTURE, hospitalRegion);
militarySupport.setSecondRegion(this);
hospitalName = _arg1;
regionName = _arg2;
HospitalManager.addHospital(this);
coreButton.setContainer(this);
CountryManager.modOpenHospitals(1);
}
override public function updateColor():void{
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = 0;
_local2 = 0;
_local3 = 0;
_local1 = (int(getMilitary()) * 55);
_local2 = (_local2 - (int(getMilitary()) * 20));
_local3 = (_local3 - (int(getMilitary()) * 5));
transform.colorTransform = new ColorTransform(1, 1, 1, 1, _local1, _local2, _local3);
}
public function getHospitalName():String{
return (hospitalName);
}
public function closeHospital():void{
hospitalOpen = false;
CountryManager.modOpenHospitals(-1);
if (militarySupport.getStatus()){
militarySupport.deactivateOperation();
};
}
function frame1(){
this.mouseEnabled = false;
hospitalGlow.mouseEnabled = false;
stop();
}
public function setHospitalName(_arg1:String):void{
hospitalName = _arg1;
}
override public function getSurface():ScrollSurface{
if (hospitalSurface == null){
hospitalSurface = SurfaceManager.getSurface("CampaignMap");
};
return (hospitalSurface);
}
override public function invoke():void{
var _local1:HospitalWindow;
_local1 = new HospitalWindow(this, RegionManager.getRegion(regionName));
GuiManager.displayHospitalWindow(_local1);
}
public function getMilitary():Boolean{
return (militarySupport.getStatus());
}
public function getRegionName():String{
return (regionName);
}
public function getHospitalStatus():Boolean{
return (hospitalOpen);
}
public function openHospital():void{
hospitalOpen = true;
CountryManager.modOpenHospitals(1);
}
public function getMilitaryOp():Operation{
return (militarySupport);
}
override public function setSurface(_arg1:ScrollSurface):void{
hospitalSurface = _arg1;
}
public function setRegion(_arg1:Region):void{
}
}
}//package INFORMATIONOBJECTS
Section 116
//HospitalManager (INFORMATIONOBJECTS.HospitalManager)
package INFORMATIONOBJECTS {
import GUI.*;
public class HospitalManager {
private static var hospitalList:Array = new Array();
public static function addHospital(_arg1:Hospital):void{
hospitalList.push(_arg1);
}
public static function setupHospitals():void{
var _local1:Region;
var _local2:Hospital;
var _local3:ScrollSurface;
var _local4:Hospital;
_local3 = SurfaceManager.getSurface("CampaignMap");
_local2 = new Hospital("Hospital", "California");
_local3.addChild(_local2);
_local2.x = 129.8;
_local2.y = 621.5;
_local2 = new Hospital("Hospital", "Colorado");
_local3.addChild(_local2);
_local2.x = 858.2;
_local2.y = 663.5;
_local2 = new Hospital("Hospital", "Texas");
_local3.addChild(_local2);
_local2.x = 1205.7;
_local2.y = 1100.2;
_local2 = new Hospital("Hospital", "Minnesota");
_local3.addChild(_local2);
_local2.x = 1431.4;
_local2.y = 460.4;
_local2 = new Hospital("Hospital", "Ohio");
_local3.addChild(_local2);
_local2.x = 1892.2;
_local2.y = 550;
_local2 = new Hospital("Hospital", "North Carolina");
_local3.addChild(_local2);
_local2.x = 2025.3;
_local2.y = 832.9;
_local2 = new Hospital("Hospital", "Maryland");
_local3.addChild(_local2);
_local2.x = 2144;
_local2.y = 650.5;
_local2 = new Hospital("Hospital", "Massachusetts");
_local3.addChild(_local2);
_local2.x = 2330.3;
_local2.y = 363.6;
for each (_local4 in hospitalList) {
_local1 = RegionManager.getRegion(_local4.getRegionName());
if (_local1 != null){
_local1.addHospital(_local4);
_local4.setRegion(_local1);
};
};
}
public static function reset():void{
hospitalList = new Array();
}
}
}//package INFORMATIONOBJECTS
Section 117
//InfiniteOperation (INFORMATIONOBJECTS.InfiniteOperation)
package INFORMATIONOBJECTS {
import GUI.*;
import MANAGERS.*;
import INFORMATIONOBJECTS.WINDOWS.*;
public class InfiniteOperation extends Operation {
private var lastActive:int;
private var representer:OperationButtonContainer;// = null
public function InfiniteOperation(_arg1:String, _arg2:int, _arg3:Region=null){
representer = null;
super(_arg1, _arg2, _arg3);
lastActive = 0;
switch (opType){
case OP_MILITARY_INFRASTRUCTURE:
opRechargeTime = 400;
break;
case OP_MILITARY_REGION:
opRechargeTime = 600;
break;
case OP_VACCINE_RESEARCH:
opRechargeTime = 2000;
break;
case OP_ROAD_BLOCK:
opRechargeTime = 700;
break;
case OP_ROAD_BARRICADE:
opRechargeTime = 700;
break;
case OP_DEPORT_INFECTED:
opRechargeTime = 1000;
break;
case OP_EXTREME_POLICIES:
opRechargeTime = 2000;
break;
case OP_CITY_QUARANTINE:
opRechargeTime = 1500;
break;
case OP_ENFORCE_CURFEW:
opRechargeTime = 700;
break;
case OP_DISTRIBUTE_VACCINE:
opRechargeTime = 1000;
break;
};
opRechargeTime = (opRechargeTime + (opRechargeTime * ((int((GameManager.getDiffType() == GameManager.DIFFICULTY_HARD)) * 1.04) + (int((GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME)) * 1.1))));
opRechargeProgress = opRechargeTime;
}
override public function deactivateOperation(_arg1:Object=null):void{
GuiManager.remInfOp(opID);
opGui = null;
opOn = false;
if ((((opType == OP_MILITARY_INFRASTRUCTURE)) || ((opType == OP_CITY_QUARANTINE)))){
opSecondRegion.updateColor();
};
switch (opType){
case OP_ROAD_BLOCK:
opSecondRegion.updateColor();
break;
case OP_ROAD_BARRICADE:
opSecondRegion.updateColor();
break;
};
if (representer != null){
representer.setDisabled(true);
representer.setRecharge(true, 0);
representer.setActivation(false);
representer.setButtonStatus(false);
representer = null;
};
}
override public function getOperationCost():int{
switch (opType){
case OP_MILITARY_INFRASTRUCTURE:
opCost = EconomyManager.COST_MILITARY_INFRASTRUCTURE_BASE;
opCost = (opCost + (EconomyManager.COST_MILITARY_INFRASTRUCTURE_HEALTHY * region.getHealthyPopTot()));
opCost = (opCost + (EconomyManager.COST_MILITARY_INFRASTRUCTURE_IMMUNE * region.getImmunePopTot()));
opCost = (opCost + (EconomyManager.COST_MILITARY_INFRASTRUCTURE_INFECTED * region.getInfectedPopTot()));
if (region.getLooting()){
opCost = (opCost * EconomyManager.COST_MILITARY_INFRASTRUCTURE_LOOTING);
};
if (region.getRioting()){
opCost = (opCost * EconomyManager.COST_MILITARY_INFRASTRUCTURE_RIOTING);
};
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
break;
case OP_MILITARY_REGION:
opCost = EconomyManager.COST_MILITARY_REGION_BASE;
opCost = (opCost + (EconomyManager.COST_MILITARY_REGION_HEALTHY * region.getHealthyPopTot()));
opCost = (opCost + (EconomyManager.COST_MILITARY_REGION_IMMUNE * region.getImmunePopTot()));
opCost = (opCost + (EconomyManager.COST_MILITARY_REGION_INFECTED * region.getInfectedPopTot()));
if (region.getLooting()){
opCost = (opCost * EconomyManager.COST_MILITARY_REGION_LOOTING);
};
if (region.getRioting()){
opCost = (opCost * EconomyManager.COST_MILITARY_REGION_RIOTING);
};
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
break;
case OP_VACCINE_RESEARCH:
opCost = EconomyManager.COST_VACCINE_RESEARCH_BASE;
opCost = (opCost + (EconomyManager.COST_VACCINE_RESEARCH_INFECTED * CountryManager.getInfectedPop()));
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
break;
case OP_ROAD_BLOCK:
opCost = EconomyManager.COST_ROAD_BLOCK;
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
break;
case OP_ROAD_BARRICADE:
opCost = EconomyManager.COST_ROAD_BARRICADE;
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
break;
case OP_DEPORT_INFECTED:
opCost = EconomyManager.COST_DEPORT_INFECTED_BASE;
opCost = (opCost + (EconomyManager.COST_DEPORT_INFECTED_INFECTED * CountryManager.getInfectedPop()));
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
break;
case OP_EXTREME_POLICIES:
opCost = EconomyManager.COST_EXTREME_POLICIES_BASE;
opCost = (opCost + (EconomyManager.COST_EXTREME_POLICIES_HEALTHY * CountryManager.getHealthyPop()));
opCost = (opCost + (EconomyManager.COST_EXTREME_POLICIES_INFECTED * CountryManager.getInfectedPop()));
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
break;
case OP_CITY_QUARANTINE:
opCost = EconomyManager.COST_CITY_QUARANTINE_BASE;
opCost = (opCost + (EconomyManager.COST_CITY_QUARANTINE_HEALTHY * region.getHealthyPopCity()));
opCost = (opCost + (EconomyManager.COST_CITY_QUARANTINE_IMMUNE * region.getImmunePopCity()));
opCost = (opCost + (EconomyManager.COST_CITY_QUARANTINE_INFECTED * region.getInfectedPopCity()));
if (region.getLooting()){
opCost = (opCost * EconomyManager.COST_CITY_QUARANTINE_LOOTING);
};
if (region.getRioting()){
opCost = (opCost * EconomyManager.COST_CITY_QUARANTINE_RIOTING);
};
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
opCost = (opCost * ((int((GameManager.getGovType() == GameManager.GOV_CLOSED)) * 0.9) + int(!((GameManager.getGovType() == GameManager.GOV_CLOSED)))));
break;
case OP_ENFORCE_CURFEW:
opCost = EconomyManager.COST_ENFORCE_CURFEW_BASE;
opCost = (opCost + (EconomyManager.COST_ENFORCE_CURFEW_HEALTHY * region.getHealthyPopTot()));
opCost = (opCost + (EconomyManager.COST_ENFORCE_CURFEW_IMMUNE * region.getImmunePopTot()));
opCost = (opCost + (EconomyManager.COST_ENFORCE_CURFEW_INFECTED * region.getInfectedPopTot()));
if (region.getLooting()){
opCost = (opCost * EconomyManager.COST_ENFORCE_CURFEW_LOOTING);
};
if (region.getRioting()){
opCost = (opCost * EconomyManager.COST_ENFORCE_CURFEW_RIOTING);
};
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
opCost = (opCost * ((int((GameManager.getGovType() == GameManager.GOV_CLOSED)) * 0.9) + int(!((GameManager.getGovType() == GameManager.GOV_CLOSED)))));
break;
case OP_DISTRIBUTE_VACCINE:
opCost = EconomyManager.COST_DISTRIBUTE_VACCINE_BASE;
opCost = (opCost + (EconomyManager.COST_DISTRIBUTE_VACCINE_HEALTHY * region.getHealthyPopTot()));
opCost = (opCost + (EconomyManager.COST_DISTRIBUTE_VACCINE_IMMUNE * region.getImmunePopTot()));
opCost = (opCost + (EconomyManager.COST_DISTRIBUTE_VACCINE_INFECTED * region.getInfectedPopTot()));
if (region.getLooting()){
opCost = (opCost * EconomyManager.COST_DISTRIBUTE_VACCINE_LOOTING);
};
if (region.getRioting()){
opCost = (opCost * EconomyManager.COST_DISTRIBUTE_VACCINE_RIOTING);
};
opCost = (opCost + (opCost * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
break;
};
return (opCost);
}
override public function run():Boolean{
lastActive++;
if ((((lastActive >= TimeManager.DAY_LENGTH)) && (opOn))){
lastActive = 0;
if (EconomyManager.getCurrentFunds() < getOperationCost()){
deactivateOperation();
} else {
EconomyManager.spendInfOpMoney(getOperationCost());
};
};
opRechargeProgress = (opRechargeProgress + int(((!((opRechargeProgress == opRechargeTime))) && (!(opOn)))));
return (((!(opOn)) && ((opRechargeProgress == opRechargeTime))));
}
override public function activateOperation(_arg1:Object=null):void{
var _local2:OperationButtonContainer;
if (((opOn) && (!((_arg1 == null))))){
representer = (_arg1 as OperationButtonContainer);
GuiManager.displayOperationWindowS(new OperationWindowInfiniteB(this));
};
if ((((EconomyManager.getCurrentFunds() >= getOperationCost())) && (!(opOn)))){
opOn = true;
opRechargeProgress = 0;
OperationManager.registerOperation(this);
lastActive = 0;
opCost = Math.floor(opCost);
EconomyManager.spendInfOpMoney(opCost);
if (_arg1 != null){
representer = (_arg1 as OperationButtonContainer);
_local2 = (_arg1 as OperationButtonContainer);
_local2.setDisabled(false);
_local2.setActivation(true);
};
opGui = new OpGuiNotifier(this);
GuiManager.addOpNotifier(opGui);
switch (opType){
case OP_MILITARY_INFRASTRUCTURE:
if (opSecondRegion.getObjectIdentity() == InformationObject.OBJECT_AIRPORT){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_LOW, NewsEvent.EVENT_TARGET_INFA, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_INFRASTRUCTURE_MILITARY, region, null, opSecondRegion));
};
if (opSecondRegion.getObjectIdentity() == InformationObject.OBJECT_SEAPORT){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_LOW, NewsEvent.EVENT_TARGET_INFA, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_INFRASTRUCTURE_MILITARY, region, null, null, null, opSecondRegion));
};
if (opSecondRegion.getObjectIdentity() == InformationObject.OBJECT_HOSPITAL){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_LOW, NewsEvent.EVENT_TARGET_INFA, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_INFRASTRUCTURE_MILITARY, region, null, null, opSecondRegion));
};
opSecondRegion.updateColor();
break;
case OP_MILITARY_REGION:
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_LOW, NewsEvent.EVENT_TARGET_REGION, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_REGION_MILITARY, region));
break;
case OP_DEPORT_INFECTED:
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_MID, NewsEvent.EVENT_TARGET_NATIONAL, NewsEvent.EVENT_PANIC_INCREASED, NewsEvent.EVENT_SUBJECT_NATION_DEPORTING));
break;
case OP_EXTREME_POLICIES:
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_MID, NewsEvent.EVENT_TARGET_NATIONAL, NewsEvent.EVENT_PANIC_INCREASED, NewsEvent.EVENT_SUBJECT_NATION_EXTREME_POLICIES));
break;
case OP_CITY_QUARANTINE:
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_MID, NewsEvent.EVENT_TARGET_INFA, NewsEvent.EVENT_PANIC_INCREASED, NewsEvent.EVENT_SUBJECT_CITY_QUARANTINE, region, opSecondRegion));
opSecondRegion.updateColor();
break;
case OP_ENFORCE_CURFEW:
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_MID, NewsEvent.EVENT_TARGET_REGION, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_REGION_CURFEWS, region));
break;
case OP_DISTRIBUTE_VACCINE:
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_MID, NewsEvent.EVENT_TARGET_REGION, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_REGION_DISBURSE_VACCINE, region));
break;
case OP_ROAD_BLOCK:
opSecondRegion.updateColor();
break;
case OP_ROAD_BARRICADE:
opSecondRegion.updateColor();
break;
};
};
}
}
}//package INFORMATIONOBJECTS
Section 118
//InformationObject (INFORMATIONOBJECTS.InformationObject)
package INFORMATIONOBJECTS {
import flash.display.*;
import GUI.*;
public class InformationObject extends MovieClip {
protected var objectIdentity;// = 100
protected var surface:ScrollSurface;// = null
public static const OBJECT_SEAPORT:int = 3;
public static const OBJECT_CITY:int = 2;
public static const OBJECT_INTERSTATE:int = 4;
public static const OBJECT_HOSPITAL:int = 1;
public static const OBJECT_AIRPORT:int = 0;
public function InformationObject(){
surface = null;
objectIdentity = 100;
super();
}
public function setSurface(_arg1:ScrollSurface):void{
surface = _arg1;
}
public function getObjectIdentity():int{
return (objectIdentity);
}
public function setOperation(_arg1:int, _arg2:Boolean):void{
}
public function updateColor():void{
}
public function getSurface():ScrollSurface{
return (surface);
}
public function invoke():void{
}
}
}//package INFORMATIONOBJECTS
Section 119
//Interstate (INFORMATIONOBJECTS.Interstate)
package INFORMATIONOBJECTS {
import flash.display.*;
import GUI.*;
import GUI.IACVOBJECTS.*;
import INFORMATIONOBJECTS.WINDOWS.*;
public class Interstate extends InformationObject {
public var engaged:MovieClip;
private var blockOp:InfiniteOperation;// = null
public var coreButton:InterstateButton;
private var barricadeOp:InfiniteOperation;// = null
private var regions:Array;
private static var interstateID:int;
protected static var interstateSurface:ScrollSurface = null;
private static var id:int;
public function Interstate(_arg1:Number, _arg2:Number, _arg3:String, _arg4:String){
var _local5:Region;
regions = new Array();
blockOp = null;
barricadeOp = null;
super();
objectIdentity = InformationObject.OBJECT_INTERSTATE;
id = interstateID++;
this.x = _arg1;
this.y = _arg2;
defuse();
_local5 = null;
_local5 = RegionManager.getRegion(_arg3);
_local5.addInterstate(this);
regions.push(_local5);
_local5 = RegionManager.getRegion(_arg4);
_local5.addInterstate(this);
regions.push(_local5);
blockOp = new InfiniteOperation("ROAD BLOCK", Operation.OP_ROAD_BLOCK, regions[0]);
blockOp.setSecondRegion(this);
barricadeOp = new InfiniteOperation("ROAD BARRICADE", Operation.OP_ROAD_BARRICADE, regions[0]);
barricadeOp.setSecondRegion(this);
engaged.mouseEnabled = false;
engaged.mouseChildren = false;
InterstateManager.addInterstate(this);
coreButton.setContainer(this);
}
override public function updateColor():void{
engaged.visible = ((getBlock()) || (getBarricade()));
}
public function getBlockOp():Operation{
return (blockOp);
}
public function engage():void{
engaged.visible = true;
}
override public function getSurface():ScrollSurface{
if (interstateSurface == null){
interstateSurface = SurfaceManager.getSurface("CampaignMap");
};
return (interstateSurface);
}
public function getBarricadeOp():Operation{
return (barricadeOp);
}
override public function invoke():void{
var _local1:InterstateWindow;
_local1 = new InterstateWindow(this);
GuiManager.displayInterstateWindow(_local1);
}
public function defuse():void{
engaged.visible = false;
}
public function getBarricade():Boolean{
return (barricadeOp.getStatus());
}
public function getRegionA():Region{
return (regions[0]);
}
public function getRegionB():Region{
return (regions[1]);
}
public function findOtherRegion(_arg1:String):Region{
if (regions[0].getRegionName() != _arg1){
return (regions[0]);
};
return (regions[1]);
}
public function getRegions():Array{
return (regions);
}
public function getBlock():Boolean{
return (blockOp.getStatus());
}
override public function setSurface(_arg1:ScrollSurface):void{
interstateSurface = _arg1;
}
}
}//package INFORMATIONOBJECTS
Section 120
//InterstateManager (INFORMATIONOBJECTS.InterstateManager)
package INFORMATIONOBJECTS {
import GUI.*;
public class InterstateManager {
private static var interstates:Array = new Array();
public static function setup():void{
var _local1:Interstate;
var _local2:ScrollSurface;
_local2 = SurfaceManager.getSurface("CampaignMap");
_local1 = new Interstate(454.3, 174, "Washington", "Idaho");
_local2.addChild(_local1);
_local1 = new Interstate(351.2, 262.2, "Washington", "Oregon");
_local2.addChild(_local1);
_local1 = new Interstate(216.7, 249.2, "Washington", "Oregon");
_local2.addChild(_local1);
_local1 = new Interstate(152, 445.3, "Oregon", "California");
_local2.addChild(_local1);
_local1 = new Interstate(405.7, 402.9, "Oregon", "Idaho");
_local2.addChild(_local1);
_local1 = new Interstate(220.8, 632.2, "California", "Nevada");
_local2.addChild(_local1);
_local1 = new Interstate(383, 878.7, "California", "Nevada");
_local2.addChild(_local1);
_local1 = new Interstate(414.4, 930.5, "California", "Arizona");
_local2.addChild(_local1);
_local1 = new Interstate(407.1, 998, "California", "Arizona");
_local2.addChild(_local1);
_local1 = new Interstate(456.9, 826.2, "Nevada", "Arizona");
_local2.addChild(_local1);
_local1 = new Interstate(495.9, 600.3, "Nevada", "Utah");
_local2.addChild(_local1);
_local1 = new Interstate(489.5, 817.2, "Arizona", "Utah");
_local2.addChild(_local1);
_local1 = new Interstate(676.5, 939.5, "Arizona", "New Mexico");
_local2.addChild(_local1);
_local1 = new Interstate(655, 1124.7, "Arizona", "New Mexico");
_local2.addChild(_local1);
_local1 = new Interstate(581.8, 541.5, "Idaho", "Utah");
_local2.addChild(_local1);
_local1 = new Interstate(504.7, 196.7, "Idaho", "Montana");
_local2.addChild(_local1);
_local1 = new Interstate(607.7, 396.6, "Idaho", "Montana");
_local2.addChild(_local1);
_local1 = new Interstate(629.9, 601.5, "Utah", "Wyoming");
_local2.addChild(_local1);
_local1 = new Interstate(701.5, 713.7, "Utah", "Colorado");
_local2.addChild(_local1);
_local1 = new Interstate(848.7, 400.6, "Montana", "Wyoming");
_local2.addChild(_local1);
_local1 = new Interstate(952, 286.1, "Montana", "North Dakota");
_local2.addChild(_local1);
_local1 = new Interstate(931.1, 605.8, "Wyoming", "Nebraska");
_local2.addChild(_local1);
_local1 = new Interstate(940.6, 467.8, "Wyoming", "South Dakota");
_local2.addChild(_local1);
_local1 = new Interstate(888.9, 633.3, "Wyoming", "Colorado");
_local2.addChild(_local1);
_local1 = new Interstate(988.2, 640.1, "Wyoming", "Nebraska");
_local2.addChild(_local1);
_local1 = new Interstate(1011.7, 738.5, "Wyoming", "Kansas");
_local2.addChild(_local1);
_local1 = new Interstate(894, 865.3, "Wyoming", "New Mexico");
_local2.addChild(_local1);
_local1 = new Interstate(807.6, 1144.7, "Texas", "New Mexico");
_local2.addChild(_local1);
_local1 = new Interstate(956.2, 977.2, "Texas", "New Mexico");
_local2.addChild(_local1);
_local1 = new Interstate(1099.6, 960.2, "Texas", "Oklahoma");
_local2.addChild(_local1);
_local1 = new Interstate(1223.8, 1052.4, "Texas", "Oklahoma");
_local2.addChild(_local1);
_local1 = new Interstate(1382.7, 1063.7, "Texas", "Arkansas");
_local2.addChild(_local1);
_local1 = new Interstate(1386.7, 1132.8, "Texas", "Louisiana");
_local2.addChild(_local1);
_local1 = new Interstate(1361.1, 967.2, "Oklahoma", "Arkansas");
_local2.addChild(_local1);
_local1 = new Interstate(1347.5, 881, "Oklahoma", "Missouri");
_local2.addChild(_local1);
_local1 = new Interstate(1220.1, 872.8, "Oklahoma", "Kansas");
_local2.addChild(_local1);
_local1 = new Interstate(1343.3, 757.8, "Missouri", "Kansas");
_local2.addChild(_local1);
_local1 = new Interstate(1370.5, 663.4, "Missouri", "Iowa");
_local2.addChild(_local1);
_local1 = new Interstate(1541, 762.8, "Missouri", "Illinois");
_local2.addChild(_local1);
_local1 = new Interstate(1283.3, 634.1, "Iowa", "Nebraska");
_local2.addChild(_local1);
_local1 = new Interstate(1254.8, 482.3, "Minnesota", "South Dakota");
_local2.addChild(_local1);
_local1 = new Interstate(1237.6, 319.7, "Minnesota", "North Dakota");
_local2.addChild(_local1);
_local1 = new Interstate(1401.5, 413.9, "Minnesota", "Wisconsin");
_local2.addChild(_local1);
_local1 = new Interstate(1459.9, 461.1, "Minnesota", "Wisconsin");
_local2.addChild(_local1);
_local1 = new Interstate(1386, 494, "Minnesota", "Iowa");
_local2.addChild(_local1);
_local1 = new Interstate(1529.7, 1132.3, "Mississippi", "Louisiana");
_local2.addChild(_local1);
_local1 = new Interstate(1583.8, 966.6, "Mississippi", "Tennessee");
_local2.addChild(_local1);
_local1 = new Interstate(1657.6, 1107.4, "Mississippi", "Alabama");
_local2.addChild(_local1);
_local1 = new Interstate(1513.4, 595.5, "Illinois", "Iowa");
_local2.addChild(_local1);
_local1 = new Interstate(1588.3, 533.5, "Illinois", "Wisconsin");
_local2.addChild(_local1);
_local1 = new Interstate(1646, 626.5, "Illinois", "Indiana");
_local2.addChild(_local1);
_local1 = new Interstate(1627.6, 842.5, "Illinois", "Kentucky");
_local2.addChild(_local1);
_local1 = new Interstate(1793.1, 1006.3, "Georgia", "Alabama");
_local2.addChild(_local1);
_local1 = new Interstate(1891.7, 950.4, "Georgia", "South Carolina");
_local2.addChild(_local1);
_local1 = new Interstate(1986.5, 1031.5, "Georgia", "South Carolina");
_local2.addChild(_local1);
_local1 = new Interstate(1991.5, 1154.7, "Georgia", "Florida");
_local2.addChild(_local1);
_local1 = new Interstate(1898.5, 1178.4, "Georgia", "Florida");
_local2.addChild(_local1);
_local1 = new Interstate(1557, 953.4, "Tennessee", "Arkansas");
_local2.addChild(_local1);
_local1 = new Interstate(1711.3, 953.6, "Tennessee", "Alabama");
_local2.addChild(_local1);
_local1 = new Interstate(1718.8, 855, "Tennessee", "Kentucky");
_local2.addChild(_local1);
_local1 = new Interstate(1888.6, 878.1, "Tennessee", "Kentucky");
_local2.addChild(_local1);
_local1 = new Interstate(2079.6, 926.1, "North Carolina", "South Carolina");
_local2.addChild(_local1);
_local1 = new Interstate(1979, 818.3, "North Carolina", "Virginia");
_local2.addChild(_local1);
_local1 = new Interstate(2113.8, 790.1, "North Carolina", "Virginia");
_local2.addChild(_local1);
_local1 = new Interstate(1946.5, 904.5, "North Carolina", "South Carolina");
_local2.addChild(_local1);
_local1 = new Interstate(1745.2, 751, "Indiana", "Kentucky");
_local2.addChild(_local1);
_local1 = new Interstate(1737.9, 554.5, "Indiana", "Michigan");
_local2.addChild(_local1);
_local1 = new Interstate(1768.5, 651.5, "Indiana", "Ohio");
_local2.addChild(_local1);
_local1 = new Interstate(1796.2, 705.1, "Ohio", "Kentucky");
_local2.addChild(_local1);
_local1 = new Interstate(1950.7, 602.3, "Ohio", "Pennsylvania");
_local2.addChild(_local1);
_local1 = new Interstate(1937.5, 546.3, "Ohio", "Pennsylvania");
_local2.addChild(_local1);
_local1 = new Interstate(1798.6, 547.3, "Ohio", "Michigan");
_local2.addChild(_local1);
_local1 = new Interstate(1884.3, 743.3, "West Virginia", "Kentucky");
_local2.addChild(_local1);
_local1 = new Interstate(1964.7, 779.2, "West Virginia", "Virginia");
_local2.addChild(_local1);
_local1 = new Interstate(1977.2, 631.3, "West Virginia", "Pennsylvania");
_local2.addChild(_local1);
_local1 = new Interstate(2141.8, 458.1, "New York", "Pennsylvania");
_local2.addChild(_local1);
_local1 = new Interstate(2200.7, 344.4, "New York", "Vermont");
_local2.addChild(_local1);
_local1 = new Interstate(2226.2, 452.6, "New York", "Connecticut");
_local2.addChild(_local1);
_local1 = new Interstate(2243.5, 304.3, "New Hampshire", "Vermont");
_local2.addChild(_local1);
_local1 = new Interstate(2285.5, 293.7, "New Hampshire", "Maine");
_local2.addChild(_local1);
_local1 = new Interstate(2298.5, 323.4, "New Hampshire", "Maine");
_local2.addChild(_local1);
_local1 = new Interstate(2287.2, 369.6, "New Hampshire", "Massachusetts");
_local2.addChild(_local1);
_local1 = new Interstate(2172.8, 531.8, "New Jersey", "Pennsylvania");
_local2.addChild(_local1);
_local1 = new Interstate(2211.4, 492.7, "New Jersey", "New York");
_local2.addChild(_local1);
_local1 = new Interstate(2296.1, 429.8, "Rhode Island", "Connecticut");
_local2.addChild(_local1);
_local1 = new Interstate(2303.7, 405.2, "Rhode Island", "Massachusetts");
_local2.addChild(_local1);
_local1 = new Interstate(2125.4, 597, "Maryland", "Pennsylvania");
_local2.addChild(_local1);
_local1 = new Interstate(2103.2, 643.3, "Maryland", "Virginia");
_local2.addChild(_local1);
_local1 = new Interstate(2162.3, 594.5, "Maryland", "Delaware");
_local2.addChild(_local1);
}
public static function addInterstate(_arg1:Interstate):void{
interstates.push(_arg1);
}
public static function reset():void{
interstates = new Array();
}
}
}//package INFORMATIONOBJECTS
Section 121
//NewsEvent (INFORMATIONOBJECTS.NewsEvent)
package INFORMATIONOBJECTS {
import SOUND.*;
import MANAGERS.*;
public class NewsEvent {
private var reportTitle:String;
private var eventPanic:int;
private var reportOldDuration:int;
private var evenReportActive:Boolean;
private var established:Boolean;// = false
private var eventPanicBonus:Number;
private var eventSubject:int;
private var reportDurationProgress:int;
private var hospital:InformationObject;// = null
private var eventID:int;
private var soundPlayed:Boolean;// = false
private var eventTarget:int;
private var interstate:InformationObject;// = null
private var seaport:Object;// = null
private var airport:InformationObject;// = null
private var reportOldDurationProgress:int;
private var eventPriority:int;
private var city:InformationObject;// = null
private var reportDuration:int;
private var region:Region;// = null
private var reportBody:String;
private var neverOld:Boolean;
public static const EVENT_SUBJECT_REGION_MILITARY:int = 3;
public static const EVENT_SUBJECT_NATION_INFO_CAMPAIGN:int = 29;
public static const EVENT_SUBJECT_CITY_QUARANTINE:int = 15;
public static const EVENT_SUBJECT_NATION_RESEARCH_33:int = 27;
public static const EVENT_TARGET_GLOBAL:int = 3;
public static const EVENT_SUBJECT_INFRASTRUCTURE_OPENED:int = 19;
public static const EVENT_SUBJECT_NATION_DEPORTING:int = 30;
public static const EVENT_SUBJECT_INFRASTRUCTURE_CLOSED:int = 20;
public static const EVENT_SUBJECT_REGION_RIOTING:int = 1;
public static const EVENT_PANIC_INCREASED:int = 0;
public static const EVENT_SUBJECT_NATION_FEAR_REPORTS:int = 25;
public static const EVENT_SUBJECT_REGION_NEWLY_INFECTED:int = 2;
public static const EVENT_SUBJECT_REGION_DISBURSE_VACCINE:int = 10;
public static const EVENT_SUBJECT_NATION_NORTH_BORDERS_CLOSED:int = 21;
public static const EVENT_SUBJECT_REGION_DEATH_DECREASING:int = 9;
public static const EVENT_SUBJECT_CITY_INFECTION_CLEARED:int = 17;
public static const EVENT_SUBJECT_CITY_NUKED:int = 14;
public static const EVENT_SUBJECT_REGION_CURFEWS:int = 11;
public static const EVENT_SUBJECT_INFRASTRUCTURE_MILITARY:int = 18;
public static const EVENT_PRIORITY_MID:int = 1;
public static const EVENT_SUBJECT_NATION_NORTH_BORDERS_OPENED:int = 22;
public static const EVENT_SUBJECT_NATION_RESEARCH_DONE:int = 26;
public static const EVENT_SUBJECT_NATION_EXTREME_POLICIES:int = 31;
public static const EVENT_SUBJECT_REGION_DEATH_INCREASING:int = 8;
public static const EVENT_PRIORITY_LOW:int = 0;
public static const EVENT_PANIC_DECREASED:int = 1;
public static const EVENT_SUBJECT_CITY_NEWLY_INFECTED:int = 16;
public static const EVENT_SUBJECT_REGION_POPULATION_DEAD:int = 7;
public static const EVENT_SUBJECT_GLOBAL_INFECTION_DECREASING:int = 33;
public static const EVENT_SUBJECT_REGION_LOOTING:int = 0;
public static const EVENT_TARGET_INFA:int = 1;
public static const EVENT_SUBJECT_REGION_HAND_MASKS:int = 12;
public static const EVENT_SUBJECT_GLOBAL_INFECTION_INCREASING:int = 32;
public static const EVENT_SUBJECT_NATION_SOUTH_BORDERS_OPENED:int = 24;
public static const EVENT_SUBJECT_NATION_SOUTH_BORDERS_CLOSED:int = 23;
public static const EVENT_PRIORITY_HIGH:int = 2;
public static const EVENT_SUBJECT_REGION_INFECTION_DECREASING:int = 5;
public static const EVENT_TARGET_NATIONAL:int = 2;
public static const EVENT_TARGET_REGION:int = 0;
public static const EVENT_SUBJECT_NATION_RESEARCH_66:int = 28;
public static const EVENT_SUBJECT_REGION_INFECTION_CLEARED:int = 6;
public static const EVENT_SUBJECT_REGION_INFECTION_INCREASING:int = 4;
public static const EVENT_SUBJECT_CITY_NEUTRON:int = 13;
private static var newsEventIds:int = 0;
public function NewsEvent(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:Region=null, _arg6:InformationObject=null, _arg7:InformationObject=null, _arg8:InformationObject=null, _arg9:Object=null, _arg10:InformationObject=null){
var _local11:City;
region = null;
city = null;
airport = null;
hospital = null;
seaport = null;
interstate = null;
established = false;
soundPlayed = false;
super();
eventPriority = _arg1;
eventTarget = _arg2;
eventPanic = _arg3;
eventSubject = _arg4;
eventID = newsEventIds++;
region = _arg5;
city = _arg6;
airport = _arg7;
hospital = _arg8;
interstate = _arg10;
neverOld = false;
evenReportActive = false;
reportDurationProgress = 0;
reportOldDuration = 0;
reportOldDurationProgress = 0;
eventPanicBonus = PanicManager.PANIC_LEVEL_AVERAGE;
reportTitle = new String();
reportBody = new String();
switch (eventSubject){
case EVENT_SUBJECT_REGION_LOOTING:
reportDuration = 1200;
reportOldDuration = 800;
eventPanicBonus = PanicManager.PANIC_LEVEL_AVERAGE;
reportTitle = ("LOOTING IN " + region.getRegionNameF());
reportBody = (("LOOTING HAS BROKEN OUT IN " + region.getRegionNameF()) + " CAUSING THOUSANDS OF DOLLARS WORTH OF PROPERTY DAMAGE AND TERRIFYING LOCALS. BUSINESS AND HOME OWNERS HAVE BEGUN BOARDING UP PROPERTIES IN AN EFFORT TO DISCOURAGE LOOTERS. IT SEEMS NO ONE CAN FEEL SAFE ANYMORE, NOT EVEN WHILE IN THE COMFORT OF THEIR OWN HOMES.");
break;
case EVENT_SUBJECT_REGION_RIOTING:
reportDuration = 1200;
reportOldDuration = 800;
eventPanicBonus = PanicManager.PANIC_LEVEL_MEDIUM;
reportTitle = ("RIOTING BREAKS OUT IN " + region.getRegionNameF());
reportBody = (("RIOTING HAS SPILLED INTO THE STREETS OF " + region.getRegionNameF()) + " CAUSING DOZENS OF INJURIES. THE DILIGENT OFFICERS OF THE STATE ARE CURRENTLY FIGHTING BACK THIS HORRIFIC CRISIS IN AN ATTEMPT TO KEEP RESIDENTS FROM HARM. IT IS NOT KNOWN WHEN THE STREETS WILL BECOME SAFE AGAIN AS RIOTERS SHOW NO SIGNS OF STOPPING ANYTIME SOON.");
break;
case EVENT_SUBJECT_REGION_NEWLY_INFECTED:
reportDuration = 1000;
neverOld = true;
eventPanicBonus = PanicManager.PANIC_LEVEL_MEDIUM;
reportTitle = (region.getRegionNameF() + " NOW INFECTED");
reportBody = (("IT SEEMED TOO GOOD TO LAST. HEALTH OFFICIALS IN THE STATE OF " + region.getRegionNameF()) + " HAVE RECENTLY ANNOUNCED THE FIRST SWINE FLU RELATED INFECTION HAS APPEARED WITHIN THE STATE. THE HEALTH OFFICIALS APPEARED SHAKEN AND UNSURE OF THEMSELVES WHEN QUESTIONED ABOUT WHAT WOULD BE DONE TO PREVENT THE INFECTION FROM SPREADING.");
break;
case EVENT_SUBJECT_REGION_MILITARY:
reportDuration = 750;
reportOldDuration = 500;
eventPanicBonus = PanicManager.PANIC_LEVEL_MEDIUM;
reportTitle = ("MILITARY SUPPORT APPEARS IN " + region.getRegionNameF());
reportBody = (("OUR GREAT MILITARY HAS RECENTLY PLEDGED SUPPORT FOR THE STATE OF " + region.getRegionNameF()) + ". THE BRAVE MEN AND WOMEN OF OUR ARMED FORCES WILL BE LENDING AID TO ANYONE WHO NEEDS IT WHILE PROMOTING PUBLIC ORDER. A LOCAL RESIDENT HAD THIS TO SAY: “I FEEL SAFER ALREADY. I'M GLAD THEY ARE HERE TO HELP US OUT.”");
break;
case EVENT_SUBJECT_REGION_INFECTION_INCREASING:
reportDuration = 700;
reportOldDuration = 700;
eventPanicBonus = PanicManager.PANIC_LEVEL_LOW;
reportTitle = ("INFECTION INCREASING IN " + region.getRegionNameF());
reportBody = (("IT LOOKS AS IF THERE IS NO END IN SIGHT FOR RESIDENTS OF " + region.getRegionNameF()) + " AS THE SWINE FLU CONTINUES TO SAVAGELY SPREAD ACROSS THE STATE. LOCAL HOSPITALS ARE RECEIVING RECORD NUMBERS OF PATIENTS AND ARE BEING OVERWHELMED BY THE NUMBER OF SWINE FLU RELATED CASES.");
break;
case EVENT_SUBJECT_REGION_INFECTION_DECREASING:
reportDuration = 700;
reportOldDuration = 700;
eventPanicBonus = PanicManager.PANIC_LEVEL_LOW;
reportTitle = ("INFECTION DECREASING IN " + region.getRegionNameF());
reportBody = (("IT LOOKS AS IF THE PRAYERS OF THE RESIDENTS OF " + region.getRegionNameF()) + " HAVE FINALLY BEEN ANSWERED AS HEALTH OFFICIALS HAVE CONFIRMED THAT INFECTION RATES HAVE BEGUN TO DROP. WHILE THIS DOESN'T NECESSARILY MEAN THAT THE SWINE FLU WILL BE GONE ANYTIME SOON, IT DOES OFFER SOME MUCH NEEDED HOPE FOR WEARY LOCALS.");
break;
case EVENT_SUBJECT_REGION_INFECTION_CLEARED:
reportDuration = 1500;
neverOld = true;
eventPanicBonus = PanicManager.PANIC_LEVEL_HIGH;
reportTitle = (region.getRegionNameF() + " FREE OF SWINE FLU");
reportBody = (("DUE TO THE COURAGEOUS EFFORTS OF OUR GOVERNMENT AND OF LOCAL HEALTH OFFICIALS, " + region.getRegionNameF()) + " IS FINALLY FREE OF THE MALICIOUS SWINE FLU. THE GOOD NEWS CAN BE EASILY SEEN ON THE FACE OF EVERY RESIDENT AS SMILES ARE NOW IN A HIGH SUPPLY IN EVERY CORNER OF THE STATE.");
break;
case EVENT_SUBJECT_REGION_POPULATION_DEAD:
reportDuration = 1500;
neverOld = true;
eventPanicBonus = PanicManager.PANIC_LEVEL_CRITICAL;
reportTitle = (region.getRegionNameF() + " A WASTELAND");
reportBody = (("AN UNTHINKABLE AND HORRIFIC TRAGEDY HAS BEFALLEN OUR COUNTRY. " + region.getRegionNameF()) + " STATE HAS BEEN RAVAGED BY THE SWINE FLU TO SUCH AN EXTREME EXTENT THAT THE STATE IS NOW COMPLETELY DEVOID OF HUMAN LIFE. IT IS UNCLEAR HOW OR WHY THIS HAS HAPPENED, BUT THE NATION IS IN SHOCK.");
break;
case EVENT_SUBJECT_REGION_DEATH_INCREASING:
reportDuration = 1000;
reportOldDuration = 800;
eventPanicBonus = PanicManager.PANIC_LEVEL_MEDIUM;
reportTitle = ("MORTALITY RATES ON THE RISE IN " + region.getRegionNameF());
reportBody = (("HEALTH OFFICIALS HAVE CONFIRMED JUST HOURS AGO THAT THE MORTALITY RATE WITHIN " + region.getRegionNameF()) + " IS INFACT RISING. TO UNDERSTAND WHAT THIS MEANS WE SPOKE WITH A LEADING MEDICAL OFFICAL WHO HAD THIS TO SAY: “WE BASICALLY HAVE OUR BACKS AGAINST THE WALL. WE NEED TO LOWER THE MORTALITY RATE NOW OR FACE THE DIRE CONSEQUENCES.”");
break;
case EVENT_SUBJECT_REGION_DEATH_DECREASING:
reportDuration = 800;
reportOldDuration = 800;
eventPanicBonus = PanicManager.PANIC_LEVEL_AVERAGE;
reportTitle = ("MORTALITY RATES DROPPING IN " + region.getRegionNameF());
reportBody = (((("DOCTORS AND OTHER HEALTH OFFICIALS HAVE FINALLY BEEN ABLE TO LOWER THE MORTALITY RATE WITHIN " + region.getRegionNameF()) + " WITH THE HELP OF THE GOVERNMENT. WHILE THIS DOESN'T MEAN THE RESIDENTS OF ") + region.getRegionNameF()) + " ARE OUT OF THE WOODS YET, IT'S DEFINITELY A GOOD START.");
break;
case EVENT_SUBJECT_REGION_DISBURSE_VACCINE:
reportDuration = 1500;
reportOldDuration = 800;
eventPanicBonus = PanicManager.PANIC_LEVEL_HIGH;
reportTitle = ("VACCINE TO FLU BROUGHT TO " + region.getRegionNameF());
reportBody = (((("GREAT NEWS FOR RESIDENTS OF " + region.getRegionNameF()) + " AS GOVERNMENT OFFICIALS HAVE CONFIRMED THAT LARGE QUANTITIES OF THE RECENTLY RESEARCHED SWINE FLU VACCINE ARE INDEED BEING SHIPPED TO ") + region.getRegionNameF()) + ". THIS NEW DEVELOPMENT MOST CERTAINLY WILL BRING NEW HOPE TO AMERICAN CITIZENS.");
break;
case EVENT_SUBJECT_REGION_CURFEWS:
reportDuration = 1000;
reportOldDuration = 800;
eventPanicBonus = PanicManager.PANIC_LEVEL_MEDIUM;
reportTitle = ("CURFEWS ENFORCED IN " + region.getRegionNameF());
reportBody = (("THE NIGHT LIFE FOR RESIDENTS OF " + region.getRegionNameF()) + " HAS BECOME GREATLY SHORTENED DUE TO A NEWLY ENFORCED CURFEW BEING IMPLEMENTED BY GOVERNMENT OFFICIALS AND LOCAL POLICE. WHILE MANY CITIZENS ARE FRUSTRATED ABOUT THE CURFEW, EVERYONE UNDERSTANDS THE NEED FOR SAFETY AND SECURITY TO COME BEFORE PERSONAL FREEDOMS.");
break;
case EVENT_SUBJECT_REGION_HAND_MASKS:
reportDuration = 1000;
reportOldDuration = 800;
eventPanicBonus = PanicManager.PANIC_LEVEL_AVERAGE;
reportTitle = ("MASKS ARRIVING IN " + region.getRegionNameF());
reportBody = (("RELIEF IS BEING BROUGHT TO THE RESIDENTS OF " + region.getRegionNameF()) + " IN THE FORM OF MEDICAL MASKS. THE NEWLY SHIPPED MASKS ARE BEING DISTRIBUTED TO CITIZENS IN THE HOPE THAT THE MASKS WILL GREATLY REDUCE INFECTION RATES WITHIN THE STATE IF RESIDENTS WEAR THEM WHILE OUT IN PUBLIC.");
break;
case EVENT_SUBJECT_CITY_NEUTRON:
reportDuration = 2500;
neverOld = true;
eventPanicBonus = PanicManager.PANIC_LEVEL_CRITICAL;
_local11 = (city as City);
reportTitle = (_local11.getCityNameF() + " VIOLENTLY SILENCED");
reportBody = (((("CHAOTIC REPORTS ARE FRANTICALLY COMING IN THAT " + _local11.getCityNameF()) + " HAS BEEN BOMBED BY SOME UNKNOWN EXPLOSIVE DEVICE. WITNESSES CLAIM THAT AN EXPLOSION OF LIGHT ENGULFED THE CITY FOR A BRIEF MOMENT THEN DISAPPEARED. IT APPEARS AS IF THE CITY HAS BEEN UNDAMAGED BUT THE ENTIRE POPULATION OF ") + _local11.getCityNameF()) + " HAS BEEN TRAGICALLY KILLED.");
break;
case EVENT_SUBJECT_CITY_NUKED:
reportDuration = 2500;
neverOld = true;
eventPanicBonus = PanicManager.PANIC_LEVEL_CRITICAL;
_local11 = (city as City);
reportTitle = (_local11.getCityNameF() + " NUKED");
reportBody = (("AS UNBELIEVABLE AS IT SOUNDS, IT APPEARS AS IF THE GOVERNMENT HAS BEEN FORCED TO TAKE THE EXTREME ACTION OF NUKING " + _local11.getCityNameF()) + " IN ORDER TO SUCCESSFULLY COMBAT THE SWINE FLU. HUNDREDS OF THOUSANDS OF AMERICAN LIVES HAVE BEEN TRAGICALLY KILLED. NOW WE ONLY HOPE THAT THEIR SACRIFICE WILL HELP SAVE EVEN MORE LIVES.");
break;
case EVENT_SUBJECT_CITY_QUARANTINE:
reportDuration = 1500;
neverOld = true;
eventPanicBonus = PanicManager.PANIC_LEVEL_MEDIUM;
_local11 = (city as City);
reportTitle = (_local11.getCityNameF() + " QUARANTINED");
reportBody = (((("GOVERNMENT OFFICIALS HAVE PLACED EVERY INHABITANT OF " + _local11.getCityNameF()) + " UNDER A MANDATORY QUARANTINE. NO ONE WILL BE ABLE TO LEAVE OR ENTER THE CITY WHILE THE QUARANTINE IS IN EFFECT. THERE HAS BEEN NO WORD FROM ANY GOVERNMENT OFFICIALS AS TO HOW LONG THE TERRIFIED RESIDENTS OF ") + _local11.getCityNameF()) + " CAN EXPECT TO REMAIN UNDER THE QUARANTINE.");
break;
case EVENT_SUBJECT_CITY_NEWLY_INFECTED:
reportDuration = 1500;
reportOldDuration = 1000;
eventPanicBonus = PanicManager.PANIC_LEVEL_AVERAGE;
_local11 = (city as City);
reportTitle = (_local11.getCityNameF() + " ENCOUNTERS SWINE FLU");
reportBody = (("IT SEEMED TOO GOOD TO LAST. HEALTH OFFICIALS LOCATED WITHIN " + _local11.getCityNameF()) + " HAVE RECENTLY ANNOUNCED THE FIRST SWINE FLU RELATED INFECTION HAS APPEARED WITHIN THE CITY. THE HEALTH OFFICIALS APPEARED SHAKEN AND UNSURE OF THEMSELVES WHEN QUESTIONED ABOUT WHAT WOULD BE DONE TO PREVENT THE INFECTION FROM SPREADING.");
break;
case EVENT_SUBJECT_CITY_INFECTION_CLEARED:
reportDuration = 1500;
neverOld = true;
eventPanicBonus = PanicManager.PANIC_LEVEL_MEDIUM;
_local11 = (city as City);
reportTitle = (_local11.getCityNameF() + " FREE OF SWINE FLU");
reportBody = (("DUE TO THE COURAGEOUS EFFORTS OF OUR GOVERNMENT AND OF LOCAL HEALTH OFFICIALS, " + region.getRegionNameF()) + " IS FINALLY FREE OF THE MALICIOUS SWINE FLU. THE GOOD NEWS CAN BE EASILY SEEN ON THE FACE OF EVERY RESIDENT AS SMILES ARE NOW IN A HIGH SUPPLY ON EVERY STREET OF THE CITY.");
break;
case EVENT_SUBJECT_INFRASTRUCTURE_MILITARY:
reportDuration = 800;
reportOldDuration = 800;
eventPanicBonus = PanicManager.PANIC_LEVEL_LOW;
if (airport != null){
reportTitle = "MILITARY SUPPORT FOR AIRPORT";
reportBody = (("IN THE CONTINUING EFFORT TO TRY AND REDUCE INFECTION RATES, MILITARY PERSONNEL HAVE BEEN DEPLOYED TO THE AIRPORT OF " + region.getRegionNameF()) + ". THE PRIMARY TASK OF THE MILITARY IN THIS SITUATION IS TO SUPPORT AIRPORT AND HEALTH OFFICIALS IN THEIR ATTEMPT TO SCREEN ARRIVING PASSENGERS FOR ANYONE SUSPECTED OF BEING INFECTED WITH THE SWINE FLU.");
} else {
if (seaport != null){
reportTitle = "MILITARY SUPPORT FOR SEAPORT";
reportBody = (("IN THE CONTINUING EFFORT TO TRY AND REDUCE INFECTION RATES, MILITARY PERSONNEL HAVE BEEN DEPLOYED TO THE SEAPORT OF " + region.getRegionNameF()) + ". THE PRIMARY TASK OF THE MILITARY IN THIS SITUATION IS TO SUPPORT SEAPORT AND HEALTH OFFICIALS IN THEIR ATTEMPT TO SCREEN ARRIVING PASSENGERS FOR ANYONE SUSPECTED OF BEING INFECTED WITH THE SWINE FLU.");
} else {
if (hospital != null){
reportTitle = "MILITARY SUPPORT FOR HOSPITAL";
reportBody = (("IN THE CONTINUING EFFORT TO TRY AND REDUCE MORTALITY RATES, MILITARY PERSONNEL HAVE BEEN DEPLOYED TO THE HOSPITAL OF " + region.getRegionNameF()) + ". THE PRIMARY TASK OF THE MILITARY IN THIS SITUATION IS TO INCREASE PUBLIC ORDER AND INCREASE EFFICIENCY. HEALTH OFFICIALS HAVE STATED THAT WITH THE EXTRA SUPPORT THEY SHOULD BE ABLE TO LOWER THE MORTALITY RATE WITHIN THE REGION.");
};
};
};
break;
case EVENT_SUBJECT_INFRASTRUCTURE_OPENED:
reportDuration = 1000;
reportOldDuration = 900;
eventPanicBonus = PanicManager.PANIC_LEVEL_AVERAGE;
if (airport != null){
reportTitle = "AIRPORT NOW OPEN ONCE MORE";
reportBody = (("RESIDENTS OF " + region.getRegionNameF()) + " ARE GLAD TO SEE THAT THEIR AIRPORT HAS BEEN RECENTLY REOPENED. OFFICIALS HAVE STATED THAT IT WAS TIME TO REOPEN THE AIRPORT FOR A NUMBER OF REASONS, BUT ONE OF THE CONTRIBUTING REASONS WAS DUE TO THE FACT THAT THE SWINE FLU IS NO LONGER THE THREAT IT ONCE WAS.");
} else {
if (seaport != null){
reportTitle = "SEAPORT NOW OPEN ONCE MORE";
reportBody = (("RESIDENTS OF " + region.getRegionNameF()) + " ARE GLAD TO SEE THAT THEIR SEAPORT HAS BEEN RECENTLY REOPENED. OFFICIALS HAVE STATED THAT IT WAS TIME TO REOPEN THE SEAPORT FOR A NUMBER OF REASONS, BUT ONE OF THE CONTRIBUTING REASONS WAS DUE TO THE FACT THAT THE SWINE FLU IS NO LONGER THE THREAT IT ONCE WAS.");
} else {
if (hospital != null){
reportTitle = "HOSPITAL NOW OPEN ONCE MORE";
reportBody = (("RESIDENTS OF " + region.getRegionNameF()) + " ARE GLAD TO SEE THAT THEIR HOSPITAL HAS BEEN RECENTLY REOPENED. OFFICIALS HAVE STATED THAT IT WAS TIME TO REOPEN THE HOSPITAL FOR A NUMBER OF REASONS, BUT ONE OF THE CONTRIBUTING REASONS WAS SO THAT STANDARDIZED HEALTH CARE COULD ONCE AGAIN BE AVAILABLE TO AID CITIZENS.");
};
};
};
break;
case EVENT_SUBJECT_INFRASTRUCTURE_CLOSED:
reportDuration = 1000;
reportOldDuration = 800;
eventPanicBonus = PanicManager.PANIC_LEVEL_MEDIUM;
if (airport != null){
reportTitle = "AIRPORT GETS CLOSED";
reportBody = (("IN AN ATTEMPT TO REDUCE INFECTION RATES THE GOVERNMENT HAS DECIDED TO CLOSE THE AIRPORT OF " + region.getRegionNameF()) + " FOR AN UNDISCLOSED AMOUNT OF TIME. GOVERNMENT OFFICIALS HAVE STATED THAT EVEN THOUGH TOURISM REVENUE WILL TAKE A HIT WHILE THE AIRPORT IS CLOSED, THE BENEFITS WILL EASILY OUTWEIGH THE COSTS. YET MANY CITIZENS REMAIN UNCONVINCED AND FEEL THREATENED BY THE CLOSURES.");
} else {
if (seaport != null){
reportTitle = "SEAPORT GETS CLOSED";
reportBody = (("IN AN ATTEMPT TO REDUCE INFECTION RATES THE GOVERNMENT HAS DECIDED TO CLOSE THE SEAPORT OF " + region.getRegionNameF()) + " FOR AN UNDISCLOSED AMOUNT OF TIME. GOVERNMENT OFFICIALS HAVE STATED THAT EVEN THOUGH TOURISM REVENUE WILL TAKE A HIT WHILE THE SEAPORT IS CLOSED, THE BENEFITS WILL EASILY OUTWEIGH THE COSTS. YET MANY CITIZENS REMAIN UNCONVINCED AND FEEL THREATENED BY THE CLOSURES.");
} else {
if (hospital != null){
reportTitle = "HOSPITAL GETS CLOSED";
reportBody = (("IN AN ATTEMPT TO REDUCE COSTS THE GOVERNMENT HAS DECIDED TO CLOSE THE HOSPITAL OF " + region.getRegionNameF()) + " FOR AN UNDISCLOSED AMOUNT OF TIME. GOVERNMENT OFFICIALS HAVE STATED THAT THE REDUCTION IN HEALTHCARE EXPENSES WILL ALLOW FOR THE DEPLOYMENT OF NEW MILITARY OPERATIONs. HOWEVER, MANY CITIZENS ARE WORRIED ABOUT LOSING ACCESS TO A HOSPITAL IN SUCH DANGEROUS AND TRYING TIMES.");
};
};
};
break;
case EVENT_SUBJECT_NATION_NORTH_BORDERS_CLOSED:
reportDuration = 1500;
reportOldDuration = 1000;
eventPanicBonus = PanicManager.PANIC_LEVEL_MEDIUM;
reportTitle = "GOVERNMENT CLOSES CANADIAN BORDER";
reportBody = "GOVERNMENT OFFICIALS CONFIRMED TODAY THAT THEY HAVE CLOSED THE CANADIAN BORDER FOR AN UNDISCLOSED AMOUNT OF TIME. WHEN QUESTIONED ABOUT THE CLOSURE IT WAS STATED: “THE INFECTION RATES WITHIN CANADA ARE SIMPLY TO HIGH RIGHT NOW TO BE IGNORE. ONCE IT IS SENSIBLE TO DO SO, THE BORDER WILL BE REOPENED WITH OUR NORTHERN NEIGHBOURS.”";
break;
case EVENT_SUBJECT_NATION_NORTH_BORDERS_OPENED:
reportDuration = 1500;
reportOldDuration = 1000;
eventPanicBonus = PanicManager.PANIC_LEVEL_AVERAGE;
reportTitle = "GOVERNMENT REOPENS CANADIAN BORDER";
reportBody = "THE CANADIAN BORDER WAS REOPENED BY THE GOVERNMENT EARLIER TODAY AFTER NOTING THAT THE INFECTION RATE WITHIN CANADA HAD DROPPED DRAMATICALLY SINCE THE BORDER WAS ORIGINALLY CLOSED. WITH THE BORDER NOW OPEN ONCE AGAIN TOURISM REVENUE IS EXPECTED TO INCREASE MODERATELY.";
break;
case EVENT_SUBJECT_NATION_SOUTH_BORDERS_CLOSED:
reportDuration = 1500;
reportOldDuration = 1000;
eventPanicBonus = PanicManager.PANIC_LEVEL_MEDIUM;
reportTitle = "GOVERNMENT CLOSES MEXICAN BORDER";
reportBody = "GOVERNMENT OFFICIALS CONFIRMED TODAY THAT THEY HAVE CLOSED THE MEXICAN BORDER FOR AN UNDISCLOSED AMOUNT OF TIME. WHEN QUESTIONED ABOUT THE CLOSURE IT WAS STATED: “THE INFECTION RATES WITHIN MEXICO ARE SIMPLY TO HIGH RIGHT NOW TO BE IGNORE. ONCE IT IS SENSIBLE TO DO SO, THE BORDER WILL BE REOPENED WITH OUR SOUTHERN NEIGHBOURS.”";
break;
case EVENT_SUBJECT_NATION_SOUTH_BORDERS_OPENED:
reportDuration = 1500;
reportOldDuration = 1000;
eventPanicBonus = PanicManager.PANIC_LEVEL_AVERAGE;
reportTitle = "GOVERNMENT REOPENS MEXICAN BORDER";
reportBody = "THE MEXICAN BORDER WAS REOPENED BY THE GOVERNMENT EARLIER TODAY AFTER NOTING THAT THE INFECTION RATE WITHIN MEXICOwhats HAD DROPPED DRAMATICALLY SINCE THE BORDER WAS ORIGINALLY CLOSED. WITH THE BORDER NOW OPEN ONCE AGAIN TOURISM REVENUE IS EXPECTED TO INCREASE MODERATELY.";
break;
case EVENT_SUBJECT_NATION_FEAR_REPORTS:
reportDuration = 400;
neverOld = true;
eventPanicBonus = PanicManager.PANIC_LEVEL_HIGH;
reportTitle = "TERRIFYING NEW STUDY CLAIMS YOU WILL DIE";
reportBody = "A NEW RESEARCH STUDY HAS RECENTLY BEEN PUBLISHED MAKING ALARMING CLAIMS THAT ARE LIKELY TO SERIOUSLY AFFECT YOUR LIFE. THE REPORT CONCLUDES THAT ONE OUT OF FOUR PEOPLE ARE KILLED WHEN LEAVING THEIR HOUSE. THE REPORT ALSO EXPLAINS THAT ONE OUT OF THREE PEOPLE WILL DIE WITHIN THEIR OWN HOME. IT SEEMS AMERICAN CITIZENS ARE NOT SAFE ANYWHERE.";
break;
case EVENT_SUBJECT_NATION_RESEARCH_DONE:
reportDuration = 1500;
neverOld = true;
eventPanicBonus = PanicManager.PANIC_LEVEL_CRITICAL;
reportTitle = "SWINE FLU RESEARCH COMPLETED";
reportBody = "RESEARCHERS ARE AMAZINGLY HAPPY TO ANNOUNCE TODAY THAT A VACCINE FOR THE SWINE CURE HAS BEEN SUCCESSFULLY DEVELOPED. THE VACCINE IS ALREADY BEING PRODUCED IN VAST QUANTITIES TO BE SHIPPED TO HOSPITALS AND VACCINATION CENTERS. HEALTH OFFICIALS ESTIMATE IT MAY TAKE UP TO A FEW WEEKS TO VACCINATE THE MAJORITY OF THE POPULATION.";
break;
case EVENT_SUBJECT_NATION_RESEARCH_33:
reportDuration = 1500;
neverOld = true;
eventPanicBonus = PanicManager.PANIC_LEVEL_AVERAGE;
reportTitle = "SWINE FLU RESEARCH 33% DONE";
reportBody = "RESEARCHERS ARE WERE HAPPY TO ANNOUNCE EARLIER TODAY THAT A VACCINE FOR THE SWINE FLU IS APPROXIMATELY ONE THIRD COMPLETED. RESEARCHERS COULD NOT OUTLINE AN EXACT DATE AS TO WHEN THE VACCINE WOULD BE COMPLETED BUT REASSURED PEOPLE THAT THE PROGRESS WAS STEADY AND CONSTANT.";
break;
case EVENT_SUBJECT_NATION_RESEARCH_66:
reportDuration = 1500;
neverOld = true;
eventPanicBonus = PanicManager.PANIC_LEVEL_MEDIUM;
reportTitle = "SWINE FLU RESEARCH 66% DONE";
reportBody = "RESEARCHERS ARE WERE HAPPY TO ANNOUNCE EARLIER TODAY THAT A VACCINE FOR THE SWINE FLU IS APPROXIMATELY TWO THIRDS COMPLETED. RESEARCHERS COULD NOT OUTLINE AN EXACT DATE AS TO WHEN THE VACCINE WOULD BE COMPLETED BUT REASSURED PEOPLE THAT THE PROGRESS WAS STEADY AND CONSTANT.";
break;
case EVENT_SUBJECT_NATION_INFO_CAMPAIGN:
reportDuration = 3000;
neverOld = true;
eventPanicBonus = PanicManager.PANIC_LEVEL_HIGH;
reportTitle = ((("GOVERNMENT STARTING " + "\"") + "INFO CAMPAIGN") + "\"");
reportBody = (((("THE GOVERNMENT ANNOUNCED TODAY THAT IT WOULD BE STARTING AN " + "\"") + "INFO CAMPAIGN") + "\"") + ". THE PURPOSE OF THE CAMPAIGN IS TO EDUCATE CITIZENS ABOUT ONGOING MILITARY OPERATIONS THAT ARE HELPING IN THE EFFORT TO ERADICATE THE SWINE FLU. THE PUBLIC WILL ALSO BE INFORMED ABOUT CURRENT SWINE FLU CONDITIONS AND ABOUT BEST PRACTICES TO AVOID BECOMING INFECTED.");
break;
case EVENT_SUBJECT_NATION_DEPORTING:
reportDuration = 2000;
reportOldDuration = 1500;
eventPanicBonus = PanicManager.PANIC_LEVEL_AVERAGE;
reportTitle = "GOVERNMENT DEPORTING INFECTED FOREIGNERS";
reportBody = "THE GOVERNMENT HAS SILENTLY STARTED DEPORTING ANYONE SUSPECTED OF BEING INFECTED WITH THE SWINE FLU IF THEY DONT HOLD AMERICAN CITIZENSHIP. THE NEW POLICY HAS QUICKLY GENERATED A LARGE AMOUNT OF CONTROVERSY FROM FOREIGN VISITORS WHO ARE ACCUSING THE POLICY OF BEING INHUMANE AND MORALLY UNJUST.";
break;
case EVENT_SUBJECT_NATION_EXTREME_POLICIES:
reportDuration = 2500;
reportOldDuration = 1500;
eventPanicBonus = PanicManager.PANIC_LEVEL_HIGH;
reportTitle = "GOVERNMENT SECRETLY KILLING AMERICAN CITIZENS";
reportBody = "IT HAS BEEN REVEALED TODAY THAT THE GOVERNMENT HAS BEGUN DISCRETELY KILLING AMERICAN CITIZENS SUSPECT OF BEING INFECTED WITH THE SWINE FLU. NO GOVERNMENT OFFICIALS WERE AVAILABLE FOR COMMENTS.";
break;
case EVENT_SUBJECT_GLOBAL_INFECTION_INCREASING:
reportDuration = 1000;
reportOldDuration = 800;
eventPanicBonus = PanicManager.PANIC_LEVEL_AVERAGE;
reportTitle = "GLOBAL INFECTION RATES ON THE RISE";
reportBody = "WORLD HEALTH OFFICIALS HAVE ANNOUNCED TODAY THAT THE OVERALL INFECTION RATE FOR THE SWINE FLU IS RISING. WHILE THIS ISN'T NECESSARILY DIRECTLY APPLICABLE TO THE UNITED STATES, IT WILL ALMOST CERTAINLY AFFECT TOURISM AT THE VERY LEAST.";
break;
case EVENT_SUBJECT_GLOBAL_INFECTION_DECREASING:
reportDuration = 1000;
reportOldDuration = 800;
eventPanicBonus = PanicManager.PANIC_LEVEL_AVERAGE;
reportTitle = "GLOBAL INFECTION RATES ON THE DECLINE";
reportBody = "WORLD HEALTH OFFICIALS HAVE ANNOUNCED TODAY THAT THE OVERALL INFECTION RATE FOR THE SWINE FLU IS DECLINING. WHILE THIS ISN'T NECESSARILY DIRECTLY APPLICABLE TO THE UNITED STATES, IT WILL ALMOST CERTAINLY AFFECT TOURISM AT THE VERY LEAST.";
break;
};
if (eventPanic == EVENT_PANIC_INCREASED){
reportDuration = (reportDuration * ((int((GameManager.getDiffType() == GameManager.DIFFICULTY_NORMAL)) + (int((GameManager.getDiffType() == GameManager.DIFFICULTY_HARD)) * 1.05)) + (int((GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME)) * 1.1)));
};
}
public function getEventPanicBonus():Number{
return (eventPanicBonus);
}
public function getEventTarget():int{
return (eventTarget);
}
public function getPrimaryTarget():InformationObject{
if (interstate != null){
return (interstate);
};
if (hospital != null){
return (hospital);
};
if (airport != null){
return (airport);
};
if (city != null){
return (city);
};
return (region);
}
public function getEventBody():String{
return (reportBody);
}
public function getEventPriority():int{
return (eventPriority);
}
public function runWaiting():Boolean{
return ((((++reportOldDurationProgress >= reportOldDuration)) && (!(neverOld))));
}
public function getEventTitle():String{
return (reportTitle);
}
public function runReporting():Boolean{
var _local1:Boolean;
var _local2:City;
_local1 = false;
if (((!((region == null))) && ((eventSubject == EVENT_SUBJECT_REGION_INFECTION_CLEARED)))){
_local1 = (!(region.getInfectedPopTot()) == 0);
};
if (((!((region == null))) && ((eventSubject == EVENT_SUBJECT_REGION_NEWLY_INFECTED)))){
_local1 = (region.getInfectedPopTot() == 0);
};
if (((!((city == null))) && ((eventSubject == EVENT_SUBJECT_CITY_NEWLY_INFECTED)))){
_local2 = (city as City);
_local1 = !((!(_local2.getInfectedPop()) == 0));
};
if (((((established) && (!(soundPlayed)))) && (!(_local1)))){
soundPlayed = true;
SoundManager.getInstance().playSound("NewsReportSound");
};
established = true;
return ((((++reportDurationProgress >= reportDuration)) || (_local1)));
}
public function getEventPanic():int{
return (eventPanic);
}
public function getID():int{
return (eventID);
}
}
}//package INFORMATIONOBJECTS
Section 122
//NukeParticle (INFORMATIONOBJECTS.NukeParticle)
package INFORMATIONOBJECTS {
import flash.display.*;
import MANAGERS.*;
public class NukeParticle extends MovieClip {
private var verVel:Number;// = 0
private var curDist:Number;
private var sinTicker:Number;
private var plane:MovieClip;// = null
private var horVel:Number;// = 0
private var distFade:Number;
public function NukeParticle(){
horVel = 0;
verVel = 0;
plane = null;
super();
}
public function setup(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):void{
plane = _arg1;
this.x = _arg2;
this.y = _arg3;
this.scaleX = _arg4;
this.scaleY = _arg5;
horVel = _arg6;
verVel = _arg7;
distFade = DiseaseManager.genRangedNum(PhysicsManager.PHYS_NUKE_PART_DIST_BOT, PhysicsManager.PHYS_NUKE_PART_DIST_TOP);
curDist = 0;
sinTicker = 0;
}
public function run():Boolean{
verVel = PhysicsManager.PHYS_NUKE_PART_FLOAT_BASE;
verVel = (verVel * (Math.sin((sinTicker = (sinTicker + 0.15))) * (1.4 - scaleX)));
verVel = (verVel + DiseaseManager.genRangedNum(PhysicsManager.PHYS_NUKE_PART_FLOAT_BOT, PhysicsManager.PHYS_NUKE_PART_FLOAT_TOP));
horVel = 1;
curDist = (curDist + Math.sqrt(((verVel * verVel) + (horVel * horVel))));
alpha = (alpha - (int((curDist >= distFade)) * PhysicsManager.PHYS_NUKE_PART_FADE));
alpha = (int((alpha > 0)) * alpha);
this.x = (this.x + horVel);
this.y = (this.y - verVel);
return ((alpha <= PhysicsManager.PHYS_CONF_FADE));
}
public function getPlane():MovieClip{
return (plane);
}
}
}//package INFORMATIONOBJECTS
Section 123
//Operation (INFORMATIONOBJECTS.Operation)
package INFORMATIONOBJECTS {
import GUI.*;
public class Operation {
protected var opType:int;
protected var opSecondRegion:InformationObject;// = null
protected var opName:String;
protected var opCost:Number;
protected var opRechargeTime:int;
protected var opGui:OpGuiNotifier;// = null
protected var opOn:Boolean;// = false
protected var region:Region;
protected var opRechargeProgress:int;
protected var opID:uint;
public static const OP_EXTREME_POLICIES:int = 7;
public static const OP_MEDIA_CENSOR:int = 8;
public static const OP_DISTRIBUTE_MASKS_EFFECT_POS:Number = 0.4;
public static const OP_MILITARY_REGION:int = 1;
public static const OP_ENFORCE_CURFEW:int = 15;
public static const OP_ROAD_BARRICADE:int = 4;
public static const OP_MILITARY_REGION_EFECT_NEG_DEC:Number = 0.7;
public static const OP_DISTRIBUTE_VACCINE:int = 16;
public static const OP_CITY_NUKE:int = 14;
public static const OP_VACCINE_RESEARCH:int = 2;
public static const OP_CITY_QUARANTINE:int = 11;
public static const OP_CITY_NEUTRON:int = 13;
public static const OP_DISTRIBUTE_MASKS:int = 17;
public static const OP_MEDIA_FEAR:int = 10;
public static const OP_INFO_CAMPAIGN:int = 6;
public static const OP_ROAD_BLOCK:int = 3;
public static const OP_MILITARY_REGION_EFECT_NEG:Number = 1.1;
public static const OP_ENFORCE_CURFEW_EFFECT_POS:Number = 0.25;
public static const OP_DEPORT_INFECTED:int = 5;
public static const OP_MILITARY_INFRASTRUCTURE:int = 0;
public static const OP_MILITARY_REGION_EFECT_POS:Number = 1.1;
public static const OP_MEDIA_SPIN:int = 9;
protected static var operationID:uint = 0;
public function Operation(_arg1:String, _arg2:int, _arg3:Region=null){
opOn = false;
opGui = null;
opSecondRegion = null;
super();
opName = _arg1;
opType = _arg2;
region = _arg3;
opCost = 0;
opRechargeProgress = 0;
opRechargeTime = 0;
opID = operationID++;
}
public function activateOperation(_arg1:Object=null):void{
}
public function getName():String{
return (opName);
}
public function setSecondRegion(_arg1:InformationObject):void{
opSecondRegion = _arg1;
}
public function getOperationType():int{
return (opType);
}
public function getID():uint{
return (opID);
}
public function getDurationProgress():Number{
return (100);
}
public function getOperationCost():int{
return (opCost);
}
public function deactivateOperation(_arg1:Object=null):void{
}
public function run():Boolean{
return (true);
}
public function getStatus():Boolean{
return (opOn);
}
public function getRegion():Region{
return (region);
}
public function setID(_arg1:uint):void{
opID = _arg1;
}
public function getSecondRegion():InformationObject{
return (opSecondRegion);
}
public function getOperationRecharge():Number{
if (opRechargeTime == 0){
return (100);
};
return (((opRechargeProgress / opRechargeTime) * 100));
}
}
}//package INFORMATIONOBJECTS
Section 124
//OperationButtonContainer (INFORMATIONOBJECTS.OperationButtonContainer)
package INFORMATIONOBJECTS {
import flash.display.*;
import GUI.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
public class OperationButtonContainer extends MovieClip {
protected var buttonString:String;
protected var opStatusMC:MovieClip;// = null
protected var buttonReference:OperationButton;// = null
public function OperationButtonContainer(){
opStatusMC = null;
buttonReference = null;
super();
opStatusMC = new OperationStatusIndicator();
opStatusMC.mouseChildren = false;
opStatusMC.mouseEnabled = false;
opStatusMC.opRecharge.visible = false;
opStatusMC.opRecharge.gotoAndStop(1);
opStatusMC.opDisabled.visible = false;
opStatusMC.opActive.visible = false;
addChild(opStatusMC);
}
public function setDisabled(_arg1:Boolean):void{
opStatusMC.opDisabled.visible = _arg1;
}
public function setRecharge(_arg1:Boolean, _arg2:int):void{
opStatusMC.opRecharge.visible = _arg1;
opStatusMC.opRecharge.gotoAndStop((_arg2 + int((_arg2 == 0))));
}
public function setActivation(_arg1:Boolean):void{
opStatusMC.opActive.visible = _arg1;
}
public function setButtonStatus(_arg1:Boolean):void{
if (buttonReference != null){
buttonReference.enabled = _arg1;
if (_arg1 == false){
InputManager.removeTempIacvObject(buttonString);
};
};
}
public function setup(_arg1:int, _arg2:Operation, _arg3:OperationButton, _arg4:Boolean=false):void{
buttonReference = _arg3;
if ((((((EconomyManager.getCurrentFunds() < _arg1)) && (!(_arg2.getStatus())))) && ((_arg2.getOperationRecharge() == 100)))){
_arg3.enabled = false;
setDisabled(true);
} else {
if (_arg2.getStatus()){
setActivation(true);
if (_arg4){
_arg3.enabled = false;
setRecharge(true, _arg2.getDurationProgress());
} else {
_arg3.setInvokeFunction(_arg2.activateOperation);
_arg3.setName(buttonString);
_arg3.addToInputManager();
};
} else {
if ((((_arg2.getOperationRecharge() < 100)) && (!(_arg2.getStatus())))){
_arg3.enabled = false;
setDisabled(true);
setRecharge(true, _arg2.getOperationRecharge());
} else {
_arg3.setInvokeFunction(_arg2.activateOperation);
_arg3.setName(buttonString);
_arg3.addToInputManager();
};
};
};
}
}
}//package INFORMATIONOBJECTS
Section 125
//PhysicsManager (INFORMATIONOBJECTS.PhysicsManager)
package INFORMATIONOBJECTS {
import flash.display.*;
import MANAGERS.*;
public class PhysicsManager {
public static const PHYS_GRAVITY:Number = 0.2;
private static const PACKAGE_COUNT:int = 4;
private static const NUKE_PART1_SPAWN_PROB:Number = 0.01;
public static const PHYS_CONF_ROT_THRESH:Number = 0.25;
public static const PHYS_CONF_ROT:Number = 0.99;
private static const PACKAGE_SPREAD:int = 12;
private static const PHYS_NUKE_PART_SCALE_BOT:Number = 0.25;
public static const PHYS_NUKE_SPEED_DIF:Number = 0.25;
private static const NUKE_PART0_SPAWN_PROB:Number = 0.0125;
public static const PHYS_AIR_FRI:Number = 0.99;
public static const PHYS_NUKE_PART_FADE:Number = 0.01;
private static const PHYS_NUKE_PART_SCALE_TOP:Number = 0.75;
public static const PHYS_CONF_YFADE:Number = 400;
public static const PHYS_NUKE_PART_FLOAT_BOT:Number = 0.3;
public static const PHYS_CONF_FADE:Number = 0.01;
private static const NUKE_SMOKE_SPAWN_PROB:Number = 0.005;
public static const PHYS_NUKE_PART_DIST_BOT:Number = 50;
private static const NUKE_PART3_SPAWN_PROB:Number = 0.005;
public static const PHYS_SCALE_Y:Number = 0.004;
public static const PHYS_SCALE_X:Number = 0.004;
public static const PHYS_NUKE_PART_FLOAT_TOP:Number = 0.85;
public static const PHYS_NUKE_PART_DIST_TOP:Number = 100;
public static const PHYS_NUKE_PART_FLOAT_BASE:Number = 1;
private static const NUKE_PART2_SPAWN_PROB:Number = 0.0075;
private static var confetti:Array = new Array();
private static var nukeSmoke:Array = new Array();
private static var confettiPlane:MovieClip = null;
private static var nukedParticles:Array = new Array();
private static var nukedCityPlanes:Array = new Array();
public static function run():void{
var _local1:Boolean;
var _local2:int;
var _local3:MovieClip;
var _local4:SmokeEmitterVector1;
_local1 = false;
_local2 = 0;
while (_local2 < confetti.length) {
_local1 = confetti[_local2].run();
if (_local1){
confettiPlane.removeChild(confetti[_local2]);
};
confetti.splice(_local2, int(_local1));
_local2 = (_local2 - int(_local1));
_local2++;
};
for each (_local3 in nukedCityPlanes) {
if (DiseaseManager.getProbRslt(NUKE_PART0_SPAWN_PROB) == 1){
spawnNukeParticle(_local3, new NukeParticle0());
};
if (DiseaseManager.getProbRslt(NUKE_PART1_SPAWN_PROB) == 1){
spawnNukeParticle(_local3, new NukeParticle1());
};
if (DiseaseManager.getProbRslt(NUKE_PART2_SPAWN_PROB) == 1){
spawnNukeParticle(_local3, new NukeParticle2());
};
if (DiseaseManager.getProbRslt(NUKE_PART3_SPAWN_PROB) == 1){
spawnNukeParticle(_local3, new NukeParticle3());
};
};
_local2 = (nukedParticles.length - 1);
while (_local2 >= 0) {
_local1 = nukedParticles[_local2].run();
if (_local1){
nukedParticles[_local2].getPlane().removeChild(nukedParticles[_local2]);
};
nukedParticles.splice(_local2, int(_local1));
_local2--;
};
for each (_local4 in nukeSmoke) {
_local4.run();
};
}
public static function setPlane(_arg1:MovieClip):void{
confettiPlane = _arg1;
}
public static function registerNukePlane(_arg1:MovieClip):void{
nukedCityPlanes.push(_arg1);
}
public static function clearSmoke():void{
var _local1:NukeParticle;
var _local2:SmokeEmitterVector1;
for each (_local1 in nukedParticles) {
_local1.getPlane().removeChild(_local1);
};
nukedParticles = new Array();
for each (_local2 in nukeSmoke) {
_local2.destroy();
};
nukeSmoke = new Array();
}
private static function spawnNukeParticle(_arg1:MovieClip, _arg2:NukeParticle):void{
var _local3:Number;
nukedParticles.push(_arg2);
_local3 = DiseaseManager.genRangedNum(PHYS_NUKE_PART_SCALE_BOT, PHYS_NUKE_PART_SCALE_TOP);
_arg2.setup(_arg1, ((Math.random() * PACKAGE_SPREAD) - (Math.random() * PACKAGE_SPREAD)), ((Math.random() * PACKAGE_SPREAD) - (Math.random() * PACKAGE_SPREAD)), _local3, _local3, 0, 0);
_arg1.addChild(_arg2);
}
public static function registerSmokeEmitter(_arg1:SmokeEmitterVector1):void{
nukeSmoke.push(_arg1);
}
public static function shootConfetti(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int):void{
var _local6:ConfettiPackage;
var _local7:Number;
var _local8:int;
_local8 = 0;
while (_local8 < _arg1) {
_local7 = (0.75 + (Math.random() / 4));
switch (Math.round((Math.random() * PACKAGE_COUNT))){
case 0:
_local6 = new ConfettiPackage0();
_local6.setup((_arg2 + ((Math.random() * PACKAGE_SPREAD) - (Math.random() * PACKAGE_SPREAD))), (_arg3 + ((Math.random() * PACKAGE_SPREAD) - (Math.random() * PACKAGE_SPREAD))), _local7, _local7, (_arg4 * Math.random()), (_arg5 * Math.random()), ((Math.random() * 10) - (Math.random() * 10)));
confettiPlane.addChild(_local6);
confetti.push(_local6);
break;
case 1:
_local6 = new ConfettiPackage1();
_local6.setup((_arg2 + ((Math.random() * PACKAGE_SPREAD) - (Math.random() * PACKAGE_SPREAD))), (_arg3 + ((Math.random() * PACKAGE_SPREAD) - (Math.random() * PACKAGE_SPREAD))), _local7, _local7, (_arg4 * Math.random()), (_arg5 * Math.random()), ((Math.random() * 10) - (Math.random() * 10)));
confettiPlane.addChild(_local6);
confetti.push(_local6);
break;
case 2:
_local6 = new ConfettiPackage2();
_local6.setup((_arg2 + ((Math.random() * PACKAGE_SPREAD) - (Math.random() * PACKAGE_SPREAD))), (_arg3 + ((Math.random() * PACKAGE_SPREAD) - (Math.random() * PACKAGE_SPREAD))), _local7, _local7, (_arg4 * Math.random()), (_arg5 * Math.random()), ((Math.random() * 10) - (Math.random() * 10)));
confettiPlane.addChild(_local6);
confetti.push(_local6);
break;
case 3:
_local6 = new ConfettiPackage3();
_local6.setup((_arg2 + ((Math.random() * PACKAGE_SPREAD) - (Math.random() * PACKAGE_SPREAD))), (_arg3 + ((Math.random() * PACKAGE_SPREAD) - (Math.random() * PACKAGE_SPREAD))), _local7, _local7, (_arg4 * Math.random()), (_arg5 * Math.random()), ((Math.random() * 10) - (Math.random() * 10)));
confettiPlane.addChild(_local6);
confetti.push(_local6);
break;
case 4:
_local6 = new ConfettiPackage4();
_local6.setup((_arg2 + ((Math.random() * PACKAGE_SPREAD) - (Math.random() * PACKAGE_SPREAD))), (_arg3 + ((Math.random() * PACKAGE_SPREAD) - (Math.random() * PACKAGE_SPREAD))), _local7, _local7, (_arg4 * Math.random()), (_arg5 * Math.random()), ((Math.random() * 10) - (Math.random() * 10)));
confettiPlane.addChild(_local6);
confetti.push(_local6);
break;
};
_local8++;
};
}
public static function clearConfetti():void{
var _local1:ConfettiPackage;
for each (_local1 in confetti) {
confettiPlane.removeChild(_local1);
};
confetti = new Array();
}
}
}//package INFORMATIONOBJECTS
Section 126
//Region (INFORMATIONOBJECTS.Region)
package INFORMATIONOBJECTS {
import GUI.*;
import flash.geom.*;
import MANAGERS.*;
import INFORMATIONOBJECTS.WINDOWS.*;
public class Region extends InformationObject {
private var rioting:Boolean;// = false
private var pastRegionDay:int;// = 1
private var domesticTouristsImmune:int;// = 0
private var lastInfectionRatio:Number;// = 0
private var infectedPop:Array;
protected var northernRegion:Boolean;// = false
private var looting:Boolean;// = false
private var regionType:int;
private var oldExpenses:int;// = 0
private var internationalTouristsHealthy:int;// = 0
protected var southernRegion:Boolean;// = false
private var lastRevenue:int;// = 0
private var lastDayInfectionRatio:Number;// = 0
private var internationalTouristsInfected:int;// = 0
private var immunePop:int;// = 0
private var infectedPopSum:int;// = 0
private var airports:Array;
protected var stateOpFieldVert:Boolean;// = false
private var seaports:Array;
private var lastDeathRatio:Number;// = 0
private var masksOp:FiniteOperation;// = null
private var cities:Array;
private var deadPop:int;// = 0
private var domesticTouristsInfected:int;// = 0
private var curfewsOp:InfiniteOperation;// = null
private var istateBlocks:Array;
private var hospitals:Array;
private var healthyPop:int;
private var regionObjects:Array;
protected var stateOpFieldX:Number;// = 0
protected var stateOpFieldY:Number;// = 0
private var regionName:String;
protected var stateOpField:StateOperationField;
private var militaryOp:InfiniteOperation;// = null
private var lastExpenses:int;// = 0
private var domesticTouristsHealthy:int;// = 0
private var vaccinesOp:InfiniteOperation;// = null
private var oldRevenue:int;// = 0
private var oldInfectionRatio:Number;// = 0
public static const RIOTING_PANIC_REQUIRED:Number = 35;
public static const LOOTING_OVER_PROB:Number = 0.001;
public static const LOOTING_PANIC_REQUIRED:Number = 35;
public static const RIOTING_OVER_PROB:Number = 0.0001;
public static const CENTRAL:int = 1;
public static const LOOTING_PROB_BASE:Number = 1E-7;
public static const EASTERN:int = 2;
public static const RIOTING_PROB_PANIC:Number = 250000;
public static const RIOTING_PROB_BASE:Number = 1E-7;
public static const MISC:int = 3;
public static const WESTERN:int = 0;
public static const LOOTING_PROB_PANIC:Number = 200000;
public static const LOOTING_OVER_MILITARY:Number = 0.003;
public static const RIOTING_OVER_MILITARY:Number = 0.001;
public function Region(){
var _local1:int;
immunePop = 0;
deadPop = 0;
infectedPopSum = 0;
infectedPop = new Array(3);
lastInfectionRatio = 0;
oldInfectionRatio = 0;
lastDeathRatio = 0;
rioting = false;
looting = false;
internationalTouristsInfected = 0;
domesticTouristsInfected = 0;
internationalTouristsHealthy = 0;
domesticTouristsHealthy = 0;
domesticTouristsImmune = 0;
northernRegion = false;
southernRegion = false;
lastRevenue = 0;
lastExpenses = 0;
oldRevenue = 0;
oldExpenses = 0;
militaryOp = null;
curfewsOp = null;
masksOp = null;
vaccinesOp = null;
cities = new Array();
hospitals = new Array();
airports = new Array();
seaports = new Array();
istateBlocks = new Array();
lastDayInfectionRatio = 0;
pastRegionDay = 1;
stateOpFieldX = 0;
stateOpFieldY = 0;
stateOpFieldVert = false;
super();
militaryOp = new InfiniteOperation("MILITARY SUPPORT", Operation.OP_MILITARY_REGION, this);
curfewsOp = new InfiniteOperation("ENFORCING CURFEWS", Operation.OP_ENFORCE_CURFEW, this);
masksOp = new FiniteOperation("DISTRIBUTING MASKS", Operation.OP_DISTRIBUTE_MASKS, this);
vaccinesOp = new InfiniteOperation("DISBURSING VACCINES", Operation.OP_DISTRIBUTE_VACCINE, this);
stateOpFieldX = (this.x + (this.width / 2));
stateOpFieldY = this.y;
RegionManager.addRegion(this);
_local1 = 0;
while (_local1 < infectedPop.length) {
infectedPop[_local1] = 0;
_local1++;
};
}
public function getLooting():Boolean{
return (looting);
}
public function addHospital(_arg1:Hospital):void{
hospitals.push(_arg1);
}
public function getHealthyPopCity():int{
var _local1:int;
var _local2:City;
_local1 = 0;
for each (_local2 in cities) {
if (!_local2.getNukeStatus()){
_local1 = (_local1 + _local2.getHealthyPop());
};
};
return (_local1);
}
public function getInfectedPopTotStr():String{
return (Helpers.addCommas(getInfectedPopTot()));
}
public function getDeadPopTotStr():String{
return (Helpers.addCommas(getDeadPopTot()));
}
public function removeInfected(_arg1:int):void{
var _local2:int;
_arg1 = Helpers.makeIntSafe(_arg1);
_arg1 = ((int((_arg1 > infectedPopSum)) * infectedPopSum) + (int((_arg1 <= infectedPopSum)) * _arg1));
CountryManager.modInfectedPop(-(_arg1));
infectedPopSum = (infectedPopSum - _arg1);
_local2 = 0;
while (_local2 < infectedPop.length) {
if (infectedPop[_local2] < _arg1){
_arg1 = (_arg1 - infectedPop[_local2]);
infectedPop[_local2] = 0;
} else {
infectedPop[_local2] = (infectedPop[_local2] - _arg1);
_arg1 = 0;
break;
};
_local2++;
};
}
override public function updateColor():void{
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = 0;
_local2 = 0;
_local3 = 0;
_local1 = ((infectedPopSum / ((healthyPop + infectedPopSum) + immunePop)) * 125);
_local1 = ((int((((((healthyPop == 0)) && ((immunePop == 0)))) || ((_local1 > 125)))) * 125) + (int(((((!((healthyPop == 0))) || (!((immunePop == 0))))) && ((_local1 <= 125)))) * _local1));
_local1 = (_local1 + (int((getInfectedPopTot() > 0)) * 55));
_local2 = (_local2 - (int((getInfectedPopTot() > 0)) * 20));
_local3 = (_local3 - (int((getInfectedPopTot() > 0)) * 5));
transform.colorTransform = new ColorTransform(1, 1, 1, 1, _local1, _local2, _local3);
}
public function getOpenHospitalCount():int{
var _local1:int;
var _local2:Hospital;
_local1 = 0;
for each (_local2 in hospitals) {
_local1 = (_local1 + int(_local2.getHospitalStatus()));
};
return (_local1);
}
public function modHealthyPop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe2(_arg1, -(healthyPop));
CountryManager.modHealthyPop((_arg1 * int(!((regionType == MISC)))));
healthyPop = (healthyPop + _arg1);
}
public function clearTourism():void{
internationalTouristsInfected = 0;
domesticTouristsInfected = 0;
internationalTouristsHealthy = 0;
domesticTouristsHealthy = 0;
domesticTouristsImmune = 0;
}
public function getImmunePopTot():int{
var _local1:int;
var _local2:City;
_local1 = immunePop;
for each (_local2 in cities) {
if (!_local2.getNukeStatus()){
_local1 = (_local1 + _local2.getImmunePop());
};
};
return (_local1);
}
public function getLastInfectionRatio():Number{
return (lastInfectionRatio);
}
public function makeInfectionsOlder():void{
var _local1:int;
_local1 = 0;
while (_local1 < (infectedPop.length - 1)) {
infectedPop[_local1] = (infectedPop[_local1] + infectedPop[(_local1 + 1)]);
infectedPop[(_local1 + 1)] = 0;
_local1++;
};
}
public function getDomTourImmune():int{
return (domesticTouristsImmune);
}
public function getHealthyPopTotStr():String{
return (Helpers.addCommas(getHealthyPopTot()));
}
public function getSeaportCount():int{
return (0);
}
public function getImmunePop():int{
return (immunePop);
}
public function getCities():Array{
var _local1:Array;
var _local2:City;
_local1 = new Array();
for each (_local2 in cities) {
if (!_local2.getNukeStatus()){
_local1.push(_local2);
};
};
return (_local1);
}
public function addDomTourInf(_arg1:int):void{
domesticTouristsInfected = (domesticTouristsInfected + _arg1);
}
public function getImmunePopTotStr():String{
return (Helpers.addCommas(getImmunePopTot()));
}
public function getLastExpenses():int{
return (lastExpenses);
}
public function getRegionType():int{
return (regionType);
}
public function getHealthyPopStr():String{
return (Helpers.addCommas(healthyPop));
}
override public function getSurface():ScrollSurface{
return (SurfaceManager.getSurface("CampaignMap"));
}
public function setInfectedPop(_arg1:int):void{
var _local2:int;
_arg1 = Helpers.makeIntSafe(_arg1);
infectedPop = new Array();
_local2 = 0;
while (_local2 < infectedPop.length) {
infectedPop[_local2] = 0;
_local2++;
};
infectedPop[(infectedPop.length - 1)] = _arg1;
CountryManager.modInfectedPop(((_arg1 - infectedPopSum) * int(!((regionType == MISC)))));
infectedPopSum = _arg1;
}
public function getAirports():Array{
return (airports);
}
override public function invoke():void{
var _local1:StateWindow;
_local1 = new StateWindow(this);
GuiManager.displayStateWindow(_local1);
}
public function getDomTourHealthy():int{
return (domesticTouristsHealthy);
}
public function getMilitary():Boolean{
return (militaryOp.getStatus());
}
public function setup(_arg1:String, _arg2:int, _arg3:int):void{
regionName = _arg1;
regionType = _arg2;
setHealthyPop(_arg3);
if (regionType == MISC){
RegionManager.removeRegion(regionName);
};
}
public function setImmunePop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe(_arg1);
CountryManager.modImmunePop(((_arg1 - immunePop) * int(!((regionType == MISC)))));
immunePop = _arg1;
}
public function getFullPopCity():int{
var _local1:int;
var _local2:City;
_local1 = 0;
for each (_local2 in cities) {
if (!_local2.getNukeStatus()){
_local1 = (_local1 + _local2.getFullPop());
};
};
return (_local1);
}
public function getSeaports():Array{
return (seaports);
}
public function addDomTourHealthy(_arg1:int):void{
domesticTouristsHealthy = (domesticTouristsHealthy + _arg1);
}
public function getInterstates():Array{
return (istateBlocks);
}
public function getDomTourInf():int{
return (domesticTouristsInfected);
}
public function getDeadPopTot():int{
var _local1:int;
var _local2:City;
_local1 = deadPop;
for each (_local2 in cities) {
_local1 = (_local1 + _local2.getDeadPop());
};
return (_local1);
}
public function addInterstate(_arg1:Interstate):void{
istateBlocks.push(_arg1);
}
public function setupOperationFields():void{
stateOpField = new StateOperationField();
stateOpField.x = stateOpFieldX;
stateOpField.y = stateOpFieldY;
stateOpField.mouseEnabled = false;
stateOpField.mouseChildren = false;
if (stateOpFieldVert){
stateOpField.gotoAndStop(2);
};
stateOpField.fieldBG.alpha = 0.2;
stateOpField.visible = false;
this.parent.addChild(stateOpField);
}
public function addDomTourImmune(_arg1:int):void{
domesticTouristsImmune = (domesticTouristsImmune + _arg1);
}
public function getFullPopTot():int{
var _local1:int;
var _local2:City;
_local1 = ((healthyPop + immunePop) + infectedPopSum);
for each (_local2 in cities) {
if (!_local2.getNukeStatus()){
_local1 = (_local1 + _local2.getFullPop());
};
};
return (_local1);
}
public function run():void{
var _local1:Boolean;
var _local2:Region;
var _local3:int;
var _local4:Number;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:Interstate;
var _local9:City;
var _local10:Airport;
var _local11:Airport;
var _local12:Seaport;
var _local13:Seaport;
var _local14:City;
if ((TimeManager.getHour() % 150) == 0){
updateInfectionRatio();
if (isInfectedCleared()){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_HIGH, NewsEvent.EVENT_TARGET_REGION, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_REGION_INFECTION_CLEARED, this));
};
if (isInfectionIncreasing()){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_LOW, NewsEvent.EVENT_TARGET_REGION, NewsEvent.EVENT_PANIC_INCREASED, NewsEvent.EVENT_SUBJECT_REGION_INFECTION_INCREASING, this));
} else {
if (isInfectionDecreasing()){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_LOW, NewsEvent.EVENT_TARGET_REGION, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_REGION_INFECTION_DECREASING, this));
};
};
if (isDeathIncreasing()){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_MID, NewsEvent.EVENT_TARGET_REGION, NewsEvent.EVENT_PANIC_INCREASED, NewsEvent.EVENT_SUBJECT_REGION_DEATH_INCREASING, this));
} else {
if (isDeathDecreasing()){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_MID, NewsEvent.EVENT_TARGET_REGION, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_REGION_DEATH_DECREASING, this));
};
};
lastDeathRatio = (deadPop / (((healthyPop + infectedPopSum) + immunePop) + deadPop));
};
if (TimeManager.getDay() > pastRegionDay){
pastRegionDay = TimeManager.getDay();
makeInfectionsOlder();
for each (_local14 in cities) {
_local14.makeInfectionsOlder();
};
};
stateOpField.visible = ((((((getMilitary()) || (getCurfews()))) || (getMasks()))) || (getVaccines()));
stateOpField.op0.gotoAndStop((int(getMilitary()) + 1));
stateOpField.op1.gotoAndStop((int(getCurfews()) + 1));
stateOpField.op2.gotoAndStop((int(getMasks()) + 1));
stateOpField.op3.gotoAndStop((int(getVaccines()) + 1));
stateOpField.op0.alpha = (0.15 + (int(getMilitary()) * 0.4));
stateOpField.op1.alpha = (0.15 + (int(getCurfews()) * 0.4));
stateOpField.op2.alpha = (0.15 + (int(getMasks()) * 0.4));
stateOpField.op3.alpha = (0.15 + (int(getVaccines()) * 0.4));
_local1 = false;
if (!rioting){
_local1 = ((Boolean(DiseaseManager.getProbRslt((1E-8 + ((PanicManager.getPanic() / 300000) * int((PanicManager.getPanic() >= 45))))))) && (Boolean(DiseaseManager.getProbRslt((1 - ((int(militaryOp.getStatus()) * 0.27) + (int(curfewsOp.getStatus()) * 0.27)))))));
rioting = _local1;
if (rioting){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_MID, NewsEvent.EVENT_TARGET_REGION, NewsEvent.EVENT_PANIC_INCREASED, NewsEvent.EVENT_SUBJECT_REGION_RIOTING, this));
};
} else {
_local1 = ((Boolean(DiseaseManager.getProbRslt(((int(militaryOp.getStatus()) * 0.05) + (int(curfewsOp.getStatus()) * 0.05))))) || (Boolean(DiseaseManager.getProbRslt(0.0001))));
rioting = !(_local1);
};
if (!looting){
_local1 = ((Boolean(DiseaseManager.getProbRslt((1E-8 + ((PanicManager.getPanic() / 300000) * int((PanicManager.getPanic() >= 45))))))) && (Boolean(DiseaseManager.getProbRslt((1 - ((int(militaryOp.getStatus()) * 0.27) + (int(curfewsOp.getStatus()) * 0.27)))))));
looting = _local1;
if (looting){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_HIGH, NewsEvent.EVENT_TARGET_REGION, NewsEvent.EVENT_PANIC_INCREASED, NewsEvent.EVENT_SUBJECT_REGION_LOOTING, this));
};
} else {
_local1 = ((Boolean(DiseaseManager.getProbRslt(((int(militaryOp.getStatus()) * 0.05) + (int(curfewsOp.getStatus()) * 0.05))))) || (Boolean(DiseaseManager.getProbRslt(0.0001))));
looting = !(_local1);
};
_local4 = DiseaseManager.genRangedNum(0, ((oldInfectionRatio / 20) + 2.5E-5));
_local5 = Math.ceil((healthyPop * (_local4 / 2)));
_local6 = Math.floor((immunePop * (_local4 / 4)));
_local7 = (Math.ceil((infectedPopSum * (_local4 / 4))) * DiseaseManager.getProbRslt(0.0005));
_local5 = ((int((_local5 > healthyPop)) * healthyPop) + (int((_local5 <= healthyPop)) * _local5));
_local6 = ((int((_local6 > immunePop)) * immunePop) + (int((_local6 <= immunePop)) * _local6));
_local7 = ((int((_local7 > infectedPopSum)) * infectedPopSum) + (int((_local7 <= infectedPopSum)) * _local7));
for each (_local8 in istateBlocks) {
if (!_local8.getBarricadeOp().getStatus()){
_local2 = _local8.findOtherRegion(getRegionName());
if (_local8.getBlockOp().getStatus()){
_local5 = (_local5 * (0.75 + (int(militaryOp.getStatus()) * 0.15)));
_local6 = (_local6 * (0.75 + (int(militaryOp.getStatus()) * 0.15)));
_local7 = (_local7 * DiseaseManager.getProbRslt((0.22 - (int(militaryOp.getStatus()) * 0.12))));
};
_local3 = Math.round((_local5 * DiseaseManager.genRangedNum((0 + (int((_local2.getOldInfectionRatio() < getOldInfectionRatio())) * 0.25)), (1 - (int((_local2.getOldInfectionRatio() >= getOldInfectionRatio())) * 0.97)))));
_local3 = ((int((_local3 > _local5)) * _local5) + (int((_local3 <= _local5)) * _local3));
_local5 = (_local5 - _local3);
_local2.modHealthyPop(_local3);
_local2.addDomTourHealthy((_local3 / 50));
modHealthyPop(-(_local3));
_local3 = Math.round((_local6 * DiseaseManager.genRangedNum(0, 1)));
_local3 = ((int((_local3 > _local6)) * _local6) + (int((_local3 <= _local6)) * _local3));
_local6 = (_local6 - _local3);
_local2.modImmunePop(_local3);
_local2.addDomTourImmune((_local3 / 50));
modImmunePop(-(_local3));
_local3 = Math.round((_local7 * DiseaseManager.genRangedNum((0 + (int((_local2.getOldInfectionRatio() < getOldInfectionRatio())) * 0.25)), (1 - (int((_local2.getOldInfectionRatio() >= getOldInfectionRatio())) * 0.97)))));
_local3 = ((int((_local3 > _local7)) * _local7) + (int((_local3 <= _local7)) * _local3));
_local7 = (_local7 - _local3);
_local2.addInfected(_local3);
_local2.addDomTourInf((_local3 / 50));
removeInfected(_local3);
};
};
if (((CountryManager.getCanadaOpen()) && (northernRegion))){
_local3 = (Math.round((DiseaseManager.genRangedNum(0.05, 1) * 150)) * DiseaseManager.getProbRslt(0.05));
_local5 = Math.ceil((_local3 * 0.666));
_local7 = Math.round(((_local3 * 0.333) * DiseaseManager.getProbRslt(CountryManager.getCanadaInfection())));
modHealthyPop(_local5);
addIntTourHealthy(_local5);
addInfected(_local7);
addIntTourInf(_local7);
CountryManager.getCanadaRef().addIntTourHealthy(_local5);
CountryManager.getCanadaRef().addIntTourInf(_local7);
_local3 = (Math.round((DiseaseManager.genRangedNum(0.05, 1) * 150)) * DiseaseManager.getProbRslt(0.5));
_local5 = Math.ceil((_local3 * 0.666));
_local7 = Math.round(((_local3 * 0.333) * DiseaseManager.getProbRslt(CountryManager.getCanadaInfection())));
_local5 = ((int((_local5 > healthyPop)) * healthyPop) + (int((_local5 <= healthyPop)) * _local5));
_local7 = ((int((_local7 > infectedPopSum)) * infectedPopSum) + (int((_local7 <= infectedPopSum)) * _local7));
modHealthyPop(-(_local5));
removeInfected(_local7);
};
if (((CountryManager.getMexicoOpen()) && (southernRegion))){
_local3 = (Math.round((DiseaseManager.genRangedNum(0.05, 1) * 300)) * DiseaseManager.getProbRslt(0.05));
_local5 = Math.ceil((_local3 * 0.666));
_local7 = Math.round(((_local3 * 0.333) * DiseaseManager.getProbRslt(CountryManager.getMexicoInfection())));
modHealthyPop(_local5);
addIntTourHealthy(_local5);
addInfected(_local7);
addIntTourInf(_local7);
CountryManager.getMexicoRef().addIntTourHealthy(_local5);
CountryManager.getMexicoRef().addIntTourInf(_local7);
_local3 = (Math.round((DiseaseManager.genRangedNum(0.05, 1) * 300)) * DiseaseManager.getProbRslt(0.65));
_local5 = Math.ceil((_local3 * 0.666));
_local7 = Math.round(((_local3 * 0.333) * DiseaseManager.getProbRslt(CountryManager.getMexicoInfection())));
_local5 = ((int((_local5 > healthyPop)) * healthyPop) + (int((_local5 <= healthyPop)) * _local5));
_local7 = ((int((_local7 > infectedPopSum)) * infectedPopSum) + (int((_local7 <= infectedPopSum)) * _local7));
modHealthyPop(-(_local5));
removeInfected(_local7);
};
for each (_local9 in cities) {
if (((!(_local9.getNukeStatus())) && (!(_local9.getQuarantine())))){
_local4 = DiseaseManager.genRangedNum(1E-5, 0.002);
_local5 = Math.ceil(((healthyPop * _local4) * DiseaseManager.genRangedNum(0.0001, 0.035)));
_local6 = Math.floor(((immunePop * _local4) * DiseaseManager.genRangedNum(0.0001, 0.035)));
_local7 = (Math.ceil((infectedPopSum * _local4)) * DiseaseManager.getProbRslt(0.0035));
_local5 = ((int((_local5 > healthyPop)) * healthyPop) + (int((_local5 <= healthyPop)) * _local5));
_local6 = ((int((_local6 > immunePop)) * immunePop) + (int((_local6 <= immunePop)) * _local6));
_local7 = ((int((_local7 > infectedPopSum)) * infectedPopSum) + (int((_local7 <= infectedPopSum)) * _local7));
_local3 = _local5;
_local5 = (_local5 - _local3);
_local9.modHealthyPop(_local3);
modHealthyPop(-(_local3));
_local3 = _local6;
_local6 = (_local6 - _local3);
_local9.modImmunePop(_local3);
modImmunePop(-(_local3));
_local3 = _local7;
_local7 = (_local7 - _local3);
_local9.addInfected(_local3);
removeInfected(_local3);
_local4 = DiseaseManager.genRangedNum(1E-5, 0.002);
_local5 = Math.ceil(((healthyPop * _local4) * DiseaseManager.genRangedNum(1E-6, 0.0035)));
_local6 = Math.floor(((immunePop * _local4) * DiseaseManager.genRangedNum(1E-6, 0.0035)));
_local7 = (Math.ceil((infectedPopSum * _local4)) * DiseaseManager.getProbRslt(0.0034));
_local5 = ((int((_local5 > _local9.getHealthyPop())) * _local9.getHealthyPop()) + (int((_local5 <= _local9.getHealthyPop())) * _local5));
_local6 = ((int((_local6 > _local9.getImmunePop())) * _local9.getImmunePop()) + (int((_local6 <= _local9.getImmunePop())) * _local6));
_local7 = ((int((_local7 > _local9.getHealthyPop())) * _local9.getInfectedPop()) + (int((_local7 <= _local9.getInfectedPop())) * _local7));
_local3 = _local5;
_local5 = (_local5 - _local3);
_local9.modHealthyPop(-(_local3));
modHealthyPop(_local3);
_local3 = _local6;
_local6 = (_local6 - _local3);
_local9.modImmunePop(-(_local3));
modImmunePop(_local3);
_local3 = _local7;
_local7 = (_local7 - _local3);
_local9.removeInfected(_local3);
addInfected(_local3);
_local4 = DiseaseManager.genRangedNum(0.00055, ((((0.003 + (int(getMilitary()) * 0.003)) + (int((getOpenHospitalCount() > 0)) * 0.003)) + (int((getOpenHospitalMilitaryCount() > 0)) * 0.003)) + (int(getVaccines()) * 0.008)));
_local4 = (_local4 * int(((((getVaccines()) || ((getOpenHospitalCount() > 0)))) && (CountryManager.getVaccineStatus()))));
_local5 = Math.ceil((_local9.getHealthyPop() * _local4));
_local5 = (((int((_local5 < 130)) * 130) + (int((_local5 >= 130)) * _local5)) * int(CountryManager.getVaccineStatus()));
_local5 = ((int((_local5 > _local9.getHealthyPop())) * _local9.getHealthyPop()) + (int((_local5 <= _local9.getHealthyPop())) * _local5));
_local9.modHealthyPop(-(_local5));
_local9.modImmunePop(_local5);
if (CountryManager.getDeporting()){
_local4 = DiseaseManager.genRangedNum(0.0001, (0.0004 + (int(getMilitary()) * 0.0003)));
_local7 = (Math.round((_local9.getHealthyPop() * _local4)) * DiseaseManager.getProbRslt(0.45));
_local9.removeInfected(_local7);
};
if (CountryManager.getPolicies()){
_local4 = DiseaseManager.genRangedNum(0.0001, (0.005 + (int(getMilitary()) * 0.003)));
_local7 = (Math.round((_local9.getHealthyPop() * _local4)) * DiseaseManager.getProbRslt(0.55));
_local9.removeInfected(_local7);
};
};
};
for each (_local11 in airports) {
_local10 = AirportManager.getOtherAirport(_local11.getAirportID());
if (((((((_local11.getDomStatus()) && (!(_local11.getDepartureBusy())))) && (!((_local10 == null))))) && ((DiseaseManager.getProbRslt(0.3) == 1)))){
_local4 = DiseaseManager.genRangedNum(1E-5, 5E-5);
_local5 = Math.ceil((healthyPop * (_local4 / 2)));
_local6 = Math.floor((immunePop * (_local4 / 4)));
_local7 = (Math.round((infectedPopSum * (_local4 / 4))) * DiseaseManager.getProbRslt(0.35));
_local5 = ((int((_local5 > healthyPop)) * healthyPop) + (int((_local5 <= healthyPop)) * _local5));
_local6 = ((int((_local6 > immunePop)) * immunePop) + (int((_local6 <= immunePop)) * _local6));
_local7 = ((int((_local7 > infectedPopSum)) * infectedPopSum) + (int((_local7 <= infectedPopSum)) * _local7));
_local5 = (_local5 * (int((_local10.getRegion().getOldInfectionRatio() <= getOldInfectionRatio())) + (int((_local10.getRegion().getOldInfectionRatio() > getOldInfectionRatio())) * 0.15)));
_local6 = (_local6 * (int((_local10.getRegion().getOldInfectionRatio() <= getOldInfectionRatio())) + (int((_local10.getRegion().getOldInfectionRatio() > getOldInfectionRatio())) * 0.25)));
_local7 = (_local7 * (int((_local10.getRegion().getOldInfectionRatio() <= getOldInfectionRatio())) + (int((_local10.getRegion().getOldInfectionRatio() > getOldInfectionRatio())) * 0.2)));
if (_local10.getMilitary()){
_local7 = (_local7 * DiseaseManager.getProbRslt(0.5));
};
_local11.playDeparture();
_local10.playArrivals();
_local10.modDomArrivals(_local5);
modHealthyPop(-(_local5));
_local10.modDomArrivalsImmune(_local6);
modImmunePop(-(_local6));
_local10.modDomArrivalsI(_local7);
removeInfected(_local7);
};
if (((((_local11.getIntStatus()) && (!(_local11.getArrivalBusy())))) && ((DiseaseManager.getProbRslt(0.2) == 1)))){
_local3 = Math.round((DiseaseManager.genRangedNum(0.1, 1) * 5000));
_local5 = Math.ceil((_local3 * 0.666));
_local7 = Math.round(((_local3 * 0.333) * DiseaseManager.getProbRslt(CountryManager.getWorldInfection())));
_local11.playArrivals();
_local11.modIntArrivals(_local5);
_local11.modIntArrivalsI(_local7);
};
if (((((_local11.getIntStatus()) && (!(_local11.getDepartureBusy())))) && ((DiseaseManager.getProbRslt(0.201) == 1)))){
_local3 = Math.round((DiseaseManager.genRangedNum(0.1, 1) * 5000));
_local5 = Math.ceil((_local3 * 0.666));
_local7 = Math.round(((_local3 * 0.333) * DiseaseManager.getProbRslt(0.25)));
_local5 = ((int((_local5 > healthyPop)) * healthyPop) + (int((_local5 <= healthyPop)) * _local5));
_local7 = ((int((_local7 > infectedPopSum)) * infectedPopSum) + (int((_local7 <= infectedPopSum)) * _local7));
_local11.playDeparture();
modHealthyPop(-(_local5));
removeInfected(_local7);
};
};
for each (_local13 in seaports) {
_local12 = SeaportManager.getOtherSeaport(_local13.getSeaportID());
if (((((((_local13.getDomStatus()) && (!(_local13.getDepartureBusy())))) && (!((_local12 == null))))) && ((DiseaseManager.getProbRslt(0.03) == 1)))){
_local4 = DiseaseManager.genRangedNum(0.0001, 0.0005);
_local5 = Math.ceil((healthyPop * (_local4 / 2)));
_local6 = Math.floor((immunePop * (_local4 / 4)));
_local7 = (Math.round((infectedPopSum * (_local4 / 4))) * DiseaseManager.getProbRslt(0.35));
_local5 = ((int((_local5 > healthyPop)) * healthyPop) + (int((_local5 <= healthyPop)) * _local5));
_local6 = ((int((_local6 > immunePop)) * immunePop) + (int((_local6 <= immunePop)) * _local6));
_local7 = ((int((_local7 > infectedPopSum)) * infectedPopSum) + (int((_local7 <= infectedPopSum)) * _local7));
_local5 = (_local5 * (int((_local12.getRegion().getOldInfectionRatio() <= getOldInfectionRatio())) + (int((_local12.getRegion().getOldInfectionRatio() > getOldInfectionRatio())) * 0.15)));
_local6 = (_local6 * (int((_local12.getRegion().getOldInfectionRatio() <= getOldInfectionRatio())) + (int((_local12.getRegion().getOldInfectionRatio() > getOldInfectionRatio())) * 0.25)));
_local7 = (_local7 * (int((_local12.getRegion().getOldInfectionRatio() <= getOldInfectionRatio())) + (int((_local12.getRegion().getOldInfectionRatio() > getOldInfectionRatio())) * 0.2)));
if (_local12.getMilitary()){
_local7 = (_local7 * DiseaseManager.getProbRslt(0.5));
};
_local13.playDeparture();
_local12.playArrivals();
_local12.modDomArrivals(_local5);
modHealthyPop(-(_local5));
_local12.modDomArrivalsImmune(_local6);
modImmunePop(-(_local6));
_local12.modDomArrivalsI(_local7);
removeInfected(_local7);
};
if (((((_local13.getIntStatus()) && (!(_local13.getArrivalBusy())))) && ((DiseaseManager.getProbRslt(0.01) == 1)))){
_local3 = Math.round((DiseaseManager.genRangedNum(0.1, 1) * 5000));
_local5 = Math.ceil((_local3 * 0.666));
_local7 = Math.round(((_local3 * 0.333) * DiseaseManager.getProbRslt(CountryManager.getWorldInfection())));
_local13.playArrivals();
_local13.modIntArrivals(_local5);
_local13.modIntArrivalsI(_local7);
};
if (((((_local13.getIntStatus()) && (!(_local13.getDepartureBusy())))) && ((DiseaseManager.getProbRslt(0.01) == 1)))){
_local3 = Math.round((DiseaseManager.genRangedNum(0.1, 1) * 5000));
_local5 = Math.ceil((_local3 * 0.666));
_local7 = Math.round(((_local3 * 0.333) * DiseaseManager.getProbRslt(0.25)));
_local5 = ((int((_local5 > healthyPop)) * healthyPop) + (int((_local5 <= healthyPop)) * _local5));
_local7 = ((int((_local7 > infectedPopSum)) * infectedPopSum) + (int((_local7 <= infectedPopSum)) * _local7));
_local13.playDeparture();
modHealthyPop(-(_local5));
removeInfected(_local7);
};
};
_local4 = DiseaseManager.genRangedNum(0.00055, ((((0.003 + (int(getMilitary()) * 0.003)) + (int((getOpenHospitalCount() > 0)) * 0.003)) + (int((getOpenHospitalMilitaryCount() > 0)) * 0.003)) + (int(getVaccines()) * 0.008)));
_local4 = (_local4 * int(((((getVaccines()) || ((getOpenHospitalCount() > 0)))) && (CountryManager.getVaccineStatus()))));
_local5 = Math.ceil((healthyPop * _local4));
_local5 = (((int((_local5 < 100)) * 100) + (int((_local5 >= 100)) * _local5)) * int(CountryManager.getVaccineStatus()));
_local5 = ((int((_local5 > healthyPop)) * healthyPop) + (int((_local5 <= healthyPop)) * _local5));
modHealthyPop(-(_local5));
modImmunePop(_local5);
if (CountryManager.getDeporting()){
_local4 = DiseaseManager.genRangedNum(0.0001, (0.0004 + (int(getMilitary()) * 0.0003)));
_local7 = (Math.round((infectedPopSum * _local4)) * DiseaseManager.getProbRslt(0.45));
removeInfected(_local7);
};
if (CountryManager.getPolicies()){
_local4 = DiseaseManager.genRangedNum(0.0001, (0.005 + (int(getMilitary()) * 0.003)));
_local7 = (Math.round((infectedPopSum * _local4)) * DiseaseManager.getProbRslt(0.55));
removeInfected(_local7);
};
}
public function getInfectedPopTot():int{
var _local1:int;
var _local2:City;
_local1 = infectedPopSum;
for each (_local2 in cities) {
if (!_local2.getNukeStatus()){
_local1 = (_local1 + _local2.getInfectedPop());
};
};
return (_local1);
}
public function getCurfewsOp():Operation{
return (curfewsOp);
}
public function getVaccines():Boolean{
return (vaccinesOp.getStatus());
}
public function isDeathDecreasing():Boolean{
return ((((lastDeathRatio > (deadPop / (((healthyPop + infectedPopSum) + immunePop) + deadPop)))) && ((DiseaseManager.getProbRslt(0.0001) == 1))));
}
public function isInfectionDecreasing():Boolean{
return ((((oldInfectionRatio > lastInfectionRatio)) && ((DiseaseManager.getProbRslt(0.0001) == 1))));
}
public function addAirport(_arg1:Airport):void{
airports.push(_arg1);
}
public function setDeadPop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe(_arg1);
CountryManager.modDeadPop(((_arg1 - deadPop) * int(!((regionType == MISC)))));
deadPop = _arg1;
}
public function setLastRevenue(_arg1:int):void{
oldRevenue = lastRevenue;
lastRevenue = _arg1;
}
public function isInfectedCleared():Boolean{
return ((((oldInfectionRatio > 0)) && ((lastInfectionRatio <= 0))));
}
public function getMasksOp():Operation{
return (masksOp);
}
public function addIntTourInf(_arg1:int):void{
internationalTouristsInfected = (internationalTouristsInfected + _arg1);
}
public function getOpenHospitalMilitaryCount():int{
var _local1:int;
var _local2:Hospital;
_local1 = 0;
for each (_local2 in hospitals) {
_local1 = (_local1 + int(((_local2.getHospitalStatus()) && (_local2.getMilitary()))));
};
return (_local1);
}
public function getFullPop():int{
return (((healthyPop + immunePop) + infectedPop));
}
public function getDeadPop():int{
return (deadPop);
}
public function getImmunePopStr():String{
return (Helpers.addCommas(immunePop));
}
public function getInfectedPop():int{
return (infectedPopSum);
}
public function getInfectedPopCity():int{
var _local1:int;
var _local2:City;
_local1 = 0;
for each (_local2 in cities) {
if (!_local2.getNukeStatus()){
_local1 = (_local1 + _local2.getInfectedPop());
};
};
return (_local1);
}
public function getOldExpenses():int{
return (oldExpenses);
}
public function isInfectionIncreasing():Boolean{
return ((((oldInfectionRatio < lastInfectionRatio)) && ((DiseaseManager.getProbRslt(0.0001) == 1))));
}
protected function updateInfectionRatio():void{
oldInfectionRatio = lastInfectionRatio;
if (getFullPopTot() <= 0){
lastInfectionRatio = 0;
} else {
lastInfectionRatio = (getInfectedPopTot() / getFullPopTot());
};
}
public function getDeadPopCity():int{
var _local1:int;
var _local2:City;
_local1 = 0;
for each (_local2 in cities) {
if (!_local2.getNukeStatus()){
_local1 = (_local1 + _local2.getDeadPop());
};
};
return (_local1);
}
public function addInfected(_arg1:int, _arg2:Boolean=false):void{
if (((((((!(_arg2)) && ((_arg1 > 0)))) && ((infectedPopSum == 0)))) && (((getImmunePopTot() / (((getHealthyPopTot() + getImmunePopTot()) + getDeadPopTot()) + getInfectedPopTot())) < 0.75)))){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_MID, NewsEvent.EVENT_TARGET_REGION, NewsEvent.EVENT_PANIC_INCREASED, NewsEvent.EVENT_SUBJECT_REGION_NEWLY_INFECTED, this));
};
_arg1 = Helpers.makeIntSafe(_arg1);
infectedPop[0] = (infectedPop[0] + Math.floor((_arg1 / 4)));
infectedPop[(infectedPop.length - 1)] = (infectedPop[(infectedPop.length - 1)] + (_arg1 - Math.floor((_arg1 / 4))));
CountryManager.modInfectedPop((_arg1 * int(!((regionType == MISC)))));
infectedPopSum = (infectedPopSum + _arg1);
}
public function getHospitalCount():int{
return (hospitals.length);
}
public function neutronActiveCities():void{
var _local1:City;
for each (_local1 in cities) {
if (_local1.getNeutroning()){
_local1.neutronCity();
};
};
}
public function getOldInfectionRatio():Number{
return (oldInfectionRatio);
}
public function getRegionNameF():String{
return (new String(regionName).toUpperCase());
}
public function setLastExpenses(_arg1:int):void{
oldExpenses = lastExpenses;
lastExpenses = _arg1;
}
public function getMasks():Boolean{
return (masksOp.getStatus());
}
public function getHealthyPop():int{
return (healthyPop);
}
public function addSeaport(_arg1:Seaport):void{
seaports.push(_arg1);
}
public function getLastRevenue():int{
return (lastRevenue);
}
public function setHealthyPop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe(_arg1);
CountryManager.modHealthyPop(((_arg1 - healthyPop) * int(!((regionType == MISC)))));
healthyPop = _arg1;
}
public function getIntTourInf():int{
return (internationalTouristsInfected);
}
public function getAirportCount():int{
return (airports.length);
}
public function getOldInfected():int{
return (infectedPop[0]);
}
public function isDeathIncreasing():Boolean{
return ((((lastDeathRatio < (deadPop / (((healthyPop + infectedPopSum) + immunePop) + deadPop)))) && ((DiseaseManager.getProbRslt(0.0001) == 1))));
}
public function getHealthyPopTot():int{
var _local1:int;
var _local2:City;
_local1 = healthyPop;
for each (_local2 in cities) {
if (!_local2.getNukeStatus()){
_local1 = (_local1 + _local2.getHealthyPop());
};
};
return (_local1);
}
public function getDeadPopStr():String{
return (Helpers.addCommas(deadPop));
}
public function getFullPopStr():String{
return (Helpers.addCommas(((healthyPop + infectedPopSum) + infectedPop)));
}
public function setRegionName(_arg1:String):void{
regionName = _arg1;
}
public function getRegionName():String{
return (regionName);
}
public function getImmunePopCity():int{
var _local1:int;
var _local2:City;
_local1 = 0;
for each (_local2 in cities) {
if (!_local2.getNukeStatus()){
_local1 = (_local1 + _local2.getImmunePop());
};
};
return (_local1);
}
public function addCity(_arg1:City):void{
cities.push(_arg1);
}
public function getInfectedPopStr():String{
return (Helpers.addCommas(infectedPopSum));
}
public function getIntTourHealthy():int{
return (internationalTouristsHealthy);
}
public function getCityCount():int{
return (cities.length);
}
public function addIntTourHealthy(_arg1:int):void{
internationalTouristsHealthy = (internationalTouristsHealthy + _arg1);
}
public function getRioting():Boolean{
return (rioting);
}
public function getMilitaryOp():Operation{
return (militaryOp);
}
public function getVaccinesOp():Operation{
return (vaccinesOp);
}
public function getCurfews():Boolean{
return (curfewsOp.getStatus());
}
public function nukeActiveCities():void{
var _local1:City;
for each (_local1 in cities) {
if (_local1.getNuking()){
_local1.nukeCity();
};
};
}
public function getOldRevenue():int{
return (oldRevenue);
}
public function modImmunePop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe2(_arg1, -(immunePop));
CountryManager.modImmunePop((_arg1 * int(!((regionType == MISC)))));
immunePop = (immunePop + _arg1);
}
public function modDeadPop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe(_arg1);
CountryManager.modDeadPop((_arg1 * int(!((regionType == MISC)))));
deadPop = (deadPop + _arg1);
}
}
}//package INFORMATIONOBJECTS
Section 127
//RegionManager (INFORMATIONOBJECTS.RegionManager)
package INFORMATIONOBJECTS {
public class RegionManager {
private static var centralArray;
private static var westernArray;
private static var regionList:Array = new Array();
private static var easternArray;
public static function getCentralRegions():Array{
var _local1:Array;
var _local2:int;
_local1 = new Array();
for each (_local2 in centralArray) {
_local1.push(regionList[_local2]);
};
return (_local1);
}
public static function getWesternRegions():Array{
var _local1:Array;
var _local2:int;
_local1 = new Array();
for each (_local2 in westernArray) {
_local1.push(regionList[_local2]);
};
return (_local1);
}
public static function getRegions():Array{
return (regionList);
}
public static function reset():void{
regionList = new Array();
}
public static function getEasternRegions():Array{
var _local1:Array;
var _local2:int;
_local1 = new Array();
for each (_local2 in easternArray) {
_local1.push(regionList[_local2]);
};
return (_local1);
}
public static function removeRegion(_arg1:String):void{
var _local2:int;
_local2 = 0;
while (_local2 < regionList.length) {
if (regionList[_local2].getRegionName() == _arg1){
regionList.splice(_local2, 1);
break;
};
_local2++;
};
}
public static function getRegion(_arg1:String):Region{
var _local2:Region;
for each (_local2 in regionList) {
if (_local2.getRegionName() == _arg1){
return (_local2);
};
};
return (null);
}
public static function addRegion(_arg1:Region):void{
regionList.push(_arg1);
}
public static function setup():void{
var _local1:int;
regionList.sort();
westernArray = new Array();
centralArray = new Array();
easternArray = new Array();
_local1 = 0;
while (_local1 < regionList.length) {
regionList[_local1].setupOperationFields();
switch (regionList[_local1].getRegionType()){
case Region.WESTERN:
westernArray.push(_local1);
break;
case Region.CENTRAL:
centralArray.push(_local1);
break;
case Region.EASTERN:
easternArray.push(_local1);
break;
};
_local1++;
};
}
}
}//package INFORMATIONOBJECTS
Section 128
//Seaport (INFORMATIONOBJECTS.Seaport)
package INFORMATIONOBJECTS {
import flash.display.*;
import GUI.*;
import flash.geom.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import INFORMATIONOBJECTS.WINDOWS.*;
public class Seaport extends InformationObject {
private var militarySupport:InfiniteOperation;// = null
private var seaportName:String;
private var intTourismRevenue:int;
private var domFlights:Boolean;
private var domTourismRevenue:int;
private var seaportRegion:Region;// = null
private var seaportID:int;
private var domArrivalsImmune:int;
private var intArrivals:int;
private var intArrivalsI:int;
private var domArrivalsI:int;
public var boatArrivals:MovieClip;
private var domArrivals:int;
private var intFlights:Boolean;
public var boatDepartures:MovieClip;
private var seaportBusy:Boolean;
private var regionObjects:Array;
private var regionName:String;// = ""
public var coreButton:SeaportButton;
private var seaportOpen:Boolean;
private static var SEAPORT_IDS:int = 0;
protected static var seaportSurface:ScrollSurface = null;
public function Seaport(_arg1:String, _arg2:String){
seaportRegion = null;
regionName = "";
militarySupport = null;
super();
addFrameScript(0, frame1, 1, frame2);
seaportID = SEAPORT_IDS++;
objectIdentity = InformationObject.OBJECT_AIRPORT;
seaportName = _arg1;
regionName = _arg2;
seaportRegion = RegionManager.getRegion(regionName);
if (seaportRegion == null){
};
militarySupport = new InfiniteOperation("MILITARY SUPPORT", Operation.OP_MILITARY_INFRASTRUCTURE, seaportRegion);
militarySupport.setSecondRegion(this);
seaportBusy = false;
seaportOpen = true;
domFlights = true;
intFlights = true;
domArrivals = 0;
intArrivals = 0;
domArrivalsI = 0;
intArrivalsI = 0;
domArrivalsImmune = 0;
domTourismRevenue = 0;
intTourismRevenue = 0;
SeaportManager.addSeaport(this);
coreButton.setContainer(this);
}
public function pauseAnimations():void{
boatDepartures.stop();
boatArrivals.stop();
}
public function getIntStatus():Boolean{
return (intFlights);
}
public function setDomTourismRevenue(_arg1:int):void{
domTourismRevenue = _arg1;
}
override public function updateColor():void{
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = 0;
_local2 = 0;
_local3 = 0;
_local1 = (int(getMilitary()) * 55);
_local2 = (_local2 - (int(getMilitary()) * 20));
_local3 = (_local3 - (int(getMilitary()) * 5));
transform.colorTransform = new ColorTransform(1, 1, 1, 1, _local1, _local2, _local3);
}
public function playDeparture():void{
seaportBusy = true;
boatDepartures.gotoAndPlay(2);
}
public function closeSeaport():void{
seaportOpen = false;
domFlights = false;
intFlights = false;
if (militarySupport.getStatus()){
militarySupport.deactivateOperation();
};
}
public function setSeaportName(_arg1:String):void{
seaportName = _arg1;
}
public function modIntArrivals(_arg1:int):void{
seaportRegion.addIntTourHealthy(_arg1);
seaportRegion.modHealthyPop(_arg1);
intArrivals = (intArrivals + _arg1);
}
public function getArrivalBusy():Boolean{
return (seaportBusy);
}
function frame2(){
this.mouseEnabled = false;
boatArrivals.mouseEnabled = false;
boatArrivals.mouseChildren = false;
boatDepartures.mouseEnabled = false;
boatDepartures.mouseChildren = false;
stop();
}
function frame1(){
this.mouseEnabled = false;
boatArrivals.mouseEnabled = false;
boatArrivals.mouseChildren = false;
boatDepartures.mouseEnabled = false;
boatDepartures.mouseChildren = false;
stop();
}
override public function getSurface():ScrollSurface{
if (seaportSurface == null){
seaportSurface = SurfaceManager.getSurface("CampaignMap");
};
return (seaportSurface);
}
override public function invoke():void{
var _local1:SeaportWindow;
_local1 = new SeaportWindow(this, RegionManager.getRegion(regionName));
GuiManager.displaySeaportWindow(_local1);
}
public function getInfectedDetectionOdds():Number{
return (((CountryManager.getWorldInfection() * 0.75) * ((int(getMilitary()) * 0.45) + int(!(getMilitary())))));
}
public function getMilitary():Boolean{
return (militarySupport.getStatus());
}
public function modDomArrivals(_arg1:int):void{
seaportRegion.modHealthyPop(_arg1);
seaportRegion.addDomTourHealthy(_arg1);
domArrivals = (domArrivals + _arg1);
}
public function banDom():void{
domFlights = false;
}
public function getSeaportName():String{
return (seaportName);
}
public function modIntArrivalsI(_arg1:int):void{
seaportRegion.addIntTourInf(_arg1);
seaportRegion.addInfected(_arg1);
intArrivalsI = (intArrivalsI + _arg1);
}
public function playArrivals():void{
seaportBusy = true;
boatArrivals.gotoAndPlay(2);
}
public function modDomArrivalsI(_arg1:int):void{
seaportRegion.addDomTourInf(_arg1);
seaportRegion.addInfected(_arg1);
domArrivalsI = (domArrivalsI + _arg1);
}
public function getDomStatus():Boolean{
return (domFlights);
}
public function permitDom():void{
domFlights = true;
}
public function getIntArrivalsI():int{
return (intArrivalsI);
}
public function getDomArrivalsI():int{
return (domArrivalsI);
}
public function clearTourismPop():void{
domArrivalsImmune = 0;
intArrivalsI = 0;
domArrivalsI = 0;
intArrivals = 0;
domArrivals = 0;
}
public function getDepartureBusy():Boolean{
return (seaportBusy);
}
public function banInt():void{
intFlights = false;
}
public function getIntArrivals():int{
return (intArrivals);
}
public function resumeAnimations():void{
if (boatDepartures.currentFrame != 1){
boatDepartures.play();
};
if (boatArrivals.currentFrame != 1){
boatArrivals.play();
};
}
public function getIntTourismRevenue():int{
return (intTourismRevenue);
}
public function getRegionName():String{
return (regionName);
}
public function getDomTourismRevenue():int{
return (domTourismRevenue);
}
public function openSeaport():void{
domFlights = true;
intFlights = true;
seaportOpen = true;
}
public function getSeaportStatus():Boolean{
return (seaportOpen);
}
public function getSeaportID():int{
return (seaportID);
}
public function modDomArrivalsImmune(_arg1:int):void{
seaportRegion.addDomTourImmune(_arg1);
seaportRegion.modImmunePop(_arg1);
domArrivalsImmune = (domArrivalsImmune + _arg1);
}
public function getDomArrivals():int{
return (domArrivals);
}
public function setArrivalBusy(_arg1:Boolean):void{
seaportBusy = _arg1;
}
public function setDepartureBusy(_arg1:Boolean):void{
seaportBusy = _arg1;
}
public function getMilitaryOp():Operation{
return (militarySupport);
}
public function permitInt():void{
intFlights = true;
}
public function getDomArrivalsImmune():int{
return (domArrivalsImmune);
}
override public function setSurface(_arg1:ScrollSurface):void{
seaportSurface = _arg1;
}
public function getRegion():Region{
return (seaportRegion);
}
public function setRegion(_arg1:Region):void{
}
public function setIntTourismRevenue(_arg1:int):void{
intTourismRevenue = _arg1;
}
}
}//package INFORMATIONOBJECTS
Section 129
//SeaportManager (INFORMATIONOBJECTS.SeaportManager)
package INFORMATIONOBJECTS {
import GUI.*;
public class SeaportManager {
private static var seaportList:Array = new Array();
public static function setupSeaports():void{
var _local1:Region;
var _local2:Seaport;
var _local3:ScrollSurface;
var _local4:Seaport;
_local3 = SurfaceManager.getSurface("CampaignMap");
_local2 = new Seaport("Seaport", "Washington");
_local3.addChild(_local2);
_local2.gotoAndStop(2);
_local2.scaleX = (_local2.scaleX * -1);
_local2.x = 165;
_local2.y = 140;
_local2 = new Seaport("Seaport", "California");
_local3.addChild(_local2);
_local2.gotoAndStop(2);
_local2.scaleX = (_local2.scaleX * -1);
_local2.x = 244;
_local2.y = 1034;
_local2 = new Seaport("Seaport", "Texas");
_local3.addChild(_local2);
_local2.x = 1386;
_local2.y = 1295;
_local2 = new Seaport("Seaport", "Florida");
_local3.addChild(_local2);
_local2.x = 2130;
_local2.y = 1460;
_local2 = new Seaport("Seaport", "North Carolina");
_local3.addChild(_local2);
_local2.x = 2160;
_local2.y = 930;
for each (_local4 in seaportList) {
_local1 = RegionManager.getRegion(_local4.getRegionName());
if (_local1 != null){
_local1.addSeaport(_local4);
_local4.setRegion(_local1);
};
};
}
public static function resumeAllAnimations():void{
var _local1:Seaport;
for each (_local1 in seaportList) {
_local1.resumeAnimations();
};
}
public static function addSeaport(_arg1:Seaport):void{
seaportList.push(_arg1);
}
public static function pauseAllAnimations():void{
var _local1:Seaport;
for each (_local1 in seaportList) {
_local1.pauseAnimations();
};
}
public static function getOtherSeaport(_arg1:int):Seaport{
var _local2:Seaport;
for each (_local2 in seaportList) {
if (((((_local2.getDomStatus()) && (!(_local2.getArrivalBusy())))) && (!((_local2.getSeaportID() == _arg1))))){
return (_local2);
};
};
return (null);
}
public static function reset():void{
seaportList = new Array();
}
}
}//package INFORMATIONOBJECTS
Section 130
//SmokeEmitter (INFORMATIONOBJECTS.SmokeEmitter)
package INFORMATIONOBJECTS {
import flash.display.*;
import MANAGERS.*;
public class SmokeEmitter {
protected var particleGrowthM:Number;
protected var particleSizeI:Number;
protected var particleGrowthR:Number;
protected var particleMoveX:Number;
protected var spawnDelay:int;
protected var particleMoveYR:Number;
protected var particleMoveY:Number;
protected var smokeFills:Array;
protected var verticalLimit:int;
protected var particleGrowth:Number;
protected var particleMoveXR:Number;
protected var emitterContainerFront:MovieClip;
protected var spawnDelayInit:int;
public function SmokeEmitter(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number, _arg10:Number){
emitterContainerFront = _arg1;
verticalLimit = _arg2;
particleSizeI = _arg3;
particleGrowth = _arg4;
particleGrowthR = _arg5;
particleGrowthM = _arg6;
particleMoveX = _arg7;
particleMoveXR = _arg8;
particleMoveY = _arg9;
particleMoveYR = _arg10;
spawnDelayInit = 13;
smokeFills = new Array();
spawnDelay = 0;
}
public function run():void{
var _local1:Number;
var _local2:int;
_local1 = 0;
_local2 = 0;
while (_local2 < smokeFills.length) {
smokeFills[_local2].y = (smokeFills[_local2].y - (particleMoveY + (Math.random() * particleMoveYR)));
smokeFills[_local2].x = (smokeFills[_local2].x + (particleMoveX + (Math.random() * particleMoveXR)));
_local1 = (particleGrowth + (Math.random() * particleGrowthR));
smokeFills[_local2].width = (smokeFills[_local2].width + (_local1 * int((((smokeFills[_local2].width >= particleGrowthM)) && ((smokeFills[_local2].y >= verticalLimit))))));
smokeFills[_local2].height = (smokeFills[_local2].height + (_local1 * int((((smokeFills[_local2].width >= particleGrowthM)) && ((smokeFills[_local2].y >= verticalLimit))))));
smokeFills[_local2].width = (smokeFills[_local2].width * ((0.95 * int((smokeFills[_local2].y < verticalLimit))) + int((smokeFills[_local2].y >= verticalLimit))));
smokeFills[_local2].height = (smokeFills[_local2].height * ((0.95 * int((smokeFills[_local2].y < verticalLimit))) + int((smokeFills[_local2].y >= verticalLimit))));
if (smokeFills[_local2].width <= 2){
emitterContainerFront.removeChild(smokeFills[_local2]);
smokeFills.splice(_local2, 1);
_local2--;
};
_local2++;
};
spawnDelay--;
if ((((spawnDelay <= 0)) && (GameManager.getTips()))){
smokeFills.push(new smokeFiller0());
emitterContainerFront.addChild(smokeFills[(smokeFills.length - 1)]);
smokeFills[(smokeFills.length - 1)].x = 0;
smokeFills[(smokeFills.length - 1)].y = 0;
smokeFills[(smokeFills.length - 1)].width = particleSizeI;
smokeFills[(smokeFills.length - 1)].height = particleSizeI;
spawnDelay = spawnDelayInit;
};
}
public function clearSmoke():void{
var _local1:MovieClip;
for each (_local1 in smokeFills) {
emitterContainerFront.removeChild(_local1);
};
smokeFills = new Array();
}
}
}//package INFORMATIONOBJECTS
Section 131
//SmokeEmitterVector1 (INFORMATIONOBJECTS.SmokeEmitterVector1)
package INFORMATIONOBJECTS {
import flash.display.*;
public class SmokeEmitterVector1 extends MovieClip {
public var frontSmokePlane:MovieClip;
private var effectHandler:SmokeEmitter;// = null
public function SmokeEmitterVector1(){
effectHandler = null;
addFrameScript(0, frame1, 1, frame2);
super();
effectHandler = new SmokeEmitter(this.frontSmokePlane, -75, 30, -0.005, -0.4, 15, 0.1, 1.3, 0.4, 0.7);
PhysicsManager.registerSmokeEmitter(this);
}
public function destroy():void{
effectHandler.clearSmoke();
}
function frame1(){
gotoAndPlay(2);
}
function frame2(){
stop();
}
public function run():void{
effectHandler.run();
}
}
}//package INFORMATIONOBJECTS
Section 132
//CountryManager (MANAGERS.CountryManager)
package MANAGERS {
import INFORMATIONOBJECTS.*;
import GUI.*;
import INFORMATIONOBJECTS.REGIONS.*;
public class CountryManager {
public static const COUNTRY_LOOTING_CITY:Number = 0.08;
public static const COUNTRY_LOOTING_REGION:Number = 0.05;
public static const COUNTRY_RIOTING_CITY:Number = 0.2;
public static const COUNTRY_RIOTING_REGION:Number = 0.12;
private static var infectionCanada:Number = 0.00015;
private static var deportOp:InfiniteOperation = null;
private static var infoCampOp:FiniteOperation = null;
private static var canadaReference:Canada;
private static var mexicoReference:Mexico;
private static var fearOp:FiniteOperation = null;
private static var vaccine66:Boolean = false;
private static var infectedPop:int = 0;
private static var spinOp:FiniteOperation = null;
private static var censorOp:FiniteOperation = null;
private static var immunePop:int = 0;
private static var deadPop:int = 0;
private static var vaccine33:Boolean = false;
private static var hospitalsOpen:int = 0;
private static var vaccineReady:Boolean = false;
private static var infectionMexico:Number = 0.00035;
private static var vaccineResearch:Number = 0;
private static var healthyPop:int = 0;
private static var vaccineOp:InfiniteOperation = null;
private static var oldWorldInfection:Number = infectionWorld;
private static var tacticsOp:InfiniteOperation = null;
private static var infectionWorld:Number = 0.04;
public static function getMexicoRef():Mexico{
return (mexicoReference);
}
public static function getCanadaInfection():Number{
return (infectionCanada);
}
public static function getMexicoInfection():Number{
return (infectionMexico);
}
public static function run():void{
infectionCanada = (infectionCanada + DiseaseManager.genRangedNum(0, 1E-5));
infectionCanada = (infectionCanada - DiseaseManager.genRangedNum(0, 1E-5));
infectionCanada = (((int((infectionCanada < 0)) * 0) + (int((infectionCanada > 1)) * 1)) + (int((((infectionCanada >= 0)) && ((infectionCanada <= 1)))) * infectionCanada));
infectionMexico = (infectionMexico + DiseaseManager.genRangedNum(0, 1E-5));
infectionMexico = (infectionMexico - DiseaseManager.genRangedNum(0, 1E-5));
infectionMexico = (((int((infectionMexico < 0)) * 0) + (int((infectionMexico > 1)) * 1)) + (int((((infectionMexico >= 0)) && ((infectionMexico <= 1)))) * infectionMexico));
infectionWorld = (infectionWorld + DiseaseManager.genRangedNum(0, 0.001));
infectionWorld = (infectionWorld - DiseaseManager.genRangedNum(0, 0.001));
infectionWorld = (((int((infectionWorld < 0)) * 0) + (int((infectionWorld > 1)) * 1)) + (int((((infectionWorld >= 0)) && ((infectionWorld <= 1)))) * infectionWorld));
if (((((TimeManager.getHour() % 600) == 0)) && (((TimeManager.getDay() % 2) == 0)))){
if (infectionWorld > oldWorldInfection){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_LOW, NewsEvent.EVENT_TARGET_GLOBAL, NewsEvent.EVENT_PANIC_INCREASED, NewsEvent.EVENT_SUBJECT_GLOBAL_INFECTION_INCREASING));
} else {
if (infectionWorld < oldWorldInfection){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_LOW, NewsEvent.EVENT_TARGET_GLOBAL, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_GLOBAL_INFECTION_DECREASING));
};
};
oldWorldInfection = infectionWorld;
};
vaccineResearch = (vaccineResearch + ((((((0.002 + (int((GameManager.getGovType() == GameManager.GOV_OPEN)) * 0.00025)) - (int((GameManager.getDiffType() == GameManager.DIFFICULTY_HARD)) * 0.0005)) - (int((GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME)) * 0.0008)) * getOpenHospitals()) * int(!(vaccineReady))) * int(getVaccine())));
if ((((vaccineResearch >= 33)) && (!(vaccine33)))){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_HIGH, NewsEvent.EVENT_TARGET_NATIONAL, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_NATION_RESEARCH_33));
};
if ((((vaccineResearch >= 66)) && (!(vaccine66)))){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_HIGH, NewsEvent.EVENT_TARGET_NATIONAL, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_NATION_RESEARCH_66));
};
if ((((vaccineResearch >= 100)) && (!(vaccineReady)))){
MediaManager.addNewsEvent(new NewsEvent(NewsEvent.EVENT_PRIORITY_HIGH, NewsEvent.EVENT_TARGET_NATIONAL, NewsEvent.EVENT_PANIC_DECREASED, NewsEvent.EVENT_SUBJECT_NATION_RESEARCH_DONE));
};
vaccine33 = (vaccineResearch >= 33);
vaccine66 = (vaccineResearch >= 66);
vaccineReady = (vaccineResearch >= 100);
vaccineResearch = ((int((vaccineResearch >= 100)) * 100) + (int((vaccineResearch < 100)) * vaccineResearch));
if (((vaccineReady) && (getVaccine()))){
getVaccineOp().deactivateOperation();
};
}
public static function getHealthyPop():int{
return (healthyPop);
}
public static function getVaccine():Boolean{
return (vaccineOp.getStatus());
}
public static function getMexicoOpen():Boolean{
return (mexicoReference.getBorderStatus());
}
public static function getDeadPop():int{
return (deadPop);
}
public static function modDeadPop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe2(_arg1, -(deadPop));
deadPop = (deadPop + _arg1);
}
public static function getInfoCampOp():Operation{
return (infoCampOp);
}
public static function getImmunePop():int{
return (immunePop);
}
public static function setCanadaRef(_arg1:Canada):void{
canadaReference = _arg1;
}
public static function getFear():Boolean{
return (fearOp.getStatus());
}
public static function getFearOp():Operation{
return (fearOp);
}
public static function getOpenHospitals():int{
return (hospitalsOpen);
}
public static function getCanadaOpen():Boolean{
return (canadaReference.getBorderStatus());
}
public static function getCanadaRef():Canada{
return (canadaReference);
}
public static function getInfectedPop():int{
return (infectedPop);
}
public static function getSpin():Boolean{
return (spinOp.getStatus());
}
public static function getSpinOp():Operation{
return (spinOp);
}
public static function getCensor():Boolean{
return (censorOp.getStatus());
}
public static function getCensorOp():Operation{
return (censorOp);
}
public static function getInfoCamp():Boolean{
return (infoCampOp.getStatus());
}
public static function getVaccineOp():Operation{
return (vaccineOp);
}
public static function setupOperations():void{
deportOp = new InfiniteOperation("DEPORT INFECTED", Operation.OP_DEPORT_INFECTED);
vaccineOp = new InfiniteOperation("VACCINE RESEARCH", Operation.OP_VACCINE_RESEARCH);
infoCampOp = new FiniteOperation("INFO CAMPAIGN", Operation.OP_INFO_CAMPAIGN);
tacticsOp = new InfiniteOperation("EXTREME POLICIES", Operation.OP_EXTREME_POLICIES);
censorOp = new FiniteOperation("CENSORING MEDIA", Operation.OP_MEDIA_CENSOR);
spinOp = new FiniteOperation("SPINNING MEDIA", Operation.OP_MEDIA_SPIN);
fearOp = new FiniteOperation("SOLICITIING FEAR", Operation.OP_MEDIA_FEAR);
}
public static function getVaccineProgress():Number{
return ((vaccineResearch / 100));
}
public static function reset():void{
infectionCanada = 0.00015;
infectionMexico = 0.00035;
infectionWorld = 0.04;
oldWorldInfection = infectionWorld;
deportOp = null;
vaccineOp = null;
infoCampOp = null;
tacticsOp = null;
censorOp = null;
spinOp = null;
fearOp = null;
mexicoReference = null;
canadaReference = null;
healthyPop = 0;
immunePop = 0;
infectedPop = 0;
deadPop = 0;
hospitalsOpen = 0;
vaccineResearch = 0;
vaccineReady = false;
vaccine33 = false;
vaccine66 = false;
}
public static function getVaccineStatus():Boolean{
return (vaccineReady);
}
public static function modInfectedPop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe2(_arg1, -(infectedPop));
infectedPop = (infectedPop + _arg1);
}
public static function getWorldInfection():Number{
return (infectionWorld);
}
public static function getPoliciesOp():Operation{
return (tacticsOp);
}
public static function setMexicoRef(_arg1:Mexico):void{
mexicoReference = _arg1;
}
public static function modOpenHospitals(_arg1:int):void{
_arg1 = Helpers.makeIntSafe2(_arg1, -(hospitalsOpen));
hospitalsOpen = (hospitalsOpen + _arg1);
}
public static function getDeporting():Boolean{
return (deportOp.getStatus());
}
public static function getDeportingOp():Operation{
return (deportOp);
}
public static function getPolicies():Boolean{
return (tacticsOp.getStatus());
}
public static function modHealthyPop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe2(_arg1, -(healthyPop));
healthyPop = (healthyPop + _arg1);
}
public static function modImmunePop(_arg1:int):void{
_arg1 = Helpers.makeIntSafe2(_arg1, -(immunePop));
immunePop = (immunePop + _arg1);
}
}
}//package MANAGERS
Section 133
//DiseaseManager (MANAGERS.DiseaseManager)
package MANAGERS {
import INFORMATIONOBJECTS.*;
public class DiseaseManager {
private static const VECTOR_RANGE_PANIC_BONUS:Number = 400;
private static const VECTOR_RANGE_BOT:Number = 0.25;
private static const DEATH_PROB_LOOPS:int = 4;
private static const VECTOR_RANGE_TOP:Number = 0.6;
private static const RECOVERY_PROB_LOOPS:int = 4;
private static const RECOVERY_PROB:Number = 0.05;
private static const TARGET_RANGE_PANIC_BONUS:Number = 400;
private static const RECOVERY_RANGE_PANIC_BONUS:Number = 525;
private static const TARGET_RANGE_BOT:Number = 0.1;
private static const INFECTION_PROB_LOOPS:int = 4;
private static const DEATH_RANGE_PANIC_BONUS:Number = 200;
private static const DEATH_RANGE_BOT:Number = 0.1;
private static const RECOVERY_RANGE_BOT:Number = 0.02;
private static const DEATH_PROB:Number = 0.15;
private static const INFECTION_PROB:Number = 0.25;
private static const TARGET_RANGE_TOP:Number = 0.6;
private static const DEATH_RANGE_TOP:Number = 0.4;
private static const RECOVERY_RANGE_TOP:Number = 0.2;
private static const AREA_OFFSET_CITY:Number = 1.5;
private static const AREA_OFFSET_REGION:Number = 4;
private static var numOfInf:int = 0;
private static var numOfRec:int = 0;
private static var catalyst:Number = 1;
private static var numOfKill:int = 0;
public function setCatalyst(_arg1:Number):void{
catalyst = _arg1;
}
private static function calcKills(_arg1:int, _arg2:int, _arg3:int):int{
var _local4:int;
var _local5:Number;
var _local6:int;
_local4 = 0;
_local5 = (((PanicManager.getPanic() / DEATH_RANGE_PANIC_BONUS) + DEATH_PROB) - ((_arg2 * (RECOVERY_PROB / 3)) + (_arg3 * (RECOVERY_PROB / 1.5))));
_local6 = 0;
while (_local6 < DEATH_PROB_LOOPS) {
_local4 = (_local4 + ((_arg1 / DEATH_PROB_LOOPS) * getProbRslt((_local5 / DEATH_PROB_LOOPS))));
_local6++;
};
_local4 = (_local4 + int((((_local4 == 0)) && ((_arg1 > 0)))));
_local4 = ((int((_local4 > _arg1)) * _arg1) + (int((_local4 <= _arg1)) * _local4));
return (_local4);
}
private static function calcNewInfected(_arg1:int, _arg2:int, _arg3:Number, _arg4:Boolean=false):int{
var _local5:Number;
var _local6:Number;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
if (_arg2 > 0){
_local5 = ((AREA_OFFSET_CITY * int(_arg4)) + (AREA_OFFSET_REGION * int(!(_arg4))));
_local6 = 0;
_local7 = Math.ceil((_arg1 * (genRangedNum(TARGET_RANGE_BOT, TARGET_RANGE_TOP) + (PanicManager.getPanic() / TARGET_RANGE_PANIC_BONUS))));
_local8 = Math.ceil((_arg2 * (genRangedNum(VECTOR_RANGE_BOT, VECTOR_RANGE_TOP) + (PanicManager.getPanic() / VECTOR_RANGE_PANIC_BONUS))));
_local9 = Math.ceil(((_local7 * (_local8 / (_arg1 * _local5))) * _arg3));
_local9 = ((_local7 * int((_local9 > _local7))) + (_local9 * int((_local9 <= _local7))));
_local10 = 0;
while (_local10 < INFECTION_PROB_LOOPS) {
_local6 = (_local6 + ((_local9 / INFECTION_PROB_LOOPS) * getProbRslt(INFECTION_PROB)));
_local10++;
};
return (Math.ceil((_local6 / catalyst)));
};
return (0);
}
private static function calcRecoveries(_arg1:int, _arg2:int, _arg3:int):int{
var _local4:int;
var _local5:Number;
var _local6:int;
_local4 = 0;
_local5 = (((_arg2 * RECOVERY_PROB) + (_arg3 * (RECOVERY_PROB * 2))) + RECOVERY_PROB);
_local6 = 0;
while (_local6 < RECOVERY_PROB_LOOPS) {
_local4 = (_local4 + ((_arg1 / RECOVERY_PROB_LOOPS) * getProbRslt((_local5 / RECOVERY_PROB_LOOPS))));
_local6++;
};
_local4 = (_local4 + int((((_local4 == 0)) && ((_arg1 > 0)))));
_local4 = ((int((_local4 > _arg1)) * _arg1) + (int((_local4 <= _arg1)) * _local4));
return (_local4);
}
public static function genRangedNum(_arg1:Number, _arg2:Number):Number{
return (((RandNumGen.Random() * (_arg2 - _arg1)) + _arg1));
}
public static function simRegionDisease(_arg1:Region):void{
var _local2:int;
var _local3:int;
var _local4:Number;
var _local5:Number;
var _local6:Array;
var _local7:City;
_local5 = 1;
_local5 = (_local5 - ((int(_arg1.getMasks()) * Operation.OP_DISTRIBUTE_MASKS_EFFECT_POS) * ((int(_arg1.getMilitary()) * Operation.OP_MILITARY_REGION_EFECT_POS) + int(!(_arg1.getMilitary())))));
_local5 = (_local5 - ((int(_arg1.getCurfews()) * Operation.OP_ENFORCE_CURFEW_EFFECT_POS) * ((int(_arg1.getMilitary()) * Operation.OP_MILITARY_REGION_EFECT_POS) + int(!(_arg1.getMilitary())))));
if (_arg1.getCurfews()){
_local5 = (_local5 * getProbRslt(0.15));
};
if (CountryManager.getInfoCamp()){
_local5 = (_local5 * getProbRslt(0.4));
};
if (CountryManager.getPolicies()){
_local5 = (_local5 * getProbRslt(0.3));
};
_local5 = (_local5 + ((int(_arg1.getLooting()) * CountryManager.COUNTRY_LOOTING_REGION) * ((int(_arg1.getMilitary()) * Operation.OP_MILITARY_REGION_EFECT_NEG_DEC) + int(!(_arg1.getMilitary())))));
_local5 = (_local5 + ((int(_arg1.getRioting()) * CountryManager.COUNTRY_RIOTING_REGION) * ((int(_arg1.getMilitary()) * Operation.OP_MILITARY_REGION_EFECT_NEG_DEC) + int(!(_arg1.getMilitary())))));
if (_arg1.getMasks()){
_local5 = (_local5 * getProbRslt(0.05));
};
_local4 = calcNewInfected(_arg1.getHealthyPop(), _arg1.getInfectedPop(), _local5);
_arg1.addInfected(_local4);
_arg1.modHealthyPop(-(_local4));
_local6 = _arg1.getCities();
for each (_local7 in _local6) {
_local5 = 1;
_local5 = (_local5 - ((int(_arg1.getMasks()) * Operation.OP_DISTRIBUTE_MASKS_EFFECT_POS) * ((int(_arg1.getMilitary()) * Operation.OP_MILITARY_REGION_EFECT_POS) + int(!(_arg1.getMilitary())))));
_local5 = (_local5 - ((int(_arg1.getCurfews()) * Operation.OP_ENFORCE_CURFEW_EFFECT_POS) * ((int(_arg1.getMilitary()) * Operation.OP_MILITARY_REGION_EFECT_POS) + int(!(_arg1.getMilitary())))));
if (_arg1.getCurfews()){
_local5 = (_local5 * getProbRslt(0.8));
};
if (CountryManager.getInfoCamp()){
_local5 = (_local5 * getProbRslt(0.1));
};
if (CountryManager.getInfoCamp()){
_local5 = (_local5 * getProbRslt(0.5));
};
_local5 = (_local5 + ((int(_arg1.getLooting()) * CountryManager.COUNTRY_LOOTING_REGION) * ((int(_arg1.getMilitary()) * Operation.OP_MILITARY_REGION_EFECT_NEG_DEC) + int(!(_arg1.getMilitary())))));
_local5 = (_local5 + ((int(_arg1.getRioting()) * CountryManager.COUNTRY_RIOTING_REGION) * ((int(_arg1.getMilitary()) * Operation.OP_MILITARY_REGION_EFECT_NEG_DEC) + int(!(_arg1.getMilitary())))));
if (_arg1.getMasks()){
_local5 = (_local5 * getProbRslt(0.7));
};
_local4 = calcNewInfected(_local7.getHealthyPop(), _local7.getInfectedPop(), _local5, true);
_local7.addInfected(_local4);
_local7.modHealthyPop(-(_local4));
};
_local2 = Math.ceil((_arg1.getOldInfected() * genRangedNum(RECOVERY_RANGE_BOT, RECOVERY_RANGE_TOP)));
_local2 = ((int((_local2 > _arg1.getOldInfected())) * _arg1.getOldInfected()) + (int((_local2 <= _arg1.getOldInfected())) * _local2));
_local3 = calcRecoveries(_local2, _arg1.getOpenHospitalCount(), _arg1.getOpenHospitalMilitaryCount());
_arg1.modHealthyPop(_local3);
_arg1.removeInfected(_local3);
_local6 = _arg1.getCities();
for each (_local7 in _local6) {
_local2 = Math.ceil((_local7.getOldInfected() * genRangedNum(RECOVERY_RANGE_BOT, RECOVERY_RANGE_TOP)));
_local2 = ((int((_local2 > _local7.getOldInfected())) * _local7.getOldInfected()) + (int((_local2 <= _local7.getOldInfected())) * _local2));
_local3 = calcRecoveries(_local2, _arg1.getOpenHospitalCount(), _arg1.getOpenHospitalMilitaryCount());
_local7.modHealthyPop(_local3);
_local7.removeInfected(_local3);
};
_local2 = Math.ceil((_arg1.getOldInfected() * genRangedNum(DEATH_RANGE_BOT, DEATH_RANGE_TOP)));
_local2 = ((int((_local2 > _arg1.getOldInfected())) * _arg1.getOldInfected()) + (int((_local2 <= _arg1.getOldInfected())) * _local2));
_local3 = calcKills(_local2, _arg1.getOpenHospitalCount(), _arg1.getOpenHospitalMilitaryCount());
_arg1.removeInfected(_local3);
_arg1.modDeadPop(_local3);
_local6 = _arg1.getCities();
for each (_local7 in _local6) {
_local2 = Math.ceil((_local7.getOldInfected() * genRangedNum(DEATH_RANGE_BOT, DEATH_RANGE_TOP)));
_local2 = ((int((_local2 > _local7.getOldInfected())) * _local7.getOldInfected()) + (int((_local2 <= _local7.getOldInfected())) * _local2));
_local3 = calcKills(_local2, _arg1.getOpenHospitalCount(), _arg1.getOpenHospitalMilitaryCount());
_local7.removeInfected(_local3);
_local7.modDeadPop(_local3);
};
_arg1.updateColor();
}
public static function getProbRslt(_arg1:Number):int{
var _local2:Number;
_local2 = RandNumGen.Random();
return (int((_arg1 > RandNumGen.Random())));
}
}
}//package MANAGERS
Section 134
//EconomyManager (MANAGERS.EconomyManager)
package MANAGERS {
import INFORMATIONOBJECTS.*;
import GUI.*;
public class EconomyManager {
public static const COST_DISTRIBUTE_MASKS_IMMUNE:Number = 1E-5;
public static const COST_DISTRIBUTE_VACCINE_INFECTED:Number = 2E-5;
private static const REVENUE_CITY_HEALTHY:Number = 0.00045;
public static const INFRAEXPENSE_HOSPITAL:int = 1000;
public static const PANIC_REVENUE_BONUS:Number = 150;
public static const COST_ROAD_BARRICADE:Number = 4500;
private static const REVENUE_REGION_INFECTED:Number = 2.7E-5;
public static const COST_DISTRIBUTE_VACCINE_HEALTHY:Number = 8.5E-5;
public static const COST_LOOTING_INFECTED:Number = 6E-5;
public static const COST_MILITARY_REGION_HEALTHY:Number = 0.00015;
private static const TOURISM_DOM_HEALTHY:Number = 0.2;
public static const COST_MILITARY_REGION_BASE:Number = 4000;
public static const COST_ROAD_BLOCK:Number = 2000;
public static const COST_MILITARY_INFRASTRUCTURE_RIOTING:Number = 1.1;
public static const COST_ENFORCE_CURFEW_HEALTHY:Number = 3E-5;
public static const COST_DISTRIBUTE_VACCINE_BASE:Number = 5500;
public static const COST_DISTRIBUTE_MASKS_HEALTHY:Number = 7.1E-5;
public static const COST_MEDIA_FEAR:Number = 5000;
public static const COST_MILITARY_INFRASTRUCTURE_LOOTING:Number = 1.05;
public static const COST_INFO_CAMPAIGN_BASE:Number = 18000;
public static const INFRAEXPENSE_SEAPORT:int = 350;
public static const INFRAEXPENSE_REGION:int = 500;
public static const COST_DISTRIBUTE_VACCINE_RIOTING:Number = 1.1;
public static const COST_CITY_QUARANTINE_IMMUNE:Number = 1E-5;
private static const TOURISM_INT_INFECTED:Number = 0.25;
public static const COST_DISTRIBUTE_VACCINE_IMMUNE:Number = 0;
public static const COST_MILITARY_REGION_RIOTING:Number = 1.1;
public static const COST_EXTREME_POLICIES_INFECTED:Number = 0.001;
public static const COST_CITY_QUARANTINE_BASE:Number = 4000;
public static const COST_ENFORCE_CURFEW_IMMUNE:Number = 1E-5;
private static const TOURISM_DOM_INFECTED:Number = 0.12;
public static const INFRAEXPENSE_CITY:int = 450;
public static const COST_DISTRIBUTE_VACCINE_LOOTING:Number = 1.05;
private static const REVENUE_CITY_INFECTED:Number = 0.00011;
public static const COST_ENFORCE_CURFEW_RIOTING:Number = 1.1;
public static const COST_MILITARY_REGION_LOOTING:Number = 1.05;
public static const COST_VACCINE_RESEARCH_BASE:Number = 10000;
public static const COST_DISTRIBUTE_MASKS_RIOTING:Number = 1.1;
public static const COST_ENFORCE_CURFEW_BASE:Number = 3750;
public static const COST_MILITARY_INFRASTRUCTURE_BASE:Number = 2000;
public static const COST_DEPORT_INFECTED_BASE:Number = 6000;
public static const COST_EXTREME_POLICIES_BASE:Number = 12000;
public static const COST_ENFORCE_CURFEW_LOOTING:Number = 1.05;
public static const COST_LOOTING_IMMUNE:Number = 3E-5;
public static const COST_EXTREME_POLICIES_HEALTHY:Number = 1E-5;
public static const COST_DISTRIBUTE_MASKS_LOOTING:Number = 1.05;
public static const COST_MILITARY_REGION_IMMUNE:Number = 1E-5;
public static const COST_CITY_QUARANTINE_HEALTHY:Number = 0.001;
public static const COST_DISTRIBUTE_MASKS_BASE:Number = 2750;
public static const COST_MILITARY_REGION_INFECTED:Number = 0.0007;
public static const COST_VACCINE_RESEARCH_INFECTED:Number = 1E-5;
public static const COST_ENFORCE_CURFEW_INFECTED:Number = 5E-5;
public static const COST_MEDIA_SPIN:Number = 6000;
public static const COST_MILITARY_INFRASTRUCTURE_INFECTED:Number = 0.0005;
public static const COST_DEPORT_INFECTED_INFECTED:Number = 0.00019;
public static const COST_CITY_NEUTRON_BASE:Number = 40000;
public static const COST_MILITARY_INFRASTRUCTURE_IMMUNE:Number = 1E-5;
public static const COST_RIOTING_IMMUNE:Number = 4E-5;
public static const COST_RIOTING_HEALTHY:Number = 9E-5;
public static const COST_CITY_QUARANTINE_RIOTING:Number = 1.1;
public static const COST_CITY_QUARANTINE_INFECTED:Number = 0.0001;
public static const COST_CITY_NUKE_BASE:Number = 30000;
private static const REVENUE_REGION_HEALTHY:Number = 0.00017;
public static const COST_MEDIA_CENSOR:Number = 10000;
private static const TOURISM_INT_HEALTHY:Number = 0.3;
public static const COST_RIOTING_INFECTED:Number = 6E-5;
public static const COST_MILITARY_INFRASTRUCTURE_HEALTHY:Number = 0.00015;
public static const COST_LOOTING_HEALTHY:Number = 5E-5;
public static const COST_CITY_QUARANTINE_LOOTING:Number = 1.05;
private static const TOURISM_DOM_IMMUNE:Number = 0.16;
public static const PANIC_COST_BONUS:Number = 85;
public static const COST_DISTRIBUTE_MASKS_INFECTED:Number = 0.0001;
public static const INFRAEXPENSE_AIRPORT:int = 500;
private static var oldInfraExpenses:int;
private static var oldOperationExpenses:int;
private static var curTaxRevenue:int;
private static var currentFunds:int;
private static var oldFunds:int;
private static var curOneTimeOpExpenses:int = 0;
private static var recordedIncome:Array = new Array();
private static var curInfraExpenses:int;
private static var oldDomesticTourism:int;
private static var curInternationalTourism:int;
private static var curOperationExpenses:int = 0;
private static var oldOneTimeOpExpenses:int = 0;
private static var oldTaxRevenue:int;
private static var oldInternationalTourism:int;
private static var oldHealthExpenses:int;
private static var currentEconDay:int = -1;
private static var largestRecorded:int = 0;
private static var recordedOneTimeExpenses:Array = new Array();
private static var curDomesticTourism:int;
private static var recordedExpenses:Array = new Array();
private static var curHealthExpenses:int;
public static function spendMoney(_arg1:int):void{
curOneTimeOpExpenses = (curOneTimeOpExpenses + ((_arg1 * int((_arg1 <= currentFunds))) + (currentFunds * int((_arg1 > currentFunds)))));
currentFunds = (currentFunds - ((_arg1 * int((_arg1 <= currentFunds))) + (currentFunds * int((_arg1 > currentFunds)))));
GuiManager.updateFinanceBar(currentFunds);
}
public static function spendInfOpMoney(_arg1:int):void{
curOperationExpenses = (curOperationExpenses + ((_arg1 * int((_arg1 <= currentFunds))) + (currentFunds * int((_arg1 > currentFunds)))));
currentFunds = (currentFunds - ((_arg1 * int((_arg1 <= currentFunds))) + (currentFunds * int((_arg1 > currentFunds)))));
GuiManager.updateFinanceBar(currentFunds);
}
public static function getLatestTaxRevenue():int{
return (oldTaxRevenue);
}
public static function getLargestRecord():int{
return (largestRecorded);
}
public static function completeCalculations():void{
var _local1:int;
var _local2:int;
var _local3:Region;
if (TimeManager.getDay() > currentEconDay){
currentEconDay = TimeManager.getDay();
_local1 = 0;
_local2 = 0;
_local3 = CountryManager.getMexicoRef();
_local3.setLastRevenue(Math.ceil(((_local3.getIntTourInf() * TOURISM_INT_INFECTED) + (_local3.getIntTourHealthy() * TOURISM_INT_HEALTHY))));
_local3.clearTourism();
_local3 = CountryManager.getCanadaRef();
_local3.setLastRevenue(Math.ceil(((_local3.getIntTourInf() * TOURISM_INT_INFECTED) + (_local3.getIntTourHealthy() * TOURISM_INT_HEALTHY))));
_local3.clearTourism();
oldTaxRevenue = curTaxRevenue;
oldDomesticTourism = curDomesticTourism;
oldInternationalTourism = curInternationalTourism;
oldHealthExpenses = curHealthExpenses;
oldInfraExpenses = curInfraExpenses;
oldOperationExpenses = curOperationExpenses;
oldOneTimeOpExpenses = curOneTimeOpExpenses;
curTaxRevenue = 0;
curDomesticTourism = 0;
curInternationalTourism = 0;
curHealthExpenses = 0;
curInfraExpenses = 0;
curOperationExpenses = 0;
curOneTimeOpExpenses = 0;
_local1 = ((oldTaxRevenue + oldDomesticTourism) + oldInternationalTourism);
_local2 = ((oldHealthExpenses + oldInfraExpenses) + oldOperationExpenses);
if ((_local1 * 1.01) > largestRecorded){
largestRecorded = Math.ceil((_local1 * 1.01));
} else {
if ((_local2 * 1.01) > largestRecorded){
largestRecorded = Math.ceil((_local2 * 1.01));
} else {
if ((oldOneTimeOpExpenses * 1.01) > largestRecorded){
largestRecorded = Math.ceil((oldOneTimeOpExpenses * 1.01));
};
};
};
recordedIncome.splice(0, int((recordedIncome.length >= 15)));
recordedExpenses.splice(0, int((recordedExpenses.length >= 15)));
recordedOneTimeExpenses.splice(0, int((recordedOneTimeExpenses.length >= 15)));
recordedIncome.push(((oldTaxRevenue + oldDomesticTourism) + oldInternationalTourism));
recordedExpenses.push(((oldHealthExpenses + oldInfraExpenses) + oldOperationExpenses));
recordedOneTimeExpenses.push(oldOneTimeOpExpenses);
};
GuiManager.updateFinanceBar(currentFunds);
}
public static function getLatestOpExpenses():int{
return (oldOperationExpenses);
}
public static function getLatestIntTourism():int{
return (oldInternationalTourism);
}
public static function getOneTimeExpensesRecord():Array{
return (recordedOneTimeExpenses);
}
public static function getCurrentFunds():int{
return (currentFunds);
}
public static function getExpenseRecord():Array{
return (recordedExpenses);
}
public static function reset():void{
currentEconDay = -1;
currentFunds = 0;
curDomesticTourism = 0;
curInternationalTourism = 0;
curTaxRevenue = 0;
curInfraExpenses = 0;
curHealthExpenses = 0;
curOperationExpenses = 0;
curOneTimeOpExpenses = 0;
oldFunds = 0;
oldDomesticTourism = 0;
oldInternationalTourism = 0;
oldTaxRevenue = 0;
oldInfraExpenses = 0;
oldHealthExpenses = 0;
oldOperationExpenses = 0;
oldOneTimeOpExpenses = 0;
recordedIncome = new Array();
recordedExpenses = new Array();
recordedOneTimeExpenses = new Array();
largestRecorded = 0;
}
public static function getLatestHealthExpenses():int{
return (oldHealthExpenses);
}
public static function getLatestInfraExpenses():int{
return (oldInfraExpenses);
}
public static function calcRegionInformation(_arg1:Region):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:Array;
var _local9:City;
var _local10:Airport;
var _local11:Seaport;
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local5 = 0;
_local6 = 0;
_local7 = 0;
if (TimeManager.getDay() > currentEconDay){
_local4 = ((_arg1.getHealthyPop() + _arg1.getImmunePop()) * REVENUE_REGION_HEALTHY);
_local4 = (_local4 + (_arg1.getInfectedPop() * REVENUE_REGION_INFECTED));
_local4 = Math.ceil((_local4 * (1 + (PanicManager.getPanic() / PANIC_REVENUE_BONUS))));
_local5 = INFRAEXPENSE_REGION;
curInfraExpenses = (curInfraExpenses + INFRAEXPENSE_REGION);
_local5 = (_local5 + (_arg1.getAirportCount() * INFRAEXPENSE_AIRPORT));
curInfraExpenses = (curInfraExpenses + (_arg1.getAirportCount() * INFRAEXPENSE_AIRPORT));
_local5 = (_local5 + (_arg1.getSeaportCount() * INFRAEXPENSE_SEAPORT));
curInfraExpenses = (curInfraExpenses + (_arg1.getSeaportCount() * INFRAEXPENSE_SEAPORT));
if (_arg1.getLooting()){
curInfraExpenses = (curInfraExpenses + (((COST_LOOTING_HEALTHY * _arg1.getHealthyPop()) + (COST_LOOTING_IMMUNE * _arg1.getImmunePop())) + (COST_LOOTING_INFECTED * _arg1.getInfectedPop())));
_local5 = (_local5 + (((COST_LOOTING_HEALTHY * _arg1.getHealthyPop()) + (COST_LOOTING_IMMUNE * _arg1.getImmunePop())) + (COST_LOOTING_INFECTED * _arg1.getInfectedPop())));
};
if (_arg1.getRioting()){
curInfraExpenses = (curInfraExpenses + (((COST_RIOTING_HEALTHY * _arg1.getHealthyPop()) + (COST_RIOTING_IMMUNE * _arg1.getImmunePop())) + (COST_RIOTING_INFECTED * _arg1.getInfectedPop())));
_local5 = (_local5 + (((COST_RIOTING_HEALTHY * _arg1.getHealthyPop()) + (COST_RIOTING_IMMUNE * _arg1.getImmunePop())) + (COST_RIOTING_INFECTED * _arg1.getInfectedPop())));
};
_local8 = _arg1.getCities();
for each (_local9 in _local8) {
_local6 = ((_local9.getHealthyPop() + _local9.getImmunePop()) * REVENUE_CITY_HEALTHY);
_local6 = (_local6 + (_local9.getInfectedPop() * REVENUE_CITY_INFECTED));
_local6 = Math.ceil((_local6 * (1 + (PanicManager.getPanic() / PANIC_REVENUE_BONUS))));
_local9.setLastRevenue(_local6);
_local7 = INFRAEXPENSE_CITY;
curInfraExpenses = (curInfraExpenses + INFRAEXPENSE_CITY);
if (_arg1.getLooting()){
_local7 = (_local7 + (((COST_LOOTING_HEALTHY * _local9.getHealthyPop()) + (COST_LOOTING_IMMUNE * _local9.getImmunePop())) + (COST_LOOTING_INFECTED * _local9.getInfectedPop())));
};
if (_arg1.getRioting()){
_local7 = (_local7 + (((COST_RIOTING_HEALTHY * _local9.getHealthyPop()) + (COST_RIOTING_IMMUNE * _local9.getImmunePop())) + (COST_RIOTING_INFECTED * _local9.getInfectedPop())));
};
_local5 = (_local5 + _local7);
_local9.setLastExpenses(_local7);
};
_local4 = (_local4 + _local6);
_local2 = _local4;
currentFunds = (currentFunds + _local4);
curTaxRevenue = (curTaxRevenue + _local4);
_local3 = _local5;
currentFunds = (currentFunds - _local5);
_local4 = Math.ceil((((_arg1.getDomTourInf() * TOURISM_DOM_INFECTED) + (_arg1.getDomTourHealthy() * TOURISM_DOM_HEALTHY)) + (_arg1.getDomTourImmune() * TOURISM_DOM_IMMUNE)));
_local2 = (_local2 + _local4);
currentFunds = (currentFunds + _local4);
curDomesticTourism = (curDomesticTourism + _local4);
_local4 = Math.ceil(((_arg1.getIntTourInf() * TOURISM_INT_INFECTED) + (_arg1.getIntTourHealthy() * TOURISM_INT_HEALTHY)));
_local2 = (_local2 + _local4);
currentFunds = (currentFunds + _local4);
curInternationalTourism = (curInternationalTourism + _local4);
_local5 = (_arg1.getOpenHospitalCount() * INFRAEXPENSE_HOSPITAL);
_local3 = (_local3 + _local5);
currentFunds = (currentFunds - _local5);
curHealthExpenses = (curHealthExpenses + _local5);
_local8 = _arg1.getAirports();
for each (_local10 in _local8) {
_local4 = Math.ceil((((_local10.getDomArrivals() * TOURISM_DOM_HEALTHY) + (_local10.getDomArrivalsImmune() * TOURISM_DOM_IMMUNE)) + (_local10.getDomArrivalsI() * TOURISM_DOM_INFECTED)));
_local10.setDomTourismRevenue(_local4);
_local4 = Math.ceil(((_local10.getIntArrivals() * TOURISM_INT_HEALTHY) + (_local10.getIntArrivalsI() * TOURISM_INT_INFECTED)));
_local10.setIntTourismRevenue(_local4);
_local10.clearTourismPop();
};
_local8 = _arg1.getSeaports();
for each (_local11 in _local8) {
_local4 = Math.ceil((((_local11.getDomArrivals() * TOURISM_DOM_HEALTHY) + (_local11.getDomArrivalsImmune() * TOURISM_DOM_IMMUNE)) + (_local11.getDomArrivalsI() * TOURISM_DOM_INFECTED)));
_local11.setDomTourismRevenue(_local4);
_local4 = Math.ceil(((_local11.getIntArrivals() * TOURISM_INT_HEALTHY) + (_local11.getIntArrivalsI() * TOURISM_INT_INFECTED)));
_local11.setIntTourismRevenue(_local4);
_local11.clearTourismPop();
};
_arg1.clearTourism();
_arg1.setLastRevenue(_local2);
_arg1.setLastExpenses(_local3);
};
}
public static function getIncomeRecord():Array{
return (recordedIncome);
}
public static function getLatestDomTourism():int{
return (oldDomesticTourism);
}
}
}//package MANAGERS
Section 135
//GameManager (MANAGERS.GameManager)
package MANAGERS {
import INFORMATIONOBJECTS.*;
import SOUND.*;
import GUI.*;
import flash.net.*;
public class GameManager {
public static const DIFFICULTY_EXTREME:int = 2;
public static const GOV_AVERAGE:int = 0;
public static const GOV_CLOSED:int = 2;
public static const DIFFICULTY_NORMAL:int = 0;
public static const DIFFICULTY_HARD:int = 1;
public static const GOV_OPEN:int = 1;
private static var firstTrophyUnlocked:Boolean = false;
private static var hardVictoryAverage:Boolean = false;
private static var RUNNING_SPEED:int = 10;
private static var hardVictoryOpen:Boolean = false;
private static var gameLocked:Boolean = false;
private static var tipsOn:Boolean = true;
private static var gamePaused:Boolean = false;
private static var secondTrophyUnlocked:Boolean = false;
private static var fifthTrophyUnlocked:Boolean = false;
private static var diffType:int = 0;
private static var firstTimePlayer:Boolean = true;
private static var govType:int = 0;
private static var fourthTrophyUnlocked:Boolean = false;
private static var hardVictoryClosed:Boolean = false;
private static var gameOver:Boolean = false;
private static var thirdTrophyUnlocked:Boolean = false;
public static function getVaccinationVictory():Boolean{
if (diffType == DIFFICULTY_NORMAL){
return (((CountryManager.getImmunePop() / (((CountryManager.getImmunePop() + CountryManager.getHealthyPop()) + CountryManager.getInfectedPop()) + CountryManager.getDeadPop())) >= 0.7));
};
if (diffType == DIFFICULTY_HARD){
return (((CountryManager.getImmunePop() / (((CountryManager.getImmunePop() + CountryManager.getHealthyPop()) + CountryManager.getInfectedPop()) + CountryManager.getDeadPop())) >= 0.75));
};
if (diffType == DIFFICULTY_EXTREME){
return (((CountryManager.getImmunePop() / (((CountryManager.getImmunePop() + CountryManager.getHealthyPop()) + CountryManager.getInfectedPop()) + CountryManager.getDeadPop())) >= 0.85));
};
return (false);
}
public static function run():void{
GuiManager.run();
PhysicsManager.run();
TimeManager.displayInformation();
if (!gamePaused){
runPauseDependant();
checkGameStatus();
};
}
public static function getCityDefeat():Boolean{
var _local1:Array;
var _local2:int;
var _local3:City;
_local1 = CityManager.getCities();
_local2 = 0;
for each (_local3 in _local1) {
_local2 = (_local2 + int((_local3.getInfectedPop() > 0)));
};
if (diffType == DIFFICULTY_HARD){
return ((_local2 >= 14));
};
if (diffType == DIFFICULTY_EXTREME){
return ((_local2 >= 14));
};
return (false);
}
public static function getGameLocked():Boolean{
return (gameLocked);
}
public static function resetGameManager():void{
gameLocked = false;
gamePaused = false;
gameOver = false;
}
private static function runPauseDependant():void{
if (((firstTimePlayer) && ((TimeManager.getHour() == 10)))){
firstTimePlayer = false;
GuiManager.displayTutorialWindow(new TutorialWindow());
};
if ((((TimeManager.getDay() == 1)) && ((TimeManager.getHour() == 10)))){
CountryManager.getVaccineOp().activateOperation();
};
if ((TimeManager.getHour() % RUNNING_SPEED) == 0){
runGameCore();
};
TimeManager.run();
OperationManager.run();
MediaManager.run();
PanicManager.run();
CountryManager.run();
if (RUNNING_SPEED == 5){
TimeManager.run();
OperationManager.run();
MediaManager.run();
PanicManager.run();
CountryManager.run();
};
}
public static function getDeathDefeat():Boolean{
if (diffType == DIFFICULTY_NORMAL){
return (((CountryManager.getDeadPop() / (((CountryManager.getImmunePop() + CountryManager.getHealthyPop()) + CountryManager.getInfectedPop()) + CountryManager.getDeadPop())) >= 0.5));
};
if (diffType == DIFFICULTY_HARD){
return (((CountryManager.getDeadPop() / (((CountryManager.getImmunePop() + CountryManager.getHealthyPop()) + CountryManager.getInfectedPop()) + CountryManager.getDeadPop())) >= 0.45));
};
if (diffType == DIFFICULTY_EXTREME){
return (((CountryManager.getDeadPop() / (((CountryManager.getImmunePop() + CountryManager.getHealthyPop()) + CountryManager.getInfectedPop()) + CountryManager.getDeadPop())) >= 0.4));
};
return (false);
}
public static function patriotAvailable():Boolean{
return (((((((!(thirdTrophyUnlocked)) && (hardVictoryOpen))) && (hardVictoryAverage))) && (hardVictoryClosed)));
}
public static function unlockTrophy(_arg1:int):Boolean{
var _local2:Boolean;
_local2 = false;
switch (_arg1){
case 0:
_local2 = firstTrophyUnlocked;
firstTrophyUnlocked = true;
if (EngineCore.getEngineCore().kongValid){
EngineCore.getEngineCore().kongregate.stats.submit("Under-Achiever", 1);
};
break;
case 1:
_local2 = secondTrophyUnlocked;
secondTrophyUnlocked = true;
if (EngineCore.getEngineCore().kongValid){
EngineCore.getEngineCore().kongregate.stats.submit("Inoculation", 1);
};
break;
case 2:
_local2 = thirdTrophyUnlocked;
thirdTrophyUnlocked = true;
if (EngineCore.getEngineCore().kongValid){
EngineCore.getEngineCore().kongregate.stats.submit("Patriot", 1);
};
break;
case 3:
_local2 = fourthTrophyUnlocked;
fourthTrophyUnlocked = true;
if (EngineCore.getEngineCore().kongValid){
EngineCore.getEngineCore().kongregate.stats.submit("Surgeon General", 1);
};
break;
case 4:
_local2 = fifthTrophyUnlocked;
fifthTrophyUnlocked = true;
if (EngineCore.getEngineCore().kongValid){
EngineCore.getEngineCore().kongregate.stats.submit("Operation Iceberge", 1);
};
break;
case 5:
_local2 = hardVictoryOpen;
hardVictoryOpen = true;
break;
case 6:
_local2 = hardVictoryAverage;
hardVictoryAverage = true;
break;
case 7:
_local2 = hardVictoryClosed;
hardVictoryClosed = true;
break;
};
if (!_local2){
saveLocalData();
};
return (_local2);
}
public static function setGameLocked(_arg1:Boolean):void{
if (_arg1){
InputManager.releaseMouse();
InputManager.disableTempIacvObject();
InputManager.disableStdIacvObject();
};
gameLocked = _arg1;
}
public static function setGovType(_arg1:int):void{
govType = _arg1;
}
public static function loadLocalData():Boolean{
var localData:SharedObject;
try {
localData = SharedObject.getLocal("PandemicAS_SharedObject3");
if (localData.data.valid == undefined){
localData.flush();
return (saveLocalData());
} else {
if (localData.data.dataLength == 8){
firstTrophyUnlocked = localData.data.trophyArray[0];
secondTrophyUnlocked = localData.data.trophyArray[1];
thirdTrophyUnlocked = localData.data.trophyArray[2];
fourthTrophyUnlocked = localData.data.trophyArray[3];
fifthTrophyUnlocked = localData.data.trophyArray[4];
hardVictoryOpen = localData.data.trophyArray[5];
hardVictoryAverage = localData.data.trophyArray[6];
hardVictoryClosed = localData.data.trophyArray[7];
} else {
return (false);
};
};
localData.data.valid = true;
localData.flush();
localData.close();
return (true);
} catch(error:Error) {
return (false);
};
return (false);
}
public static function getTips():Boolean{
return (tipsOn);
}
public static function getGovType():int{
return (govType);
}
public static function setGameSpeed(_arg1:int):void{
RUNNING_SPEED = _arg1;
}
public static function getGamePaused():Boolean{
return (gamePaused);
}
private static function checkGameStatus():void{
if (((((getVaccinationVictory()) || (getEradicationVictory()))) && (!(gameOver)))){
GuiManager.displayConditionsWindow(new VictoryWindow());
gameOver = true;
SoundManager.getInstance().playSound("Victory");
SoundManager.getInstance().fadeSound("MainTheme", 0, 60);
};
if (((((((((getPanicDefeat()) || (getDeathDefeat()))) || (getCityDefeat()))) || (getTimeDefeat()))) && (!(gameOver)))){
GuiManager.displayConditionsWindow(new DefeatWindow());
gameOver = true;
SoundManager.getInstance().playSound("Defeat");
SoundManager.getInstance().fadeSound("MainTheme", 0, 60);
};
}
public static function getGameSpeed():int{
return (RUNNING_SPEED);
}
public static function setTips(_arg1:Boolean):void{
tipsOn = _arg1;
}
public static function setGamePaused(_arg1:Boolean):void{
if (_arg1){
InputManager.resetKeyboardKeys();
InputManager.releaseMouse();
InputManager.disableTempIacvObject();
InputManager.disableStdIacvObject();
AirportManager.pauseAllAnimations();
SeaportManager.pauseAllAnimations();
} else {
AirportManager.resumeAllAnimations();
SeaportManager.resumeAllAnimations();
};
gamePaused = _arg1;
}
public static function getPanicDefeat():Boolean{
if (diffType == DIFFICULTY_NORMAL){
return ((PanicManager.getPanic() >= 100));
};
if (diffType == DIFFICULTY_HARD){
return ((PanicManager.getPanic() >= 100));
};
if (diffType == DIFFICULTY_EXTREME){
return ((PanicManager.getPanic() >= 100));
};
return (false);
}
public static function getDiffType():int{
return (diffType);
}
private static function runGameCore():void{
var _local1:*;
var _local2:Region;
_local1 = RegionManager.getRegions();
for each (_local2 in _local1) {
_local2.run();
DiseaseManager.simRegionDisease(_local2);
EconomyManager.calcRegionInformation(_local2);
};
EconomyManager.completeCalculations();
}
public static function resetGame(_arg1:Boolean=false):void{
var _local2:Number;
setGamePaused(true);
setGameLocked(true);
EngineCore.getEngineCore().stopEngine();
if (((EngineCore.getEngineCore().kongValid) && (!(_arg1)))){
_local2 = 0;
_local2 = (((CountryManager.getImmunePop() / TimeManager.getDay()) + (CountryManager.getHealthyPop() / (TimeManager.getDay() * 2))) + (CountryManager.getInfectedPop() / (TimeManager.getDay() * 4)));
_local2 = ((CountryManager.getHealthyPop() + CountryManager.getImmunePop()) + CountryManager.getInfectedPop());
EngineCore.getEngineCore().kongregate.stats.submit("Great Savior", _local2);
_local2 = CountryManager.getImmunePop();
EngineCore.getEngineCore().kongregate.stats.submit("Needles Everywhere", _local2);
_local2 = CountryManager.getDeadPop();
EngineCore.getEngineCore().kongregate.stats.submit("Death Dealer", _local2);
};
SoundManager.getInstance().stopAllSounds();
OperationManager.reset();
AirportManager.reset();
SeaportManager.reset();
HospitalManager.reset();
CityManager.reset();
InterstateManager.reset();
CountryManager.reset();
RegionManager.reset();
TimeManager.reset();
PanicManager.reset();
MediaManager.reset();
EconomyManager.reset();
InputManager.reset();
GuiManager.reset();
SurfaceManager.reset();
PhysicsManager.clearSmoke();
EngineCore.getEngineCore().gotoAndPlay(33);
}
public static function getFirstTime():Boolean{
return (firstTimePlayer);
}
public static function setDiffType(_arg1:int):void{
diffType = _arg1;
}
public static function getTrophyStatus(_arg1:int):Boolean{
switch (_arg1){
case 0:
return (firstTrophyUnlocked);
case 1:
return (secondTrophyUnlocked);
case 2:
return (thirdTrophyUnlocked);
case 3:
return (fourthTrophyUnlocked);
case 4:
return (fifthTrophyUnlocked);
};
return (false);
}
public static function getTimeDefeat():Boolean{
if (diffType == DIFFICULTY_HARD){
return ((TimeManager.getDay() >= 40));
};
if (diffType == DIFFICULTY_EXTREME){
return ((TimeManager.getDay() >= 50));
};
return (false);
}
public static function getEradicationVictory():Boolean{
return ((((CountryManager.getInfectedPop() == 0)) && (((CountryManager.getImmunePop() + CountryManager.getHealthyPop()) > 0))));
}
public static function saveLocalData():Boolean{
var localData:SharedObject;
var trophyUnlocked:Array;
trophyUnlocked = new Array(0);
trophyUnlocked.push(firstTrophyUnlocked);
trophyUnlocked.push(secondTrophyUnlocked);
trophyUnlocked.push(thirdTrophyUnlocked);
trophyUnlocked.push(fourthTrophyUnlocked);
trophyUnlocked.push(fifthTrophyUnlocked);
trophyUnlocked.push(hardVictoryOpen);
trophyUnlocked.push(hardVictoryAverage);
trophyUnlocked.push(hardVictoryClosed);
try {
localData = SharedObject.getLocal("PandemicAS_SharedObject3");
localData.data.trophyArray = trophyUnlocked;
localData.data.dataLength = 8;
localData.data.valid = true;
localData.flush();
localData.close();
return (true);
} catch(error:Error) {
return (false);
};
return (false);
}
}
}//package MANAGERS
Section 136
//MediaManager (MANAGERS.MediaManager)
package MANAGERS {
import INFORMATIONOBJECTS.*;
import GUI.*;
import flash.utils.*;
public class MediaManager {
private static const MID_PRIORITY_PROB:Number = 0.004;
private static const LOW_PRIORITY_PROB:Number = 0.0023;
private static const HIGH_PRIORITY_TIME:int = 1500;
private static const MAX_EVENT_ARRAY_LENGTH:int = 30;
private static const MID_PRIORITY_TIME:int = 8000;
private static const HIGH_PRIORITY_PROB:Number = 0.03;
private static const LOW_PRIORITY_TIME:int = 12000;
private static var midLastTime:uint = 0;
private static var highLastTime:uint = 0;
private static var highEvent:Array = new Array();
private static var lowEvent:Array = new Array();
private static var midEvent:Array = new Array();
private static var lowLastTime:uint = 0;
private static var newsReports:Array = new Array();
private static function filterNewEvent(_arg1:NewsEvent, _arg2:Array):Boolean{
var _local3:NewsEvent;
for each (_local3 in _arg2) {
if (_local3.getEventTitle() == _arg1.getEventTitle()){
return (false);
};
};
return (true);
}
public static function run():void{
var _local1:int;
var _local2:int;
_local1 = 0;
_local2 = (lowEvent.length - 1);
while (_local2 >= 0) {
lowEvent.splice(_local2, int(lowEvent[_local2].runWaiting()));
_local2--;
};
_local2 = (midEvent.length - 1);
while (_local2 >= 0) {
midEvent.splice(_local2, int(midEvent[_local2].runWaiting()));
_local2--;
};
_local2 = (highEvent.length - 1);
while (_local2 >= 0) {
highEvent.splice(_local2, int(highEvent[_local2].runWaiting()));
_local2--;
};
if (!CountryManager.getCensor()){
if (((((DiseaseManager.getProbRslt(LOW_PRIORITY_PROB)) && ((lowEvent.length > 0)))) && (((getTimer() - lowLastTime) >= LOW_PRIORITY_TIME)))){
_local1 = Math.round(DiseaseManager.genRangedNum(0, (lowEvent.length - 1)));
newsReports.push(new NewsReportNotifier(lowEvent[_local1]));
lowEvent.splice(_local1, 1);
newsReports.splice(0, int(GuiManager.addNewsReport(newsReports[(newsReports.length - 1)])));
lowLastTime = getTimer();
};
if (((((DiseaseManager.getProbRslt(MID_PRIORITY_PROB)) && ((midEvent.length > 0)))) && (((getTimer() - midLastTime) >= MID_PRIORITY_TIME)))){
_local1 = Math.round(DiseaseManager.genRangedNum(0, (midEvent.length - 1)));
newsReports.push(new NewsReportNotifier(midEvent[_local1]));
midEvent.splice(_local1, 1);
newsReports.splice(0, int(GuiManager.addNewsReport(newsReports[(newsReports.length - 1)])));
midLastTime = getTimer();
};
if (((((DiseaseManager.getProbRslt(HIGH_PRIORITY_PROB)) && ((highEvent.length > 0)))) && (((getTimer() - highLastTime) >= HIGH_PRIORITY_TIME)))){
_local1 = Math.round(DiseaseManager.genRangedNum(0, (highEvent.length - 1)));
newsReports.push(new NewsReportNotifier(highEvent[_local1]));
highEvent.splice(_local1, 1);
newsReports.splice(0, int(GuiManager.addNewsReport(newsReports[(newsReports.length - 1)])));
highLastTime = getTimer();
};
};
_local2 = 0;
while (_local2 < newsReports.length) {
if (newsReports[_local2].getEvent().runReporting()){
GuiManager.removeNewsReport(newsReports[_local2].getEvent().getID());
newsReports.splice(_local2, 1);
_local2--;
};
_local2++;
};
}
public static function reset():void{
newsReports = new Array();
lowEvent = new Array();
midEvent = new Array();
highEvent = new Array();
lowLastTime = 0;
midLastTime = 0;
highLastTime = 0;
}
public static function addNewsEvent(_arg1:NewsEvent):void{
var _local2:Boolean;
var _local3:Boolean;
_local2 = true;
_local3 = true;
if ((((GameManager.getDiffType() == GameManager.DIFFICULTY_NORMAL)) && ((_arg1.getEventPanic() == NewsEvent.EVENT_PANIC_INCREASED)))){
if (_arg1.getEventPriority() == NewsEvent.EVENT_PRIORITY_LOW){
_local2 = (DiseaseManager.getProbRslt(0.9) == 1);
};
if (_arg1.getEventPriority() == NewsEvent.EVENT_PRIORITY_MID){
_local2 = (DiseaseManager.getProbRslt(0.95) == 1);
};
};
if ((((GameManager.getDiffType() == GameManager.DIFFICULTY_HARD)) && ((_arg1.getEventPanic() == NewsEvent.EVENT_PANIC_INCREASED)))){
if (_arg1.getEventPriority() == NewsEvent.EVENT_PRIORITY_LOW){
_local2 = (DiseaseManager.getProbRslt(0.95) == 1);
};
};
if ((((GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME)) && ((_arg1.getEventPanic() == NewsEvent.EVENT_PANIC_DECREASED)))){
if (_arg1.getEventPriority() == NewsEvent.EVENT_PRIORITY_LOW){
_local2 = (DiseaseManager.getProbRslt(0.9) == 1);
};
if (_arg1.getEventPriority() == NewsEvent.EVENT_PRIORITY_MID){
_local2 = (DiseaseManager.getProbRslt(0.95) == 1);
};
};
switch (_arg1.getEventPriority()){
case NewsEvent.EVENT_PRIORITY_LOW:
if (((((filterNewEvent(_arg1, lowEvent)) && (_local2))) && (_local3))){
lowEvent.splice(0, int((lowEvent.length == MAX_EVENT_ARRAY_LENGTH)));
lowEvent.push(_arg1);
};
break;
case NewsEvent.EVENT_PRIORITY_MID:
if (((((filterNewEvent(_arg1, midEvent)) && (_local2))) && (_local3))){
midEvent.splice(0, int((midEvent.length == MAX_EVENT_ARRAY_LENGTH)));
midEvent.push(_arg1);
};
break;
case NewsEvent.EVENT_PRIORITY_HIGH:
if (((((filterNewEvent(_arg1, highEvent)) && (_local2))) && (_local3))){
highEvent.splice(0, int((highEvent.length == MAX_EVENT_ARRAY_LENGTH)));
highEvent.push(_arg1);
};
break;
};
}
public static function getNewsReports():Array{
return (newsReports);
}
}
}//package MANAGERS
Section 137
//OperationManager (MANAGERS.OperationManager)
package MANAGERS {
import INFORMATIONOBJECTS.*;
public class OperationManager {
private static var operations:Array = new Array();
public static function registerOperation(_arg1:Operation):void{
operations.push(_arg1);
}
public static function run():void{
var _local1:int;
_local1 = (operations.length - 1);
while (_local1 >= 0) {
operations.splice(_local1, int(operations[_local1].run()));
_local1--;
};
}
public static function reset():void{
operations = new Array();
}
}
}//package MANAGERS
Section 138
//PanicManager (MANAGERS.PanicManager)
package MANAGERS {
import INFORMATIONOBJECTS.*;
import GUI.*;
public class PanicManager {
public static const PANIC_LEVEL_CRITICAL:Number = 0.02;
public static const PANIC_LEVEL_HIGH:Number = 0.0125;
private static const PANIC_CRITICAL_INC:Number = 0.05;
private static const PANIC_CRITICAL:Number = 75;
private static const MAX_PANIC_RED:Number = 0.35;
public static const PANIC_LEVEL_MEDIUM:Number = 0.008;
private static const MAX_PANIC_INC:Number = 0.5;
private static const PANIC_MAX:Number = 100;
public static const PANIC_LEVEL_LOW:Number = 0.004;
public static const PANIC_LEVEL_AVERAGE:Number = 0.005;
private static var currentPanic:Number = 0;
public static function getPanic():Number{
if (currentPanic == 0){
return (1E-8);
};
return (currentPanic);
}
public static function run():void{
var _local1:Array;
var _local2:NewsEvent;
var _local3:Number;
var _local4:NewsReportNotifier;
_local1 = MediaManager.getNewsReports();
for each (_local4 in _local1) {
_local2 = _local4.getEvent();
_local3 = _local2.getEventPanicBonus();
if (_local2.getEventPanic() == NewsEvent.EVENT_PANIC_INCREASED){
_local3 = (_local3 * ((int(CountryManager.getSpin()) * 0.75) + int(!(CountryManager.getSpin()))));
_local3 = (_local3 - ((_local3 * int((GameManager.getGovType() == GameManager.GOV_OPEN))) * 0.1));
_local3 = (_local3 - ((_local3 * int((GameManager.getGovType() == GameManager.GOV_CLOSED))) * -0.17));
} else {
_local3 = (_local3 * ((int(CountryManager.getSpin()) * 1.1) + int(!(CountryManager.getSpin()))));
_local3 = (_local3 + ((_local3 * int((GameManager.getGovType() == GameManager.GOV_OPEN))) * 0.1));
_local3 = (_local3 + ((_local3 * int((GameManager.getGovType() == GameManager.GOV_CLOSED))) * -0.17));
_local3 = (_local3 * -1);
};
currentPanic = (currentPanic + _local3);
};
currentPanic = ((int((currentPanic >= 100)) * 100) + (int((((currentPanic >= 0)) && ((currentPanic < 100)))) * currentPanic));
GuiManager.updatePanicBar((currentPanic / PANIC_MAX));
}
public static function reset():void{
currentPanic = 0;
}
public static function setInitialLevel():void{
currentPanic = ((int((GameManager.getDiffType() == GameManager.DIFFICULTY_HARD)) * 15) + (int((GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME)) * 30));
}
}
}//package MANAGERS
Section 139
//RandNumGen (MANAGERS.RandNumGen)
package MANAGERS {
import flash.utils.*;
public class RandNumGen {
private static var prevResult:Number = 0;
private static var seed:Number = (Math.random() * 0xFFFF);
private static var xSeed:Number = (0xFFFF - seed);
private static var ySeed:Number = seed;
public static function Random():Number{
prevResult = ((Get() + 1) * 2.32830643545449E-10);
Seed(Math.round((getTimer() * prevResult)));
return (prevResult);
}
private static function Get():uint{
xSeed = ((36969 * (xSeed & 0xFFFF)) + (xSeed >> 16));
ySeed = ((18000 * (ySeed & 0xFFFF)) + (ySeed >> 16));
return (((xSeed << 16) + ySeed));
}
private static function Seed(_arg1:uint):void{
seed = (_arg1 % 0xFFFF);
xSeed = (0xFFFF - seed);
ySeed = seed;
}
}
}//package MANAGERS
Section 140
//TimeManager (MANAGERS.TimeManager)
package MANAGERS {
import GUI.*;
public class TimeManager {
public static const DAY_LENGTH:int = 1200;
private static var currentDay:int = 1;
private static var dayProgress:int = 0;
public static function getDayProg():Number{
if (dayProgress == 0){
return (0);
};
return ((dayProgress / DAY_LENGTH));
}
public static function displayInformation():void{
}
public static function run():void{
dayProgress++;
currentDay = (currentDay + int((dayProgress >= DAY_LENGTH)));
dayProgress = (int((dayProgress < DAY_LENGTH)) * dayProgress);
GuiManager.updateDayBar(currentDay);
GuiManager.updateClock(getDayProg());
}
public static function getDay():int{
return (currentDay);
}
public static function reset():void{
currentDay = 1;
dayProgress = 0;
}
public static function getHour():int{
return (dayProgress);
}
}
}//package MANAGERS
Section 141
//airportArrivals_131 (PandemicAS_Kongregate_fla.airportArrivals_131)
package PandemicAS_Kongregate_fla {
import INFORMATIONOBJECTS.*;
import flash.display.*;
public dynamic class airportArrivals_131 extends MovieClip {
public var parentAirport:Airport;
public function airportArrivals_131(){
addFrameScript(0, frame1, 199, frame200);
}
function frame200(){
gotoAndStop(1);
}
function frame1(){
parentAirport = (this.parent as Airport);
parentAirport.setArrivalBusy(false);
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 142
//AirportClosedStatus_352 (PandemicAS_Kongregate_fla.AirportClosedStatus_352)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class AirportClosedStatus_352 extends MovieClip {
public var coreButton:AirportStatusButton;
public function AirportClosedStatus_352(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 143
//airportDepartures_134 (PandemicAS_Kongregate_fla.airportDepartures_134)
package PandemicAS_Kongregate_fla {
import INFORMATIONOBJECTS.*;
import flash.display.*;
public dynamic class airportDepartures_134 extends MovieClip {
public var parentAirport:Airport;
public function airportDepartures_134(){
addFrameScript(0, frame1, 174, frame175);
}
function frame1(){
parentAirport = (this.parent as Airport);
parentAirport.setDepartureBusy(false);
stop();
}
function frame175(){
gotoAndStop(1);
}
}
}//package PandemicAS_Kongregate_fla
Section 144
//AirportDummy_185 (PandemicAS_Kongregate_fla.AirportDummy_185)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class AirportDummy_185 extends MovieClip {
public var airportGlow:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 145
//AirportOpenStatus_351 (PandemicAS_Kongregate_fla.AirportOpenStatus_351)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class AirportOpenStatus_351 extends MovieClip {
public var coreButton:AirportStatusButton;
public function AirportOpenStatus_351(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 146
//assetHolders_8 (PandemicAS_Kongregate_fla.assetHolders_8)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class assetHolders_8 extends MovieClip {
public function assetHolders_8(){
addFrameScript(0, frame1, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 147
//boatsArriving_136 (PandemicAS_Kongregate_fla.boatsArriving_136)
package PandemicAS_Kongregate_fla {
import INFORMATIONOBJECTS.*;
import flash.display.*;
public dynamic class boatsArriving_136 extends MovieClip {
public var parentAirport:Seaport;
public function boatsArriving_136(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
gotoAndStop(1);
}
function frame1(){
parentAirport = (this.parent as Seaport);
parentAirport.setDepartureBusy(false);
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 148
//boatsDeparting_138 (PandemicAS_Kongregate_fla.boatsDeparting_138)
package PandemicAS_Kongregate_fla {
import INFORMATIONOBJECTS.*;
import flash.display.*;
public dynamic class boatsDeparting_138 extends MovieClip {
public var parentAirport:Seaport;
public function boatsDeparting_138(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
gotoAndStop(1);
}
function frame1(){
parentAirport = (this.parent as Seaport);
parentAirport.setDepartureBusy(false);
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 149
//BorderCloseStatus_329 (PandemicAS_Kongregate_fla.BorderCloseStatus_329)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class BorderCloseStatus_329 extends MovieClip {
public var coreButton:AirportStatusButton;
public function BorderCloseStatus_329(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 150
//BorderOpenStatus_328 (PandemicAS_Kongregate_fla.BorderOpenStatus_328)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class BorderOpenStatus_328 extends MovieClip {
public var coreButton:AirportStatusButton;
public function BorderOpenStatus_328(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 151
//CashflowIndicator_411 (PandemicAS_Kongregate_fla.CashflowIndicator_411)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class CashflowIndicator_411 extends MovieClip {
public function CashflowIndicator_411(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 152
//CityDummy_183 (PandemicAS_Kongregate_fla.CityDummy_183)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class CityDummy_183 extends MovieClip {
public var cityGlow:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 153
//CityGlow_119 (PandemicAS_Kongregate_fla.CityGlow_119)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class CityGlow_119 extends MovieClip {
public function CityGlow_119(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 154
//CityGlow_184 (PandemicAS_Kongregate_fla.CityGlow_184)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class CityGlow_184 extends MovieClip {
public function CityGlow_184(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 155
//creditContent_395 (PandemicAS_Kongregate_fla.creditContent_395)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class creditContent_395 extends MovieClip {
public var globex:GlobexWebsiteButton;
public var jon:JonWebsiteButton;
}
}//package PandemicAS_Kongregate_fla
Section 156
//dateClock_414 (PandemicAS_Kongregate_fla.dateClock_414)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class dateClock_414 extends MovieClip {
public function dateClock_414(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 157
//dayBar_412 (PandemicAS_Kongregate_fla.dayBar_412)
package PandemicAS_Kongregate_fla {
import flash.display.*;
import flash.text.*;
public dynamic class dayBar_412 extends MovieClip {
public var timeButton:MovieClip;
public var dayText:TextField;
}
}//package PandemicAS_Kongregate_fla
Section 158
//defeatMessage_309 (PandemicAS_Kongregate_fla.defeatMessage_309)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class defeatMessage_309 extends MovieClip {
public function defeatMessage_309(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 159
//DisburseVaccine_146 (PandemicAS_Kongregate_fla.DisburseVaccine_146)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class DisburseVaccine_146 extends MovieClip {
public function DisburseVaccine_146(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 160
//finalPanicFlowIndicator_225 (PandemicAS_Kongregate_fla.finalPanicFlowIndicator_225)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class finalPanicFlowIndicator_225 extends MovieClip {
public function finalPanicFlowIndicator_225(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 161
//gameWindow_407 (PandemicAS_Kongregate_fla.gameWindow_407)
package PandemicAS_Kongregate_fla {
import flash.display.*;
import GUI.IACVOBJECTS.*;
import GUI.SCROLLSURFACES.*;
public dynamic class gameWindow_407 extends MovieClip {
public var panicBar:MovieClip;
public var newsReportFeed:MovieClip;
public var mediaButton:MediaButton;
public var currentDay:MovieClip;
public var map:CampaignMap;
public var menuButton:MenuButton;
public var govButton:GovernmentButton;
public var zoomOutButton:ZoomOutButton;
public var zoomInButton:ZoomInButton;
public var helpButton:HelpButton;
public var cashBar:MovieClip;
public function gameWindow_407(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 162
//GraphWindow_331 (PandemicAS_Kongregate_fla.GraphWindow_331)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class GraphWindow_331 extends MovieClip {
public var graphArea:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 163
//HandMasks_145 (PandemicAS_Kongregate_fla.HandMasks_145)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class HandMasks_145 extends MovieClip {
public function HandMasks_145(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 164
//HospitalClosedStatus_299 (PandemicAS_Kongregate_fla.HospitalClosedStatus_299)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class HospitalClosedStatus_299 extends MovieClip {
public var hospitalButton:HospitalStatusButton;
public function HospitalClosedStatus_299(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 165
//HospitalDummy_188 (PandemicAS_Kongregate_fla.HospitalDummy_188)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class HospitalDummy_188 extends MovieClip {
public var hospitalGlow:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 166
//HospitalOpenStatus_297 (PandemicAS_Kongregate_fla.HospitalOpenStatus_297)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class HospitalOpenStatus_297 extends MovieClip {
public var hospitalButton:HospitalStatusButton;
public function HospitalOpenStatus_297(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 167
//Iceberg_278 (PandemicAS_Kongregate_fla.Iceberg_278)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class Iceberg_278 extends MovieClip {
public function Iceberg_278(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 168
//icebergsOver_307 (PandemicAS_Kongregate_fla.icebergsOver_307)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class icebergsOver_307 extends MovieClip {
public var trophy0:MovieClip;
public var trophy1:MovieClip;
public var trophy3:MovieClip;
public var trophy2:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 169
//inoculationTrophy_274 (PandemicAS_Kongregate_fla.inoculationTrophy_274)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class inoculationTrophy_274 extends MovieClip {
public var trophyShadow:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 170
//introContent_400 (PandemicAS_Kongregate_fla.introContent_400)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class introContent_400 extends MovieClip {
public var game:EngineCore;
public function introContent_400(){
addFrameScript(83, frame84);
}
function frame84(){
game = (this.parent as EngineCore);
game.gotoAndPlay(159);
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 171
//Kongintro30fps_368 (PandemicAS_Kongregate_fla.Kongintro30fps_368)
package PandemicAS_Kongregate_fla {
import flash.display.*;
import flash.net.*;
public dynamic class Kongintro30fps_368 extends MovieClip {
public var kongIntroButton:KongIntroButton;
public function Kongintro30fps_368(){
addFrameScript(0, frame1);
}
function frame1(){
kongIntroButton.setInvokeFunction(kongIntroManager);
kongIntroButton.setName("_kongIntroButton");
kongIntroButton.addToInputManager();
}
public function kongIntroManager():void{
try {
navigateToURL(new URLRequest("http://www.kongregate.com/?gamereferral=PandemicAmericanSwine"), "_blank");
} catch(error:Error) {
};
}
}
}//package PandemicAS_Kongregate_fla
Section 172
//logoIntros_367 (PandemicAS_Kongregate_fla.logoIntros_367)
package PandemicAS_Kongregate_fla {
import flash.display.*;
import GUI.*;
public dynamic class logoIntros_367 extends MovieClip {
public var game:EngineCore;
public function logoIntros_367(){
addFrameScript(145, frame146, 363, frame364);
}
function frame364(){
game = (this.parent as EngineCore);
game.gotoAndPlay(33);
stop();
}
function frame146(){
InputManager.clearTempIacvObject();
InputManager.removeStdIacvObject();
}
}
}//package PandemicAS_Kongregate_fla
Section 173
//looting_196 (PandemicAS_Kongregate_fla.looting_196)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class looting_196 extends MovieClip {
public function looting_196(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 174
//mainMapFade_417 (PandemicAS_Kongregate_fla.mainMapFade_417)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class mainMapFade_417 extends MovieClip {
public function mainMapFade_417(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 175
//mainMenuContent_388 (PandemicAS_Kongregate_fla.mainMenuContent_388)
package PandemicAS_Kongregate_fla {
import flash.display.*;
import SOUND.*;
import flash.events.*;
import GUI.*;
import flash.geom.*;
import MANAGERS.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class mainMenuContent_388 extends MovieClip {
public var pickGovTrans:MovieClip;
public var startButton:MainMenuStartGame;
public var openGovButton:OpenGovButton;
public var optionsTitle:MovieClip;
public var creditsButton:MainMenuCredits;
public var openLock:MovieClip;
public var soundStatusToggle:MovieClip;
public var musicStatusToggle:MovieClip;
public var TipsButton:MainTipsButton;
public var closedLock:MovieClip;
public var creditTitle:MovieClip;
public var hardDiffButton:hardDifficultyButton;
public var SoundButton:MainSoundButton;
public var instructionsContent:MovieClip;
public var buttonBack:MainMenuBackButton;
public var instructionsButton:MainMenuInstructions;
public var tipsStatusToggle:MovieClip;
public var creditContent:MovieClip;
public var drsButton:DRSButton;
public var closedGovButton:ClosedGovButton;
public var viewGuide:MainMenuViewGuide;
public var extremeDiffButton:extremeDifficultyButton;
public var optionsButton:OptionsButton;
public var playGamesButton:MainMenuDRS;
public var MusicButton:MainMusicButton;
public var kongButton:KongregateButton;
public var instructionsTitle:MovieClip;
public var averageGovButton:AverageGovButton;
public var selectDifficulty:MovieClip;
public var normalDiffButton:normalDifficultyButton;
public var extremeLock:MovieClip;
public function mainMenuContent_388(){
addFrameScript(0, frame1, 23, frame24);
}
public function hardDiffManager():void{
var _local1:EngineCore;
InputManager.disableTempIacvObject();
GameManager.setDiffType(GameManager.DIFFICULTY_HARD);
_local1 = (this.parent as EngineCore);
_local1.gotoAndPlay(137);
}
public function instructionsManager():void{
hideAllContent();
instructionsContent.visible = true;
instructionsTitle.visible = true;
buttonBack.visible = true;
InputManager.enableTempIacvObjectByName("backButton");
}
public function drsManager():void{
try {
navigateToURL(new URLRequest("http://www.darkrealmstudios.com"), "_blank");
} catch(error:Error) {
};
}
function frame1(){
startButton.setInvokeFunction(startGameManager);
startButton.setName("_mainMenuStartButton");
startButton.addToInputManager();
instructionsButton.setInvokeFunction(instructionsManager);
instructionsButton.setName("_mainMenuInstructionsButton");
instructionsButton.addToInputManager();
viewGuide.setInvokeFunction(guideManager);
viewGuide.setName("_mainMenuViewGuideButton");
viewGuide.addToInputManager();
optionsButton.setInvokeFunction(optionsManager);
optionsButton.setName("_mainMenuOptionsButton");
optionsButton.addToInputManager();
creditsButton.setInvokeFunction(creditsManager);
creditsButton.setName("_mainMenuCreditsButton");
creditsButton.addToInputManager();
playGamesButton.setInvokeFunction(kongregateManager);
playGamesButton.setName("_mainMenuPlayGamesButton");
playGamesButton.addToInputManager();
drsButton.setInvokeFunction(drsManager);
drsButton.setName("_mainMenuDRSButton");
drsButton.addToInputManager();
kongButton.setInvokeFunction(kongregateManager);
kongButton.setName("_mainMenuKongButton");
kongButton.addToInputManager();
openGovButton.setInvokeFunction(openGovManager);
openGovButton.setName("_mainMenuOpenGovButton");
openGovButton.addToInputManager();
averageGovButton.setInvokeFunction(averageGovManager);
averageGovButton.setName("_mainMenuAverageGovButton");
averageGovButton.addToInputManager();
closedGovButton.setInvokeFunction(closedGovManager);
closedGovButton.setName("_mainMenuClosedGovButton");
closedGovButton.addToInputManager();
normalDiffButton.setInvokeFunction(normalDiffManager);
normalDiffButton.setName("_mainMenuNormalDiffButton");
normalDiffButton.addToInputManager();
hardDiffButton.setInvokeFunction(hardDiffManager);
hardDiffButton.setName("_mainMenuHardDiffButton");
hardDiffButton.addToInputManager();
extremeDiffButton.setInvokeFunction(extremeDiffManager);
extremeDiffButton.setName("_mainMenuExtremeDiffButton");
extremeDiffButton.addToInputManager();
buttonBack.setInvokeFunction(backToMain);
buttonBack.setName("backButton");
buttonBack.addToInputManager();
creditContent.globex.setInvokeFunction(globexManager);
creditContent.globex.setName("globexButton");
creditContent.globex.addToInputManager();
creditContent.jon.setInvokeFunction(jonManager);
creditContent.jon.setName("jonButton");
creditContent.jon.addToInputManager();
MusicButton.setInvokeFunction(musicManager);
MusicButton.setName("MainMusicButton");
MusicButton.addToInputManager();
TipsButton.setInvokeFunction(tipsManager);
TipsButton.setName("MainTipsButton");
TipsButton.addToInputManager();
SoundButton.setInvokeFunction(soundManager);
SoundButton.setName("MainSoundButton");
SoundButton.addToInputManager();
InputManager.disableTempIacvObject();
pickGovTrans.visible = false;
selectDifficulty.visible = false;
openGovButton.visible = false;
averageGovButton.visible = false;
closedGovButton.visible = false;
normalDiffButton.visible = false;
hardDiffButton.visible = false;
extremeDiffButton.visible = false;
buttonBack.visible = false;
creditTitle.visible = false;
creditContent.visible = false;
optionsTitle.visible = false;
MusicButton.visible = false;
TipsButton.visible = false;
SoundButton.visible = false;
musicStatusToggle.visible = false;
soundStatusToggle.visible = false;
tipsStatusToggle.visible = false;
instructionsContent.visible = false;
instructionsTitle.visible = false;
closedLock.visible = false;
openLock.visible = false;
extremeLock.visible = false;
musicStatusToggle.gotoAndStop((int(SoundManager.getInstance().isChannelMute(SoundManager.CHANNEL_MUSIC)) + 1));
soundStatusToggle.gotoAndStop((int(SoundManager.getInstance().isChannelMute(SoundManager.CHANNEL_SOUND)) + 1));
tipsStatusToggle.gotoAndStop((int(!(GameManager.getTips())) + 1));
}
function frame24(){
InputManager.enableTempIacvObjectByName("_mainMenuStartButton");
InputManager.enableTempIacvObjectByName("_mainMenuInstructionsButton");
InputManager.enableTempIacvObjectByName("_mainMenuViewGuideButton");
InputManager.enableTempIacvObjectByName("_mainMenuOptionsButton");
InputManager.enableTempIacvObjectByName("_mainMenuCreditsButton");
InputManager.enableTempIacvObjectByName("_mainMenuDRSButton");
InputManager.enableTempIacvObjectByName("_mainMenuKongButton");
InputManager.enableTempIacvObjectByName("_mainMenuPlayGamesButton");
stop();
}
public function normalDiffManager():void{
var _local1:EngineCore;
InputManager.disableTempIacvObject();
GameManager.setDiffType(GameManager.DIFFICULTY_NORMAL);
_local1 = (this.parent as EngineCore);
_local1.gotoAndPlay(137);
}
public function backToMain():void{
hideAllContent();
startButton.visible = true;
instructionsButton.visible = true;
optionsButton.visible = true;
viewGuide.visible = true;
creditsButton.visible = true;
playGamesButton.visible = true;
drsButton.visible = true;
kongButton.visible = true;
InputManager.enableTempIacvObjectByName("_mainMenuStartButton");
InputManager.enableTempIacvObjectByName("_mainMenuInstructionsButton");
InputManager.enableTempIacvObjectByName("_mainMenuViewGuideButton");
InputManager.enableTempIacvObjectByName("_mainMenuOptionsButton");
InputManager.enableTempIacvObjectByName("_mainMenuCreditsButton");
InputManager.enableTempIacvObjectByName("_mainMenuDRSButton");
InputManager.enableTempIacvObjectByName("_mainMenuPlayGamesButton");
InputManager.enableTempIacvObjectByName("_mainMenuKongButton");
}
public function hideAllContent():void{
InputManager.disableTempIacvObject();
pickGovTrans.visible = false;
selectDifficulty.visible = false;
openGovButton.visible = false;
averageGovButton.visible = false;
closedGovButton.visible = false;
normalDiffButton.visible = false;
hardDiffButton.visible = false;
extremeDiffButton.visible = false;
buttonBack.visible = false;
creditTitle.visible = false;
creditContent.visible = false;
startButton.visible = false;
instructionsButton.visible = false;
optionsButton.visible = false;
viewGuide.visible = false;
creditsButton.visible = false;
drsButton.visible = false;
optionsTitle.visible = false;
MusicButton.visible = false;
TipsButton.visible = false;
SoundButton.visible = false;
musicStatusToggle.visible = false;
soundStatusToggle.visible = false;
tipsStatusToggle.visible = false;
instructionsContent.visible = false;
instructionsTitle.visible = false;
closedLock.visible = false;
openLock.visible = false;
extremeLock.visible = false;
playGamesButton.visible = false;
kongButton.visible = false;
}
public function globexManager():void{
try {
navigateToURL(new URLRequest("http://www.globexdesigns.com"), "_blank");
} catch(error:Error) {
};
}
public function guideManager():void{
try {
navigateToURL(new URLRequest("http://www.kongregate.com/pages/pandemic-swine-flu-guide?gamereferral=Pandemic: American Swine"), "_blank");
} catch(error:Error) {
};
}
public function openGovManager():void{
hideAllContent();
GameManager.setGovType(GameManager.GOV_OPEN);
normalDiffButton.visible = true;
hardDiffButton.visible = true;
extremeDiffButton.visible = true;
selectDifficulty.visible = true;
extremeLock.visible = !(GameManager.getTrophyStatus(2));
InputManager.enableTempIacvObjectByName("_mainMenuNormalDiffButton");
InputManager.enableTempIacvObjectByName("_mainMenuHardDiffButton");
InputManager.enableTempIacvObjectByName("_mainMenuExtremeDiffButton");
}
public function optionsManager():void{
hideAllContent();
InputManager.enableTempIacvObjectByName("backButton");
InputManager.enableTempIacvObjectByName("MainSoundButton");
InputManager.enableTempIacvObjectByName("MainMusicButton");
InputManager.enableTempIacvObjectByName("MainTipsButton");
optionsTitle.visible = true;
MusicButton.visible = true;
TipsButton.visible = true;
SoundButton.visible = true;
musicStatusToggle.visible = true;
soundStatusToggle.visible = true;
tipsStatusToggle.visible = true;
buttonBack.visible = true;
}
public function averageGovManager():void{
hideAllContent();
GameManager.setGovType(GameManager.GOV_AVERAGE);
normalDiffButton.visible = true;
hardDiffButton.visible = true;
extremeDiffButton.visible = true;
selectDifficulty.visible = true;
extremeLock.visible = !(GameManager.getTrophyStatus(2));
InputManager.enableTempIacvObjectByName("_mainMenuNormalDiffButton");
InputManager.enableTempIacvObjectByName("_mainMenuHardDiffButton");
InputManager.enableTempIacvObjectByName("_mainMenuExtremeDiffButton");
}
public function kongregateManager():void{
try {
navigateToURL(new URLRequest("http://www.kongregate.com/?gamereferral=Pandemic: American Swine"), "_blank");
} catch(error:Error) {
};
}
public function tipsManager():void{
GameManager.setTips(!(GameManager.getTips()));
tipsStatusToggle.gotoAndStop((int(!(GameManager.getTips())) + 1));
}
public function startGameManager():void{
hideAllContent();
pickGovTrans.visible = true;
openGovButton.visible = true;
averageGovButton.visible = true;
closedGovButton.visible = true;
closedLock.visible = !(GameManager.getTrophyStatus(1));
openLock.visible = !(GameManager.getTrophyStatus(0));
InputManager.enableTempIacvObjectByName("_mainMenuOpenGovButton");
InputManager.enableTempIacvObjectByName("_mainMenuAverageGovButton");
InputManager.enableTempIacvObjectByName("_mainMenuClosedGovButton");
}
public function extremeDiffManager():void{
var _local1:EngineCore;
InputManager.disableTempIacvObject();
GameManager.setDiffType(GameManager.DIFFICULTY_EXTREME);
_local1 = (this.parent as EngineCore);
_local1.gotoAndPlay(137);
}
public function soundManager():void{
SoundManager.getInstance().muteChannel(SoundManager.CHANNEL_SOUND, !(SoundManager.getInstance().isChannelMute(SoundManager.CHANNEL_SOUND)));
soundStatusToggle.gotoAndStop((int(SoundManager.getInstance().isChannelMute(SoundManager.CHANNEL_SOUND)) + 1));
}
public function jonManager():void{
try {
navigateToURL(new URLRequest("http://www.jonadamich.tk"), "_blank");
} catch(error:Error) {
};
}
public function creditsManager():void{
hideAllContent();
InputManager.enableTempIacvObjectByName("backButton");
InputManager.enableTempIacvObjectByName("jonButton");
InputManager.enableTempIacvObjectByName("globexButton");
buttonBack.visible = true;
creditTitle.visible = true;
creditContent.visible = true;
}
public function musicManager():void{
SoundManager.getInstance().muteChannel(SoundManager.CHANNEL_MUSIC, !(SoundManager.getInstance().isChannelMute(SoundManager.CHANNEL_MUSIC)));
musicStatusToggle.gotoAndStop((int(SoundManager.getInstance().isChannelMute(SoundManager.CHANNEL_MUSIC)) + 1));
}
public function closedGovManager():void{
hideAllContent();
GameManager.setGovType(GameManager.GOV_CLOSED);
normalDiffButton.visible = true;
hardDiffButton.visible = true;
extremeDiffButton.visible = true;
selectDifficulty.visible = true;
extremeLock.visible = !(GameManager.getTrophyStatus(2));
InputManager.enableTempIacvObjectByName("_mainMenuNormalDiffButton");
InputManager.enableTempIacvObjectByName("_mainMenuHardDiffButton");
InputManager.enableTempIacvObjectByName("_mainMenuExtremeDiffButton");
}
}
}//package PandemicAS_Kongregate_fla
Section 176
//MilitarySupport_143 (PandemicAS_Kongregate_fla.MilitarySupport_143)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class MilitarySupport_143 extends MovieClip {
public function MilitarySupport_143(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 177
//moneyBar_410 (PandemicAS_Kongregate_fla.moneyBar_410)
package PandemicAS_Kongregate_fla {
import flash.display.*;
import flash.text.*;
public dynamic class moneyBar_410 extends MovieClip {
public var cashText:TextField;
public var cashIndicator:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 178
//needlePreloader_5 (PandemicAS_Kongregate_fla.needlePreloader_5)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class needlePreloader_5 extends MovieClip {
public var loadingBar:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 179
//needlePreloaderDummy_1 (PandemicAS_Kongregate_fla.needlePreloaderDummy_1)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class needlePreloaderDummy_1 extends MovieClip {
public var loadingBar:MovieClip;
public function needlePreloaderDummy_1(){
addFrameScript(14, frame15, 29, frame30);
}
function frame15(){
stop();
}
function frame30(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 180
//nukeFlash_123 (PandemicAS_Kongregate_fla.nukeFlash_123)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class nukeFlash_123 extends MovieClip {
public function nukeFlash_123(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 181
//onOffToggle_397 (PandemicAS_Kongregate_fla.onOffToggle_397)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class onOffToggle_397 extends MovieClip {
public function onOffToggle_397(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 182
//operationIcebergTrophy_276 (PandemicAS_Kongregate_fla.operationIcebergTrophy_276)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class operationIcebergTrophy_276 extends MovieClip {
public var trophyShadow:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 183
//panicBar_408 (PandemicAS_Kongregate_fla.panicBar_408)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class panicBar_408 extends MovieClip {
public var panicBar:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 184
//panicFlowIndicator_224 (PandemicAS_Kongregate_fla.panicFlowIndicator_224)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class panicFlowIndicator_224 extends MovieClip {
public function panicFlowIndicator_224(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 185
//patriotTrophy_272 (PandemicAS_Kongregate_fla.patriotTrophy_272)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class patriotTrophy_272 extends MovieClip {
public var trophyShadow:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 186
//populationBar_194 (PandemicAS_Kongregate_fla.populationBar_194)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class populationBar_194 extends MovieClip {
public var fillBar:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 187
//preloaderBlood_3 (PandemicAS_Kongregate_fla.preloaderBlood_3)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class preloaderBlood_3 extends MovieClip {
public function preloaderBlood_3(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 188
//preloaderBloodFront_4 (PandemicAS_Kongregate_fla.preloaderBloodFront_4)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class preloaderBloodFront_4 extends MovieClip {
public function preloaderBloodFront_4(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 189
//reportField_416 (PandemicAS_Kongregate_fla.reportField_416)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class reportField_416 extends MovieClip {
public var reportPlane:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 190
//reportInto_219 (PandemicAS_Kongregate_fla.reportInto_219)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class reportInto_219 extends MovieClip {
public function reportInto_219(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 191
//reportOutline_220 (PandemicAS_Kongregate_fla.reportOutline_220)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class reportOutline_220 extends MovieClip {
public function reportOutline_220(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 192
//reportSymbols_218 (PandemicAS_Kongregate_fla.reportSymbols_218)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class reportSymbols_218 extends MovieClip {
public function reportSymbols_218(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 193
//reportTitlePopup_221 (PandemicAS_Kongregate_fla.reportTitlePopup_221)
package PandemicAS_Kongregate_fla {
import flash.display.*;
import flash.text.*;
public dynamic class reportTitlePopup_221 extends MovieClip {
public var reportTitle:TextField;
}
}//package PandemicAS_Kongregate_fla
Section 194
//researchRateBar_244 (PandemicAS_Kongregate_fla.researchRateBar_244)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class researchRateBar_244 extends MovieClip {
public var fillbar:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 195
//researchRateFillBar_245 (PandemicAS_Kongregate_fla.researchRateFillBar_245)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class researchRateFillBar_245 extends MovieClip {
public function researchRateFillBar_245(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 196
//rioting_197 (PandemicAS_Kongregate_fla.rioting_197)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class rioting_197 extends MovieClip {
public function rioting_197(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 197
//SeaportClosedStatus_215 (PandemicAS_Kongregate_fla.SeaportClosedStatus_215)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class SeaportClosedStatus_215 extends MovieClip {
public var coreButton:AirportStatusButton;
public function SeaportClosedStatus_215(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 198
//SeaportOpenStatus_213 (PandemicAS_Kongregate_fla.SeaportOpenStatus_213)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class SeaportOpenStatus_213 extends MovieClip {
public var coreButton:AirportStatusButton;
public function SeaportOpenStatus_213(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 199
//SettinsgButton_266 (PandemicAS_Kongregate_fla.SettinsgButton_266)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class SettinsgButton_266 extends MovieClip {
public function SettinsgButton_266(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 200
//StateCurfew_144 (PandemicAS_Kongregate_fla.StateCurfew_144)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class StateCurfew_144 extends MovieClip {
public function StateCurfew_144(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 201
//surgeonGeneralTrophy_270 (PandemicAS_Kongregate_fla.surgeonGeneralTrophy_270)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class surgeonGeneralTrophy_270 extends MovieClip {
public var trophyShadow:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 202
//TimeButtonContainer_413 (PandemicAS_Kongregate_fla.TimeButtonContainer_413)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class TimeButtonContainer_413 extends MovieClip {
public var dateClock:MovieClip;
public function TimeButtonContainer_413(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = false;
dateClock.mouseEnabled = false;
dateClock.mouseChildren = false;
}
}
}//package PandemicAS_Kongregate_fla
Section 203
//timeFastContainer_360 (PandemicAS_Kongregate_fla.timeFastContainer_360)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class timeFastContainer_360 extends MovieClip {
public var coreButton:travelStatusButton;
public function timeFastContainer_360(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 204
//timeNormalContainer_359 (PandemicAS_Kongregate_fla.timeNormalContainer_359)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class timeNormalContainer_359 extends MovieClip {
public var coreButton:travelStatusButton;
public function timeNormalContainer_359(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 205
//trafficOffContainer_212 (PandemicAS_Kongregate_fla.trafficOffContainer_212)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class trafficOffContainer_212 extends MovieClip {
public var coreButton:travelStatusButton;
public function trafficOffContainer_212(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 206
//trafficOnContainer_210 (PandemicAS_Kongregate_fla.trafficOnContainer_210)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class trafficOnContainer_210 extends MovieClip {
public var coreButton:travelStatusButton;
public function trafficOnContainer_210(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 207
//trophyMessages_305 (PandemicAS_Kongregate_fla.trophyMessages_305)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class trophyMessages_305 extends MovieClip {
public function trophyMessages_305(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 208
//trophyUnlocks_304 (PandemicAS_Kongregate_fla.trophyUnlocks_304)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class trophyUnlocks_304 extends MovieClip {
public var unlockNotice:MovieClip;
public function trophyUnlocks_304(){
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 PandemicAS_Kongregate_fla
Section 209
//underAchieverTrophy_268 (PandemicAS_Kongregate_fla.underAchieverTrophy_268)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class underAchieverTrophy_268 extends MovieClip {
public var trophyShadow:MovieClip;
}
}//package PandemicAS_Kongregate_fla
Section 210
//victoryMessage_302 (PandemicAS_Kongregate_fla.victoryMessage_302)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class victoryMessage_302 extends MovieClip {
public function victoryMessage_302(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 211
//VictoryPanel_243 (PandemicAS_Kongregate_fla.VictoryPanel_243)
package PandemicAS_Kongregate_fla {
import flash.display.*;
public dynamic class VictoryPanel_243 extends MovieClip {
public var vaccineBar:MovieClip;
public var hospitalBar:MovieClip;
public function VictoryPanel_243(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PandemicAS_Kongregate_fla
Section 212
//MusicFile (SOUND.MusicFile)
package SOUND {
public class MusicFile extends SoundFile {
public function MusicFile(_arg1:String=""):void{
this.setChannel(CHANNEL_MUSIC);
}
}
}//package SOUND
Section 213
//SoundFile (SOUND.SoundFile)
package SOUND {
import flash.events.*;
import flash.media.*;
public class SoundFile extends Sound {
protected var channel:int;// = 0
protected var soundChannels:Array;
protected var id:int;
protected var loop:int;// = 0
protected var localVolume:Number;
protected var trans:SoundTransform;
protected var startPosition:int;// = 0
public static var CHANNEL_SOUND:int = SoundManager.CHANNEL_SOUND;
public static var CHANNEL_MUSIC:int = SoundManager.CHANNEL_MUSIC;
public static var CHANNEL_MASTER:int = SoundManager.CHANNEL_MASTER;
public function SoundFile(_arg1:String=""):void{
id = new int(0);
soundChannels = new Array(0);
trans = new SoundTransform();
localVolume = new Number(1);
channel = 0;
loop = 0;
startPosition = 0;
super();
SoundManager.getInstance().register(this, _arg1);
this.setChannel(CHANNEL_SOUND);
}
public function playSound():void{
if ((((channel == CHANNEL_SOUND)) && ((SoundManager.getInstance().getPlayCount(CHANNEL_SOUND) >= SoundManager.SOUND_CHANNEL_CAP)))){
return;
};
soundChannels.push(this.play(startPosition, loop, trans));
if (soundChannels[(soundChannels.length - 1)] != null){
SoundManager.getInstance().markSound(channel);
soundChannels[(soundChannels.length - 1)].addEventListener(Event.SOUND_COMPLETE, onComplete);
updateVolume();
} else {
soundChannels.splice((soundChannels.length - 1), 1);
};
}
public function getActiveChannels():int{
return (soundChannels.length);
}
public function setVolume(_arg1:Number):void{
localVolume = _arg1;
updateVolume();
}
public function onComplete(_arg1:Event):void{
var _local2:int;
SoundManager.getInstance().unmarkSound(channel);
_local2 = 0;
while (_local2 < soundChannels.length) {
if (soundChannels[_local2] == (_arg1.currentTarget as SoundChannel)){
soundChannels.splice(_local2, 1);
break;
};
_local2++;
};
}
public function setName(_arg1:String):void{
SoundManager.getInstance().setName(this, _arg1);
}
public function setStart(_arg1:int):void{
startPosition = _arg1;
}
public function setChannel(_arg1:int):void{
this.channel = _arg1;
}
public function updateVolume():void{
var _local1:SoundManager;
var _local2:SoundChannel;
_local1 = SoundManager.getInstance();
if (((_local1.isChannelMute(channel)) || (_local1.isChannelMute(CHANNEL_MASTER)))){
trans.volume = 0;
} else {
trans.volume = ((localVolume * _local1.getVolumeLevel(channel)) * _local1.getVolumeLevel(CHANNEL_MASTER));
};
for each (_local2 in soundChannels) {
if (_local2 != null){
_local2.soundTransform = trans;
};
};
}
public function getVolume():Number{
return (localVolume);
}
public function setLoop(_arg1:int):void{
loop = _arg1;
}
public function stopSound():void{
var _local1:int;
_local1 = (soundChannels.length - 1);
while (_local1 >= 0) {
soundChannels[_local1].stop();
SoundManager.getInstance().unmarkSound(channel);
soundChannels.splice(_local1, 1);
_local1--;
};
}
}
}//package SOUND
Section 214
//SoundInfo (SOUND.SoundInfo)
package SOUND {
public class SoundInfo {
private var soundId:int;
private var sound:SoundFile;
private var soundName:String;
private static var idNumber:int = new int(0);
public function SoundInfo(_arg1:SoundFile, _arg2:String=null, _arg3:int=-1):void{
if (_arg3 != -1){
idNumber = _arg3;
};
this.sound = _arg1;
this.soundName = _arg2;
this.soundId = idNumber;
idNumber++;
}
public function getSoundId():int{
return (soundId);
}
public function getSoundName():String{
return (soundName);
}
public function setSoundId(_arg1:int):void{
soundId = _arg1;
}
public function isPlaying():Boolean{
return ((sound.getActiveChannels() > 0));
}
public function setSoundName(_arg1:String):void{
soundName = _arg1;
}
public function getSound():SoundFile{
return (sound);
}
}
}//package SOUND
Section 215
//SoundManager (SOUND.SoundManager)
package SOUND {
public class SoundManager {
private var muteMusic:Boolean;// = false
private var playingSound:int;// = 0
public var volumeSound:Number;// = 1
private var playingMusic:int;// = 0
public var volumeMaster:Number;// = 1
private var fadeRemove:Array;
public var volumeMusic:Number;// = 1
private var playingMaster:int;// = 0
private var fadeList:Array;
private var sounds:Array;
private var muteMaster:Boolean;// = false
private var fadeTime:Array;
private var fadeDir:Array;
private var fadeDestination:Array;
private var muteSound:Boolean;// = false
public static var CHANNEL_ALL:int = -1;
public static var FADE_IN = 1;
public static var CHANNEL_MUSIC:int = 1;
public static var FADE_OUT = -1;
public static var SOUND_CHANNEL_CAP:int = 16;
public static var CHANNEL_SOUND:int = 2;
static var instance:SoundManager = null;
public static var CHANNEL_MASTER:int = 0;
public function SoundManager():void{
sounds = new Array();
volumeMaster = 1;
volumeMusic = 1;
volumeSound = 1;
playingMaster = 0;
playingMusic = 0;
playingSound = 0;
muteMaster = false;
muteMusic = false;
muteSound = false;
fadeList = new Array(0);
fadeDir = new Array(0);
fadeTime = new Array(0);
fadeRemove = new Array(0);
fadeDestination = new Array(0);
super();
}
public function getPlayCount(_arg1:int):int{
switch (_arg1){
case CHANNEL_MASTER:
return (playingMaster);
case CHANNEL_SOUND:
return (playingSound);
case CHANNEL_MUSIC:
return (playingMusic);
default:
return (((playingMaster + playingSound) + playingMusic));
};
}
public function run():void{
var _local1:int;
_local1 = (fadeList.length - 1);
while (_local1 >= 0) {
fadeList[_local1].setVolume((fadeList[_local1].getVolume() + (fadeDir[_local1] / fadeTime[_local1])));
if (fadeDir[_local1] < 0){
if (fadeList[_local1].getVolume() <= fadeDestination[_local1]){
endFade(_local1);
};
} else {
if (fadeDir[_local1] > 0){
if (fadeList[_local1].getVolume() >= fadeDestination[_local1]){
endFade(_local1);
};
} else {
endFade(_local1);
};
};
_local1--;
};
}
public function setName(_arg1:SoundFile, _arg2:String):void{
var _local3:SoundInfo;
for each (_local3 in sounds) {
if (_local3.getSound() == _arg1){
_local3.setSoundName(_arg2);
};
};
}
public function register(_arg1:SoundFile, _arg2:String):void{
if (_arg2 != ""){
sounds.push(new SoundInfo(_arg1, _arg2));
} else {
sounds.push(new SoundInfo(_arg1, _arg1.id3.songName));
};
}
public function hasSound(_arg1:String):Boolean{
var _local2:SoundInfo;
for each (_local2 in sounds) {
if (_local2.getSoundName() == _arg1){
return (true);
};
};
return (false);
}
public function stopSound(_arg1:String):void{
var _local2:SoundInfo;
for each (_local2 in sounds) {
if (_local2.getSoundName() == _arg1){
_local2.getSound().stopSound();
break;
};
};
}
public function muteChannel(_arg1:int, _arg2:Boolean):void{
switch (_arg1){
case CHANNEL_SOUND:
muteSound = _arg2;
break;
case CHANNEL_MUSIC:
muteMusic = _arg2;
break;
default:
muteMaster = _arg2;
break;
};
updateVolume();
}
public function isChannelMute(_arg1:int):Boolean{
switch (_arg1){
case CHANNEL_SOUND:
return (muteSound);
case CHANNEL_MUSIC:
return (muteMusic);
default:
return (muteMaster);
};
}
public function playSound(_arg1:String):void{
var _local2:SoundInfo;
for each (_local2 in sounds) {
if (_local2.getSoundName() == _arg1){
_local2.getSound().playSound();
break;
};
};
}
public function unregister(_arg1:int):void{
sounds.splice(_arg1, 1);
}
public function markSound(_arg1:int):void{
switch (_arg1){
case CHANNEL_SOUND:
playingSound++;
break;
case CHANNEL_MUSIC:
playingMusic++;
break;
default:
playingMaster++;
break;
};
}
private function updateVolume():void{
var _local1:SoundInfo;
for each (_local1 in sounds) {
_local1.getSound().updateVolume();
};
}
public function setVolumeLevel(_arg1:int, _arg2:Number):void{
switch (_arg1){
case CHANNEL_ALL:
volumeSound = _arg2;
volumeMusic = _arg2;
volumeMaster = _arg2;
break;
case CHANNEL_SOUND:
volumeSound = _arg2;
break;
case CHANNEL_MUSIC:
volumeMusic = _arg2;
break;
default:
volumeMaster = _arg2;
break;
};
updateVolume();
}
public function unmarkSound(_arg1:int):void{
switch (_arg1){
case CHANNEL_SOUND:
playingSound--;
break;
case CHANNEL_MUSIC:
playingMusic--;
break;
default:
playingMaster--;
break;
};
}
public function getVolumeLevel(_arg1:int):Number{
switch (_arg1){
case CHANNEL_SOUND:
return (volumeSound);
case CHANNEL_MUSIC:
return (volumeMusic);
default:
return (volumeMaster);
};
}
public function getSound(_arg1:String):SoundFile{
var _local2:SoundInfo;
for each (_local2 in sounds) {
if (_local2.getSoundName() == _arg1){
return (_local2.getSound());
};
};
return (null);
}
public function unregisterByName(_arg1:String):void{
var _local2:int;
_local2 = 0;
while (_local2 < sounds.length) {
if (sounds[_local2].getSoundName() == _arg1){
sounds.splice(_local2, 1);
break;
};
_local2++;
};
}
public function stopAllSounds():void{
var _local1:SoundInfo;
for each (_local1 in sounds) {
_local1.getSound().stopSound();
};
}
public function fadeSound(_arg1:String, _arg2:Number=0, _arg3:int=100, _arg4:Boolean=false):void{
var _local5:SoundInfo;
for each (_local5 in sounds) {
if (_local5.getSoundName() == _arg1){
this.fadeList.push(_local5.getSound());
this.fadeDir.push((_arg2 - _local5.getSound().getVolume()));
this.fadeTime.push(_arg3);
this.fadeRemove.push(_arg4);
this.fadeDestination.push(_arg2);
break;
};
};
}
private function endFade(_arg1:int):void{
if (fadeRemove[_arg1]){
fadeList[_arg1].stopSound();
};
fadeList.splice(_arg1, 1);
fadeDir.splice(_arg1, 1);
fadeTime.splice(_arg1, 1);
fadeRemove.splice(_arg1, 1);
fadeDestination.splice(_arg1, 1);
}
public static function getInstance():SoundManager{
if (instance == null){
instance = new (SoundManager);
};
return (instance);
}
}
}//package SOUND
Section 216
//AirportStatusButton (AirportStatusButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class AirportStatusButton extends GenericButton {
}
}//package
Section 217
//AlabamaButton (AlabamaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class AlabamaButton extends RegionButton {
}
}//package
Section 218
//ArizonaButton (ArizonaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class ArizonaButton extends RegionButton {
}
}//package
Section 219
//ArkansasButton (ArkansasButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class ArkansasButton extends RegionButton {
}
}//package
Section 220
//AverageGovButton (AverageGovButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class AverageGovButton extends GenericButton {
}
}//package
Section 221
//AWESOMEBUTTON_LD (AWESOMEBUTTON_LD)
package {
import GUI.IACVOBJECTS.*;
public dynamic class AWESOMEBUTTON_LD extends OperationButton {
}
}//package
Section 222
//BarricadeButton (BarricadeButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class BarricadeButton extends OperationButton {
}
}//package
Section 223
//basicOperationButton (basicOperationButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class basicOperationButton extends GenericButton {
}
}//package
Section 224
//BombDrop (BombDrop)
package {
import SOUND.*;
public dynamic class BombDrop extends SoundFile {
}
}//package
Section 225
//CaliforniaButton (CaliforniaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class CaliforniaButton extends RegionButton {
}
}//package
Section 226
//CanadaButton (CanadaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class CanadaButton extends RegionButton {
}
}//package
Section 227
//CentralStatesButton (CentralStatesButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class CentralStatesButton extends GenericButton {
}
}//package
Section 228
//ClosedGovButton (ClosedGovButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class ClosedGovButton extends GenericButton {
}
}//package
Section 229
//CloseWindow (CloseWindow)
package {
import SOUND.*;
public dynamic class CloseWindow extends SoundFile {
}
}//package
Section 230
//ColoradoButton (ColoradoButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class ColoradoButton extends RegionButton {
}
}//package
Section 231
//ConfettiPackage0 (ConfettiPackage0)
package {
import INFORMATIONOBJECTS.*;
public dynamic class ConfettiPackage0 extends ConfettiPackage {
}
}//package
Section 232
//ConfettiPackage1 (ConfettiPackage1)
package {
import INFORMATIONOBJECTS.*;
public dynamic class ConfettiPackage1 extends ConfettiPackage {
}
}//package
Section 233
//ConfettiPackage2 (ConfettiPackage2)
package {
import INFORMATIONOBJECTS.*;
public dynamic class ConfettiPackage2 extends ConfettiPackage {
}
}//package
Section 234
//ConfettiPackage3 (ConfettiPackage3)
package {
import INFORMATIONOBJECTS.*;
public dynamic class ConfettiPackage3 extends ConfettiPackage {
}
}//package
Section 235
//ConfettiPackage4 (ConfettiPackage4)
package {
import INFORMATIONOBJECTS.*;
public dynamic class ConfettiPackage4 extends ConfettiPackage {
}
}//package
Section 236
//ConnecticutButton (ConnecticutButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class ConnecticutButton extends RegionButton {
}
}//package
Section 237
//Defeat (Defeat)
package {
import SOUND.*;
public dynamic class Defeat extends SoundFile {
}
}//package
Section 238
//DefeatWindow (DefeatWindow)
package {
import flash.display.*;
import flash.events.*;
import GUI.*;
import flash.geom.*;
import MANAGERS.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class DefeatWindow extends MovieClip {
public var icebergs:MovieClip;
public var pandemicIIButton:PandemicIIButton;
public var numberStuff:Number;
public var days:TextField;
public var defeatMessage:MovieClip;
public var trophyNotice:MovieClip;
public var killed:TextField;
public var saved:TextField;
public var playMoreGames:PlayMoreGamesEnd;
public var continueButton:introContinueButton;
public var finalScore:TextField;
public function DefeatWindow(){
addFrameScript(6, frame7, 12, frame13);
}
public function pandemicIIManager():void{
try {
navigateToURL(new URLRequest("http://www.kongregate.com/games/DarkRealmStudios/pandemic-2?gamereferral=Pandemic: American Swine"), "_blank");
} catch(error:Error) {
};
}
public function kongregateManager():void{
try {
navigateToURL(new URLRequest("http://www.kongregate.com/?gamereferral=Pandemic: American Swine"), "_blank");
} catch(error:Error) {
};
}
function frame7(){
if (EngineCore.getEngineCore().kongValid){
numberStuff = 0;
numberStuff = (((CountryManager.getImmunePop() / TimeManager.getDay()) + (CountryManager.getHealthyPop() / (TimeManager.getDay() * 2))) + (CountryManager.getInfectedPop() / (TimeManager.getDay() * 4)));
if (GameManager.getDiffType() == GameManager.DIFFICULTY_NORMAL){
EngineCore.getEngineCore().kongregate.stats.submit("Highscore Normal", numberStuff);
};
if (GameManager.getDiffType() == GameManager.DIFFICULTY_HARD){
EngineCore.getEngineCore().kongregate.stats.submit("Highscore Hard", numberStuff);
};
if (GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME){
EngineCore.getEngineCore().kongregate.stats.submit("Highscore Extreme", numberStuff);
};
numberStuff = ((CountryManager.getHealthyPop() + CountryManager.getImmunePop()) + CountryManager.getInfectedPop());
EngineCore.getEngineCore().kongregate.stats.submit("Great Savior", numberStuff);
numberStuff = CountryManager.getImmunePop();
EngineCore.getEngineCore().kongregate.stats.submit("Needles Everywhere", numberStuff);
numberStuff = CountryManager.getDeadPop();
EngineCore.getEngineCore().kongregate.stats.submit("Death Dealer", numberStuff);
};
icebergs.visible = false;
if (EngineCore.getEngineCore().aprilFoolsOn == true){
icebergs.visible = true;
if (GameManager.getTrophyStatus(4)){
icebergs.trophy0.trophyShadow.visible = false;
icebergs.trophy1.trophyShadow.visible = false;
icebergs.trophy2.trophyShadow.visible = false;
icebergs.trophy3.trophyShadow.visible = false;
};
};
continueButton.setInvokeFunction(returnToMainMenu);
continueButton.setName("_gameOverButton");
continueButton.addToInputManager();
playMoreGames.setInvokeFunction(kongregateManager);
playMoreGames.setName("_mainMenuPlayGamesButton");
playMoreGames.addToInputManager();
pandemicIIButton.setInvokeFunction(pandemicIIManager);
pandemicIIButton.setName("_gameoverPandemicII");
pandemicIIButton.addToInputManager();
days.text = Helpers.addCommas(TimeManager.getDay());
saved.text = Helpers.addCommas(((CountryManager.getHealthyPop() + CountryManager.getImmunePop()) + CountryManager.getInfectedPop()));
killed.text = Helpers.addCommas(CountryManager.getDeadPop());
finalScore.text = Helpers.addCommas(((((CountryManager.getImmunePop() / (TimeManager.getDay() * 4)) + (CountryManager.getHealthyPop() / (TimeManager.getDay() * 8))) + (CountryManager.getInfectedPop() / (TimeManager.getDay() * 16))) * 1E-5));
if (GameManager.getPanicDefeat()){
defeatMessage.gotoAndStop(1);
} else {
if (GameManager.getDeathDefeat()){
defeatMessage.gotoAndStop(2);
} else {
if (GameManager.getCityDefeat()){
defeatMessage.gotoAndStop(3);
} else {
if (GameManager.getTimeDefeat()){
defeatMessage.gotoAndStop(4);
};
};
};
};
trophyNotice.unlockNotice.gotoAndStop(3);
if (GameManager.getDiffType() == GameManager.DIFFICULTY_NORMAL){
trophyNotice.gotoAndStop(1);
} else {
if ((((GameManager.getDiffType() == GameManager.DIFFICULTY_HARD)) && (!(GameManager.getTrophyStatus(1))))){
trophyNotice.gotoAndStop(2);
} else {
if ((((GameManager.getDiffType() == GameManager.DIFFICULTY_HARD)) && (GameManager.getTrophyStatus(1)))){
trophyNotice.gotoAndStop(3);
} else {
if (GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME){
trophyNotice.gotoAndStop(4);
};
};
};
};
stop();
}
function frame13(){
stop();
GuiManager.cleanupPrimaryGui();
}
public function returnToMainMenu():void{
GameManager.resetGame(true);
}
}
}//package
Section 239
//DelawareButton (DelawareButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class DelawareButton extends RegionButton {
}
}//package
Section 240
//DeportInfected (DeportInfected)
package {
import GUI.IACVOBJECTS.*;
public dynamic class DeportInfected extends OperationButton {
}
}//package
Section 241
//DisburseVaccine (DisburseVaccine)
package {
import GUI.IACVOBJECTS.*;
public dynamic class DisburseVaccine extends OperationButton {
}
}//package
Section 242
//DRSButton (DRSButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class DRSButton extends GenericButton {
}
}//package
Section 243
//EasternStatesButton (EasternStatesButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class EasternStatesButton extends GenericButton {
}
}//package
Section 244
//EngineCore (EngineCore)
package {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import SOUND.*;
import flash.events.*;
import GUI.*;
import MANAGERS.*;
import flash.ui.*;
import flash.net.*;
public class EngineCore extends MovieClip {
public var primaryGuiPlane:MovieClip;
public var IntroContinueButton:introContinueButton;
private var engineRunning:Boolean;// = false
public var aprilFoolsOn:Boolean;// = false
private var paramObj:Object;
public var dummyNeedle:MovieClip;
public var secondaryGuiPlane:MovieClip;
public var preloader:MovieClip;
public var gameWindow:MovieClip;
public var operationGuiPlane:MovieClip;
private var kongLoader:Loader;
private var kongAPIurl:String;
public var tempSound:SoundFile;
private var secureContextMenu:ContextMenu;
private var kongRequest:URLRequest;
public var confettiPlane:MovieClip;
public var kongregate:Object;
public var kongValid:Boolean;// = false
private static var engineCore:EngineCore;
public function EngineCore(){
engineRunning = false;
kongValid = false;
aprilFoolsOn = false;
super();
addFrameScript(1, frame2, 14, frame15, 15, frame16, 31, frame32, 32, frame33, 34, frame35, 46, frame47, 62, frame63, 79, frame80, 95, frame96, 135, frame136, 154, frame155, 157, frame158, 158, frame159, 159, frame160, 160, frame161);
engineCore = this;
this.stage.quality = StageQuality.MEDIUM;
secureContextMenu = new ContextMenu();
secureContextMenu.hideBuiltInItems();
contextMenu = secureContextMenu;
}
function frame159(){
IntroContinueButton.setInvokeFunction(playTheGame);
IntroContinueButton.setName("_introContinueButton");
IntroContinueButton.addToInputManager();
stop();
}
function frame155(){
stage.removeEventListener(Event.ENTER_FRAME, runMainMenu);
PhysicsManager.clearConfetti();
InputManager.clearTempIacvObject();
InputManager.removeStdIacvObject();
SoundManager.getInstance().fadeSound("MenuMusic", 0, 60);
}
public function setupGame(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip, _arg4:MovieClip, _arg5:MovieClip, _arg6:IacvObject, _arg7:IacvObject, _arg8:MovieClip, _arg9:MovieClip):void{
var _local10:Date;
_local10 = new Date();
if ((((_local10.getDate() == 1)) && ((_local10.getMonth() == 3)))){
aprilFoolsOn = true;
gameWindow.scaleX = (gameWindow.scaleX * -1);
gameWindow.x = 775;
};
_arg2.mouseEnabled = false;
GuiManager.setup(_arg1, _arg2, _arg3, _arg4, _arg5, _arg8, _arg9);
InputManager.setup(this);
InputManager.addStdIacvObject(_arg6);
InputManager.addStdIacvObject(_arg7);
CountryManager.setupOperations();
InterstateManager.setup();
AirportManager.setupAirports();
HospitalManager.setupHospitals();
SeaportManager.setupSeaports();
CityManager.setupCities();
RegionManager.setup();
PanicManager.setInitialLevel();
if (GameManager.getDiffType() == GameManager.DIFFICULTY_NORMAL){
GuiManager.displayConditionsWindow(new NormalGameConditions());
};
if (GameManager.getDiffType() == GameManager.DIFFICULTY_HARD){
GuiManager.displayConditionsWindow(new HardGameConditions());
};
if (GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME){
GuiManager.displayConditionsWindow(new ExtremeGameConditions());
};
}
function frame158(){
stop();
}
function frame161(){
setupGame(gameWindow.panicBar, gameWindow.newsReportFeed, operationGuiPlane, primaryGuiPlane, secondaryGuiPlane, gameWindow.zoomInButton, gameWindow.zoomOutButton, gameWindow.cashBar, gameWindow.currentDay);
startEngine();
stop();
}
function frame160(){
SoundManager.getInstance().getSound("MainTheme").setVolume(1);
SoundManager.getInstance().playSound("MainTheme");
}
public function playTheGame():void{
var _local1:EngineCore;
InputManager.clearTempIacvObject();
InputManager.removeStdIacvObject();
_local1 = (this as EngineCore);
_local1.gotoAndPlay(160);
}
public function startEngine():void{
stage.addEventListener(Event.ENTER_FRAME, run);
}
public function runMainMenu(_arg1:Event):void{
PhysicsManager.run();
}
function frame15(){
dummyNeedle.visible = false;
stage.addEventListener(Event.ENTER_FRAME, loadGame);
stop();
}
function frame16(){
InputManager.removeStdIacvObject();
dummyNeedle.gotoAndPlay(16);
}
function frame96(){
PhysicsManager.shootConfetti(30, 320, 600, 2.5, -22);
PhysicsManager.shootConfetti(30, 455, 600, -2.5, -22);
}
function frame2(){
if (WebValidator.extractDomainName(this.loaderInfo.url) == "kongregate"){
stop();
setupKong();
};
}
private function kongComplete(_arg1:Event):void{
kongregate = _arg1.target.content;
kongregate.services.connect();
kongValid = true;
gotoAndPlay(3);
}
public function run(_arg1:Event):void{
GameManager.run();
}
public function stopEngine():void{
stage.removeEventListener(Event.ENTER_FRAME, run);
}
function frame35(){
SoundManager.getInstance().getSound("MenuMusic").setVolume(0.45);
SoundManager.getInstance().playSound("MenuMusic");
}
function frame80(){
PhysicsManager.shootConfetti(30, 230, 600, 3, -21);
PhysicsManager.shootConfetti(30, 545, 600, -3, -21);
}
public function setupKong():void{
var _local1:URLRequest;
var _local2:Loader;
paramObj = LoaderInfo(root.loaderInfo).parameters;
kongAPIurl = ((paramObj.api_path) || ("http://www.kongregate.com/flash/API_AS3_Local.swf"));
_local1 = new URLRequest(kongAPIurl);
_local2 = new Loader();
_local2.contentLoaderInfo.addEventListener(Event.COMPLETE, kongComplete);
_local2.load(_local1);
this.addChild(_local2);
_local2.mouseEnabled = false;
_local2.mouseChildren = false;
}
public function runSounds(_arg1:Event):void{
SoundManager.getInstance().run();
}
function frame47(){
confettiPlane.mouseChildren = false;
confettiPlane.mouseEnabled = false;
PhysicsManager.setPlane(confettiPlane);
PhysicsManager.shootConfetti(30, 50, 600, 4, -19);
PhysicsManager.shootConfetti(30, 725, 600, -4, -19);
}
function frame33(){
stage.addEventListener(Event.ENTER_FRAME, runMainMenu);
GameManager.loadLocalData();
GameManager.resetGameManager();
}
function frame32(){
SoundManager.getInstance().setVolumeLevel(SoundManager.CHANNEL_SOUND, 1);
SoundManager.getInstance().setVolumeLevel(SoundManager.CHANNEL_MUSIC, 1);
tempSound = new BombDrop();
SoundManager.getInstance().setName(tempSound, "BombDrop");
tempSound = new CloseWindow();
tempSound.setVolume(1.3);
SoundManager.getInstance().setName(tempSound, "CloseWindow");
tempSound = new Defeat();
SoundManager.getInstance().setName(tempSound, "Defeat");
tempSound = new Explosion();
SoundManager.getInstance().setName(tempSound, "Explosion");
tempSound = new MainTheme();
tempSound.setLoop(9999999);
SoundManager.getInstance().setName(tempSound, "MainTheme");
tempSound = new MenuMusic();
tempSound.setLoop(9999999);
tempSound.setVolume(0.45);
SoundManager.getInstance().setName(tempSound, "MenuMusic");
tempSound = new MouseClick();
tempSound.setVolume(1.27);
SoundManager.getInstance().setName(tempSound, "MouseClick");
tempSound = new NewsReportSound();
tempSound.setVolume(1.3);
SoundManager.getInstance().setName(tempSound, "NewsReportSound");
tempSound = new OpenWindow();
tempSound.setVolume(1.3);
SoundManager.getInstance().setName(tempSound, "OpenWindow");
tempSound = new Victory();
SoundManager.getInstance().setName(tempSound, "Victory");
stop();
startSound();
}
public function startSound():void{
stage.addEventListener(Event.ENTER_FRAME, runSounds);
}
function frame136(){
stop();
}
function frame63(){
PhysicsManager.shootConfetti(30, 140, 600, 3.5, -20);
PhysicsManager.shootConfetti(30, 635, 600, -3.5, -20);
}
public function loadGame(_arg1:Event):void{
var _local2:Number;
_local2 = (this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal);
if (Math.abs((this.preloader.loadingBar.y - (-294.9 + (_local2 * 360.1)))) >= 7){
this.preloader.loadingBar.y = (this.preloader.loadingBar.y + 7);
if (this.preloader.loadingBar.y > 65.2){
this.preloader.loadingBar.y = 65.2;
};
} else {
this.preloader.loadingBar.y = (-294.9 + (_local2 * 360.1));
};
if ((((_local2 == 1)) && ((this.preloader.loadingBar.y >= 65.2)))){
stage.removeEventListener(Event.ENTER_FRAME, loadGame);
dummyNeedle.visible = true;
preloader.visible = false;
this.gotoAndPlay(16);
};
}
public static function getEngineCore():EngineCore{
return (engineCore);
}
}
}//package
Section 245
//Explosion (Explosion)
package {
import SOUND.*;
public dynamic class Explosion extends SoundFile {
}
}//package
Section 246
//extremeDifficultyButton (extremeDifficultyButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class extremeDifficultyButton extends GenericButton {
}
}//package
Section 247
//ExtremeGameConditions (ExtremeGameConditions)
package {
import flash.display.*;
import GUI.*;
public dynamic class ExtremeGameConditions extends MovieClip {
public var continueButton:introContinueButton;
public function ExtremeGameConditions(){
addFrameScript(0, frame1, 6, frame7);
}
public function closeWindow():void{
InputManager.removeTempIacvObject("_gameConditionsButton");
GuiManager.closePrimaryGui();
}
function frame7(){
stop();
GuiManager.cleanupPrimaryGui();
}
function frame1(){
continueButton.setInvokeFunction(closeWindow);
continueButton.setName("_gameConditionsButton");
continueButton.addToInputManager();
stop();
}
}
}//package
Section 248
//ExtremePolicies (ExtremePolicies)
package {
import GUI.IACVOBJECTS.*;
public dynamic class ExtremePolicies extends OperationButton {
}
}//package
Section 249
//FinanceWindow (FinanceWindow)
package {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import flash.events.*;
import GUI.*;
import flash.geom.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class FinanceWindow extends MovieClip {
public var immune0:TextField;
public var immune2:TextField;
public var immune3:TextField;
public var immune4:TextField;
public var immune5:TextField;
public var immune6:TextField;
public var day0:TextField;
public var day2:TextField;
public var day3:TextField;
public var immune7:TextField;
public var day1:TextField;
public var immune1:TextField;
public var clickout1:MovieClip;
public var immune8:TextField;
public var immune9:TextField;
public var clickout0:MovieClip;
public var i:int;
public var q:int;
public var s:int;
public var healthy10:TextField;
public var tiR:TextField;
public var healthy12:TextField;
public var healthy13:TextField;
public var healthy14:TextField;
public var healthy16:TextField;
public var healthy17:TextField;
public var healthy18:TextField;
public var healthy15:TextField;
public var healthy19:TextField;
public var infected10:TextField;
public var infected11:TextField;
public var infected12:TextField;
public var infected13:TextField;
public var infected14:TextField;
public var infected15:TextField;
public var incomeMod:TextField;
public var infected17:TextField;
public var infected18:TextField;
public var healthy11:TextField;
public var mod10:TextField;
public var graph1:TextField;
public var graph2:TextField;
public var mod14:TextField;
public var mod15:TextField;
public var mod16:TextField;
public var infected16:TextField;
public var mod18:TextField;
public var healthy21:TextField;
public var mod17:TextField;
public var mod11:TextField;
public var infected21:TextField;
public var mod19:TextField;
public var graph0:TextField;
public var mod12:TextField;
public var mod13:TextField;
public var healthy20:TextField;
public var infected19:TextField;
public var mod20:TextField;
public var mod21:TextField;
public var infected20:TextField;
public var findState0:FindStateButton;
public var findState1:FindStateButton;
public var findState2:FindStateButton;
public var findState3:FindStateButton;
public var findState4:FindStateButton;
public var findState5:FindStateButton;
public var findState6:FindStateButton;
public var findState7:FindStateButton;
public var findState8:FindStateButton;
public var findState9:FindStateButton;
public var recurringE:TextField;
public var estimatedIncome:TextField;
public var infection10:NationInfectionRateIndicator;
public var infection18:NationInfectionRateIndicator;
public var infection19:NationInfectionRateIndicator;
public var infection13:NationInfectionRateIndicator;
public var infection14:NationInfectionRateIndicator;
public var infection15:NationInfectionRateIndicator;
public var infection12:NationInfectionRateIndicator;
public var infection16:NationInfectionRateIndicator;
public var infection20:NationInfectionRateIndicator;
public var infection21:NationInfectionRateIndicator;
public var infection11:NationInfectionRateIndicator;
public var infection17:NationInfectionRateIndicator;
public var healthE:TextField;
public var mod0:TextField;
public var mod1:TextField;
public var mod2:TextField;
public var mod3:TextField;
public var mod4:TextField;
public var mod5:TextField;
public var mod6:TextField;
public var mod7:TextField;
public var mod8:TextField;
public var mod9:TextField;
public var totalE:TextField;
public var totalR:TextField;
public var currentList:Array;
public var immune10:TextField;
public var immune11:TextField;
public var immune12:TextField;
public var immune13:TextField;
public var immune14:TextField;
public var immune15:TextField;
public var immune16:TextField;
public var immune17:TextField;
public var immune18:TextField;
public var immune19:TextField;
public var centralStatesButton:CentralStatesButton;
public var immune20:TextField;
public var immune21:TextField;
public var taxR:TextField;
public var overviewButton:OverviewButton;
public var healthy0:TextField;
public var healthy1:TextField;
public var healthy2:TextField;
public var healthy3:TextField;
public var healthy4:TextField;
public var easternStatesButton:EasternStatesButton;
public var healthy8:TextField;
public var healthy9:TextField;
public var healthy5:TextField;
public var westernStatesButton:WesternStatesButton;
public var healthy6:TextField;
public var healthy7:TextField;
public var findState10:FindStateButton;
public var findState11:FindStateButton;
public var findState12:FindStateButton;
public var findState14:FindStateButton;
public var graphingArea:MovieClip;
public var findState15:FindStateButton;
public var findState17:FindStateButton;
public var findState19:FindStateButton;
public var findState16:FindStateButton;
public var findState20:FindStateButton;
public var findState21:FindStateButton;
public var findState13:FindStateButton;
public var findState18:FindStateButton;
public var infection0:NationInfectionRateIndicator;
public var infection1:NationInfectionRateIndicator;
public var infection2:NationInfectionRateIndicator;
public var infection4:NationInfectionRateIndicator;
public var infection5:NationInfectionRateIndicator;
public var infection6:NationInfectionRateIndicator;
public var infection7:NationInfectionRateIndicator;
public var infection8:NationInfectionRateIndicator;
public var infection9:NationInfectionRateIndicator;
public var infection3:NationInfectionRateIndicator;
public var currentString:String;
public var infrastructureE:TextField;
public var infected0:TextField;
public var infected1:TextField;
public var infected2:TextField;
public var infected3:TextField;
public var infected4:TextField;
public var infected6:TextField;
public var infected7:TextField;
public var infected8:TextField;
public var infected9:TextField;
public var infected5:TextField;
public var tdR:TextField;
public var costMod:TextField;
public function FinanceWindow(){
addFrameScript(4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 14, frame15);
}
function frame15(){
stop();
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
q = 0;
while (q < 10) {
s = 0;
while (s < 22) {
InputManager.removeTempIacvObject(("findState" + s));
s++;
};
s = 0;
q++;
};
GuiManager.cleanupPrimaryGui();
}
function frame8(){
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
s = 0;
while (s < 22) {
this[("mod" + s)].text = "";
this[("immune" + s)].text = "";
this[("healthy" + s)].text = "";
this[("infected" + s)].text = "";
this[("infection" + s)].visible = false;
this[("findState" + s)].visible = false;
s++;
};
currentList = RegionManager.getCentralRegions();
i = 0;
while (i < currentList.length) {
currentString = new String(currentList[i].getRegionName());
this[("mod" + i)].text = currentString.toUpperCase();
this[("immune" + i)].text = ("$" + Helpers.addCommas(currentList[i].getLastExpenses()));
this[("healthy" + i)].text = ("$" + Helpers.addCommas(currentList[i].getLastRevenue()));
this[("infected" + i)].text = ("$" + Helpers.addCommas((currentList[i].getLastRevenue() - currentList[i].getLastExpenses())));
this[("infection" + i)].visible = true;
this[("findState" + i)].visible = true;
this[("findState" + i)].setRegion(currentList[i].getRegionName());
this[("findState" + i)].setName(("_findStateButton" + i));
this[("findState" + i)].addToInputManager();
if ((currentList[i].getOldRevenue() - currentList[i].getOldExpenses()) < (currentList[i].getLastRevenue() - currentList[i].getLastExpenses())){
this[("infection" + i)].gotoAndStop(4);
};
if ((currentList[i].getOldRevenue() - currentList[i].getOldExpenses()) > (currentList[i].getLastRevenue() - currentList[i].getLastExpenses())){
this[("infection" + i)].gotoAndStop(5);
};
if ((currentList[i].getOldRevenue() - currentList[i].getOldExpenses()) == (currentList[i].getLastRevenue() - currentList[i].getLastExpenses())){
this[("infection" + i)].gotoAndStop(1);
};
i++;
};
overviewButton.setInvokeFunction(overviewManagerC);
overviewButton.setName("_overviewButton");
overviewButton.addToInputManager();
westernStatesButton.setInvokeFunction(westernManagerC);
westernStatesButton.setName("_westernStatesButton");
westernStatesButton.addToInputManager();
easternStatesButton.setInvokeFunction(easternManagerC);
easternStatesButton.setName("_easternStatesButton");
easternStatesButton.addToInputManager();
stop();
}
function frame5(){
s = 0;
i = 0;
}
function frame9(){
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
s = 0;
while (s < 22) {
this[("mod" + s)].text = "";
this[("immune" + s)].text = "";
this[("healthy" + s)].text = "";
this[("infected" + s)].text = "";
this[("infection" + s)].visible = false;
this[("findState" + s)].visible = false;
s++;
};
currentList = RegionManager.getEasternRegions();
i = 0;
while (i < currentList.length) {
currentString = new String(currentList[i].getRegionName());
this[("mod" + i)].text = currentString.toUpperCase();
this[("immune" + i)].text = ("$" + Helpers.addCommas(currentList[i].getLastExpenses()));
this[("healthy" + i)].text = ("$" + Helpers.addCommas(currentList[i].getLastRevenue()));
this[("infected" + i)].text = ("$" + Helpers.addCommas((currentList[i].getLastRevenue() - currentList[i].getLastExpenses())));
this[("infection" + i)].visible = true;
this[("findState" + i)].visible = true;
this[("findState" + i)].setRegion(currentList[i].getRegionName());
this[("findState" + i)].setName(("_findStateButton" + i));
this[("findState" + i)].addToInputManager();
if ((currentList[i].getOldRevenue() - currentList[i].getOldExpenses()) < (currentList[i].getLastRevenue() - currentList[i].getLastExpenses())){
this[("infection" + i)].gotoAndStop(4);
};
if ((currentList[i].getOldRevenue() - currentList[i].getOldExpenses()) > (currentList[i].getLastRevenue() - currentList[i].getLastExpenses())){
this[("infection" + i)].gotoAndStop(5);
};
if ((currentList[i].getOldRevenue() - currentList[i].getOldExpenses()) == (currentList[i].getLastRevenue() - currentList[i].getLastExpenses())){
this[("infection" + i)].gotoAndStop(1);
};
i++;
};
overviewButton.setInvokeFunction(overviewManagerD);
overviewButton.setName("_overviewButton");
overviewButton.addToInputManager();
westernStatesButton.setInvokeFunction(westernManagerD);
westernStatesButton.setName("_westernStatesButton");
westernStatesButton.addToInputManager();
centralStatesButton.setInvokeFunction(centralManagerD);
centralStatesButton.setName("_centralStatesButton");
centralStatesButton.addToInputManager();
stop();
}
function frame6(){
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
currentList = EconomyManager.getIncomeRecord();
graphingArea.graphArea.graphics.lineStyle(1.75, 2083640, 1);
i = 0;
while (i < currentList.length) {
if (i == 0){
graphingArea.graphArea.graphics.moveTo(0, 0);
} else {
graphingArea.graphArea.graphics.moveTo((i * (318 / currentList.length)), ((currentList[(i - 1)] * -1) / (EconomyManager.getLargestRecord() / 124)));
};
graphingArea.graphArea.graphics.lineTo(((i + 1) * (318 / currentList.length)), ((currentList[i] * -1) / (EconomyManager.getLargestRecord() / 124)));
i++;
};
currentList = EconomyManager.getExpenseRecord();
graphingArea.graphArea.graphics.lineStyle(1.75, 0xF46800, 1);
i = 0;
while (i < currentList.length) {
if (i == 0){
graphingArea.graphArea.graphics.moveTo(0, 0);
} else {
graphingArea.graphArea.graphics.moveTo((i * (318 / currentList.length)), ((currentList[(i - 1)] * -1) / (EconomyManager.getLargestRecord() / 124)));
};
graphingArea.graphArea.graphics.lineTo(((i + 1) * (318 / currentList.length)), ((currentList[i] * -1) / (EconomyManager.getLargestRecord() / 124)));
i++;
};
currentList = EconomyManager.getOneTimeExpensesRecord();
graphingArea.graphArea.graphics.lineStyle(1.75, 0xF2F900, 1);
i = 0;
while (i < currentList.length) {
if (i == 0){
graphingArea.graphArea.graphics.moveTo(0, 0);
} else {
graphingArea.graphArea.graphics.moveTo((i * (318 / currentList.length)), ((currentList[(i - 1)] * -1) / (EconomyManager.getLargestRecord() / 124)));
};
graphingArea.graphArea.graphics.lineTo(((i + 1) * (318 / currentList.length)), ((currentList[i] * -1) / (EconomyManager.getLargestRecord() / 124)));
i++;
};
graph0.text = ("$" + Helpers.addCommas(EconomyManager.getLargestRecord()));
graph1.text = ("$" + Helpers.addCommas((EconomyManager.getLargestRecord() * 0.6666666)));
graph2.text = ("$" + Helpers.addCommas((EconomyManager.getLargestRecord() * 0.3333333)));
if (currentList.length < 15){
day0.text = ("" + 0);
} else {
day0.text = ("" + (currentList.length - 15));
};
day1.text = ("" + Helpers.roundTo(currentList.length, 3, 2, 0));
day2.text = ("" + Helpers.roundTo(currentList.length, 1.5, 2, 0));
day3.text = ("" + currentList.length);
incomeMod.text = ("X" + Helpers.roundTo(PanicManager.getPanic(), EconomyManager.PANIC_REVENUE_BONUS, 2, 1));
costMod.text = ("X" + Helpers.roundTo(PanicManager.getPanic(), EconomyManager.PANIC_COST_BONUS, 2, 1));
tdR.text = ("$" + Helpers.addCommas(EconomyManager.getLatestDomTourism()));
tiR.text = ("$" + Helpers.addCommas(EconomyManager.getLatestIntTourism()));
taxR.text = ("$" + Helpers.addCommas(EconomyManager.getLatestTaxRevenue()));
totalR.text = ("$" + Helpers.addCommas(((EconomyManager.getLatestDomTourism() + EconomyManager.getLatestIntTourism()) + EconomyManager.getLatestTaxRevenue())));
infrastructureE.text = ("$" + Helpers.addCommas(EconomyManager.getLatestInfraExpenses()));
healthE.text = ("$" + Helpers.addCommas(EconomyManager.getLatestHealthExpenses()));
recurringE.text = ("$" + Helpers.addCommas(EconomyManager.getLatestOpExpenses()));
totalE.text = ("$" + Helpers.addCommas(((EconomyManager.getLatestInfraExpenses() + EconomyManager.getLatestHealthExpenses()) + EconomyManager.getLatestOpExpenses())));
estimatedIncome.text = Helpers.addCommas((((EconomyManager.getLatestDomTourism() + EconomyManager.getLatestIntTourism()) + EconomyManager.getLatestTaxRevenue()) - ((EconomyManager.getLatestInfraExpenses() + EconomyManager.getLatestHealthExpenses()) + EconomyManager.getLatestOpExpenses())));
westernStatesButton.setInvokeFunction(westernManagerA);
westernStatesButton.setName("_westernStatesButton");
westernStatesButton.addToInputManager();
centralStatesButton.setInvokeFunction(centralManagerA);
centralStatesButton.setName("_centralStatesButton");
centralStatesButton.addToInputManager();
easternStatesButton.setInvokeFunction(easternManagerA);
easternStatesButton.setName("_easternStatesButton");
easternStatesButton.addToInputManager();
stop();
}
function frame7(){
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
s = 0;
while (s < 22) {
this[("mod" + s)].text = "";
this[("immune" + s)].text = "";
this[("healthy" + s)].text = "";
this[("infected" + s)].text = "";
this[("infection" + s)].visible = false;
this[("findState" + s)].visible = false;
s++;
};
currentList = RegionManager.getWesternRegions();
i = 0;
while (i < currentList.length) {
currentString = new String(currentList[i].getRegionName());
this[("mod" + i)].text = currentString.toUpperCase();
this[("immune" + i)].text = ("$" + Helpers.addCommas(currentList[i].getLastExpenses()));
this[("healthy" + i)].text = ("$" + Helpers.addCommas(currentList[i].getLastRevenue()));
this[("infected" + i)].text = ("$" + Helpers.addCommas((currentList[i].getLastRevenue() - currentList[i].getLastExpenses())));
this[("infection" + i)].visible = true;
this[("findState" + i)].visible = true;
this[("findState" + i)].setRegion(currentList[i].getRegionName());
this[("findState" + i)].setName(("_findStateButton" + i));
this[("findState" + i)].addToInputManager();
if ((currentList[i].getOldRevenue() - currentList[i].getOldExpenses()) < (currentList[i].getLastRevenue() - currentList[i].getLastExpenses())){
this[("infection" + i)].gotoAndStop(4);
};
if ((currentList[i].getOldRevenue() - currentList[i].getOldExpenses()) > (currentList[i].getLastRevenue() - currentList[i].getLastExpenses())){
this[("infection" + i)].gotoAndStop(5);
};
if ((currentList[i].getOldRevenue() - currentList[i].getOldExpenses()) == (currentList[i].getLastRevenue() - currentList[i].getLastExpenses())){
this[("infection" + i)].gotoAndStop(1);
};
i++;
};
overviewButton.setInvokeFunction(overviewManagerB);
overviewButton.setName("_overviewButton");
overviewButton.addToInputManager();
centralStatesButton.setInvokeFunction(centralManagerB);
centralStatesButton.setName("_centralStatesButton");
centralStatesButton.addToInputManager();
easternStatesButton.setInvokeFunction(easternManagerB);
easternStatesButton.setName("_easternStatesButton");
easternStatesButton.addToInputManager();
stop();
}
public function westernManagerA():void{
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(7);
}
public function westernManagerC():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(7);
}
public function westernManagerD():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
gotoAndStop(7);
}
public function easternManagerA():void{
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(9);
}
public function easternManagerB():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(9);
}
public function easternManagerC():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(9);
}
public function centralManagerA():void{
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(8);
}
public function centralManagerB():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(8);
}
public function centralManagerD():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
gotoAndStop(8);
}
public function overviewManagerB():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(6);
}
public function overviewManagerC():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(6);
}
public function overviewManagerD():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
gotoAndStop(6);
}
}
}//package
Section 250
//FindTarget (FindTarget)
package {
import GUI.IACVOBJECTS.*;
public dynamic class FindTarget extends GenericButton {
}
}//package
Section 251
//FloridaButton (FloridaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class FloridaButton extends RegionButton {
}
}//package
Section 252
//GeorgiaButton (GeorgiaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class GeorgiaButton extends RegionButton {
}
}//package
Section 253
//GlobexWebsiteButton (GlobexWebsiteButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class GlobexWebsiteButton extends GenericButton {
}
}//package
Section 254
//HandMasks (HandMasks)
package {
import GUI.IACVOBJECTS.*;
public dynamic class HandMasks extends OperationButton {
}
}//package
Section 255
//hardDifficultyButton (hardDifficultyButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class hardDifficultyButton extends GenericButton {
}
}//package
Section 256
//HardGameConditions (HardGameConditions)
package {
import flash.display.*;
import GUI.*;
public dynamic class HardGameConditions extends MovieClip {
public var continueButton:introContinueButton;
public function HardGameConditions(){
addFrameScript(0, frame1, 6, frame7);
}
public function closeWindow():void{
InputManager.removeTempIacvObject("_gameConditionsButton");
GuiManager.closePrimaryGui();
}
function frame7(){
stop();
GuiManager.cleanupPrimaryGui();
}
function frame1(){
continueButton.setInvokeFunction(closeWindow);
continueButton.setName("_gameConditionsButton");
continueButton.addToInputManager();
stop();
}
}
}//package
Section 257
//HospitalStatusButton (HospitalStatusButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class HospitalStatusButton extends GenericButton {
}
}//package
Section 258
//IdahoButton (IdahoButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class IdahoButton extends RegionButton {
}
}//package
Section 259
//IllinoisButton (IllinoisButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class IllinoisButton extends RegionButton {
}
}//package
Section 260
//IndianaButton (IndianaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class IndianaButton extends RegionButton {
}
}//package
Section 261
//InfoCampaign (InfoCampaign)
package {
import GUI.IACVOBJECTS.*;
public dynamic class InfoCampaign extends OperationButton {
}
}//package
Section 262
//introContinueButton (introContinueButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class introContinueButton extends GenericButton {
}
}//package
Section 263
//IowaButton (IowaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class IowaButton extends RegionButton {
}
}//package
Section 264
//JonWebsiteButton (JonWebsiteButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class JonWebsiteButton extends GenericButton {
}
}//package
Section 265
//KansasButton (KansasButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class KansasButton extends RegionButton {
}
}//package
Section 266
//KentuckyButton (KentuckyButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class KentuckyButton extends RegionButton {
}
}//package
Section 267
//KongIntroButton (KongIntroButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class KongIntroButton extends GenericButton {
}
}//package
Section 268
//KongregateButton (KongregateButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class KongregateButton extends GenericButton {
}
}//package
Section 269
//LargeButton (LargeButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class LargeButton extends GenericButton {
}
}//package
Section 270
//LouisianaButton (LouisianaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class LouisianaButton extends RegionButton {
}
}//package
Section 271
//MaineButton (MaineButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MaineButton extends RegionButton {
}
}//package
Section 272
//MainMenuBackButton (MainMenuBackButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MainMenuBackButton extends GenericButton {
}
}//package
Section 273
//MainMenuCredits (MainMenuCredits)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MainMenuCredits extends GenericButton {
}
}//package
Section 274
//MainMenuDRS (MainMenuDRS)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MainMenuDRS extends GenericButton {
}
}//package
Section 275
//MainMenuInstructions (MainMenuInstructions)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MainMenuInstructions extends GenericButton {
}
}//package
Section 276
//MainMenuStartGame (MainMenuStartGame)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MainMenuStartGame extends GenericButton {
}
}//package
Section 277
//MainMenuViewGuide (MainMenuViewGuide)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MainMenuViewGuide extends GenericButton {
}
}//package
Section 278
//MainMusicButton (MainMusicButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MainMusicButton extends GenericButton {
}
}//package
Section 279
//MainSoundButton (MainSoundButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MainSoundButton extends GenericButton {
}
}//package
Section 280
//MainTheme (MainTheme)
package {
import SOUND.*;
public dynamic class MainTheme extends MusicFile {
}
}//package
Section 281
//MainTipsButton (MainTipsButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MainTipsButton extends GenericButton {
}
}//package
Section 282
//MarylandButton (MarylandButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MarylandButton extends RegionButton {
}
}//package
Section 283
//MassachusettsButton (MassachusettsButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MassachusettsButton extends RegionButton {
}
}//package
Section 284
//MediaWindow (MediaWindow)
package {
import flash.display.*;
import GUI.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import flash.text.*;
import INFORMATIONOBJECTS.BUTTONCONTAINERS.*;
public dynamic class MediaWindow extends MovieClip {
public var cost1:TextField;
public var cost2:TextField;
public var cost0:TextField;
public var censorLock:MovieClip;
public var clickout1:MovieClip;
public var fearContainer:FearMediaContainer;
public var clickout0:MovieClip;
public var spinContainer:SpinMediaContainer;
public var closeWindowButton:BackCloseWindowButton;
public var totalFunds:TextField;
public var s:int;
public var censorContainer:CensorMediaContainer;
public function MediaWindow(){
addFrameScript(5, frame6, 11, frame12);
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_fearMediaButton");
InputManager.removeTempIacvObject("_spinMediaButton");
InputManager.removeTempIacvObject("_censorMediaButton");
GuiManager.cleanupPrimaryGui();
}
function frame6(){
s = 0;
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
s = EconomyManager.COST_MEDIA_CENSOR;
s = (s + (s * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
cost0.text = ("$" + Helpers.addCommas(s));
censorContainer.setup(s, CountryManager.getCensorOp(), censorContainer.coreButton, true);
s = EconomyManager.COST_MEDIA_SPIN;
s = (s + (s * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
cost1.text = ("$" + Helpers.addCommas(s));
spinContainer.setup(s, CountryManager.getSpinOp(), spinContainer.coreButton, true);
s = EconomyManager.COST_MEDIA_FEAR;
s = (s + (s * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
cost2.text = ("$" + Helpers.addCommas(s));
fearContainer.setup(s, CountryManager.getFearOp(), fearContainer.coreButton, true);
totalFunds.text = (("$" + Helpers.addCommas(EconomyManager.getCurrentFunds())) + " FUNDS AVAILABLE");
if (GameManager.getGovType() == GameManager.GOV_OPEN){
censorLock.visible = true;
} else {
censorLock.visible = false;
};
stop();
}
}
}//package
Section 285
//MediumHalfButton (MediumHalfButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MediumHalfButton extends GenericButton {
}
}//package
Section 286
//MenuMusic (MenuMusic)
package {
import SOUND.*;
public dynamic class MenuMusic extends MusicFile {
}
}//package
Section 287
//MenuWindow (MenuWindow)
package {
import flash.display.*;
import SOUND.*;
import flash.events.*;
import GUI.*;
import flash.geom.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MenuWindow extends MovieClip {
public var trophy0:MovieClip;
public var trophy1:MovieClip;
public var trophy4:MovieClip;
public var trophy3:MovieClip;
public var trophy2:MovieClip;
public var gameGuideButton:LargeButton;
public var mainMenuButton:LargeButton;
public var clickout1:MovieClip;
public var soundButton:MediumHalfButton;
public var clickout0:MovieClip;
public var i:int;
public var musicStatus:MovieClip;
public var closeWindowButton:BackCloseWindowButton;
public var tipStatus:MovieClip;
public var trophiesButton:LargeButton;
public var tipButton:MediumHalfButton;
public var musicButton:MediumHalfButton;
public var Iceberg:MovieClip;
public var soundStatus:MovieClip;
public function MenuWindow(){
addFrameScript(5, frame6, 6, frame7, 12, frame13);
}
public function guideManager():void{
try {
navigateToURL(new URLRequest("http://www.kongregate.com/pages/pandemic-swine-flu-guide?gamereferral=Pandemic: American Swine"), "_blank");
} catch(error:Error) {
};
}
public function menuManager():void{
GameManager.resetGame();
}
function frame7(){
i = 0;
while (i < 5) {
this[("trophy" + i)].trophyShadow.visible = !(GameManager.getTrophyStatus(i));
i++;
};
if (EngineCore.getEngineCore().aprilFoolsOn == true){
Iceberg.gotoAndStop(2);
};
stop();
}
function frame13(){
stop();
GuiManager.cleanupPrimaryGui();
}
public function trophyManager():void{
InputManager.removeTempIacvObject("_mainMenuButton");
InputManager.removeTempIacvObject("_trophyButton");
InputManager.removeTempIacvObject("_gameGuideButton");
InputManager.removeTempIacvObject("_musicButton");
InputManager.removeTempIacvObject("_soundButton");
InputManager.removeTempIacvObject("_tipButton");
gotoAndStop(7);
}
public function tipManager():void{
GameManager.setTips(!(GameManager.getTips()));
tipStatus.gotoAndStop((int(!(GameManager.getTips())) + 1));
}
function frame6(){
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
musicStatus.gotoAndStop((int(SoundManager.getInstance().isChannelMute(SoundManager.CHANNEL_MUSIC)) + 1));
soundStatus.gotoAndStop((int(SoundManager.getInstance().isChannelMute(SoundManager.CHANNEL_SOUND)) + 1));
tipStatus.gotoAndStop((int(!(GameManager.getTips())) + 1));
mainMenuButton.setInvokeFunction(menuManager);
mainMenuButton.setName("_mainMenuButton");
mainMenuButton.addToInputManager();
trophiesButton.setInvokeFunction(trophyManager);
trophiesButton.setName("_trophyButton");
trophiesButton.addToInputManager();
gameGuideButton.setInvokeFunction(guideManager);
gameGuideButton.setName("_gameGuideButton");
gameGuideButton.addToInputManager();
musicButton.setInvokeFunction(musicManager);
musicButton.setName("_musicButton");
musicButton.addToInputManager();
soundButton.setInvokeFunction(soundManager);
soundButton.setName("_soundButton");
soundButton.addToInputManager();
tipButton.setInvokeFunction(tipManager);
tipButton.setName("_tipButton");
tipButton.addToInputManager();
stop();
}
public function musicManager():void{
SoundManager.getInstance().muteChannel(SoundManager.CHANNEL_MUSIC, !(SoundManager.getInstance().isChannelMute(SoundManager.CHANNEL_MUSIC)));
musicStatus.gotoAndStop((int(SoundManager.getInstance().isChannelMute(SoundManager.CHANNEL_MUSIC)) + 1));
}
public function soundManager():void{
SoundManager.getInstance().muteChannel(SoundManager.CHANNEL_SOUND, !(SoundManager.getInstance().isChannelMute(SoundManager.CHANNEL_SOUND)));
soundStatus.gotoAndStop((int(SoundManager.getInstance().isChannelMute(SoundManager.CHANNEL_SOUND)) + 1));
}
}
}//package
Section 288
//MexicoButton (MexicoButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MexicoButton extends RegionButton {
}
}//package
Section 289
//MichiganButton (MichiganButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MichiganButton extends RegionButton {
}
}//package
Section 290
//MilitarySupport (MilitarySupport)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MilitarySupport extends OperationButton {
}
}//package
Section 291
//MinnesotaButton (MinnesotaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MinnesotaButton extends RegionButton {
}
}//package
Section 292
//MississippiButton (MississippiButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MississippiButton extends RegionButton {
}
}//package
Section 293
//MissouriButton (MissouriButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MissouriButton extends RegionButton {
}
}//package
Section 294
//MontanaButton (MontanaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class MontanaButton extends RegionButton {
}
}//package
Section 295
//MouseClick (MouseClick)
package {
import SOUND.*;
public dynamic class MouseClick extends SoundFile {
}
}//package
Section 296
//NationInfectionRateIndicator (NationInfectionRateIndicator)
package {
import flash.display.*;
public dynamic class NationInfectionRateIndicator extends MovieClip {
public function NationInfectionRateIndicator(){
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 297
//NationOperationTutorial (NationOperationTutorial)
package {
import flash.display.*;
import GUI.*;
public dynamic class NationOperationTutorial extends MovieClip {
public var nextScreen:PlayTutorialButton;
public var prevScreen:PlayTutorialButton;
public var stopTut:StopTutorialButton;
public function NationOperationTutorial(){
addFrameScript(5, frame6, 6, frame7, 7, frame8, 8, frame9);
}
public function nextStep():void{
if (this.currentFrame < 10){
InputManager.removeTempIacvObject("_prevTutScreen");
InputManager.removeTempIacvObject("_stopTut");
InputManager.removeTempIacvObject("_nextTutScreen");
this.gotoAndStop((this.currentFrame + 1));
};
}
function frame7(){
prevScreen.visible = true;
nextScreen.visible = true;
prevScreen.setInvokeFunction(prevStep);
prevScreen.setName("_prevTutScreen");
prevScreen.addToInputManager();
stopTut.setInvokeFunction(stopTutorial);
stopTut.setName("_stopTut");
stopTut.addToInputManager();
nextScreen.setInvokeFunction(nextStep);
nextScreen.setName("_nextTutScreen");
nextScreen.addToInputManager();
stop();
}
function frame8(){
prevScreen.visible = true;
nextScreen.visible = true;
prevScreen.setInvokeFunction(prevStep);
prevScreen.setName("_prevTutScreen");
prevScreen.addToInputManager();
stopTut.setInvokeFunction(stopTutorial);
stopTut.setName("_stopTut");
stopTut.addToInputManager();
nextScreen.setInvokeFunction(nextStep);
nextScreen.setName("_nextTutScreen");
nextScreen.addToInputManager();
stop();
}
function frame6(){
stop();
prevScreen.visible = false;
stopTut.setInvokeFunction(stopTutorial);
stopTut.setName("_stopTut");
stopTut.addToInputManager();
nextScreen.setInvokeFunction(nextStep);
nextScreen.setName("_nextTutScreen");
nextScreen.addToInputManager();
stop();
}
function frame9(){
nextScreen.visible = false;
prevScreen.setInvokeFunction(prevStep);
prevScreen.setName("_prevTutScreen");
prevScreen.addToInputManager();
stopTut.setInvokeFunction(stopTutorial);
stopTut.setName("_stopTut");
stopTut.addToInputManager();
stop();
}
public function stopTutorial():void{
GuiManager.returnToTutorials();
}
public function prevStep():void{
if (this.currentFrame > 6){
InputManager.removeTempIacvObject("_prevTutScreen");
InputManager.removeTempIacvObject("_stopTut");
InputManager.removeTempIacvObject("_nextTutScreen");
this.gotoAndStop((this.currentFrame - 1));
};
}
}
}//package
Section 298
//NationWindow (NationWindow)
package {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import flash.events.*;
import GUI.*;
import flash.geom.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import INFORMATIONOBJECTS.BUTTONCONTAINERS.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class NationWindow extends MovieClip {
public var immune0:TextField;
public var immune1:TextField;
public var immune2:TextField;
public var immune3:TextField;
public var immune4:TextField;
public var immune5:TextField;
public var immune6:TextField;
public var immune7:TextField;
public var immune9:TextField;
public var clickout1:MovieClip;
public var immune8:TextField;
public var clickout0:MovieClip;
public var infectedNumbers:TextField;
public var immuneNumbers:TextField;
public var vaccineContainer:VaccineContainer;
public var i:int;
public var q:int;
public var healthy10:TextField;
public var healthy11:TextField;
public var healthy12:TextField;
public var healthy13:TextField;
public var healthy14:TextField;
public var healthy16:TextField;
public var healthy17:TextField;
public var healthy18:TextField;
public var healthy15:TextField;
public var infectedPerc:TextField;
public var s:int;
public var healthy19:TextField;
public var immuneBar:MovieClip;
public var infected10:TextField;
public var infected11:TextField;
public var infected12:TextField;
public var infected13:TextField;
public var infected14:TextField;
public var infected15:TextField;
public var infected16:TextField;
public var infected17:TextField;
public var infected18:TextField;
public var mod10:TextField;
public var mod12:TextField;
public var mod14:TextField;
public var mod15:TextField;
public var mod16:TextField;
public var mod17:TextField;
public var mod18:TextField;
public var healthy21:TextField;
public var mod11:TextField;
public var infected21:TextField;
public var mod19:TextField;
public var mod13:TextField;
public var healthy20:TextField;
public var infected19:TextField;
public var mod20:TextField;
public var mod21:TextField;
public var infected20:TextField;
public var findState0:FindStateButton;
public var findState1:FindStateButton;
public var findState2:FindStateButton;
public var findState3:FindStateButton;
public var findState4:FindStateButton;
public var findState5:FindStateButton;
public var findState6:FindStateButton;
public var findState7:FindStateButton;
public var findState8:FindStateButton;
public var findState9:FindStateButton;
public var deadBar:MovieClip;
public var policiesContainer:PoliciesContainer;
public var infection10:NationInfectionRateIndicator;
public var infection18:NationInfectionRateIndicator;
public var infection19:NationInfectionRateIndicator;
public var infection13:NationInfectionRateIndicator;
public var infection15:NationInfectionRateIndicator;
public var infection12:NationInfectionRateIndicator;
public var infection14:NationInfectionRateIndicator;
public var infection16:NationInfectionRateIndicator;
public var deadNumbers:TextField;
public var infection20:NationInfectionRateIndicator;
public var infection21:NationInfectionRateIndicator;
public var infection11:NationInfectionRateIndicator;
public var healthyBar:MovieClip;
public var infection17:NationInfectionRateIndicator;
public var researchLock:MovieClip;
public var totalFunds:TextField;
public var mod0:TextField;
public var mod1:TextField;
public var mod2:TextField;
public var mod3:TextField;
public var mod4:TextField;
public var mod5:TextField;
public var mod6:TextField;
public var mod7:TextField;
public var mod8:TextField;
public var mod9:TextField;
public var deadPerc:TextField;
public var currentList:Array;
public var immune10:TextField;
public var immune11:TextField;
public var immune12:TextField;
public var immune13:TextField;
public var immune14:TextField;
public var immune15:TextField;
public var immune16:TextField;
public var immune17:TextField;
public var immune18:TextField;
public var immune19:TextField;
public var healthyNumbers:TextField;
public var centralStatesButton:CentralStatesButton;
public var immune20:TextField;
public var immune21:TextField;
public var cost0:TextField;
public var cost1:TextField;
public var cost2:TextField;
public var cost3:TextField;
public var immunePerc:TextField;
public var overviewButton:OverviewButton;
public var healthyPerc:TextField;
public var deportContainer:DeportContainer;
public var healthy0:TextField;
public var healthy1:TextField;
public var healthy2:TextField;
public var healthy3:TextField;
public var healthy4:TextField;
public var easternStatesButton:EasternStatesButton;
public var healthy8:TextField;
public var healthy9:TextField;
public var healthy5:TextField;
public var westernStatesButton:WesternStatesButton;
public var healthy6:TextField;
public var healthy7:TextField;
public var findState10:FindStateButton;
public var findState11:FindStateButton;
public var findState12:FindStateButton;
public var findState13:FindStateButton;
public var findState15:FindStateButton;
public var findState17:FindStateButton;
public var findState19:FindStateButton;
public var findState14:FindStateButton;
public var findState16:FindStateButton;
public var findState20:FindStateButton;
public var findState21:FindStateButton;
public var policiesLock:MovieClip;
public var findState18:FindStateButton;
public var infection0:NationInfectionRateIndicator;
public var infection1:NationInfectionRateIndicator;
public var infection2:NationInfectionRateIndicator;
public var infection4:NationInfectionRateIndicator;
public var infection5:NationInfectionRateIndicator;
public var infection6:NationInfectionRateIndicator;
public var infection7:NationInfectionRateIndicator;
public var infection8:NationInfectionRateIndicator;
public var infection9:NationInfectionRateIndicator;
public var infection3:NationInfectionRateIndicator;
public var currentString:String;
public var infoLock:MovieClip;
public var victoryPanel:MovieClip;
public var infected0:TextField;
public var infected1:TextField;
public var infected2:TextField;
public var infected3:TextField;
public var infected4:TextField;
public var infected6:TextField;
public var infected7:TextField;
public var infected8:TextField;
public var infected9:TextField;
public var infected5:TextField;
public var infoContainer:InfoContainer;
public var infectedBar:MovieClip;
public function NationWindow(){
addFrameScript(4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 14, frame15);
}
function frame15(){
stop();
InputManager.removeTempIacvObject("_deportInfectedButton");
InputManager.removeTempIacvObject("_vaccineButton");
InputManager.removeTempIacvObject("_infoCampButton");
InputManager.removeTempIacvObject("_policiesButton");
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
q = 0;
while (q < 10) {
s = 0;
while (s < 22) {
InputManager.removeTempIacvObject(("findState" + s));
s++;
};
s = 0;
q++;
};
GuiManager.cleanupPrimaryGui();
}
function frame8(){
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
s = 0;
while (s < 22) {
this[("mod" + s)].text = "";
this[("immune" + s)].text = "";
this[("healthy" + s)].text = "";
this[("infected" + s)].text = "";
this[("infection" + s)].visible = false;
this[("findState" + s)].visible = false;
s++;
};
currentList = RegionManager.getCentralRegions();
i = 0;
while (i < currentList.length) {
currentString = new String(currentList[i].getRegionName());
this[("mod" + i)].text = currentString.toUpperCase();
this[("immune" + i)].text = currentList[i].getImmunePopTotStr();
this[("healthy" + i)].text = currentList[i].getHealthyPopTotStr();
this[("infected" + i)].text = currentList[i].getInfectedPopTotStr();
this[("infection" + i)].visible = true;
this[("findState" + i)].visible = true;
this[("findState" + i)].setRegion(currentList[i].getRegionName());
this[("findState" + i)].setName(("_findStateButton" + i));
this[("findState" + i)].addToInputManager();
if (currentList[i].getOldInfectionRatio() < currentList[i].getLastInfectionRatio()){
this[("infection" + i)].gotoAndStop(2);
};
if (currentList[i].getOldInfectionRatio() > currentList[i].getLastInfectionRatio()){
this[("infection" + i)].gotoAndStop(3);
};
if (currentList[i].getOldInfectionRatio() == currentList[i].getLastInfectionRatio()){
this[("infection" + i)].gotoAndStop(1);
};
i++;
};
overviewButton.setInvokeFunction(overviewManagerC);
overviewButton.setName("_overviewButton");
overviewButton.addToInputManager();
westernStatesButton.setInvokeFunction(westernManagerC);
westernStatesButton.setName("_westernStatesButton");
westernStatesButton.addToInputManager();
easternStatesButton.setInvokeFunction(easternManagerC);
easternStatesButton.setName("_easternStatesButton");
easternStatesButton.addToInputManager();
stop();
}
function frame5(){
s = 0;
i = 0;
}
function frame9(){
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
s = 0;
while (s < 22) {
this[("mod" + s)].text = "";
this[("immune" + s)].text = "";
this[("healthy" + s)].text = "";
this[("infected" + s)].text = "";
this[("infection" + s)].visible = false;
this[("findState" + s)].visible = false;
s++;
};
currentList = RegionManager.getEasternRegions();
i = 0;
while (i < currentList.length) {
currentString = new String(currentList[i].getRegionName());
this[("mod" + i)].text = currentString.toUpperCase();
this[("immune" + i)].text = currentList[i].getImmunePopTotStr();
this[("healthy" + i)].text = currentList[i].getHealthyPopTotStr();
this[("infected" + i)].text = currentList[i].getInfectedPopTotStr();
this[("infection" + i)].visible = true;
this[("findState" + i)].visible = true;
this[("findState" + i)].setRegion(currentList[i].getRegionName());
this[("findState" + i)].setName(("_findStateButton" + i));
this[("findState" + i)].addToInputManager();
if (currentList[i].getOldInfectionRatio() < currentList[i].getLastInfectionRatio()){
this[("infection" + i)].gotoAndStop(2);
};
if (currentList[i].getOldInfectionRatio() > currentList[i].getLastInfectionRatio()){
this[("infection" + i)].gotoAndStop(3);
};
if (currentList[i].getOldInfectionRatio() == currentList[i].getLastInfectionRatio()){
this[("infection" + i)].gotoAndStop(1);
};
i++;
};
overviewButton.setInvokeFunction(overviewManagerD);
overviewButton.setName("_overviewButton");
overviewButton.addToInputManager();
westernStatesButton.setInvokeFunction(westernManagerD);
westernStatesButton.setName("_westernStatesButton");
westernStatesButton.addToInputManager();
centralStatesButton.setInvokeFunction(centralManagerD);
centralStatesButton.setName("_centralStatesButton");
centralStatesButton.addToInputManager();
stop();
}
function frame6(){
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
immuneNumbers.text = Helpers.addCommas(CountryManager.getImmunePop());
healthyNumbers.text = Helpers.addCommas(CountryManager.getHealthyPop());
infectedNumbers.text = Helpers.addCommas(CountryManager.getInfectedPop());
deadNumbers.text = Helpers.addCommas(CountryManager.getDeadPop());
s = (((CountryManager.getImmunePop() + CountryManager.getHealthyPop()) + CountryManager.getInfectedPop()) + CountryManager.getDeadPop());
immuneBar.fillBar.scaleX = (CountryManager.getImmunePop() / s);
healthyBar.fillBar.scaleX = (CountryManager.getHealthyPop() / s);
infectedBar.fillBar.scaleX = (CountryManager.getInfectedPop() / s);
deadBar.fillBar.scaleX = (CountryManager.getDeadPop() / s);
immunePerc.text = (Math.floor(((CountryManager.getImmunePop() / s) * 100)) + "%");
healthyPerc.text = (Math.floor(((CountryManager.getHealthyPop() / s) * 100)) + "%");
infectedPerc.text = (Math.floor(((CountryManager.getInfectedPop() / s) * 100)) + "%");
deadPerc.text = (Math.floor(((CountryManager.getDeadPop() / s) * 100)) + "%");
if (!CountryManager.getVaccineStatus()){
victoryPanel.vaccineBar.fillBar.scaleX = CountryManager.getVaccineProgress();
} else {
victoryPanel.gotoAndStop(2);
};
victoryPanel.hospitalBar.fillbar.gotoAndStop((CountryManager.getOpenHospitals() + 1));
if (CountryManager.getVaccineStatus()){
researchLock.visible = true;
} else {
researchLock.visible = false;
};
if (GameManager.getGovType() != GameManager.GOV_OPEN){
infoLock.visible = true;
} else {
infoLock.visible = false;
};
if (GameManager.getGovType() != GameManager.GOV_CLOSED){
policiesLock.visible = true;
} else {
policiesLock.visible = false;
};
totalFunds.text = (("$" + Helpers.addCommas(EconomyManager.getCurrentFunds())) + " FUNDS AVAILABLE");
s = EconomyManager.COST_DEPORT_INFECTED_BASE;
s = (s + (EconomyManager.COST_DEPORT_INFECTED_INFECTED * CountryManager.getInfectedPop()));
s = (s + (s * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
cost0.text = ("$" + Helpers.addCommas(s));
deportContainer.setup(s, CountryManager.getDeportingOp(), deportContainer.coreButton);
s = EconomyManager.COST_VACCINE_RESEARCH_BASE;
s = (s + (EconomyManager.COST_VACCINE_RESEARCH_INFECTED * CountryManager.getInfectedPop()));
s = (s + (s * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
cost1.text = ("$" + Helpers.addCommas(s));
vaccineContainer.setup(s, CountryManager.getVaccineOp(), vaccineContainer.coreButton);
s = EconomyManager.COST_INFO_CAMPAIGN_BASE;
s = (s + (s * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
cost2.text = ("$" + Helpers.addCommas(s));
infoContainer.setup(s, CountryManager.getInfoCampOp(), infoContainer.coreButton, true);
s = EconomyManager.COST_EXTREME_POLICIES_BASE;
s = (s + (EconomyManager.COST_EXTREME_POLICIES_HEALTHY * CountryManager.getHealthyPop()));
s = (s + (EconomyManager.COST_EXTREME_POLICIES_INFECTED * CountryManager.getInfectedPop()));
s = (s + (s * (PanicManager.getPanic() / EconomyManager.PANIC_COST_BONUS)));
cost3.text = ("$" + Helpers.addCommas(s));
policiesContainer.setup(s, CountryManager.getPoliciesOp(), policiesContainer.coreButton);
westernStatesButton.setInvokeFunction(westernManagerA);
westernStatesButton.setName("_westernStatesButton");
westernStatesButton.addToInputManager();
centralStatesButton.setInvokeFunction(centralManagerA);
centralStatesButton.setName("_centralStatesButton");
centralStatesButton.addToInputManager();
easternStatesButton.setInvokeFunction(easternManagerA);
easternStatesButton.setName("_easternStatesButton");
easternStatesButton.addToInputManager();
stop();
}
function frame7(){
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
s = 0;
while (s < 22) {
this[("mod" + s)].text = "";
this[("immune" + s)].text = "";
this[("healthy" + s)].text = "";
this[("infected" + s)].text = "";
this[("infection" + s)].visible = false;
this[("findState" + s)].visible = false;
s++;
};
currentList = RegionManager.getWesternRegions();
i = 0;
while (i < currentList.length) {
currentString = new String(currentList[i].getRegionName());
this[("mod" + i)].text = currentString.toUpperCase();
this[("immune" + i)].text = currentList[i].getImmunePopTotStr();
this[("healthy" + i)].text = currentList[i].getHealthyPopTotStr();
this[("infected" + i)].text = currentList[i].getInfectedPopTotStr();
this[("infection" + i)].visible = true;
this[("findState" + i)].visible = true;
this[("findState" + i)].setRegion(currentList[i].getRegionName());
this[("findState" + i)].setName(("_findStateButton" + i));
this[("findState" + i)].addToInputManager();
if (currentList[i].getOldInfectionRatio() < currentList[i].getLastInfectionRatio()){
this[("infection" + i)].gotoAndStop(2);
};
if (currentList[i].getOldInfectionRatio() > currentList[i].getLastInfectionRatio()){
this[("infection" + i)].gotoAndStop(3);
};
if (currentList[i].getOldInfectionRatio() == currentList[i].getLastInfectionRatio()){
this[("infection" + i)].gotoAndStop(1);
};
i++;
};
overviewButton.setInvokeFunction(overviewManagerB);
overviewButton.setName("_overviewButton");
overviewButton.addToInputManager();
centralStatesButton.setInvokeFunction(centralManagerB);
centralStatesButton.setName("_centralStatesButton");
centralStatesButton.addToInputManager();
easternStatesButton.setInvokeFunction(easternManagerB);
easternStatesButton.setName("_easternStatesButton");
easternStatesButton.addToInputManager();
stop();
}
public function westernManagerA():void{
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(7);
}
public function westernManagerC():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(7);
}
public function westernManagerD():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
gotoAndStop(7);
}
public function easternManagerA():void{
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(9);
}
public function easternManagerC():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(9);
}
public function easternManagerB():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(9);
}
public function centralManagerA():void{
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(8);
}
public function centralManagerB():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(8);
}
public function overviewManagerB():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_centralStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(6);
}
public function overviewManagerC():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_easternStatesButton");
gotoAndStop(6);
}
public function overviewManagerD():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
gotoAndStop(6);
}
public function centralManagerD():void{
InputManager.removeTempIacvObject("_overviewButton");
InputManager.removeTempIacvObject("_westernStatesButton");
InputManager.removeTempIacvObject("_centralStatesButton");
gotoAndStop(8);
}
}
}//package
Section 299
//NebraskaButton (NebraskaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class NebraskaButton extends RegionButton {
}
}//package
Section 300
//NeutronStrike (NeutronStrike)
package {
import GUI.IACVOBJECTS.*;
public dynamic class NeutronStrike extends OperationButton {
}
}//package
Section 301
//NevadaButton (NevadaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class NevadaButton extends RegionButton {
}
}//package
Section 302
//NewHampshireButton (NewHampshireButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class NewHampshireButton extends RegionButton {
}
}//package
Section 303
//NewJerseyButton (NewJerseyButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class NewJerseyButton extends RegionButton {
}
}//package
Section 304
//NewMexicoButton (NewMexicoButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class NewMexicoButton extends RegionButton {
}
}//package
Section 305
//NewsReportSound (NewsReportSound)
package {
import SOUND.*;
public dynamic class NewsReportSound extends SoundFile {
}
}//package
Section 306
//NewYorkButton (NewYorkButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class NewYorkButton extends RegionButton {
}
}//package
Section 307
//normalDifficultyButton (normalDifficultyButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class normalDifficultyButton extends GenericButton {
}
}//package
Section 308
//NormalGameConditions (NormalGameConditions)
package {
import flash.display.*;
import GUI.*;
public dynamic class NormalGameConditions extends MovieClip {
public var continueButton:introContinueButton;
public function NormalGameConditions(){
addFrameScript(0, frame1, 6, frame7);
}
public function closeWindow():void{
InputManager.removeTempIacvObject("_gameConditionsButton");
GuiManager.closePrimaryGui();
}
function frame7(){
stop();
GuiManager.cleanupPrimaryGui();
}
function frame1(){
continueButton.setInvokeFunction(closeWindow);
continueButton.setName("_gameConditionsButton");
continueButton.addToInputManager();
stop();
}
}
}//package
Section 309
//NorthCarolinaButton (NorthCarolinaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class NorthCarolinaButton extends RegionButton {
}
}//package
Section 310
//NorthDakotaButton (NorthDakotaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class NorthDakotaButton extends RegionButton {
}
}//package
Section 311
//NuclearStrike (NuclearStrike)
package {
import GUI.IACVOBJECTS.*;
public dynamic class NuclearStrike extends OperationButton {
}
}//package
Section 312
//NukeParticle0 (NukeParticle0)
package {
import INFORMATIONOBJECTS.*;
public dynamic class NukeParticle0 extends NukeParticle {
}
}//package
Section 313
//NukeParticle1 (NukeParticle1)
package {
import INFORMATIONOBJECTS.*;
public dynamic class NukeParticle1 extends NukeParticle {
}
}//package
Section 314
//NukeParticle2 (NukeParticle2)
package {
import INFORMATIONOBJECTS.*;
public dynamic class NukeParticle2 extends NukeParticle {
}
}//package
Section 315
//NukeParticle3 (NukeParticle3)
package {
import INFORMATIONOBJECTS.*;
public dynamic class NukeParticle3 extends NukeParticle {
}
}//package
Section 316
//OhioButton (OhioButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class OhioButton extends RegionButton {
}
}//package
Section 317
//OklahomaButton (OklahomaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class OklahomaButton extends RegionButton {
}
}//package
Section 318
//OpenGovButton (OpenGovButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class OpenGovButton extends GenericButton {
}
}//package
Section 319
//OpenWindow (OpenWindow)
package {
import SOUND.*;
public dynamic class OpenWindow extends SoundFile {
}
}//package
Section 320
//OperationStatusIndicator (OperationStatusIndicator)
package {
import flash.display.*;
public dynamic class OperationStatusIndicator extends MovieClip {
public var opActive:MovieClip;
public var opDisabled:MovieClip;
public var opRecharge:MovieClip;
}
}//package
Section 321
//OptionsButton (OptionsButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class OptionsButton extends GenericButton {
}
}//package
Section 322
//OregonButton (OregonButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class OregonButton extends RegionButton {
}
}//package
Section 323
//OverviewButton (OverviewButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class OverviewButton extends GenericButton {
}
}//package
Section 324
//PandemicIIButton (PandemicIIButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class PandemicIIButton extends GenericButton {
}
}//package
Section 325
//PanicMediaTutorial (PanicMediaTutorial)
package {
import flash.display.*;
import GUI.*;
public dynamic class PanicMediaTutorial extends MovieClip {
public var nextScreen:PlayTutorialButton;
public var prevScreen:PlayTutorialButton;
public var stopTut:StopTutorialButton;
public function PanicMediaTutorial(){
addFrameScript(5, frame6, 6, frame7, 7, frame8);
}
public function nextStep():void{
if (this.currentFrame < 8){
InputManager.removeTempIacvObject("_prevTutScreen");
InputManager.removeTempIacvObject("_stopTut");
InputManager.removeTempIacvObject("_nextTutScreen");
this.gotoAndStop((this.currentFrame + 1));
};
}
function frame7(){
prevScreen.visible = true;
nextScreen.visible = true;
prevScreen.setInvokeFunction(prevStep);
prevScreen.setName("_prevTutScreen");
prevScreen.addToInputManager();
stopTut.setInvokeFunction(stopTutorial);
stopTut.setName("_stopTut");
stopTut.addToInputManager();
nextScreen.setInvokeFunction(nextStep);
nextScreen.setName("_nextTutScreen");
nextScreen.addToInputManager();
stop();
}
function frame8(){
nextScreen.visible = false;
prevScreen.setInvokeFunction(prevStep);
prevScreen.setName("_prevTutScreen");
prevScreen.addToInputManager();
stopTut.setInvokeFunction(stopTutorial);
stopTut.setName("_stopTut");
stopTut.addToInputManager();
stop();
}
function frame6(){
stop();
prevScreen.visible = false;
stopTut.setInvokeFunction(stopTutorial);
stopTut.setName("_stopTut");
stopTut.addToInputManager();
nextScreen.setInvokeFunction(nextStep);
nextScreen.setName("_nextTutScreen");
nextScreen.addToInputManager();
stop();
}
public function stopTutorial():void{
GuiManager.returnToTutorials();
}
public function prevStep():void{
if (this.currentFrame > 6){
InputManager.removeTempIacvObject("_prevTutScreen");
InputManager.removeTempIacvObject("_stopTut");
InputManager.removeTempIacvObject("_nextTutScreen");
this.gotoAndStop((this.currentFrame - 1));
};
}
}
}//package
Section 326
//PanicWindow (PanicWindow)
package {
import INFORMATIONOBJECTS.*;
import flash.display.*;
import flash.events.*;
import GUI.*;
import flash.geom.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class PanicWindow extends MovieClip {
public var clickout1:MovieClip;
public var clickout0:MovieClip;
public var panicFlow:MovieClip;
public var panicSum:Number;
public var s:int;
public var incomeMod:TextField;
public var effect0:MovieClip;
public var effect1:MovieClip;
public var effect2:MovieClip;
public var effect3:MovieClip;
public var effect4:MovieClip;
public var effect5:MovieClip;
public var effect6:MovieClip;
public var effect7:MovieClip;
public var effect8:MovieClip;
public var effect9:MovieClip;
public var findState0:FindStateButton;
public var findState1:FindStateButton;
public var findState2:FindStateButton;
public var findState3:FindStateButton;
public var findState4:FindStateButton;
public var findState5:FindStateButton;
public var findState6:FindStateButton;
public var findState7:FindStateButton;
public var findState8:FindStateButton;
public var findState9:FindStateButton;
public var currentString:String;
public var tempNewsReport:NewsEvent;
public var tempPanic:Number;
public var closeWindowButton:BackCloseWindowButton;
public var mod0:TextField;
public var mod1:TextField;
public var mod2:TextField;
public var mod3:TextField;
public var mod4:TextField;
public var mod5:TextField;
public var mod7:TextField;
public var mod8:TextField;
public var mod9:TextField;
public var mod6:TextField;
public var reportArray:Array;
public var bonus0:TextField;
public var bonus1:TextField;
public var bonus2:TextField;
public var bonus3:TextField;
public var costMod:TextField;
public var bonus6:TextField;
public var bonus7:TextField;
public var bonus8:TextField;
public var bonus9:TextField;
public var bonus4:TextField;
public var bonus5:TextField;
public function PanicWindow(){
addFrameScript(5, frame6, 11, frame12);
}
function frame12(){
stop();
s = 0;
while (s < 22) {
InputManager.removeTempIacvObject(("findState" + s));
s++;
};
GuiManager.cleanupPrimaryGui();
}
function frame6(){
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
incomeMod.text = ("X" + Helpers.roundTo(PanicManager.getPanic(), EconomyManager.PANIC_REVENUE_BONUS, 2, 1));
costMod.text = ("X" + Helpers.roundTo(PanicManager.getPanic(), EconomyManager.PANIC_COST_BONUS, 2, 1));
s = 0;
while (s < 10) {
this[("mod" + s)].text = "";
this[("bonus" + s)].text = "";
this[("effect" + s)].visible = false;
this[("findState" + s)].visible = false;
s++;
};
reportArray = MediaManager.getNewsReports();
panicSum = 0;
currentString = new String();
tempPanic = 0;
s = 0;
while (s < reportArray.length) {
this[("mod" + s)].text = reportArray[s].getEvent().getEventTitle();
if (reportArray[s].getEvent().getPrimaryTarget() != null){
this[("findState" + s)].visible = true;
this[("findState" + s)].setInformationObject(reportArray[s].getEvent().getPrimaryTarget());
this[("findState" + s)].setName(("_findStateButton" + s));
this[("findState" + s)].addToInputManager();
};
tempNewsReport = reportArray[s].getEvent();
tempPanic = tempNewsReport.getEventPanicBonus();
if (tempNewsReport.getEventPanic() == NewsEvent.EVENT_PANIC_INCREASED){
tempPanic = (tempPanic * ((int(CountryManager.getSpin()) * 0.75) + int(!(CountryManager.getSpin()))));
tempPanic = (tempPanic - ((tempPanic * int((GameManager.getGovType() == GameManager.GOV_OPEN))) * 0.1));
tempPanic = (tempPanic - ((tempPanic * int((GameManager.getGovType() == GameManager.GOV_CLOSED))) * -0.17));
} else {
tempPanic = (tempPanic * ((int(CountryManager.getSpin()) * 1.1) + int(!(CountryManager.getSpin()))));
tempPanic = (tempPanic + ((tempPanic * int((GameManager.getGovType() == GameManager.GOV_OPEN))) * 0.1));
tempPanic = (tempPanic + ((tempPanic * int((GameManager.getGovType() == GameManager.GOV_CLOSED))) * -0.17));
};
this[("bonus" + s)].text = ("X" + Helpers.roundTo((tempPanic * 100), 1, 2, 0));
panicSum = (panicSum + (tempPanic * (int((tempNewsReport.getEventPanic() == NewsEvent.EVENT_PANIC_INCREASED)) + (int((tempNewsReport.getEventPanic() == NewsEvent.EVENT_PANIC_DECREASED)) * -1))));
this[("effect" + s)].visible = true;
if (reportArray[s].getEvent().getEventPanic() == NewsEvent.EVENT_PANIC_INCREASED){
this[("effect" + s)].gotoAndStop(2);
};
if (reportArray[s].getEvent().getEventPanic() == NewsEvent.EVENT_PANIC_DECREASED){
this[("effect" + s)].gotoAndStop(3);
};
s++;
};
if (panicSum == 0){
panicFlow.gotoAndStop(3);
};
if (panicSum < 0){
panicFlow.gotoAndStop(2);
};
if (panicSum > 0){
panicFlow.gotoAndStop(1);
};
stop();
}
}
}//package
Section 327
//PauseWindow (PauseWindow)
package {
import flash.display.*;
import flash.events.*;
import GUI.*;
import flash.geom.*;
import GUI.IACVOBJECTS.*;
import MANAGERS.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class PauseWindow extends MovieClip {
public var clickout1:MovieClip;
public var clickout0:MovieClip;
public var fastSpeed:MovieClip;
public var closeWindowButton:BackCloseWindowButton;
public var normalSpeed:MovieClip;
public function PauseWindow(){
addFrameScript(5, frame6, 11, frame12);
}
public function setGameSpeedNormal():void{
GameManager.setGameSpeed(10);
InputManager.removeTempIacvObject("_gameSpeedNormal");
fastSpeed.coreButton.addToInputManager();
normalSpeed.coreButton.enabled = true;
fastSpeed.coreButton.enabled = false;
normalSpeed.gotoAndStop((int((GameManager.getGameSpeed() == 10)) + 1));
fastSpeed.gotoAndStop((int((GameManager.getGameSpeed() == 5)) + 1));
}
public function setGameSpeedFast():void{
GameManager.setGameSpeed(5);
InputManager.removeTempIacvObject("_gameSpeedFast");
normalSpeed.coreButton.addToInputManager();
normalSpeed.coreButton.enabled = false;
fastSpeed.coreButton.enabled = true;
normalSpeed.gotoAndStop((int((GameManager.getGameSpeed() == 10)) + 1));
fastSpeed.gotoAndStop((int((GameManager.getGameSpeed() == 5)) + 1));
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_gameSpeedNormal");
InputManager.removeTempIacvObject("_gameSpeedFast");
GuiManager.cleanupPrimaryGui();
}
function frame6(){
clickout0.mouseEnabled = false;
clickout1.mouseEnabled = false;
normalSpeed.gotoAndStop((int((GameManager.getGameSpeed() == 10)) + 1));
fastSpeed.gotoAndStop((int((GameManager.getGameSpeed() == 5)) + 1));
normalSpeed.coreButton.setInvokeFunction(setGameSpeedNormal);
normalSpeed.coreButton.setName("_gameSpeedNormal");
if (GameManager.getGameSpeed() == 5){
normalSpeed.coreButton.addToInputManager();
} else {
normalSpeed.coreButton.enabled = false;
};
fastSpeed.coreButton.setInvokeFunction(setGameSpeedFast);
fastSpeed.coreButton.setName("_gameSpeedFast");
if (GameManager.getGameSpeed() == 10){
fastSpeed.coreButton.addToInputManager();
} else {
fastSpeed.coreButton.enabled = false;
};
stop();
}
}
}//package
Section 328
//PennsylvaniaButton (PennsylvaniaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class PennsylvaniaButton extends RegionButton {
}
}//package
Section 329
//PlayMoreGamesEnd (PlayMoreGamesEnd)
package {
import GUI.IACVOBJECTS.*;
public dynamic class PlayMoreGamesEnd extends GenericButton {
}
}//package
Section 330
//PlayTutorialButton (PlayTutorialButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class PlayTutorialButton extends GenericButton {
}
}//package
Section 331
//Quarantine (Quarantine)
package {
import GUI.IACVOBJECTS.*;
public dynamic class Quarantine extends OperationButton {
}
}//package
Section 332
//ReportButton (ReportButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class ReportButton extends GenericButton {
}
}//package
Section 333
//ResearchVaccine (ResearchVaccine)
package {
import GUI.IACVOBJECTS.*;
public dynamic class ResearchVaccine extends OperationButton {
}
}//package
Section 334
//RhodeIslandButton (RhodeIslandButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class RhodeIslandButton extends RegionButton {
}
}//package
Section 335
//RoadBlockButton (RoadBlockButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class RoadBlockButton extends OperationButton {
}
}//package
Section 336
//smokeFiller0 (smokeFiller0)
package {
import flash.display.*;
public dynamic class smokeFiller0 extends MovieClip {
}
}//package
Section 337
//SolicitFearButton (SolicitFearButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class SolicitFearButton extends OperationButton {
}
}//package
Section 338
//SouthCarolinaButton (SouthCarolinaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class SouthCarolinaButton extends RegionButton {
}
}//package
Section 339
//SouthDakotaButton (SouthDakotaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class SouthDakotaButton extends RegionButton {
}
}//package
Section 340
//SpinButton (SpinButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class SpinButton extends OperationButton {
}
}//package
Section 341
//StateCurfew (StateCurfew)
package {
import GUI.IACVOBJECTS.*;
public dynamic class StateCurfew extends OperationButton {
}
}//package
Section 342
//StateOperationField (StateOperationField)
package {
import flash.display.*;
public dynamic class StateOperationField extends MovieClip {
public var op1:MovieClip;
public var op2:MovieClip;
public var op0:MovieClip;
public var op3:MovieClip;
public var fieldBG:MovieClip;
public function StateOperationField(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 343
//StopOperation (StopOperation)
package {
import GUI.IACVOBJECTS.*;
public dynamic class StopOperation extends GenericButton {
}
}//package
Section 344
//StopTutorialButton (StopTutorialButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class StopTutorialButton extends GenericButton {
}
}//package
Section 345
//TennesseeButton (TennesseeButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class TennesseeButton extends RegionButton {
}
}//package
Section 346
//TexasButton (TexasButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class TexasButton extends RegionButton {
}
}//package
Section 347
//TheMapTutorial (TheMapTutorial)
package {
import flash.display.*;
import GUI.*;
public dynamic class TheMapTutorial extends MovieClip {
public var nextScreen:PlayTutorialButton;
public var prevScreen:PlayTutorialButton;
public var stopTut:StopTutorialButton;
public function TheMapTutorial(){
addFrameScript(5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
nextScreen.visible = false;
prevScreen.setInvokeFunction(prevStep);
prevScreen.setName("_prevTutScreen");
prevScreen.addToInputManager();
stopTut.setInvokeFunction(stopTutorial);
stopTut.setName("_stopTut");
stopTut.addToInputManager();
stop();
}
public function nextStep():void{
if (this.currentFrame < 10){
InputManager.removeTempIacvObject("_prevTutScreen");
InputManager.removeTempIacvObject("_stopTut");
InputManager.removeTempIacvObject("_nextTutScreen");
this.gotoAndStop((this.currentFrame + 1));
};
}
function frame7(){
prevScreen.visible = true;
nextScreen.visible = true;
prevScreen.setInvokeFunction(prevStep);
prevScreen.setName("_prevTutScreen");
prevScreen.addToInputManager();
stopTut.setInvokeFunction(stopTutorial);
stopTut.setName("_stopTut");
stopTut.addToInputManager();
nextScreen.setInvokeFunction(nextStep);
nextScreen.setName("_nextTutScreen");
nextScreen.addToInputManager();
stop();
}
function frame8(){
prevScreen.visible = true;
nextScreen.visible = true;
prevScreen.setInvokeFunction(prevStep);
prevScreen.setName("_prevTutScreen");
prevScreen.addToInputManager();
stopTut.setInvokeFunction(stopTutorial);
stopTut.setName("_stopTut");
stopTut.addToInputManager();
nextScreen.setInvokeFunction(nextStep);
nextScreen.setName("_nextTutScreen");
nextScreen.addToInputManager();
stop();
}
function frame6(){
stop();
prevScreen.visible = false;
stopTut.setInvokeFunction(stopTutorial);
stopTut.setName("_stopTut");
stopTut.addToInputManager();
nextScreen.setInvokeFunction(nextStep);
nextScreen.setName("_nextTutScreen");
nextScreen.addToInputManager();
stop();
}
function frame9(){
prevScreen.visible = true;
nextScreen.visible = true;
prevScreen.setInvokeFunction(prevStep);
prevScreen.setName("_prevTutScreen");
prevScreen.addToInputManager();
stopTut.setInvokeFunction(stopTutorial);
stopTut.setName("_stopTut");
stopTut.addToInputManager();
nextScreen.setInvokeFunction(nextStep);
nextScreen.setName("_nextTutScreen");
nextScreen.addToInputManager();
stop();
}
public function stopTutorial():void{
GuiManager.returnToTutorials();
}
public function prevStep():void{
if (this.currentFrame > 6){
InputManager.removeTempIacvObject("_prevTutScreen");
InputManager.removeTempIacvObject("_stopTut");
InputManager.removeTempIacvObject("_nextTutScreen");
this.gotoAndStop((this.currentFrame - 1));
};
}
}
}//package
Section 348
//travelStatusButton (travelStatusButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class travelStatusButton extends GenericButton {
}
}//package
Section 349
//TutorialWindow (TutorialWindow)
package {
import flash.display.*;
import GUI.*;
import GUI.IACVOBJECTS.*;
public dynamic class TutorialWindow extends MovieClip {
public var gameMapButton:PlayTutorialButton;
public var clickout1:MovieClip;
public var clickout0:MovieClip;
public var panicMediaButton:PlayTutorialButton;
public var closeWindowButton:BackCloseWindowButton;
public var nextTutorial:MovieClip;
public var nationOpButton:PlayTutorialButton;
public function TutorialWindow(){
addFrameScript(5, frame6, 11, frame12, 17, frame18);
}
public function panicMediaTut():void{
InputManager.removeTempIacvObject("_gameMapTutButton");
InputManager.removeTempIacvObject("_panicMediaTutButton");
InputManager.removeTempIacvObject("_nationOpTutButton");
nextTutorial = new PanicMediaTutorial();
nextTutorial.stop();
this.gotoAndPlay("closeWindowII");
}
function frame18(){
stop();
InputManager.removeTempIacvObject("_gameMapTutButton");
InputManager.removeTempIacvObject("_panicMediaTutButton");
InputManager.removeTempIacvObject("_nationOpTutButton");
if (nextTutorial == null){
GuiManager.cleanupPrimaryGui();
} else {
nextTutorial.play();
GuiManager.displayTutorialWindow(nextTutorial);
};
}
function frame12(){
stop();
InputManager.removeTempIacvObject("_gameMapTutButton");
InputManager.removeTempIacvObject("_panicMediaTutButton");
InputManager.removeTempIacvObject("_nationOpTutButton");
GuiManager.cleanupPrimaryGui();
}
public function nationOpTut():void{
InputManager.removeTempIacvObject("_gameMapTutButton");
InputManager.removeTempIacvObject("_panicMediaTutButton");
InputManager.removeTempIacvObject("_nationOpTutButton");
nextTutorial = new NationOperationTutorial();
nextTutorial.stop();
this.gotoAndPlay("closeWindowII");
}
function frame6(){
nextTutorial = null;
gameMapButton.setInvokeFunction(gameMapTut);
gameMapButton.setName("_gameMapTutButton");
gameMapButton.addToInputManager();
panicMediaButton.setInvokeFunction(panicMediaTut);
panicMediaButton.setName("_panicMediaTutButton");
panicMediaButton.addToInputManager();
nationOpButton.setInvokeFunction(nationOpTut);
nationOpButton.setName("_nationOpTutButton");
nationOpButton.addToInputManager();
stop();
}
public function gameMapTut():void{
InputManager.removeTempIacvObject("_gameMapTutButton");
InputManager.removeTempIacvObject("_panicMediaTutButton");
InputManager.removeTempIacvObject("_nationOpTutButton");
nextTutorial = new TheMapTutorial();
nextTutorial.stop();
this.gotoAndPlay("closeWindowII");
}
}
}//package
Section 350
//UtahButton (UtahButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class UtahButton extends RegionButton {
}
}//package
Section 351
//WashingtonButton (WashingtonButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class WashingtonButton extends RegionButton {
}
}//package
Section 352
//WebValidator (WebValidator)
package {
public class WebValidator {
public static function extractDomainName(_arg1:String):String{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:String;
var _local6:String;
var _local7:Boolean;
var _local8:int;
_local2 = 0;
_local3 = 0;
_local4 = new String();
_local5 = new String();
_local6 = new String();
_local7 = false;
_arg1 = _arg1.toLowerCase();
_local8 = _arg1.length;
while (_local8 >= 0) {
if (!checkForSeparator(_arg1.charAt(_local8))){
_local5 = _local6.concat(_arg1.charAt(_local8), _local5);
_local6 = new String();
if (((checkForExtension(_local5)) && ((_local8 > 1)))){
if (checkForSeparator(_arg1.charAt((_local8 - 1)))){
_local8 = (_local8 - 2);
_local5 = new String();
_local7 = true;
break;
};
};
} else {
_local5 = new String();
};
_local8--;
};
if (_local7){
while (_local8 >= 0) {
if (!checkForSeparator(_arg1.charAt(_local8))){
_local5 = _local6.concat(_arg1.charAt(_local8), _local5);
_local6 = new String();
} else {
break;
};
_local8--;
};
} else {
return (":invalid_url:");
};
return (_local5);
}
private static function checkForSeparator(_arg1:String):Boolean{
switch (_arg1){
case ".":
return (true);
case "/":
return (true);
case "?":
return (true);
case ":":
return (true);
case "%":
return (true);
};
return (false);
}
private static function checkForExtension(_arg1:String):Boolean{
switch (_arg1){
case "com":
return (true);
case "net":
return (true);
case "co":
return (true);
case "uk":
return (true);
case "ca":
return (true);
case "gov":
return (true);
case "org":
return (true);
case "edu":
return (true);
case "int":
return (true);
case "mil":
return (true);
case "fr":
return (true);
case "jp":
return (true);
case "de":
return (true);
case "at":
return (true);
case "biz":
return (true);
case "mx":
return (true);
case "am":
return (true);
case "es":
return (true);
};
return (false);
}
}
}//package
Section 353
//VermontButton (VermontButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class VermontButton extends RegionButton {
}
}//package
Section 354
//WesternStatesButton (WesternStatesButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class WesternStatesButton extends GenericButton {
}
}//package
Section 355
//WestVirginiaButton (WestVirginiaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class WestVirginiaButton extends RegionButton {
}
}//package
Section 356
//Victory (Victory)
package {
import SOUND.*;
public dynamic class Victory extends SoundFile {
}
}//package
Section 357
//VictoryWindow (VictoryWindow)
package {
import flash.display.*;
import flash.events.*;
import GUI.*;
import flash.geom.*;
import MANAGERS.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class VictoryWindow extends MovieClip {
public var icebergs:MovieClip;
public var pandemicIIButton:PandemicIIButton;
public var numberStuff:Number;
public var days:TextField;
public var trophyNotice:MovieClip;
public var killed:TextField;
public var saved:TextField;
public var victoryMessage:MovieClip;
public var playMoreGames:PlayMoreGamesEnd;
public var continueButton:introContinueButton;
public var finalScore:TextField;
public function VictoryWindow(){
addFrameScript(6, frame7, 12, frame13);
}
public function pandemicIIManager():void{
try {
navigateToURL(new URLRequest("http://www.kongregate.com/games/DarkRealmStudios/pandemic-2?gamereferral=Pandemic: American Swine"), "_blank");
} catch(error:Error) {
};
}
public function kongregateManager():void{
try {
navigateToURL(new URLRequest("http://www.kongregate.com/?gamereferral=Pandemic: American Swine"), "_blank");
} catch(error:Error) {
};
}
function frame7(){
if (EngineCore.getEngineCore().kongValid){
numberStuff = 0;
numberStuff = (((CountryManager.getImmunePop() / TimeManager.getDay()) + (CountryManager.getHealthyPop() / (TimeManager.getDay() * 2))) + (CountryManager.getInfectedPop() / (TimeManager.getDay() * 4)));
if (GameManager.getDiffType() == GameManager.DIFFICULTY_NORMAL){
EngineCore.getEngineCore().kongregate.stats.submit("Highscore Normal", numberStuff);
};
if (GameManager.getDiffType() == GameManager.DIFFICULTY_HARD){
EngineCore.getEngineCore().kongregate.stats.submit("Highscore Hard", numberStuff);
};
if (GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME){
EngineCore.getEngineCore().kongregate.stats.submit("Highscore Extreme", numberStuff);
};
numberStuff = ((CountryManager.getHealthyPop() + CountryManager.getImmunePop()) + CountryManager.getInfectedPop());
EngineCore.getEngineCore().kongregate.stats.submit("Great Savior", numberStuff);
numberStuff = CountryManager.getImmunePop();
EngineCore.getEngineCore().kongregate.stats.submit("Needles Everywhere", numberStuff);
numberStuff = CountryManager.getDeadPop();
EngineCore.getEngineCore().kongregate.stats.submit("Death Dealer", numberStuff);
if (GameManager.getDiffType() == GameManager.DIFFICULTY_NORMAL){
EngineCore.getEngineCore().kongregate.stats.submit("Fastest Victory Normal", TimeManager.getDay());
};
if (GameManager.getDiffType() == GameManager.DIFFICULTY_HARD){
EngineCore.getEngineCore().kongregate.stats.submit("Fastest Victory Hard", TimeManager.getDay());
};
if (GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME){
EngineCore.getEngineCore().kongregate.stats.submit("Fastest Victory Extreme", TimeManager.getDay());
};
};
icebergs.visible = false;
if (EngineCore.getEngineCore().aprilFoolsOn == true){
GameManager.unlockTrophy(4);
icebergs.visible = true;
icebergs.trophy0.trophyShadow.visible = false;
icebergs.trophy1.trophyShadow.visible = false;
icebergs.trophy2.trophyShadow.visible = false;
icebergs.trophy3.trophyShadow.visible = false;
};
pandemicIIButton.setInvokeFunction(pandemicIIManager);
pandemicIIButton.setName("_gameoverPandemicII");
pandemicIIButton.addToInputManager();
continueButton.setInvokeFunction(returnToMainMenu);
continueButton.setName("_gameOverButton");
continueButton.addToInputManager();
playMoreGames.setInvokeFunction(kongregateManager);
playMoreGames.setName("_mainMenuPlayGamesButton");
playMoreGames.addToInputManager();
days.text = Helpers.addCommas(TimeManager.getDay());
saved.text = Helpers.addCommas(((CountryManager.getHealthyPop() + CountryManager.getImmunePop()) + CountryManager.getInfectedPop()));
killed.text = Helpers.addCommas(CountryManager.getDeadPop());
finalScore.text = Helpers.addCommas((((CountryManager.getImmunePop() / TimeManager.getDay()) + (CountryManager.getHealthyPop() / (TimeManager.getDay() * 2))) + (CountryManager.getInfectedPop() / (TimeManager.getDay() * 4))));
if (GameManager.getVaccinationVictory()){
victoryMessage.gotoAndStop(1);
};
if (GameManager.getEradicationVictory()){
victoryMessage.gotoAndStop(2);
};
trophyNotice.unlockNotice.gotoAndStop(3);
if (GameManager.getDiffType() == GameManager.DIFFICULTY_NORMAL){
trophyNotice.gotoAndStop(1);
trophyNotice.unlockNotice.gotoAndStop(((1 + int(GameManager.unlockTrophy(0))) + (int(!(GameManager.getTrophyStatus(0))) * 2)));
} else {
if (GameManager.getDiffType() == GameManager.DIFFICULTY_HARD){
if (GameManager.getGovType() == GameManager.GOV_OPEN){
GameManager.unlockTrophy(5);
};
if (GameManager.getGovType() == GameManager.GOV_AVERAGE){
GameManager.unlockTrophy(6);
};
if (GameManager.getGovType() == GameManager.GOV_CLOSED){
GameManager.unlockTrophy(7);
};
if (!GameManager.getTrophyStatus(1)){
trophyNotice.gotoAndStop(2);
trophyNotice.unlockNotice.gotoAndStop(((1 + int(GameManager.unlockTrophy(1))) + (int(!(GameManager.getTrophyStatus(1))) * 2)));
} else {
if (GameManager.getTrophyStatus(1)){
trophyNotice.gotoAndStop(3);
if (GameManager.patriotAvailable()){
GameManager.unlockTrophy(2);
trophyNotice.unlockNotice.gotoAndStop(1);
} else {
trophyNotice.unlockNotice.gotoAndStop(((1 + int(GameManager.getTrophyStatus(2))) + (int(!(GameManager.getTrophyStatus(2))) * 2)));
};
};
};
} else {
if (GameManager.getDiffType() == GameManager.DIFFICULTY_EXTREME){
trophyNotice.gotoAndStop(4);
trophyNotice.unlockNotice.gotoAndStop(((1 + int(GameManager.unlockTrophy(3))) + (int(!(GameManager.getTrophyStatus(3))) * 2)));
};
};
};
stop();
}
public function returnToMainMenu():void{
GameManager.resetGame(true);
}
function frame13(){
stop();
GuiManager.cleanupPrimaryGui();
}
}
}//package
Section 358
//VirginiaButton (VirginiaButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class VirginiaButton extends RegionButton {
}
}//package
Section 359
//WisonsinButton (WisonsinButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class WisonsinButton extends RegionButton {
}
}//package
Section 360
//WyomingButton (WyomingButton)
package {
import GUI.IACVOBJECTS.*;
public dynamic class WyomingButton extends RegionButton {
}
}//package
Section 361
//ZoomArrow (ZoomArrow)
package {
import flash.display.*;
public dynamic class ZoomArrow extends MovieClip {
}
}//package