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

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

Dinowaurs.swf

This is the info page for
Flash #68513

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


Text
specimen name:

<p align="left"><font face="Frances Uncial Std" size="20" color="#8cc63f" letterSpacing="0.000000" kerning="1">8</font></p>

Canadien Times - 9003 laser beams
423 rise up, chicken arise

<p align="left"><font face="Frances Uncial Std" size="18" color="#8cc63f" letterSpacing="-0.400000" kerning="1">sound</font></p>

excavating fossil number

of

id

type

color

visible

network

timeSpawned

ActionScript [AS3]

Section 1
//BinaryItem (bloader.loadingtypes.BinaryItem) package bloader.loadingtypes { import flash.events.*; import flash.display.*; import bloader.*; import flash.net.*; import flash.utils.*; public class BinaryItem extends LoadingItem { public var loader:URLLoader; public function BinaryItem(_arg1:URLRequest, _arg2:String, _arg3:String){ super(_arg1, _arg2, _arg3); } override public function onErrorHandler(_arg1:ErrorEvent):void{ super.onErrorHandler(_arg1); } override public function stop():void{ try { if (loader){ loader.close(); }; } catch(e:Error) { }; super.stop(); } override public function cleanListeners():void{ if (loader){ loader.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler, false); loader.removeEventListener(Event.COMPLETE, onCompleteHandler, false); loader.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false); loader.removeEventListener(BulkLoader.OPEN, onStartedHandler, false); loader.removeEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false); loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, super.onSecurityErrorHandler, false); }; } override public function load():void{ super.load(); loader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.BINARY; loader.addEventListener(ProgressEvent.PROGRESS, onProgressHandler, false, 0, true); loader.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true); loader.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 0, true); loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false, 0, true); loader.addEventListener(Event.OPEN, onStartedHandler, false, 0, true); loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, super.onSecurityErrorHandler, false, 0, true); try { loader.load(url); } catch(e:SecurityError) { onSecurityErrorHandler(_createErrorEvent(e)); }; } override public function onStartedHandler(_arg1:Event):void{ super.onStartedHandler(_arg1); } override public function onCompleteHandler(_arg1:Event):void{ _content = _arg1.target.data; super.onCompleteHandler(_arg1); } override public function _parseOptions(_arg1:Object):Array{ return (super._parseOptions(_arg1)); } override public function destroy():void{ stop(); cleanListeners(); _content = null; loader = null; } } }//package bloader.loadingtypes
Section 2
//ImageItem (bloader.loadingtypes.ImageItem) package bloader.loadingtypes { import flash.events.*; import flash.display.*; import bloader.*; import flash.net.*; import flash.utils.*; public class ImageItem extends LoadingItem { public var loader:Loader; public function ImageItem(_arg1:URLRequest, _arg2:String, _arg3:String){ specificAvailableProps = [BulkLoader.CONTEXT]; super(_arg1, _arg2, _arg3); } override public function onErrorHandler(_arg1:ErrorEvent):void{ super.onErrorHandler(_arg1); } override public function stop():void{ try { if (loader){ loader.close(); }; } catch(e:Error) { }; super.stop(); } override public function load():void{ super.load(); loader = new Loader(); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler, false, 0, true); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 100, true); loader.contentLoaderInfo.addEventListener(Event.OPEN, onStartedHandler, false, 0, true); loader.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false, 0, true); try { loader.load(url, _context); } catch(e:SecurityError) { onSecurityErrorHandler(_createErrorEvent(e)); }; } override public function destroy():void{ stop(); cleanListeners(); _content = null; loader = null; } override public function _parseOptions(_arg1:Object):Array{ _context = ((_arg1[BulkLoader.CONTEXT]) || (null)); return (super._parseOptions(_arg1)); } override public function isImage():Boolean{ return ((type == BulkLoader.TYPE_IMAGE)); } override public function onCompleteHandler(_arg1:Event):void{ var evt = _arg1; try { _content = loader.content; super.onCompleteHandler(evt); } catch(e:SecurityError) { _content = loader; super.onCompleteHandler(evt); }; } override public function cleanListeners():void{ var _local1:Object; if (loader){ _local1 = loader.contentLoaderInfo; _local1.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler, false); _local1.removeEventListener(Event.COMPLETE, onCompleteHandler, false); _local1.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false); _local1.removeEventListener(BulkLoader.OPEN, onStartedHandler, false); _local1.removeEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false); }; } override public function isSWF():Boolean{ return ((type == BulkLoader.TYPE_MOVIECLIP)); } public function _onHttpStatusHandler(_arg1:HTTPStatusEvent):void{ _httpStatus = _arg1.status; dispatchEvent(_arg1); } } }//package bloader.loadingtypes
Section 3
//LoadingItem (bloader.loadingtypes.LoadingItem) package bloader.loadingtypes { import flash.events.*; import flash.display.*; import bloader.*; import flash.net.*; import flash.utils.*; public class LoadingItem extends EventDispatcher { public var _priority:int;// = 0 public var _type:String; public var status:String; public var _isLoaded:Boolean; public var _isLoading:Boolean; public var _additionIndex:int; public var _bytesTotal:int;// = -1 public var _httpStatus:int;// = -1 public var _content; public var _speed:Number; public var _weightPercentLoaded:Number; public var propertyParsingErrors:Array; public var url:URLRequest; public var errorEvent:ErrorEvent; public var weight:int;// = 1 public var _addedTime:int; public var _context;// = null public var preventCache:Boolean; public var _responseTime:Number; public var _uid:String; public var maxTries:int;// = 3 public var _bytesLoaded:int;// = 0 public var _percentLoaded:Number; public var _totalTime:int; public var numTries:int;// = 0 public var _id:String; public var _latency:Number; public var _startTime:int; public var _bytesRemaining:int;// = 10000000 public var _timeToDownload:int; public var specificAvailableProps:Array; public static const STATUS_STOPPED:String = "stopped"; public static const STATUS_STARTED:String = "started"; public static const STATUS_ERROR:String = "error"; public static const STATUS_FINISHED:String = "finished"; public function LoadingItem(_arg1:URLRequest, _arg2:String, _arg3:String){ this._type = _arg2; this.url = _arg1; if (!specificAvailableProps){ specificAvailableProps = []; }; this._uid = _arg3; } public function onSecurityErrorHandler(_arg1:ErrorEvent):void{ status = STATUS_ERROR; errorEvent = (_arg1 as ErrorEvent); _arg1.stopPropagation(); _dispatchErrorEvent(errorEvent); } public function stop():void{ if (_isLoaded){ return; }; status = STATUS_STOPPED; _isLoading = false; } public function isSound():Boolean{ return (false); } public function onCompleteHandler(_arg1:Event):void{ _totalTime = getTimer(); _timeToDownload = ((_totalTime - _responseTime) / 1000); if (_timeToDownload == 0){ _timeToDownload = 0.2; }; _speed = BulkLoader.truncateNumber(((bytesTotal / 0x0400) / _timeToDownload)); if (_timeToDownload == 0){ _speed = 3000; }; status = STATUS_FINISHED; _isLoaded = true; dispatchEvent(_arg1); _arg1.stopPropagation(); } public function get weightPercentLoaded():Number{ return (_weightPercentLoaded); } public function get id():String{ return (_id); } public function _dispatchErrorEvent(_arg1:ErrorEvent):void{ status = STATUS_ERROR; dispatchEvent(new ErrorEvent(BulkLoader.ERROR, true, false, _arg1.text)); } public function onHttpStatusHandler(_arg1:HTTPStatusEvent):void{ _httpStatus = _arg1.status; dispatchEvent(_arg1); } public function get totalTime():int{ return (_totalTime); } public function get type():String{ return (_type); } public function get speed():Number{ return (_speed); } public function _parseOptions(_arg1:Object):Array{ var _local3:String; preventCache = _arg1[BulkLoader.PREVENT_CACHING]; _id = _arg1[BulkLoader.ID]; _priority = ((int(_arg1[BulkLoader.PRIORITY])) || (0)); maxTries = ((_arg1[BulkLoader.MAX_TRIES]) || (3)); weight = ((int(_arg1[BulkLoader.WEIGHT])) || (1)); var _local2:Array = BulkLoader.GENERAL_AVAILABLE_PROPS.concat(specificAvailableProps); propertyParsingErrors = []; for (_local3 in _arg1) { if (_local2.indexOf(_local3) == -1){ propertyParsingErrors.push(((((this + ": got a wrong property name: ") + _local3) + ", with value:") + _arg1[_local3])); }; }; return (propertyParsingErrors); } public function get startTime():int{ return (_startTime); } public function get bytesLoaded():int{ return (_bytesLoaded); } public function isImage():Boolean{ return (false); } public function onStartedHandler(_arg1:Event):void{ _responseTime = getTimer(); _latency = BulkLoader.truncateNumber(((_responseTime - _startTime) / 1000)); status = STATUS_STARTED; dispatchEvent(_arg1); } override public function toString():String{ return (((((("LoadingItem url: " + url.url) + ", type:") + _type) + ", status: ") + status)); } public function isVideo():Boolean{ return (false); } public function isText():Boolean{ return (false); } public function get content(){ return (_content); } public function onProgressHandler(_arg1):void{ _bytesLoaded = _arg1.bytesLoaded; _bytesTotal = _arg1.bytesTotal; _bytesRemaining = (_bytesTotal - bytesLoaded); _percentLoaded = (_bytesLoaded / _bytesTotal); _weightPercentLoaded = (_percentLoaded * weight); dispatchEvent(_arg1); } public function isXML():Boolean{ return (false); } public function get bytesTotal():int{ return (_bytesTotal); } public function get httpStatus():int{ return (_httpStatus); } public function onErrorHandler(_arg1:ErrorEvent):void{ numTries++; _arg1.stopPropagation(); if (numTries < maxTries){ status = null; load(); } else { status = STATUS_ERROR; errorEvent = _arg1; _dispatchErrorEvent(errorEvent); }; } public function isStreamable():Boolean{ return (false); } public function get percentLoaded():Number{ return (_percentLoaded); } public function get responseTime():Number{ return (_responseTime); } public function get priority():int{ return (_priority); } public function get bytesRemaining():int{ return (_bytesRemaining); } public function get isLoaded():Boolean{ return (_isLoaded); } public function get timeToDownload():int{ return (_timeToDownload); } public function isLoader():Boolean{ return (false); } public function load():void{ var _local1:String; if (preventCache){ _local1 = ((("BulkLoaderNoCache=" + _uid) + "_") + int(((Math.random() * 100) * getTimer()))); if (url.url.indexOf("?") == -1){ url.url = (url.url + ("?" + _local1)); } else { url.url = (url.url + ("&" + _local1)); }; }; _isLoading = true; _startTime = getTimer(); } public function getStats():String{ return ((((((((((("Item url:" + url.url) + ", total time: ") + _timeToDownload) + "(s), latency:") + _latency) + "(s), speed: ") + _speed) + " kb/s, size: ") + BulkLoader.truncateNumber((_bytesTotal / 0x0400))) + " kb")); } public function get addedTime():int{ return (_addedTime); } public function _createErrorEvent(_arg1:Error):ErrorEvent{ return (new ErrorEvent(BulkLoader.ERROR, false, false, _arg1.message)); } public function cleanListeners():void{ } public function isSWF():Boolean{ return (false); } public function destroy():void{ _content = null; } public function get latency():Number{ return (_latency); } } }//package bloader.loadingtypes
Section 4
//SoundItem (bloader.loadingtypes.SoundItem) package bloader.loadingtypes { import flash.events.*; import flash.display.*; import bloader.*; import flash.net.*; import flash.utils.*; import flash.media.*; public class SoundItem extends LoadingItem { public var loader:Sound; public function SoundItem(_arg1:URLRequest, _arg2:String, _arg3:String){ specificAvailableProps = [BulkLoader.CONTEXT]; super(_arg1, _arg2, _arg3); } override public function onErrorHandler(_arg1:ErrorEvent):void{ super.onErrorHandler(_arg1); } override public function stop():void{ try { if (loader){ loader.close(); }; } catch(e:Error) { }; super.stop(); } override public function isStreamable():Boolean{ return (true); } override public function isSound():Boolean{ return (true); } override public function load():void{ super.load(); loader = new Sound(); loader.addEventListener(ProgressEvent.PROGRESS, onProgressHandler, false, 0, true); loader.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true); loader.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 0, true); loader.addEventListener(Event.OPEN, onStartedHandler, false, 0, true); loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, super.onSecurityErrorHandler, false, 0, true); try { loader.load(url, _context); } catch(e:SecurityError) { onSecurityErrorHandler(_createErrorEvent(e)); }; } override public function onStartedHandler(_arg1:Event):void{ _content = loader; super.onStartedHandler(_arg1); } override public function destroy():void{ cleanListeners(); stop(); _content = null; loader = null; } override public function _parseOptions(_arg1:Object):Array{ _context = ((_arg1[BulkLoader.CONTEXT]) || (null)); return (super._parseOptions(_arg1)); } override public function onCompleteHandler(_arg1:Event):void{ _content = loader; super.onCompleteHandler(_arg1); } override public function cleanListeners():void{ if (loader){ loader.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler, false); loader.removeEventListener(Event.COMPLETE, onCompleteHandler, false); loader.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false); loader.removeEventListener(BulkLoader.OPEN, onStartedHandler, false); loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, super.onSecurityErrorHandler, false); }; } } }//package bloader.loadingtypes
Section 5
//URLItem (bloader.loadingtypes.URLItem) package bloader.loadingtypes { import flash.events.*; import bloader.*; import flash.net.*; public class URLItem extends LoadingItem { public var loader:URLLoader; public function URLItem(_arg1:URLRequest, _arg2:String, _arg3:String){ super(_arg1, _arg2, _arg3); } override public function stop():void{ try { if (loader){ loader.close(); }; } catch(e:Error) { }; super.stop(); } override public function cleanListeners():void{ if (loader){ loader.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler, false); loader.removeEventListener(Event.COMPLETE, onCompleteHandler, false); loader.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false); loader.removeEventListener(BulkLoader.OPEN, onStartedHandler, false); loader.removeEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false); }; } override public function load():void{ super.load(); loader = new URLLoader(); loader.addEventListener(ProgressEvent.PROGRESS, onProgressHandler, false, 0, true); loader.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true); loader.addEventListener(IOErrorEvent.IO_ERROR, super.onErrorHandler, false, 0, true); loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false, 0, true); loader.addEventListener(Event.OPEN, onStartedHandler, false, 0, true); try { loader.load(url); } catch(e:SecurityError) { onSecurityErrorHandler(_createErrorEvent(e)); }; } override public function isText():Boolean{ return (true); } override public function onStartedHandler(_arg1:Event):void{ super.onStartedHandler(_arg1); } override public function onCompleteHandler(_arg1:Event):void{ _content = loader.data; super.onCompleteHandler(_arg1); } override public function _parseOptions(_arg1:Object):Array{ return (super._parseOptions(_arg1)); } override public function destroy():void{ stop(); cleanListeners(); _content = null; loader = null; } } }//package bloader.loadingtypes
Section 6
//VideoItem (bloader.loadingtypes.VideoItem) package bloader.loadingtypes { import flash.events.*; import flash.display.*; import bloader.*; import flash.net.*; import flash.utils.*; public class VideoItem extends LoadingItem { public var stream:NetStream; public var dummyEventTrigger:Sprite; public var pausedAtStart:Boolean;// = false public var _metaData:Object; public var _canBeginStreaming:Boolean;// = false private var nc:NetConnection; public var _checkPolicyFile:Boolean; public function VideoItem(_arg1:URLRequest, _arg2:String, _arg3:String){ specificAvailableProps = [BulkLoader.CHECK_POLICY_FILE, BulkLoader.PAUSED_AT_START]; super(_arg1, _arg2, _arg3); _bytesTotal = (_bytesLoaded = 0); } public function get checkPolicyFile():Object{ return (_checkPolicyFile); } override public function onStartedHandler(_arg1:Event):void{ _content = stream; if (((pausedAtStart) && (stream))){ stream.pause(); }; super.onStartedHandler(_arg1); } override public function stop():void{ try { if (stream){ stream.close(); }; } catch(e:Error) { }; super.stop(); } override public function _parseOptions(_arg1:Object):Array{ pausedAtStart = ((_arg1[BulkLoader.PAUSED_AT_START]) || (false)); _checkPolicyFile = ((_arg1[BulkLoader.CHECK_POLICY_FILE]) || (false)); return (super._parseOptions(_arg1)); } private function fireCanBeginStreamingEvent():void{ if (_canBeginStreaming){ return; }; _canBeginStreaming = true; var _local1:Event = new Event(BulkLoader.CAN_BEGIN_PLAYING); dispatchEvent(_local1); } public function get metaData():Object{ return (_metaData); } function onNetStatus(_arg1:NetStatusEvent):void{ var _local2:Event; if (!stream){ return; }; stream.removeEventListener(NetStatusEvent.NET_STATUS, onNetStatus, false); if (_arg1.info.code == "NetStream.Play.Start"){ _content = stream; _local2 = new Event(Event.OPEN); onStartedHandler(_local2); } else { if (_arg1.info.code == "NetStream.Play.StreamNotFound"){ onErrorHandler(_createErrorEvent(new Error(("[VideoItem] NetStream not found at " + this.url.url)))); }; }; } override public function isStreamable():Boolean{ return (true); } override public function load():void{ super.load(); nc = new NetConnection(); nc.connect(null); stream = new NetStream(nc); stream.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 0, true); stream.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus, false, 0, true); dummyEventTrigger = new Sprite(); dummyEventTrigger.addEventListener(Event.ENTER_FRAME, createNetStreamEvent, false, 0, true); var customClient:Object = new Object(); customClient.onCuePoint = function (... _args):void{ }; customClient.onMetaData = onVideoMetadata; customClient.onPlayStatus = function (... _args):void{ }; stream.client = customClient; try { stream.play(url.url, _checkPolicyFile); } catch(e:SecurityError) { onSecurityErrorHandler(_createErrorEvent(e)); }; stream.seek(0); } public function get canBeginStreaming():Boolean{ return (_canBeginStreaming); } function onVideoMetadata(_arg1):void{ _metaData = _arg1; } override public function onCompleteHandler(_arg1:Event):void{ _content = stream; super.onCompleteHandler(_arg1); } override public function cleanListeners():void{ if (stream){ stream.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false); stream.removeEventListener(NetStatusEvent.NET_STATUS, onNetStatus, false); }; if (dummyEventTrigger){ dummyEventTrigger.removeEventListener(Event.ENTER_FRAME, createNetStreamEvent, false); dummyEventTrigger = null; }; } override public function isVideo():Boolean{ return (true); } public function createNetStreamEvent(_arg1:Event):void{ var _local2:Event; var _local3:Event; var _local4:ProgressEvent; var _local5:int; var _local6:Number; var _local7:Number; var _local8:Number; if ((((_bytesTotal == _bytesLoaded)) && ((_bytesTotal > 8)))){ if (dummyEventTrigger){ dummyEventTrigger.removeEventListener(Event.ENTER_FRAME, createNetStreamEvent, false); }; fireCanBeginStreamingEvent(); _local2 = new Event(Event.COMPLETE); onCompleteHandler(_local2); } else { if ((((((_bytesTotal == 0)) && (stream))) && ((stream.bytesTotal > 4)))){ _local3 = new Event(Event.OPEN); onStartedHandler(_local3); _bytesLoaded = stream.bytesLoaded; _bytesTotal = stream.bytesTotal; } else { if (stream){ _local4 = new ProgressEvent(ProgressEvent.PROGRESS, false, false, stream.bytesLoaded, stream.bytesTotal); if (((((isVideo()) && (metaData))) && (!(_canBeginStreaming)))){ _local5 = (getTimer() - responseTime); if (_local5 > 100){ _local6 = (bytesLoaded / (_local5 / 1000)); _bytesRemaining = (_bytesTotal - bytesLoaded); _local7 = (_bytesRemaining / (_local6 * 0.8)); _local8 = (metaData.duration - stream.bufferLength); if (_local8 > _local7){ fireCanBeginStreamingEvent(); }; }; }; super.onProgressHandler(_local4); }; }; }; } override public function destroy():void{ if (stream){ }; stop(); cleanListeners(); stream = null; super.destroy(); } } }//package bloader.loadingtypes
Section 7
//XMLItem (bloader.loadingtypes.XMLItem) package bloader.loadingtypes { import flash.events.*; import bloader.*; import flash.net.*; public class XMLItem extends LoadingItem { public var loader:URLLoader; public function XMLItem(_arg1:URLRequest, _arg2:String, _arg3:String){ super(_arg1, _arg2, _arg3); } override public function onErrorHandler(_arg1:ErrorEvent):void{ super.onErrorHandler(_arg1); } override public function stop():void{ try { if (loader){ loader.close(); }; } catch(e:Error) { }; super.stop(); } override public function cleanListeners():void{ if (loader){ loader.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler, false); loader.removeEventListener(Event.COMPLETE, onCompleteHandler, false); loader.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false); loader.removeEventListener(BulkLoader.OPEN, onStartedHandler, false); loader.removeEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false); loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, super.onSecurityErrorHandler, false); }; } override public function load():void{ super.load(); loader = new URLLoader(); loader.addEventListener(ProgressEvent.PROGRESS, onProgressHandler, false, 0, true); loader.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true); loader.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 0, true); loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false, 0, true); loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, super.onSecurityErrorHandler, false, 0, true); loader.addEventListener(Event.OPEN, onStartedHandler, false, 0, true); try { loader.load(url); } catch(e:SecurityError) { onSecurityErrorHandler(_createErrorEvent(e)); }; } override public function isText():Boolean{ return (true); } override public function onStartedHandler(_arg1:Event):void{ super.onStartedHandler(_arg1); } override public function onCompleteHandler(_arg1:Event):void{ var evt = _arg1; try { _content = new XML(loader.data); } catch(e:Error) { _content = null; status = STATUS_ERROR; dispatchEvent(_createErrorEvent(e)); }; super.onCompleteHandler(evt); } override public function _parseOptions(_arg1:Object):Array{ return (super._parseOptions(_arg1)); } override public function destroy():void{ stop(); cleanListeners(); _content = null; loader = null; } } }//package bloader.loadingtypes
Section 8
//BulkLoader (bloader.BulkLoader) package bloader { import flash.events.*; import flash.display.*; import flash.net.*; import flash.utils.*; import bloader.loadingtypes.*; import flash.media.*; public class BulkLoader extends EventDispatcher { public var _itemsTotal:int;// = 0 public var speedAvg:Number; public var _numConnections:int;// = 7 public var _totalWeight:int;// = 0 public var _bytesTotalCurrent:int;// = 0 public var _itemsLoaded:int;// = 0 public var totalTime:Number; public var _additionIndex:int;// = 0 public var _bytesTotal:int;// = 0 public var _loadedRatio:Number;// = 0 public var _speed:Number; public var _lastSpeedCheck:int; public var _isPaused:Boolean;// = true public var _isFinished:Boolean; public var _name:String; public var _allowsAutoIDFromFileName:Boolean;// = false public var _contents:Dictionary; public var _logFunction:Function; public var _bytesLoaded:int;// = 0 public var _connections:Array; public var logLevel:int;// = 4 public var _percentLoaded:Number;// = 0 public var _weightPercent:Number; public var _lastBytesCheck:int; public var _isRunning:Boolean; public var _id:int; public var _items:Array; public var _stringSubstitutions:Object; public var avgLatency:Number; public var _startTime:int; public var _speedTotal:Number; public var _endTIme:int; public static const CAN_BEGIN_PLAYING:String = "canBeginPlaying"; public static const TYPE_VIDEO:String = "video"; public static const PREVENT_CACHING:String = "preventCache"; public static const TYPE_TEXT:String = "text"; public static const ID:String = "id"; public static const PAUSED_AT_START:String = "pausedAtStart"; public static const SECURITY_ERROR:String = "securityError"; public static const LOG_WARNINGS:int = 3; public static const PROGRESS:String = "progress"; public static const COMPLETE:String = "complete"; public static const AVAILABLE_TYPES:Array = [TYPE_VIDEO, TYPE_XML, TYPE_TEXT, TYPE_SOUND, TYPE_MOVIECLIP, TYPE_IMAGE, TYPE_BINARY]; public static const LOG_VERBOSE:int = 0; public static const OPEN:String = "open"; public static const HEADERS:String = "headers"; public static const TYPE_XML:String = "xml"; public static const HTTP_STATUS:String = "httpStatus"; public static const CONTEXT:String = "context"; public static const WEIGHT:String = "weight"; public static const CHECK_POLICY_FILE:String = "checkPolicyFile"; public static const TYPE_MOVIECLIP:String = "movieclip"; public static const PRIORITY:String = "priority"; public static const TYPE_BINARY:String = "binary"; public static const TYPE_SOUND:String = "sound"; public static const MAX_TRIES:String = "maxTries"; public static const VERSION:String = "$Id: BulkLoader.as 246 2008-12-02 11:13:10Z debert $"; public static const GENERAL_AVAILABLE_PROPS:Array = [WEIGHT, MAX_TRIES, HEADERS, ID, PRIORITY, PREVENT_CACHING, "type"]; public static const DEFAULT_NUM_CONNECTIONS:int = 7; public static const LOG_SILENT:int = 10; public static const ERROR:String = "error"; public static const LOG_INFO:int = 2; public static const DEFAULT_LOG_LEVEL:int = 4; public static const LOG_ERRORS:int = 4; public static const TYPE_IMAGE:String = "image"; public static var MOVIECLIP_EXTENSIONS:Array = ["swf"]; public static var XML_EXTENSIONS:Array = ["xml"]; public static var SOUND_EXTENSIONS:Array = ["mp3", "f4a", "f4b"]; public static var TEXT_EXTENSIONS:Array = ["txt", "js", "php", "asp", "py"]; public static var AVAILABLE_EXTENSIONS:Array = ["swf", "jpg", "jpeg", "gif", "png", "flv", "mp3", "xml", "txt", "js"]; public static var _allLoaders:Object = {}; public static var VIDEO_EXTENSIONS:Array = ["flv", "f4v", "f4p", "mp4"]; public static var IMAGE_EXTENSIONS:Array = ["jpg", "jpeg", "gif", "png"]; public static var _customTypesExtensions:Object; public static var _typeClasses:Object = {image:ImageItem, movieclip:ImageItem, xml:XMLItem, video:VideoItem, sound:SoundItem, text:URLItem, binary:BinaryItem}; public static var _instancesCreated:int = 0; public function BulkLoader(_arg1:String, _arg2:int=7, _arg3:int=4){ var name = _arg1; var numConnections = _arg2; var logLevel = _arg3; _items = []; _contents = new Dictionary(true); _logFunction = trace; super(); if (Boolean(_allLoaders[name])){ __debug_print_loaders(); throw (new Error((("BulkLoader with name'" + name) + "' has already been created."))); }; if (!name){ throw (new Error("Cannot create a BulkLoader instance without a name")); }; _allLoaders[name] = this; if (numConnections > 0){ this._numConnections = numConnections; }; this.logLevel = logLevel; _name = name; _instancesCreated++; _id = _instancesCreated; _additionIndex = 0; addEventListener(BulkLoader.ERROR, function (_arg1:Event):void{ }, false, 1, true); } public function get allowsAutoIDFromFileName():Boolean{ return (_allowsAutoIDFromFileName); } public function set allowsAutoIDFromFileName(_arg1:Boolean):void{ _allowsAutoIDFromFileName = _arg1; } public function get loadedRatio():Number{ return (_loadedRatio); } public function loadNow(_arg1):Boolean{ var _local3:LoadingItem; var _local2:LoadingItem = get(_arg1); if (!_local2){ return (false); }; if (!_connections){ _connections = []; }; if ((((_local2.status == LoadingItem.STATUS_FINISHED)) || ((_local2.status == LoadingItem.STATUS_STARTED)))){ return (true); }; if (_connections.length >= numConnections){ _local3 = _getLeastUrgentOpenedItem(); pause(_local3); _removeFromConnections(_local3); _local3.status = null; }; _local2._priority = highestPriority; _loadNext(_local2); return (true); } public function _onItemComplete(_arg1:Event):void{ var _local2:LoadingItem = (_arg1.target as LoadingItem); _removeFromConnections(_local2); log("Loaded ", _local2, LOG_INFO); log("Items to load", getNotLoadedItems(), LOG_VERBOSE); _local2.cleanListeners(); _contents[_local2.url.url] = _local2.content; var _local3:Boolean = _loadNext(); var _local4:Boolean = _isAllDoneP(); _itemsLoaded++; if (_local4){ _onAllLoaded(); }; } public function _getContentAsType(_arg1, _arg2:Class, _arg3:Boolean=false){ var res:*; var key = _arg1; var type = _arg2; var clearMemory = _arg3; if (!_name){ throw (new Error("[BulkLoader] Cannot use an instance that has been cleared from memory (.clear())")); }; var item:LoadingItem = get(key); if (!item){ return (null); }; try { if (((item._isLoaded) || (((item.isStreamable()) && ((item.status == LoadingItem.STATUS_STARTED)))))){ res = (item.content as type); if (res == null){ throw (new Error("bad cast")); }; if (clearMemory){ remove(key); }; return (res); }; } catch(e:Error) { log((("Failed to get content with url: '" + key) + "'as type:"), type, LOG_ERRORS); }; return (null); } public function set stringSubstitutions(_arg1:Object):void{ _stringSubstitutions = _arg1; } public function get contents():Object{ return (_contents); } public function get id():int{ return (_id); } public function getBitmap(_arg1:String, _arg2:Boolean=false):Bitmap{ return (Bitmap(_getContentAsType(_arg1, Bitmap, _arg2))); } public function _removeFromConnections(_arg1):Boolean{ if (!_connections){ return (false); }; var _local2:int = _connections.indexOf(_arg1); if (_local2 > -1){ _connections.splice(_local2, 1); return (true); }; return (false); } public function resume(_arg1):Boolean{ var _local2:LoadingItem = ((_arg1 is LoadingItem)) ? _arg1 : get(_arg1); _isPaused = false; if (((_local2) && ((_local2.status == LoadingItem.STATUS_STOPPED)))){ _local2.status = null; _loadNext(); return (true); }; return (false); } public function _onAllLoaded():void{ if (_isFinished){ return; }; var _local1:BulkProgressEvent = new BulkProgressEvent(COMPLETE); _local1.setInfo(bytesLoaded, bytesTotal, bytesTotalCurrent, _itemsLoaded, itemsTotal, weightPercent); var _local2:BulkProgressEvent = new BulkProgressEvent(PROGRESS); _local2.setInfo(bytesLoaded, bytesTotal, bytesTotalCurrent, _itemsLoaded, itemsTotal, weightPercent); _isRunning = false; _endTIme = getTimer(); totalTime = BulkLoader.truncateNumber(((_endTIme - _startTime) / 1000)); _updateStats(); _connections = []; getStats(); _isFinished = true; log("Finished all", LOG_INFO); dispatchEvent(_local2); dispatchEvent(_local1); } public function removePausedItems():Boolean{ var stoppedLoads:Array = _items.filter(function (_arg1:LoadingItem, ... _args):Boolean{ return ((_arg1.status == LoadingItem.STATUS_STOPPED)); }); stoppedLoads.forEach(function (_arg1:LoadingItem, ... _args):void{ remove(_arg1); }); _loadNext(); return ((stoppedLoads.length > 0)); } public function resumeAll():Boolean{ log("Resuming all items", LOG_VERBOSE); var affected:Boolean; _items.forEach(function (_arg1:LoadingItem, ... _args):void{ if (_arg1.status == LoadingItem.STATUS_STOPPED){ resume(_arg1); affected = true; }; }); _loadNext(); return (affected); } public function get isRunning():Boolean{ return (_isRunning); } public function getNetStreamMetaData(_arg1:String, _arg2:Boolean=false):Object{ var _local3:NetStream = getNetStream(_arg1, _arg2); return ((Boolean(_local3)) ? (get(_arg1) as Object).metaData : null); } public function get logFunction():Function{ return (_logFunction); } public function getProgressForItems(_arg1:Array):BulkProgressEvent{ var _local11:LoadingItem; var _local13:*; _bytesLoaded = (_bytesTotal = (_bytesTotalCurrent = 0)); var _local2:Number = 0; var _local3:int; var _local4:int; var _local5:Number = 0; var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local12:Array = []; for each (_local13 in _arg1) { _local11 = get(_local13); if (!_local11){ } else { _local6++; _local3 = (_local3 + _local11.weight); if ((((((_local11.status == LoadingItem.STATUS_STARTED)) || ((_local11.status == LoadingItem.STATUS_FINISHED)))) || ((_local11.status == LoadingItem.STATUS_STOPPED)))){ _local8 = (_local8 + _local11._bytesLoaded); _local10 = (_local10 + _local11._bytesTotal); _local5 = (_local5 + ((_local11._bytesLoaded / _local11._bytesTotal) * _local11.weight)); if (_local11.status == LoadingItem.STATUS_FINISHED){ _local7++; }; _local4++; }; }; }; if (_local4 != _local6){ _local9 = Number.POSITIVE_INFINITY; } else { _local9 = _local10; }; _local2 = (_local5 / _local3); if (_local3 == 0){ _local2 = 0; }; var _local14:BulkProgressEvent = new BulkProgressEvent(PROGRESS); _local14.setInfo(_local8, _local9, _local9, _local7, _local6, _local2); return (_local14); } public function getContent(_arg1:String, _arg2:Boolean=false){ return (_getContentAsType(_arg1, Object, _arg2)); } public function getSerializedData(_arg1, _arg2:Boolean=false, _arg3:Function=null){ var raw:*; var parsed:*; var key = _arg1; var clearMemory = _arg2; var encodingFunction = _arg3; try { raw = _getContentAsType(key, Object, clearMemory); parsed = encodingFunction.apply(null, [raw]); return (parsed); } catch(e:Error) { log("Failed to parse key:", key, ("with encodingFunction:" + encodingFunction), LOG_ERRORS); }; return (null); } public function log(... _args):void{ var _local2:int = (isNaN(_args[(_args.length - 1)])) ? 3 : int(_args.pop()); if (_local2 >= logLevel){ _logFunction(("[BulkLoader] " + _args.join(" "))); }; } public function clear():void{ removeAll(); delete _allLoaders[name]; _name = null; } public function get speed():Number{ var _local1:int = (getTimer() - _lastSpeedCheck); var _local2:int = ((bytesLoaded - _lastBytesCheck) / 0x0400); var _local3:int = (_local2 / (_local1 / 1000)); _lastSpeedCheck = _local1; _lastBytesCheck = bytesLoaded; return (_local3); } public function get bytesLoaded():int{ return (_bytesLoaded); } public function getFailedItems():Array{ return (_items.filter(function (_arg1:LoadingItem, ... _args):Boolean{ return ((_arg1.status == LoadingItem.STATUS_ERROR)); })); } public function _loadNext(_arg1:LoadingItem=null):Boolean{ var checkItem:LoadingItem; var toLoad = _arg1; if (_isFinished){ return (false); }; if (!_connections){ _connections = []; }; _connections.forEach(function (_arg1:LoadingItem, ... _args):void{ if ((((_arg1.status == LoadingItem.STATUS_ERROR)) && ((_arg1.numTries < _arg1.maxTries)))){ _removeFromConnections(_arg1); }; }); var next:Boolean; if (!toLoad){ for each (checkItem in _items) { if (((!(checkItem._isLoading)) && (!((checkItem.status == LoadingItem.STATUS_STOPPED))))){ toLoad = checkItem; break; }; }; }; if (toLoad){ next = true; _isRunning = true; if (_connections.length < numConnections){ _connections.push(toLoad); toLoad.load(); log("Will load item:", toLoad, LOG_INFO); }; if (_connections.length < numConnections){ _loadNext(); }; }; return (next); } public function getSound(_arg1, _arg2:Boolean=false):Sound{ return (Sound(_getContentAsType(_arg1, Sound, _arg2))); } public function removeFailedItems():int{ var numCleared:int; var badItems:Array = _items.filter(function (_arg1:LoadingItem, ... _args):Boolean{ return ((_arg1.status == LoadingItem.STATUS_ERROR)); }); numCleared = badItems.length; badItems.forEach(function (_arg1:LoadingItem, ... _args):void{ remove(_arg1); }); _loadNext(); return (numCleared); } public function get(_arg1):LoadingItem{ var _local2:LoadingItem; if (!_arg1){ return (null); }; if ((_arg1 is LoadingItem)){ return (_arg1); }; for each (_local2 in _items) { if ((((((((_local2._id == _arg1)) || ((_local2.url.url == _arg1)))) || ((_local2.url == _arg1)))) || ((((_arg1 is URLRequest)) && ((_local2.url.url == _arg1.url)))))){ return (_local2); }; }; return (null); } public function get highestPriority():int{ var _local2:LoadingItem; var _local1:int = int.MIN_VALUE; for each (_local2 in _items) { if (_local2.priority > _local1){ _local1 = _local2.priority; }; }; return (_local1); } public function start(_arg1:int=-1):void{ if (_arg1 > 0){ _numConnections = _arg1; }; if (_connections){ _loadNext(); return; }; _startTime = getTimer(); _connections = []; _loadNext(); _isRunning = true; _lastBytesCheck = 0; _lastSpeedCheck = getTimer(); _isPaused = false; } public function _getLeastUrgentOpenedItem():LoadingItem{ var _local1:LoadingItem = LoadingItem(_connections.sortOn(["priority", "bytesRemaining", "_additionIndex"], [Array.NUMERIC, Array.DESCENDING, Array.NUMERIC, Array.NUMERIC])[0]); return (_local1); } public function get itemsTotal():int{ return (items.length); } public function getBitmapData(_arg1, _arg2:Boolean=false):BitmapData{ var key = _arg1; var clearMemory = _arg2; try { return (getBitmap(key, clearMemory).bitmapData); } catch(e:Error) { log("Failed to get bitmapData with url:", key, LOG_ERRORS); }; return (null); } public function set logFunction(_arg1:Function):void{ _logFunction = _arg1; } override public function toString():String{ return (((((("[BulkLoader] name:" + name) + ", itemsTotal: ") + itemsTotal) + ", itemsLoaded: ") + _itemsLoaded)); } public function sortItemsByPriority():void{ _items.sortOn(["priority", "_additionIndex"], [(Array.NUMERIC | Array.DESCENDING), Array.NUMERIC]); } public function get stringSubstitutions():Object{ return (_stringSubstitutions); } public function get name():String{ return (_name); } public function remove(_arg1, _arg2:Boolean=false):Boolean{ var item:LoadingItem; var allDone:Boolean; var key = _arg1; var internalCall = _arg2; try { item = get(key); if (!item){ return (false); }; _removeFromItems(item); _removeFromConnections(item); item.destroy(); delete _contents[item.url.url]; if (internalCall){ return (true); }; item = null; _onProgress(); allDone = _isAllDoneP(); if (allDone){ _onAllLoaded(); }; return (true); } catch(e:Error) { log(("Error while removing item from key:" + key), e.getStackTrace(), LOG_ERRORS); }; return (false); } public function removeAll():void{ var _local1:LoadingItem; for each (_local1 in _items.slice()) { remove(_local1, true); }; _items = []; _connections = []; _contents = new Dictionary(); } public function _updateStats():void{ var _local4:LoadingItem; avgLatency = 0; speedAvg = 0; var _local1:Number = 0; var _local2:int; _speedTotal = 0; var _local3:Number = 0; for each (_local4 in _items) { if (((_local4._isLoaded) && (!((_local4.status == LoadingItem.STATUS_ERROR))))){ _local1 = (_local1 + _local4.latency); _local2 = (_local2 + _local4.bytesTotal); _local3++; }; }; _speedTotal = ((_local2 / 0x0400) / totalTime); avgLatency = (_local1 / _local3); speedAvg = (_speedTotal / _local3); } public function reload(_arg1):Boolean{ var _local2:LoadingItem = get(_arg1); if (!_local2){ return (false); }; _removeFromItems(_local2); _removeFromConnections(_local2); _local2.stop(); _local2.cleanListeners(); _local2.status = null; _isFinished = false; _local2._addedTime = getTimer(); _local2._additionIndex = _additionIndex++; _local2.addEventListener(Event.COMPLETE, _onItemComplete, false, int.MIN_VALUE, true); _local2.addEventListener(ERROR, _onItemError, false, 0, true); _local2.addEventListener(Event.OPEN, _onItemStarted, false, 0, true); _local2.addEventListener(ProgressEvent.PROGRESS, _onProgress, false, 0, true); _items.push(_local2); _itemsTotal = (_itemsTotal + 1); _totalWeight = (_totalWeight + _local2.weight); sortItemsByPriority(); _isFinished = false; loadNow(_local2); return (true); } public function _onItemStarted(_arg1:Event):void{ var _local2:LoadingItem = (_arg1.target as LoadingItem); log("Started loading", _local2, LOG_INFO); dispatchEvent(_arg1); } public function add(_arg1, _arg2:Object=null):LoadingItem{ var _local4:String; var _local6:String; if (!_name){ throw (new Error("[BulkLoader] Cannot use an instance that has been cleared from memory (.clear())")); }; if (((!(_arg1)) || (!(String(_arg1))))){ throw (new Error("[BulkLoader] Cannot add an item with a null url")); }; _arg2 = ((_arg2) || ({})); if ((_arg1 is String)){ _arg1 = new URLRequest(BulkLoader.substituteURLString(_arg1, _stringSubstitutions)); if (_arg2[HEADERS]){ _arg1.requestHeaders = _arg2[HEADERS]; }; } else { if ((!(_arg1) is URLRequest)){ throw (new Error(("[BulkLoader] cannot add object with bad type for url:'" + _arg1.url))); }; }; var _local3:LoadingItem = get(_arg2[ID]); if (_local3){ log((("Add received an already added id: " + _arg2[ID]) + ", not adding a new item")); return (_local3); }; if (_arg2["type"]){ _local4 = _arg2["type"].toLowerCase(); if (AVAILABLE_TYPES.indexOf(_local4) == -1){ log("add received an unknown type:", _local4, "and will cast it to text", LOG_WARNINGS); }; }; if (!_local4){ _local4 = guessType(_arg1.url); }; _additionIndex++; _local3 = new _typeClasses[_local4](_arg1, _local4, ((_instancesCreated + "_") + String(_additionIndex))); if (((!(_arg2["id"])) && (_allowsAutoIDFromFileName))){ _arg2["id"] = getFileName(_arg1.url); log("Adding automatic id from file name for item:", _local3, (("( id= " + _arg2["id"]) + " )")); }; var _local5:Array = _local3._parseOptions(_arg2); for each (_local6 in _local5) { log(_local6, LOG_WARNINGS); }; log("Added", _local3, LOG_VERBOSE); _local3._addedTime = getTimer(); _local3._additionIndex = _additionIndex; _local3.addEventListener(Event.COMPLETE, _onItemComplete, false, int.MIN_VALUE, true); _local3.addEventListener(ERROR, _onItemError, false, 0, true); _local3.addEventListener(Event.OPEN, _onItemStarted, false, 0, true); _local3.addEventListener(ProgressEvent.PROGRESS, _onProgress, false, 0, true); _items.push(_local3); _itemsTotal = (_itemsTotal + 1); _totalWeight = (_totalWeight + _local3.weight); sortItemsByPriority(); _isFinished = false; if (!_isPaused){ _loadNext(); }; return (_local3); } public function getText(_arg1, _arg2:Boolean=false):String{ return (String(_getContentAsType(_arg1, String, _arg2))); } public function get bytesTotal():int{ return (_bytesTotal); } public function get percentLoaded():Number{ return (_percentLoaded); } public function get weightPercent():Number{ return (_weightPercent); } public function get bytesTotalCurrent():int{ return (_bytesTotalCurrent); } public function getAVM1Movie(_arg1:String, _arg2:Boolean=false):AVM1Movie{ return (AVM1Movie(_getContentAsType(_arg1, AVM1Movie, _arg2))); } public function get isFinished():Boolean{ return (_isFinished); } public function changeItemPriority(_arg1:String, _arg2:int):Boolean{ var _local3:LoadingItem = get(_arg1); if (!_local3){ return (false); }; _local3._priority = _arg2; sortItemsByPriority(); return (true); } public function get items():Array{ return (_items.slice()); } public function getNetStream(_arg1:String, _arg2:Boolean=false):NetStream{ return (NetStream(_getContentAsType(_arg1, NetStream, _arg2))); } public function getHttpStatus(_arg1):int{ var _local2:LoadingItem = get(_arg1); if (_local2){ return (_local2.httpStatus); }; return (-1); } public function set itemsLoaded(_arg1:int):void{ _itemsLoaded = _arg1; } public function _onProgress(_arg1:Event=null):void{ var _local2:BulkProgressEvent = getProgressForItems(_items); _bytesLoaded = _local2.bytesLoaded; _bytesTotal = _local2.bytesTotal; _weightPercent = _local2.weightPercent; _percentLoaded = _local2.percentLoaded; _bytesTotalCurrent = _local2.bytesTotalCurrent; _loadedRatio = _local2.ratioLoaded; dispatchEvent(_local2); } public function hasItem(_arg1, _arg2:Boolean=true):Boolean{ var _local3:*; var _local4:BulkLoader; if (_arg2){ _local3 = _allLoaders; } else { _local3 = [this]; }; for each (_local4 in _local3) { if (_hasItemInBulkLoader(_arg1, _local4)){ return (true); }; }; return (false); } public function _removeFromItems(_arg1:LoadingItem):Boolean{ var _local2:int = _items.indexOf(_arg1); if (_local2 > -1){ _items.splice(_local2, 1); } else { return (false); }; if (_arg1._isLoaded){ _itemsLoaded--; }; _itemsTotal--; _totalWeight = (_totalWeight - _arg1.weight); log(("Removing " + _arg1), LOG_VERBOSE); _arg1.removeEventListener(Event.COMPLETE, _onItemComplete, false); _arg1.removeEventListener(ERROR, _onItemError, false); _arg1.removeEventListener(Event.OPEN, _onItemStarted, false); _arg1.removeEventListener(ProgressEvent.PROGRESS, _onProgress, false); return (true); } public function _isAllDoneP():Boolean{ return (_items.every(function (_arg1:LoadingItem, ... _args):Boolean{ return (_arg1._isLoaded); })); } public function _onItemError(_arg1:ErrorEvent):void{ var _local2:LoadingItem = (_arg1.target as LoadingItem); log(((("After " + _local2.numTries) + " I am giving up on ") + _local2.url.url), LOG_ERRORS); log("Error loading", _local2, _arg1.text, LOG_ERRORS); _removeFromConnections(_local2); _arg1.stopPropagation(); dispatchEvent(_arg1); } public function pauseAll():void{ var _local1:LoadingItem; for each (_local1 in _items) { pause(_local1); }; _isRunning = false; _isPaused = true; log("Stopping all items", LOG_INFO); } public function getNotLoadedItems():Array{ return (_items.filter(function (_arg1:LoadingItem, ... _args):Boolean{ return (!((_arg1.status == LoadingItem.STATUS_FINISHED))); })); } public function getXML(_arg1, _arg2:Boolean=false):XML{ return (XML(_getContentAsType(_arg1, XML, _arg2))); } public function get totalWeight():int{ return (_totalWeight); } public function get itemsLoaded():int{ return (_itemsLoaded); } public function getMovieClip(_arg1:String, _arg2:Boolean=false):MovieClip{ return (MovieClip(_getContentAsType(_arg1, MovieClip, _arg2))); } public function getDisplayObjectLoader(_arg1:String, _arg2:Boolean=false):Loader{ return (Loader(_getContentAsType(_arg1, Loader, _arg2))); } public function get numConnections():int{ return (_numConnections); } public function getStats():String{ var stats:Array = []; stats.push("\n************************************"); stats.push((("All items loaded(" + itemsTotal) + ")")); stats.push(("Total time(s): " + totalTime)); stats.push(("Average latency(s): " + truncateNumber(avgLatency))); stats.push(("Average speed(kb/s): " + truncateNumber(speedAvg))); stats.push(("Median speed(kb/s): " + truncateNumber(_speedTotal))); stats.push(("KiloBytes total: " + truncateNumber((bytesTotal / 0x0400)))); var itemsInfo:Array = _items.map(function (_arg1:LoadingItem, ... _args):String{ return (("\t" + _arg1.getStats())); }); stats.push(itemsInfo.join("\n")); stats.push("************************************"); var statsString:String = stats.join("\n"); log(statsString, LOG_VERBOSE); return (statsString); } public function pause(_arg1, _arg2:Boolean=false):Boolean{ var _local3:LoadingItem = get(_arg1); if (!_local3){ return (false); }; if (_local3.status != LoadingItem.STATUS_FINISHED){ _local3.stop(); }; log("STOPPED ITEM:", _local3, LOG_INFO); var _local4:Boolean = _removeFromConnections(_local3); if (_arg2){ _loadNext(); }; return (_local4); } public function getBinary(_arg1, _arg2:Boolean=false):ByteArray{ return (ByteArray(_getContentAsType(_arg1, ByteArray, _arg2))); } public static function getLoader(_arg1:String):BulkLoader{ return ((BulkLoader._allLoaders[_arg1] as BulkLoader)); } public static function whichLoaderHasItem(_arg1):BulkLoader{ var _local2:BulkLoader; for each (_local2 in _allLoaders) { if (BulkLoader._hasItemInBulkLoader(_arg1, _local2)){ return (_local2); }; }; return (null); } public static function truncateNumber(_arg1:Number, _arg2:int=2):Number{ var _local3:int = Math.pow(10, _arg2); return ((Math.round((_arg1 * _local3)) / _local3)); } public static function __debug_printStackTrace():void{ try { throw (new Error("stack trace")); } catch(e:Error) { trace(e.getStackTrace()); }; } public static function __debug_print_loaders():void{ var instNames:String; var theNames:Array = []; for each (instNames in BulkLoader._allLoaders) { theNames.push(instNames); }; theNames.sort(); trace("All loaders"); theNames.forEach(function (_arg1, ... _args):void{ trace("\t", _arg1); }); trace("==========="); } public static function pauseAllLoaders():void{ var _local1:BulkLoader; for each (_local1 in _allLoaders) { _local1.pauseAll(); }; } public static function _hasItemInBulkLoader(_arg1, _arg2:BulkLoader):Boolean{ var _local3:LoadingItem = _arg2.get(_arg1); if (_local3){ return (true); }; return (false); } public static function createUniqueNamedLoader(_arg1:int=7, _arg2:int=4):BulkLoader{ return (new BulkLoader(BulkLoader.getUniqueName(), _arg1, _arg2)); } public static function removeAllLoaders():void{ var _local1:BulkLoader; for each (_local1 in _allLoaders) { _local1.removeAll(); _local1.clear(); _local1 = null; }; _allLoaders = {}; } public static function getFileName(_arg1:String):String{ if (_arg1.lastIndexOf("/") == (_arg1.length - 1)){ return (getFileName(_arg1.substring(0, (_arg1.length - 1)))); }; var _local2:int = (_arg1.lastIndexOf("/") + 1); var _local3:String = _arg1.substring(_local2); var _local4:int = _local3.indexOf("."); if (_local4 == -1){ if (_local3.indexOf("?") > -1){ _local4 = _local3.indexOf("?"); } else { _local4 = _local3.length; }; }; var _local5:String = _local3.substring(0, _local4); return (_local5); } public static function __debug_print_num_loaders():void{ var _local2:String; var _local1:int; for each (_local2 in BulkLoader._allLoaders) { _local1++; }; trace("BulkLoader has ", _local1, "instances"); } public static function guessType(_arg1:String):String{ var _local5:String; var _local6:String; var _local7:String; var _local2:String = ((_arg1.indexOf("?") > -1)) ? _arg1.substring(0, _arg1.indexOf("?")) : _arg1; var _local3:String = _local2.substring(_local2.lastIndexOf("/")); var _local4:String = _local3.substring((_local3.lastIndexOf(".") + 1)).toLowerCase(); if (!Boolean(_local4)){ _local4 = BulkLoader.TYPE_TEXT; }; if ((((_local4 == BulkLoader.TYPE_IMAGE)) || ((BulkLoader.IMAGE_EXTENSIONS.indexOf(_local4) > -1)))){ _local5 = BulkLoader.TYPE_IMAGE; } else { if ((((_local4 == BulkLoader.TYPE_SOUND)) || ((BulkLoader.SOUND_EXTENSIONS.indexOf(_local4) > -1)))){ _local5 = BulkLoader.TYPE_SOUND; } else { if ((((_local4 == BulkLoader.TYPE_VIDEO)) || ((BulkLoader.VIDEO_EXTENSIONS.indexOf(_local4) > -1)))){ _local5 = BulkLoader.TYPE_VIDEO; } else { if ((((_local4 == BulkLoader.TYPE_XML)) || ((BulkLoader.XML_EXTENSIONS.indexOf(_local4) > -1)))){ _local5 = BulkLoader.TYPE_XML; } else { if ((((_local4 == BulkLoader.TYPE_MOVIECLIP)) || ((BulkLoader.MOVIECLIP_EXTENSIONS.indexOf(_local4) > -1)))){ _local5 = BulkLoader.TYPE_MOVIECLIP; } else { for (_local6 in _customTypesExtensions) { for each (_local7 in _customTypesExtensions[_local6]) { if (_local7 == _local4){ _local5 = _local6; break; }; if (_local5){ break; }; }; }; if (!_local5){ _local5 = BulkLoader.TYPE_TEXT; }; }; }; }; }; }; return (_local5); } public static function registerNewType(_arg1:String, _arg2:String, _arg3:Class):Boolean{ var _local4:Array; if (_arg1.charAt(0) == "."){ _arg1 = _arg1.substring(1); }; if (AVAILABLE_TYPES.indexOf(_arg2) == -1){ if (!Boolean(_arg3)){ throw (new Error("[BulkLoader]: When adding a new type and extension, you must determine which class to use")); }; _typeClasses[_arg2] = _arg3; if (!_customTypesExtensions){ _customTypesExtensions = {}; }; if (!_customTypesExtensions[_arg2]){ _customTypesExtensions[_arg2] = []; AVAILABLE_TYPES.push(_arg2); }; _customTypesExtensions[_arg2].push(_arg1); return (true); } else { _customTypesExtensions[_arg2].push(_arg1); }; var _local5:Object = {IMAGE_EXTENSIONS:TYPE_IMAGE, VIDEO_EXTENSIONS:TYPE_VIDEO, SOUND_EXTENSIONS:TYPE_SOUND, TEXT_EXTENSIONS:TYPE_TEXT}; _local4 = _local5[_arg2]; if (((_local4) && ((_local4.indexOf(_arg1) == -1)))){ _local4.push(_arg1); return (true); }; return (false); } public static function substituteURLString(_arg1:String, _arg2:Object):String{ var _local9:Object; var _local10:Object; var _local12:String; if (!_arg2){ return (_arg1); }; var _local3:RegExp = /(?P<var_name>\{\s*[^\}]*\})/g; var _local4:Object = _local3.exec(_arg1); var _local5:String = (_local4) ? _local4.var_name : null; var _local6:Array = []; var _local7:int; while (((Boolean(_local4)) && (Boolean(_local4.var_name)))) { if (_local4.var_name){ _local5 = _local4.var_name; _local5 = _local5.replace("{", ""); _local5 = _local5.replace("}", ""); _local5 = _local5.replace(/\s*/g, ""); }; _local6.push({start:_local4.index, end:(_local4.index + _local4.var_name.length), changeTo:_arg2[_local5]}); _local7++; if (_local7 > 400){ break; }; _local4 = _local3.exec(_arg1); _local5 = (_local4) ? _local4.var_name : null; }; if (_local6.length == 0){ return (_arg1); }; var _local8:Array = []; var _local11:String = _arg1.substr(0, _local6[0].start); for each (_local10 in _local6) { if (_local9){ _local11 = _arg1.substring(_local9.end, _local10.start); }; _local8.push(_local11); _local8.push(_local10.changeTo); _local9 = _local10; }; _local8.push(_arg1.substring(_local10.end)); return (_local8.join("")); } public static function getUniqueName():String{ return (("BulkLoader-" + _instancesCreated)); } } }//package bloader
Section 9
//BulkProgressEvent (bloader.BulkProgressEvent) package bloader { import flash.events.*; public class BulkProgressEvent extends ProgressEvent { public var bytesTotalCurrent:int; public var itemsTotal:int; public var itemsLoaded:int; public var _percentLoaded:Number; public var _weightPercent:Number; public var _ratioLoaded:Number; public var name:String; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public function BulkProgressEvent(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); this.name = _arg1; } override public function clone():Event{ var _local1:BulkProgressEvent = new BulkProgressEvent(name, bubbles, cancelable); _local1.setInfo(bytesLoaded, bytesTotal, bytesTotalCurrent, itemsLoaded, itemsTotal, weightPercent); return (_local1); } public function get weightPercent():Number{ return (_weightPercent); } public function set ratioLoaded(_arg1:Number):void{ if (((isNaN(_arg1)) || (!(isFinite(_arg1))))){ _arg1 = 0; }; _ratioLoaded = _arg1; } public function setInfo(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:Number):void{ this.bytesLoaded = _arg1; this.bytesTotal = _arg2; this.bytesTotalCurrent = _arg3; this.itemsLoaded = _arg4; this.itemsTotal = _arg5; this.weightPercent = _arg6; this.percentLoaded = ((_arg2 > 0)) ? (_arg1 / _arg2) : 0; ratioLoaded = ((_arg5 == 0)) ? 0 : (_arg4 / _arg5); } public function set percentLoaded(_arg1:Number):void{ if (((isNaN(_arg1)) || (!(isFinite(_arg1))))){ _arg1 = 0; }; _percentLoaded = _arg1; } public function loadingStatus():String{ var _local1:Array = []; _local1.push(("bytesLoaded: " + bytesLoaded)); _local1.push(("bytesTotal: " + bytesTotal)); _local1.push(("itemsLoaded: " + itemsLoaded)); _local1.push(("itemsTotal: " + itemsTotal)); _local1.push(("bytesTotalCurrent: " + bytesTotalCurrent)); _local1.push(("percentLoaded: " + BulkLoader.truncateNumber(percentLoaded))); _local1.push(("weightPercent: " + BulkLoader.truncateNumber(weightPercent))); _local1.push(("ratioLoaded: " + BulkLoader.truncateNumber(ratioLoaded))); return ((("BulkProgressEvent " + _local1.join(", ")) + ";")); } public function get ratioLoaded():Number{ return (_ratioLoaded); } public function get percentLoaded():Number{ return (_percentLoaded); } public function set weightPercent(_arg1:Number):void{ if (((isNaN(_arg1)) || (!(isFinite(_arg1))))){ _arg1 = 0; }; _weightPercent = _arg1; } override public function toString():String{ return (super.toString()); } } }//package bloader
Section 10
//JSON (com.adobe.serialization.json.JSON) package com.adobe.serialization.json { public class JSON { public static function decode(_arg1:String){ var _local2:JSONDecoder = new JSONDecoder(_arg1); return (_local2.getValue()); } public static function encode(_arg1:Object):String{ var _local2:JSONEncoder = new JSONEncoder(_arg1); return (_local2.getString()); } } }//package com.adobe.serialization.json
Section 11
//JSONDecoder (com.adobe.serialization.json.JSONDecoder) package com.adobe.serialization.json { public class JSONDecoder { private var value; private var tokenizer:JSONTokenizer; private var token:JSONToken; public function JSONDecoder(_arg1:String){ tokenizer = new JSONTokenizer(_arg1); nextToken(); value = parseValue(); } private function parseObject():Object{ var _local2:String; var _local1:Object = new Object(); nextToken(); if (token.type == JSONTokenType.RIGHT_BRACE){ return (_local1); }; while (true) { if (token.type == JSONTokenType.STRING){ _local2 = String(token.value); nextToken(); if (token.type == JSONTokenType.COLON){ nextToken(); _local1[_local2] = parseValue(); nextToken(); if (token.type == JSONTokenType.RIGHT_BRACE){ return (_local1); }; if (token.type == JSONTokenType.COMMA){ nextToken(); } else { tokenizer.parseError(("Expecting } or , but found " + token.value)); }; } else { tokenizer.parseError(("Expecting : but found " + token.value)); }; } else { tokenizer.parseError(("Expecting string but found " + token.value)); }; }; return (null); } private function parseValue():Object{ switch (token.type){ case JSONTokenType.LEFT_BRACE: return (parseObject()); case JSONTokenType.LEFT_BRACKET: return (parseArray()); case JSONTokenType.STRING: case JSONTokenType.NUMBER: case JSONTokenType.TRUE: case JSONTokenType.FALSE: case JSONTokenType.NULL: return (token.value); default: tokenizer.parseError(("Unexpected " + token.value)); }; return (null); } private function nextToken():JSONToken{ return ((token = tokenizer.getNextToken())); } public function getValue(){ return (value); } private function parseArray():Array{ var _local1:Array = new Array(); nextToken(); if (token.type == JSONTokenType.RIGHT_BRACKET){ return (_local1); }; while (true) { _local1.push(parseValue()); nextToken(); if (token.type == JSONTokenType.RIGHT_BRACKET){ return (_local1); }; if (token.type == JSONTokenType.COMMA){ nextToken(); } else { tokenizer.parseError(("Expecting ] or , but found " + token.value)); }; }; return (null); } } }//package com.adobe.serialization.json
Section 12
//JSONEncoder (com.adobe.serialization.json.JSONEncoder) package com.adobe.serialization.json { import flash.utils.*; public class JSONEncoder { private var jsonString:String; public function JSONEncoder(_arg1){ jsonString = convertToString(_arg1); } private function escapeString(_arg1:String):String{ var _local3:String; var _local6:String; var _local7:String; var _local2 = ""; var _local4:Number = _arg1.length; var _local5:int; while (_local5 < _local4) { _local3 = _arg1.charAt(_local5); switch (_local3){ case "\"": _local2 = (_local2 + "\\\""); break; case "\\": _local2 = (_local2 + "\\\\"); break; case "\b": _local2 = (_local2 + "\\b"); break; case "\f": _local2 = (_local2 + "\\f"); break; case "\n": _local2 = (_local2 + "\\n"); break; case "\r": _local2 = (_local2 + "\\r"); break; case "\t": _local2 = (_local2 + "\\t"); break; default: if (_local3 < " "){ _local6 = _local3.charCodeAt(0).toString(16); _local7 = ((_local6.length == 2)) ? "00" : "000"; _local2 = (_local2 + (("\\u" + _local7) + _local6)); } else { _local2 = (_local2 + _local3); }; }; _local5++; }; return ((("\"" + _local2) + "\"")); } private function arrayToString(_arg1:Array):String{ var _local2 = ""; var _local3:int; while (_local3 < _arg1.length) { if (_local2.length > 0){ _local2 = (_local2 + ","); }; _local2 = (_local2 + convertToString(_arg1[_local3])); _local3++; }; return ((("[" + _local2) + "]")); } public function getString():String{ return (jsonString); } private function objectToString(_arg1:Object):String{ var value:Object; var key:String; var v:XML; var o = _arg1; var s = ""; var classInfo:XML = describeType(o); if (classInfo.@name.toString() == "Object"){ for (key in o) { value = o[key]; if ((value is Function)){ } else { if (s.length > 0){ s = (s + ","); }; s = (s + ((escapeString(key) + ":") + convertToString(value))); }; }; } else { for each (v in classInfo..*.(((name() == "variable")) || ((name() == "accessor")))) { if (s.length > 0){ s = (s + ","); }; s = (s + ((escapeString(v.@name.toString()) + ":") + convertToString(o[v.@name]))); }; }; return ((("{" + s) + "}")); } private function convertToString(_arg1):String{ if ((_arg1 is String)){ return (escapeString((_arg1 as String))); }; if ((_arg1 is Number)){ return ((isFinite((_arg1 as Number))) ? _arg1.toString() : "null"); } else { if ((_arg1 is Boolean)){ return ((_arg1) ? "true" : "false"); } else { if ((_arg1 is Array)){ return (arrayToString((_arg1 as Array))); }; if ((((_arg1 is Object)) && (!((_arg1 == null))))){ return (objectToString(_arg1)); }; }; }; return ("null"); } } }//package com.adobe.serialization.json
Section 13
//JSONParseError (com.adobe.serialization.json.JSONParseError) package com.adobe.serialization.json { public class JSONParseError extends Error { private var _location:int; private var _text:String; public function JSONParseError(_arg1:String="", _arg2:int=0, _arg3:String=""){ super(_arg1); _location = _arg2; _text = _arg3; } public function get location():int{ return (_location); } public function get text():String{ return (_text); } } }//package com.adobe.serialization.json
Section 14
//JSONToken (com.adobe.serialization.json.JSONToken) package com.adobe.serialization.json { public class JSONToken { private var _value:Object; private var _type:int; public function JSONToken(_arg1:int=-1, _arg2:Object=null){ _type = _arg1; _value = _arg2; } public function get value():Object{ return (_value); } public function get type():int{ return (_type); } public function set type(_arg1:int):void{ _type = _arg1; } public function set value(_arg1:Object):void{ _value = _arg1; } } }//package com.adobe.serialization.json
Section 15
//JSONTokenizer (com.adobe.serialization.json.JSONTokenizer) package com.adobe.serialization.json { public class JSONTokenizer { private var loc:int; private var ch:String; private var obj:Object; private var jsonString:String; public function JSONTokenizer(_arg1:String){ jsonString = _arg1; loc = 0; nextChar(); } private function skipComments():void{ if (ch == "/"){ nextChar(); switch (ch){ case "/": do { nextChar(); } while (((!((ch == "\n"))) && (!((ch == ""))))); nextChar(); break; case "*": nextChar(); while (true) { if (ch == "*"){ nextChar(); if (ch == "/"){ nextChar(); break; }; } else { nextChar(); }; if (ch == ""){ parseError("Multi-line comment not closed"); }; }; break; default: parseError((("Unexpected " + ch) + " encountered (expecting '/' or '*' )")); }; }; } private function isDigit(_arg1:String):Boolean{ return ((((_arg1 >= "0")) && ((_arg1 <= "9")))); } private function readString():JSONToken{ var _local3:String; var _local4:int; var _local1:JSONToken = new JSONToken(); _local1.type = JSONTokenType.STRING; var _local2 = ""; nextChar(); while (((!((ch == "\""))) && (!((ch == ""))))) { if (ch == "\\"){ nextChar(); switch (ch){ case "\"": _local2 = (_local2 + "\""); break; case "/": _local2 = (_local2 + "/"); break; case "\\": _local2 = (_local2 + "\\"); break; case "b": _local2 = (_local2 + "\b"); break; case "f": _local2 = (_local2 + "\f"); break; case "n": _local2 = (_local2 + "\n"); break; case "r": _local2 = (_local2 + "\r"); break; case "t": _local2 = (_local2 + "\t"); break; case "u": _local3 = ""; _local4 = 0; while (_local4 < 4) { if (!isHexDigit(nextChar())){ parseError((" Excepted a hex digit, but found: " + ch)); }; _local3 = (_local3 + ch); _local4++; }; _local2 = (_local2 + String.fromCharCode(parseInt(_local3, 16))); break; default: _local2 = (_local2 + ("\\" + ch)); }; } else { _local2 = (_local2 + ch); }; nextChar(); }; if (ch == ""){ parseError("Unterminated string literal"); }; nextChar(); _local1.value = _local2; return (_local1); } private function nextChar():String{ return ((ch = jsonString.charAt(loc++))); } public function getNextToken():JSONToken{ var _local2:String; var _local3:String; var _local4:String; var _local1:JSONToken = new JSONToken(); skipIgnored(); switch (ch){ case "{": _local1.type = JSONTokenType.LEFT_BRACE; _local1.value = "{"; nextChar(); break; case "}": _local1.type = JSONTokenType.RIGHT_BRACE; _local1.value = "}"; nextChar(); break; case "[": _local1.type = JSONTokenType.LEFT_BRACKET; _local1.value = "["; nextChar(); break; case "]": _local1.type = JSONTokenType.RIGHT_BRACKET; _local1.value = "]"; nextChar(); break; case ",": _local1.type = JSONTokenType.COMMA; _local1.value = ","; nextChar(); break; case ":": _local1.type = JSONTokenType.COLON; _local1.value = ":"; nextChar(); break; case "t": _local2 = ((("t" + nextChar()) + nextChar()) + nextChar()); if (_local2 == "true"){ _local1.type = JSONTokenType.TRUE; _local1.value = true; nextChar(); } else { parseError(("Expecting 'true' but found " + _local2)); }; break; case "f": _local3 = (((("f" + nextChar()) + nextChar()) + nextChar()) + nextChar()); if (_local3 == "false"){ _local1.type = JSONTokenType.FALSE; _local1.value = false; nextChar(); } else { parseError(("Expecting 'false' but found " + _local3)); }; break; case "n": _local4 = ((("n" + nextChar()) + nextChar()) + nextChar()); if (_local4 == "null"){ _local1.type = JSONTokenType.NULL; _local1.value = null; nextChar(); } else { parseError(("Expecting 'null' but found " + _local4)); }; break; case "\"": _local1 = readString(); break; default: if (((isDigit(ch)) || ((ch == "-")))){ _local1 = readNumber(); } else { if (ch == ""){ return (null); }; parseError((("Unexpected " + ch) + " encountered")); }; }; return (_local1); } private function skipWhite():void{ while (isWhiteSpace(ch)) { nextChar(); }; } public function parseError(_arg1:String):void{ throw (new JSONParseError(_arg1, loc, jsonString)); } private function isWhiteSpace(_arg1:String):Boolean{ return ((((((_arg1 == " ")) || ((_arg1 == "\t")))) || ((_arg1 == "\n")))); } private function skipIgnored():void{ skipWhite(); skipComments(); skipWhite(); } private function isHexDigit(_arg1:String):Boolean{ var _local2:String = _arg1.toUpperCase(); return (((isDigit(_arg1)) || ((((_local2 >= "A")) && ((_local2 <= "F")))))); } private function readNumber():JSONToken{ var _local1:JSONToken = new JSONToken(); _local1.type = JSONTokenType.NUMBER; var _local2 = ""; if (ch == "-"){ _local2 = (_local2 + "-"); nextChar(); }; if (!isDigit(ch)){ parseError("Expecting a digit"); }; if (ch == "0"){ _local2 = (_local2 + ch); nextChar(); if (isDigit(ch)){ parseError("A digit cannot immediately follow 0"); }; } else { while (isDigit(ch)) { _local2 = (_local2 + ch); nextChar(); }; }; if (ch == "."){ _local2 = (_local2 + "."); nextChar(); if (!isDigit(ch)){ parseError("Expecting a digit"); }; while (isDigit(ch)) { _local2 = (_local2 + ch); nextChar(); }; }; if ((((ch == "e")) || ((ch == "E")))){ _local2 = (_local2 + "e"); nextChar(); if ((((ch == "+")) || ((ch == "-")))){ _local2 = (_local2 + ch); nextChar(); }; if (!isDigit(ch)){ parseError("Scientific notation number needs exponent value"); }; while (isDigit(ch)) { _local2 = (_local2 + ch); nextChar(); }; }; var _local3:Number = Number(_local2); if (((isFinite(_local3)) && (!(isNaN(_local3))))){ _local1.value = _local3; return (_local1); }; parseError((("Number " + _local3) + " is not valid!")); return (null); } } }//package com.adobe.serialization.json
Section 16
//JSONTokenType (com.adobe.serialization.json.JSONTokenType) package com.adobe.serialization.json { public class JSONTokenType { public static const NUMBER:int = 11; public static const FALSE:int = 8; public static const RIGHT_BRACKET:int = 4; public static const NULL:int = 9; public static const TRUE:int = 7; public static const RIGHT_BRACE:int = 2; public static const UNKNOWN:int = -1; public static const COMMA:int = 0; public static const LEFT_BRACKET:int = 3; public static const STRING:int = 10; public static const LEFT_BRACE:int = 1; public static const COLON:int = 6; } }//package com.adobe.serialization.json
Section 17
//Loader (com.wispagency.display.Loader) package com.wispagency.display { import flash.events.*; import flash.display.*; import flash.net.*; import flash.system.*; import flash.utils.*; public class Loader extends Sprite { private var realLoader:Loader; private var loader:URLLoader; private var loaderContext:LoaderContext;// = null private var loaderInfoReference:LoaderInfo; private var commObject:Object; public function Loader(){ commObject = {url:""}; super(); loader = new URLLoader(); loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, handleHttpStatus); loader.addEventListener(Event.COMPLETE, handleLoadComplete); loader.addEventListener(IOErrorEvent.IO_ERROR, handleURLLoadError); loader.addEventListener(ProgressEvent.PROGRESS, handleProgress); loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, handleSecurityError); loader.dataFormat = URLLoaderDataFormat.BINARY; realLoader = new Loader(); realLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoaderComplete); realLoader.contentLoaderInfo.addEventListener(Event.UNLOAD, handleUnload); realLoader.addEventListener(Event.INIT, handleInit); loaderInfoReference = new LoaderInfo(this, loader, realLoader, commObject); addChild(realLoader); } private function handleUnload(_arg1:Event):void{ loaderInfoReference.dispatchEvent(_arg1); } private function handleLoadComplete(_arg1:Event):void{ realLoader.loadBytes(loader.data, loaderContext); } private function handleInit(_arg1:Event):void{ loaderInfoReference.dispatchEvent(_arg1); } private function handleURLLoadError(_arg1:IOErrorEvent):void{ loaderInfo.dispatchEvent(_arg1); } private function handleSecurityError(_arg1:Event):void{ loaderInfoReference.dispatchEvent(_arg1); } public function loadBytes(_arg1:ByteArray, _arg2:LoaderContext=null):void{ loaderContext = _arg2; commObject.url = ""; } private function handleHttpStatus(_arg1:HTTPStatusEvent):void{ contentLoaderInfo.dispatchEvent(_arg1); } override public function toString():String{ return ("[Instance Of Wisp Loader]"); } public function load(_arg1:URLRequest, _arg2:LoaderContext=null):void{ loaderContext = _arg2; commObject.url = _arg1.url; loader.load(_arg1); } private function handleLoaderComplete(_arg1:Event):void{ loaderInfoReference.dispatchEvent(_arg1); } private function handleProgress(_arg1:ProgressEvent):void{ loaderInfoReference.dispatchEvent(_arg1); } public function close():void{ commObject.url = ""; loader.close(); realLoader.close(); } public function get content():DisplayObject{ return (realLoader.content); } public function get contentLoaderInfo():LoaderInfo{ return (loaderInfoReference); } public function unload():void{ commObject.url = ""; close(); realLoader.unload(); } } }//package com.wispagency.display
Section 18
//LoaderInfo (com.wispagency.display.LoaderInfo) package com.wispagency.display { import flash.events.*; import flash.display.*; import flash.net.*; import flash.system.*; import flash.utils.*; public class LoaderInfo extends EventDispatcher { protected var parentLoader:Loader; protected var urlLoader:URLLoader; protected var commObject:Object; protected var displayLoader:Loader; public function LoaderInfo(_arg1:Loader, _arg2:URLLoader, _arg3:Loader, _arg4:Object){ parentLoader = _arg1; urlLoader = _arg2; displayLoader = _arg3; commObject = _arg4; } override public function dispatchEvent(_arg1:Event):Boolean{ return (super.dispatchEvent(_arg1)); } public function get width():int{ return (displayLoader.contentLoaderInfo.width); } public function get sameDomain():Boolean{ return (displayLoader.contentLoaderInfo.sameDomain); } public function set parentSandboxBridge(_arg1:Object):void{ displayLoader.contentLoaderInfo["parentSandboxBridge"] = _arg1; } public function get bytesLoaded():uint{ return (displayLoader.contentLoaderInfo.bytesLoaded); } public function get contentType():String{ return (displayLoader.contentLoaderInfo.contentType); } public function get childAllowsParent():Boolean{ return (displayLoader.contentLoaderInfo.childAllowsParent); } public function get bytesTotal():uint{ return (displayLoader.contentLoaderInfo.bytesTotal); } public function get loader():Loader{ return (parentLoader); } public function get loaderURL():String{ return (displayLoader.contentLoaderInfo.loaderURL); } public function get sharedEvents():EventDispatcher{ return (displayLoader.contentLoaderInfo.sharedEvents); } public function get parentSandboxBridge():Object{ return (displayLoader.contentLoaderInfo["parentSandboxBridge"]); } public function get height():int{ return (displayLoader.contentLoaderInfo.height); } public function set childSandboxBridge(_arg1:Object):void{ displayLoader.contentLoaderInfo["childSandboxBridge"] = _arg1; } override public function toString():String{ return ("[Object Wisp LoaderInfo]"); } public function get frameRate():Number{ return (displayLoader.contentLoaderInfo.frameRate); } public function get parentAllowsChild():Boolean{ return (displayLoader.contentLoaderInfo.parentAllowsChild); } public function get parameters():Object{ return (displayLoader.contentLoaderInfo.parameters); } public function get bytes():ByteArray{ return (displayLoader.contentLoaderInfo.bytes); } public function get applicationDomain():ApplicationDomain{ return (displayLoader.contentLoaderInfo.applicationDomain); } public function get swfVersion():uint{ return (displayLoader.contentLoaderInfo.swfVersion); } public function get actionScriptVersion():uint{ return (displayLoader.contentLoaderInfo.actionScriptVersion); } public function get content():DisplayObject{ return (displayLoader.contentLoaderInfo.content); } public function get childSandboxBridge():Object{ return (displayLoader.contentLoaderInfo["childSandboxBridge"]); } public function get url():String{ return (commObject.url); } public static function getLoaderInfoByDefinition(_arg1:Object):LoaderInfo{ return (Loader["getLoaderInfoByDefinition"](_arg1)); } } }//package com.wispagency.display
Section 19
//DesertScript (dinowaurs.audio.DesertScript) package dinowaurs.audio { import flash.events.*; import dinowaurs.*; import dinowaurs.managers.*; public class DesertScript extends MusicScript { public function DesertScript(){ nextTrackOff = 80; arenaTracks = new Array(new MusicTrack("MUSIC_MexicanDesertPart_A_02", this), new MusicTrack("MUSIC_MexicanDesertPart_B_02", this), new MusicTrack("MUSIC_MexicanDesertPart_C_02", this), new MusicTrack("MUSIC_MexicanDesertPart_D_02", this), new MusicTrack("MUSIC_MexicanDesertPart_E_02", this)); tunes = new Array(new Array("MUSIC_MexicanDesertPart_A_02", "MUSIC_MexicanDesertPart_B_02"), new Array("MUSIC_MexicanDesertPart_B_02"), new Array("MUSIC_MexicanDesertPart_B_02", "MUSIC_MexicanDesertPart_C_02"), new Array("MUSIC_MexicanDesertPart_C_02", "MUSIC_MexicanDesertPart_D_02", "MUSIC_MexicanDesertPart_E_02")); tuneEvents = new Array("startGame", "villageDeath", "equipTier3", "lastVillage"); } override public function nextTrack(_arg1:TimerEvent):void{ var _local2:int; var _local3:int; var _local4:VillageZone; if (currentTune == tunes[2]){ if (currentTrack >= currentTune.length){ _local2 = 0; _local3 = 0; for each (_local4 in Main.GAME_MANAGER.currentVillageMenu) { if (_local4.mVillageBuilt){ if (_local4.mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ _local2++; } else { _local3++; }; }; }; if ((((_local2 <= 1)) || ((_local3 <= 1)))){ currentTrack = -1; }; }; }; super.nextTrack(_arg1); } } }//package dinowaurs.audio
Section 20
//JungleScript (dinowaurs.audio.JungleScript) package dinowaurs.audio { import flash.events.*; import dinowaurs.*; import dinowaurs.managers.*; public class JungleScript extends MusicScript { public function JungleScript(){ nextTrackOff = 80; arenaTracks = new Array(new MusicTrack("MUSIC_JungleThemeA_02", this), new MusicTrack("MUSIC_JungleUnderALoop_02", this), new MusicTrack("MUSIC_JungleUnderABuild_02", this), new MusicTrack("MUSIC_JungleThemeB_02", this), new MusicTrack("MUSIC_JungleUnderBLoop_02", this), new MusicTrack("MUSIC_JungleUnderBBuild_02", this)); tunes = new Array(new Array("MUSIC_JungleUnderBLoop_02", "MUSIC_JungleUnderBLoop_02"), new Array("MUSIC_JungleUnderALoop_02"), new Array("MUSIC_JungleUnderABuild_02", "MUSIC_JungleThemeA_02", "MUSIC_JungleThemeA_02"), new Array("MUSIC_JungleThemeB_02", "MUSIC_JungleThemeB_02", "MUSIC_JungleThemeB_02", "MUSIC_JungleThemeB_02")); tuneEvents = new Array("startGame", "villageDeath", "equipTier3", "lastVillage"); } override public function nextTrack(_arg1:TimerEvent):void{ var _local2:int; var _local3:int; var _local4:VillageZone; if (currentTune == tunes[2]){ if (currentTrack >= currentTune.length){ _local2 = 0; _local3 = 0; for each (_local4 in Main.GAME_MANAGER.currentVillageMenu) { if (_local4.mVillageBuilt){ if (_local4.mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ _local2++; } else { _local3++; }; }; }; if ((((_local2 <= 1)) || ((_local3 <= 1)))){ currentTrack = -1; }; }; }; super.nextTrack(_arg1); } } }//package dinowaurs.audio
Section 21
//MenuScript (dinowaurs.audio.MenuScript) package dinowaurs.audio { import flash.events.*; public class MenuScript extends MusicScript { public function MenuScript(){ arenaTracks = new Array(new MusicTrack("MUSIC_Auto", this)); tunes = new Array(new Array("MUSIC_Auto")); tuneEvents = new Array("enterMenu"); } override public function nextTrack(_arg1:TimerEvent):void{ currentTrack = 0; playTrack(currentTrack, currentTune); } } }//package dinowaurs.audio
Section 22
//MusicScript (dinowaurs.audio.MusicScript) package dinowaurs.audio { import flash.events.*; import flash.utils.*; import flash.media.*; public class MusicScript { public var nextTrackTimer:Timer; public var arenaTracks:Array; public var currentTune:Array; public var currentTrack:int; public var playing:Boolean;// = false public var nextTrackOff:Number;// = 0 public var tuneEvents:Array; public var tunes:Array; public function MusicScript(){ tunes = new Array(); currentTune = new Array(); currentTrack = -1; arenaTracks = new Array(); } public function stopTune():void{ stopMusic(); currentTune = new Array(); currentTrack = -1; } public function stopMusic():void{ var _local1:MusicTrack; for each (_local1 in arenaTracks) { _local1.stop(); playing = false; }; } public function playTrack(_arg1:int, _arg2:Array):Number{ var _local4:MusicTrack; var _local3:String = _arg2[_arg1]; trace(("PLAYING - " + _local3)); for each (_local4 in arenaTracks) { if (_local4.handle == _local3){ if ((((_arg1 == 0)) && (!((_arg1 == (_arg2.length - 1)))))){ _local4.play(0, 0.003); } else { if ((((_arg1 == (_arg2.length - 1))) && (!((_arg1 == 0))))){ _local4.play(0, -0.001); } else { _local4.play(); }; }; return (_local4.sound.length); }; }; return (-1); } public function playTune(_arg1:int):void{ currentTune = tunes[_arg1]; currentTrack = -1; playing = true; nextTrack(null); } public function addTune(_arg1:String, _arg2:Array):void{ tunes.push(_arg2); tuneEvents.push(_arg1); } public function signalMusicEvent(_arg1:String):void{ if (currentTrack != -1){ return; }; var _local2:int; while (_local2 < tunes.length) { if (_arg1.match(tuneEvents[_local2])){ if (!playing){ playTune(_local2); }; return; }; _local2++; }; } public function nextTrack(_arg1:TimerEvent):void{ var _local3:Number; var _local2:uint = getTimer(); if (currentTrack >= (currentTune.length - 1)){ stopTune(); } else { currentTrack++; _local3 = playTrack(currentTrack, currentTune); trace(((getTimer() - _local2) + " time to play this shit")); if (currentTrack < (currentTune.length - 1)){ if (nextTrackTimer != null){ nextTrackTimer.removeEventListener("timer", nextTrack); }; nextTrackTimer = new Timer((_local3 - nextTrackOff)); nextTrackTimer.addEventListener("timer", nextTrack); nextTrackTimer.start(); }; }; } } }//package dinowaurs.audio
Section 23
//MusicTrack (dinowaurs.audio.MusicTrack) package dinowaurs.audio { import flash.events.*; import flash.media.*; import dinowaurs.managers.*; public class MusicTrack extends SoundEffect { public var MUSIC_MAX;// = 0.25 public var parentScript:MusicScript; public var fade:Number; public var fadeLevel:Number; public function MusicTrack(_arg1:String, _arg2:MusicScript){ super(_arg1, 1, 10, 1, 0); if (_arg1.match("hellbound")){ MUSIC_MAX = 0.15; }; if (_arg1.match("Auto")){ MUSIC_MAX = 0.1; }; parentScript = _arg2; } override public function play(_arg1:int=0, _arg2:Number=0):SoundEffect{ if (SoundManager.mute){ return (null); }; if (!bSubscribing){ startTicking(); }; if (_arg1 != 0){ playDelay = _arg1; return (this); }; fade = _arg2; fadeLevel = -1; if (fade == 0){ transform.volume = (Main.GAME_SETTINGS.MusicVolume * MUSIC_MAX); } else { if (fade < 0){ fadeLevel = 1; } else { fadeLevel = 0; }; }; if (fadeLevel != -1){ transform.volume = ((Main.GAME_SETTINGS.MusicVolume * MUSIC_MAX) * fadeLevel); }; var _local3:SoundChannel = sound.play(0, loops); if (_local3 != null){ _local3.soundTransform = transform; channels.push(_local3); _local3.addEventListener(Event.SOUND_COMPLETE, channelComplete, false, 0, true); }; return (this); } override public function tick(_arg1:uint):void{ var _local2:SoundChannel; if (myKillFlag){ return; }; if (SoundManager.mute){ stop(); }; if (fade == 0){ transform.volume = (Main.GAME_SETTINGS.MusicVolume * MUSIC_MAX); } else { fadeLevel = (fadeLevel + fade); if (fadeLevel > 1){ fadeLevel = 1; } else { if (fadeLevel < 0){ fadeLevel = 0; }; }; transform.volume = ((Main.GAME_SETTINGS.MusicVolume * MUSIC_MAX) * fadeLevel); }; for each (_local2 in channels) { _local2.soundTransform = transform; }; } override public function channelComplete(_arg1:Event):void{ super.channelComplete(_arg1); } } }//package dinowaurs.audio
Section 24
//SoundEffect (dinowaurs.audio.SoundEffect) package dinowaurs.audio { import flash.events.*; import engine.core.*; import flash.net.*; import flash.utils.*; import flash.media.*; import dinowaurs.managers.*; public class SoundEffect extends Tickable { public var volumeOffset:Number; public var sound:Sound; public var channels:Array; public var fadeValue:Number; public var loops:int; public var retrigger:uint; public var FX_MAX:Number;// = 0.7 public var handle:String; public var transform:SoundTransform; public var playDelay:int;// = 0 public var value:int; public var triggerTime:uint;// = 0 public var fadeVol:Number; public var fading:Boolean;// = false public function SoundEffect(_arg1:String, _arg2:Number=1, _arg3:int=0, _arg4:uint=2, _arg5:int=0){ var _local6:Class; super(_arg1, false); retrigger = _arg4; value = _arg3; loops = _arg5; volumeOffset = _arg2; handle = _arg1; if (_arg1.match("MUSIC_Jungle")){ _local6 = AssetLoader.getAsset("music_jungle", _arg1); sound = new (_local6); } else { if (_arg1.match("MUSIC_Mexican")){ _local6 = AssetLoader.getAsset("music_desert", _arg1); sound = new (_local6); } else { if (_arg1.match("MUSIC_Snow")){ _local6 = AssetLoader.getAsset("music_winter", _arg1); sound = new (_local6); } else { if (_arg1.match("MUSIC_Auto")){ _local6 = AssetLoader.getAsset("music_menu", _arg1); sound = new (_local6); } else { if (_arg1.match("hellbound")){ _local6 = AssetLoader.getAsset("music_waste", _arg1); sound = new (_local6); } else { _local6 = AssetLoader.getAsset("sound", _arg1); sound = new (_local6); }; }; }; }; }; channels = new Array(); transform = new SoundTransform(_arg2); } override public function kill():void{ super.kill(); } public function get SCORE():Number{ var _local1:Number; var _local2:SoundChannel; if (loops != 0){ _local1 = 100000; for each (_local2 in channels) { if (_local1 > _local2.position){ _local1 = _local2.position; }; }; return ((value + ((1 - (_local1 / sound.length)) * 10))); //unresolved jump }; return ((10 + value)); } public function ioError(_arg1:IOErrorEvent):void{ trace(((("IOerrorEvent: sound==" + handle) + " ERROR: ") + _arg1)); } public function stop():void{ var _local1:SoundChannel; for each (_local1 in channels) { _local1.stop(); }; channels = new Array(); stopTicking(); } public function channelComplete(_arg1:Event):void{ var _local2:SoundChannel = SoundChannel(_arg1.target); trace(("this sound finished " + handle)); var _local3:int; while (_local3 < channels.length) { if (_local2 == channels[_local3]){ channels[_local3] = channels[(channels.length - 1)]; channels.pop(); }; _local3++; }; } override public function tick(_arg1:uint):void{ var _local2:SoundChannel; super.tick(_arg1); if (myKillFlag){ return; }; if (!fading){ transform.volume = ((Main.GAME_SETTINGS.EffectsVolume * FX_MAX) * volumeOffset); } else { if (fading){ if (fadeValue > 0){ if (fadeVol < (volumeOffset * SoundManager.fxVolume)){ fadeVol = (fadeVol * (1 + fadeValue)); transform.volume = fadeVol; } else { fading = false; }; }; if (fadeValue < 0){ if (transform.volume > 0){ fadeVol = (fadeVol * (1 + fadeValue)); transform.volume = fadeVol; } else { stop(); }; }; }; }; for each (_local2 in channels) { _local2.soundTransform = transform; }; if (channels.length == 0){ stop(); }; if (playDelay > 0){ playDelay = (playDelay - _arg1); if (playDelay <= 0){ play(); }; }; } public function getInfo():String{ var _local1:String = handle; _local1 = (_local1 + ("..." + channels.length)); return (_local1); } public function play(_arg1:int=0, _arg2:Number=0):SoundEffect{ var _local4:SoundChannel; if (!bSubscribing){ startTicking(); }; if (_arg1 != 0){ playDelay = _arg1; return (this); }; var _local3:uint = getTimer(); if ((_local3 - triggerTime) <= retrigger){ return (this); }; triggerTime = _local3; transform.volume = ((Main.GAME_SETTINGS.EffectsVolume * FX_MAX) * volumeOffset); _local4 = sound.play(0, loops, transform); if (_local4 != null){ channels.push(_local4); SoundManager.addPlayingSound(this); _local4.addEventListener(Event.SOUND_COMPLETE, channelComplete, false, 0, true); }; return (this); } public function startFade(_arg1:Number):void{ fading = true; fadeValue = _arg1; if (_arg1 > 0){ fadeVol = _arg1; }; } } }//package dinowaurs.audio
Section 25
//WasteScript (dinowaurs.audio.WasteScript) package dinowaurs.audio { import flash.events.*; import dinowaurs.*; import dinowaurs.managers.*; public class WasteScript extends MusicScript { public function WasteScript(){ nextTrackOff = 80; arenaTracks = new Array(new MusicTrack("hellbound_15", this), new MusicTrack("hellbound_30", this), new MusicTrack("hellbound_60", this), new MusicTrack("hellbound_loop1", this), new MusicTrack("hellbound_loop2", this)); tunes = new Array(new Array("hellbound_loop2", "hellbound_loop1", "hellbound_loop2"), new Array("hellbound_loop1", "hellbound_loop2"), new Array("hellbound_30", "hellbound_15"), new Array("hellbound_60")); tuneEvents = new Array("startGame", "villageDeath", "equipTier3", "lastVillage"); } override public function nextTrack(_arg1:TimerEvent):void{ var _local2:int; var _local3:int; var _local4:VillageZone; if (currentTune == tunes[2]){ if (currentTrack >= currentTune.length){ _local2 = 0; _local3 = 0; for each (_local4 in Main.GAME_MANAGER.currentVillageMenu) { if (_local4.mVillageBuilt){ if (_local4.mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ _local2++; } else { _local3++; }; }; }; if ((((_local2 <= 1)) || ((_local3 <= 1)))){ currentTrack = -1; }; }; }; super.nextTrack(_arg1); } } }//package dinowaurs.audio
Section 26
//WinterScript (dinowaurs.audio.WinterScript) package dinowaurs.audio { import flash.events.*; import dinowaurs.*; import dinowaurs.managers.*; public class WinterScript extends MusicScript { public function WinterScript(){ nextTrackOff = 10; arenaTracks = new Array(new MusicTrack("MUSIC_SnowSolo", this), new MusicTrack("MUSIC_SnowTheme", this), new MusicTrack("MUSIC_SnowUnderBuild", this), new MusicTrack("MUSIC_SnowUnderLoopEmpty", this), new MusicTrack("MUSIC_SnowUnderLoopFull", this)); tunes = new Array(new Array("MUSIC_SnowUnderBuild", "MUSIC_SnowUnderLoopFull"), new Array("MUSIC_SnowUnderBuild", "MUSIC_SnowSolo", "MUSIC_SnowUnderLoopFull"), new Array("MUSIC_SnowSolo", "MUSIC_SnowTheme", "MUSIC_SnowTheme"), new Array("MUSIC_SnowTheme", "MUSIC_SnowSolo", "MUSIC_SnowUnderLoopFull", "MUSIC_SnowTheme")); tuneEvents = new Array("startGame", "villageDeath", "equipTier3", "lastVillage"); } override public function nextTrack(_arg1:TimerEvent):void{ var _local2:int; var _local3:int; var _local4:VillageZone; if (currentTune == tunes[2]){ if (currentTrack >= currentTune.length){ _local2 = 0; _local3 = 0; for each (_local4 in Main.GAME_MANAGER.currentVillageMenu) { if (_local4.mVillageBuilt){ if (_local4.mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ _local2++; } else { _local3++; }; }; }; if ((((_local2 <= 1)) || ((_local3 <= 1)))){ currentTrack = -1; }; }; }; super.nextTrack(_arg1); } } }//package dinowaurs.audio
Section 27
//AccessoryButton (dinowaurs.betaMenu.AccessoryButton) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.*; import dinowaurs.managers.*; public class AccessoryButton extends MelbaButton { public var accHandle:String; public var item:KongItem; public var catagoryAccessories:Array; public var btnType:String; public function AccessoryButton(_arg1:String, _arg2:String, _arg3:KongItem, _arg4:Sprite=null, _arg5:String="none"){ catagoryAccessories = new Array(); base = AssetLoader.getAssetMC("accessories", _arg5); super(_arg4, _arg5); btnType = _arg1; accHandle = _arg2; item = _arg3; var _local6:Sprite = new Sprite(); _local6.graphics.lineStyle(1, 0, 1); _local6.graphics.beginFill(0, 1); var _local7:Number = (base.width / 2); if ((base.height / 2) < _local7){ _local7 = (base.height / 2); }; _local6.graphics.drawCircle(0, 0, _local7); _local6.graphics.endFill(); var _local8:SimpleButton = new SimpleButton(null, null, null, _local6); base.addChild(_local8); } override public function mouseDown(_arg1:MouseEvent):void{ super.mouseDown(_arg1); if (btnType.match("purchase")){ trace(("purchase + " + accHandle)); AccessoryScreen(Main.betaMenu.baseScreen.topTab).spawnAccessoryPreview(item); }; if (btnType.match("equip")){ trace(("equip +" + accHandle)); Main.betaMenu.equipAcc(accHandle, this); }; } override public function mouseOut(_arg1:MouseEvent):void{ super.mouseOut(_arg1); if (accHandle != "clear"){ Main.endPreview(accHandle); }; if (btnType.match("equip")){ AccessoryScreen(Main.betaMenu.baseScreen.topTab).killEquipPreview(); }; } override public function mouseOver(_arg1:MouseEvent):void{ super.mouseOver(_arg1); trace(("MOUSE OVER: " + accHandle)); if (accHandle != "clear"){ Main.previewAcc(accHandle); if (btnType.match("equip")){ AccessoryScreen(Main.betaMenu.baseScreen.topTab).spawnEquipPreview(accHandle); }; }; } override public function kill():void{ super.kill(); btnType = null; accHandle = null; } } }//package dinowaurs.betaMenu
Section 28
//AccessoryCounter (dinowaurs.betaMenu.AccessoryCounter) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.managers.*; public class AccessoryCounter extends MenuScreen { public var purchaseScreen:AccessoryScroller; public var accType:String; public var equipScreen:AccessoryScroller; public function AccessoryCounter(_arg1:Sprite=null, _arg2:String="none", _arg3:Sprite=null){ var _local4:MenuScreen; super(_arg1, _arg2, _arg3); if (_arg3 != null){ accType = "head"; if (_arg3.name.match("tail")){ accType = "tail"; } else { if (_arg3.name.match("foot")){ accType = "foot"; } else { if (_arg3.name.match("back")){ accType = "back"; } else { if (_arg3.name.match("suit")){ accType = "suit"; }; }; }; }; _arg3.mouseEnabled = false; }; for each (_local4 in screens) { if (_local4.base.name.match("scr_scrollEquip")){ equipScreen = new AccessoryScroller(_local4.base, accType, ItemManager.AllOwnedItems); equipScreen.loadPage(0); MovieClip(equipScreen.base).btn_scrollUp.addEventListener(MouseEvent.MOUSE_DOWN, scrollUpEquip, false, 0, true); MovieClip(equipScreen.base).btn_scrollDown.addEventListener(MouseEvent.MOUSE_DOWN, scrollDownEquip, false, 0, true); }; if (_local4.base.name.match("scr_scrollPurchase")){ purchaseScreen = new AccessoryScroller(_local4.base, accType, ItemManager.getBuyables()); purchaseScreen.loadPage(0); MovieClip(purchaseScreen.base).btn_scrollUp.addEventListener(MouseEvent.MOUSE_DOWN, scrollUpPurchase, false, 0, true); MovieClip(purchaseScreen.base).btn_scrollDown.addEventListener(MouseEvent.MOUSE_DOWN, scrollDownPurchase, false, 0, true); }; }; Main.betaMenu.accessoryCounters.push(this); updateScrollers(); } public function scrollDownEquip(_arg1:MouseEvent):void{ if (equipScreen != null){ equipScreen.loadPage((equipScreen.currentPage + 1)); }; } public function scrollUpEquip(_arg1:MouseEvent):void{ if (equipScreen != null){ equipScreen.loadPage((equipScreen.currentPage - 1)); }; } public function scrollUpPurchase(_arg1:MouseEvent):void{ if (purchaseScreen != null){ purchaseScreen.loadPage((purchaseScreen.currentPage - 1)); }; } public function updateScrollers():void{ var _local1:Sprite = purchaseScreen.base; var _local2:Sprite = equipScreen.base; purchaseScreen.kill(); equipScreen.kill(); equipScreen = new AccessoryScroller(_local2, accType, ItemManager.AllOwnedItems); equipScreen.loadPage(0); purchaseScreen = new AccessoryScroller(_local1, accType, ItemManager.getBuyables()); purchaseScreen.loadPage(0); } public function scrollDownPurchase(_arg1:MouseEvent):void{ if (purchaseScreen != null){ purchaseScreen.loadPage((purchaseScreen.currentPage + 1)); }; } override public function kill():void{ if (equipScreen != null){ MovieClip(equipScreen.base).btn_scrollUp.removeEventListener(MouseEvent.MOUSE_DOWN, scrollUpEquip); MovieClip(equipScreen.base).btn_scrollDown.removeEventListener(MouseEvent.MOUSE_DOWN, scrollDownEquip); equipScreen.kill(); }; equipScreen = null; if (purchaseScreen != null){ MovieClip(purchaseScreen.base).btn_scrollUp.removeEventListener(MouseEvent.MOUSE_DOWN, scrollUpPurchase); MovieClip(purchaseScreen.base).btn_scrollDown.removeEventListener(MouseEvent.MOUSE_DOWN, scrollDownPurchase); purchaseScreen.kill(); }; purchaseScreen = null; super.kill(); } } }//package dinowaurs.betaMenu
Section 29
//AccessoryPreview (dinowaurs.betaMenu.AccessoryPreview) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.*; import engine.core.*; import flash.net.*; import dinowaurs.managers.*; public class AccessoryPreview extends MovieClip { public var kredBuy:MelbaButton; public var closeBtn:MelbaButton; public var confirmScn:MenuScreen; public var dnaBuy:MelbaButton; public var item:KongItem; public var myClip:MovieClip; public function AccessoryPreview(_arg1:KongItem){ item = _arg1; myClip = AssetLoader.getAssetMC("mainMenu2", "accessory_detailPRCH"); addChild(myClip); var _local2:TextFormat = new TextFormat(); _local2.letterSpacing = -2; _local2.font = TextField(myClip.accessoryTitle).defaultTextFormat.font; _local2.size = TextField(myClip.accessoryTitle).defaultTextFormat.size; TextField(myClip.accessoryTitle).defaultTextFormat = _local2; Main.setTextF(myClip.accessoryTitle, "accpreviewTitle", _arg1.name); _local2 = new TextFormat(); _local2.letterSpacing = -0.3; _local2.font = TextField(myClip.accessoryDescription).defaultTextFormat.font; _local2.size = TextField(myClip.accessoryDescription).defaultTextFormat.size; TextField(myClip.accessoryDescription).defaultTextFormat = _local2; Main.setTextF(myClip.accessoryDescription, "accpreviewDescription", _arg1.description); Main.setTextF(myClip.accessoryPrice_dna, "accpreviewDNA", _arg1.dnaCost.toString()); Main.setTextF(myClip.accessoryPrice_kreds, "accpreviewKreds", _arg1.kredCost.toString()); dnaBuy = new MelbaButton(null, "none", myClip.accessoryPurchase_dna); dnaBuy.base.addEventListener(MouseEvent.MOUSE_DOWN, buyWithDNA, false, 0, true); kredBuy = new MelbaButton(null, "none", myClip.accessoryPurchase_kreds); kredBuy.base.addEventListener(MouseEvent.MOUSE_DOWN, buyWithKRED, false, 0, true); closeBtn = new MelbaButton(null, "none", myClip.accessoryClose); closeBtn.base.addEventListener(MouseEvent.MOUSE_DOWN, close, false, 0, true); x = 68; y = 236; var _local3:Loader = new Loader(); _local3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, accDrawIOerror); _local3.load(new URLRequest((("accessoryDrawings/" + item.accessoryHandle) + ".gif"))); myClip.accessoryArt.addChild(_local3); var _local4:int; if (_arg1.catagory != "suit"){ _local4 = BoostScreen.getItemLevel(_arg1); } else { _local4 = 4; myClip.boost_text.text = "armor-boost only"; }; if (_arg1.accessoryHandle.match("carrot")){ _local4 = 5; }; myClip.boost_icon.gotoAndStop((_local4 + 1)); } public function spawnGuestDialog():void{ var dialog:MenuScreen; var killDialog:Function; var toKong:Function; var btn:MelbaButton; killDialog = function (_arg1:MouseEvent):void{ dialog.kill(); }; toKong = function (_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://www.kongregate.com/games/intuition/dinowaurs/"), "_blank"); }; if (!Main.unKong){ dialog = new MenuScreen(GameData.BattleIntroBase, "accessory_guest"); for each (btn in dialog.buttons) { if (btn.base.name.match("accessoryCancel")){ btn.base.addEventListener(MouseEvent.MOUSE_DOWN, killDialog); }; }; } else { dialog = new MenuScreen(GameData.BattleIntroBase, "accessory_unKong", null, "unKong"); for each (btn in dialog.buttons) { if (btn.base.name.match("accessoryCancel")){ btn.base.addEventListener(MouseEvent.MOUSE_DOWN, killDialog); }; if (btn.base.name.match("btn_toKong")){ btn.base.addEventListener(MouseEvent.MOUSE_DOWN, toKong); }; }; }; } public function buyWithDNA(_arg1:MouseEvent):void{ var _local2:MelbaButton; if (Main.GUEST_MODE_ENABLED){ spawnGuestDialog(); return; }; if (Main.myPlayerStats.dna >= item.dnaCost){ confirmScn = new MenuScreen(GameData.BattleIntroBase, "accessory_confirm"); for each (_local2 in confirmScn.buttons) { if (_local2.base.name.match("accessoryCancel")){ _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, cancelDNAPurchase); } else { if (_local2.base.name.match("accessoryBuy")){ _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, confirmDNAPurchase); }; }; }; } else { confirmScn = new MenuScreen(GameData.BattleIntroBase, "accessory_deny"); for each (_local2 in confirmScn.buttons) { if (_local2.base.name.match("accessoryCancel")){ _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, cancelDNAPurchase); }; }; }; } public function close(_arg1:MouseEvent):void{ if (parent != null){ parent.removeChild(this); }; dnaBuy.myKillFlag = true; kredBuy.myKillFlag = true; closeBtn.myKillFlag = true; } public function buyWithKRED(_arg1:MouseEvent):void{ if (Main.GUEST_MODE_ENABLED){ spawnGuestDialog(); return; }; ItemManager.purchaseItem(item); close(null); } public function cancelDNAPurchase(_arg1:MouseEvent):void{ confirmScn.myKillFlag = true; confirmScn = null; } public function accDrawIOerror(_arg1:IOErrorEvent):void{ } public function confirmDNAPurchase(_arg1:MouseEvent):void{ ItemManager.purchaseItemDNA(item); confirmScn.myKillFlag = true; confirmScn = null; close(null); } } }//package dinowaurs.betaMenu
Section 30
//AccessoryScreen (dinowaurs.betaMenu.AccessoryScreen) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.*; import dinowaurs.managers.*; import engine.networking.*; public class AccessoryScreen extends MenuScreen { public var countersUpdated:Boolean;// = false public var preview:AccessoryPreview; public var helpScreen:HelpScreen; public var boostBtnArrow:MovieClip; public var didHelp:Boolean;// = false public var boostScreenBtn:MelbaButton; public var equipPreview:EquipPreview; public var dinoViewer:DinoViewer; public function AccessoryScreen(_arg1:Sprite=null, _arg2:String="none", _arg3:Sprite=null){ var _local4:MelbaButton; super(_arg1, _arg2, _arg3); for each (_local4 in buttons) { if (_local4.base.name == "btn_tabHelp"){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, spawnHelp); }; if (_local4.base.name == "btn_boostScreen"){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, spawnBoostScreen); boostScreenBtn = _local4; }; }; dinoViewer = new DinoViewer(MovieClip(base).viewer_fordino, 0, 0, -1, -2); MovieClip(base).viewer_fordino.scaleX = 0.75; MovieClip(base).viewer_fordino.scaleY = 0.75; Main.setTextF(MovieClip(base).kred_count, "accscreenDNA", Main.kredBalance.toString()); if (Main.GUEST_MODE_ENABLED){ MovieClip(base).kred_count.visible = false; MovieClip(base).dna_count.visible = false; MovieClip(base).kredIcon.visible = false; MovieClip(base).dnaIcon.visible = false; }; NetworkManager.serverMessage(["playerStats", NetworkManager.myUsername]); } override public function setTopTab(_arg1:MenuScreen):void{ super.setTopTab(_arg1); if (preview != null){ preview.close(null); }; } override public function getOnTop():void{ super.getOnTop(); if (boostBtnArrow == null){ boostBtnArrow = Main.betaMenu.optionsArrow; if (boostBtnArrow != null){ base.addChild(boostBtnArrow); boostBtnArrow.x = (boostScreenBtn.base.x - ((boostScreenBtn.base.width / 2) + (boostBtnArrow.width * 1.5))); boostBtnArrow.y = (boostScreenBtn.base.y + (boostScreenBtn.base.height / 2)); boostBtnArrow.visible = false; }; }; if (!countersUpdated){ Main.betaMenu.updateAccessoryCounters(); countersUpdated = true; }; Main.betaMenu.setCurrentDinoViewer(dinoViewer); if (Main.GAME_SETTINGS.AccessoryScreenHelp == 1){ spawnHelp(null); }; } public function spawnEquipPreview(_arg1:String):void{ if (equipPreview != null){ killEquipPreview(); }; var _local2:EquipPreview = new EquipPreview(_arg1); base.addChild(_local2); equipPreview = _local2; } public function spawnHelp(_arg1:MouseEvent):void{ if (!didHelp){ helpScreen = new HelpScreen(this, "accessoryHelp"); didHelp = true; }; } override public function kill():void{ if (dinoViewer != null){ dinoViewer.clear(); }; super.kill(); } override public function notOnTop():void{ super.notOnTop(); Main.sendDinoInfo(0); Main.sendDinoInfo(1); Main.sendDinoInfo(2); if (helpScreen != null){ helpScreen.myKillFlag = true; helpScreen = null; }; } public function spawnAccessoryPreview(_arg1:KongItem):void{ if (preview != null){ preview.close(null); }; var _local2:AccessoryPreview = new AccessoryPreview(_arg1); base.addChild(_local2); preview = _local2; } public function spawnBoostScreen(_arg1:MouseEvent):void{ base.addChild(new BoostScreen()); } public function killEquipPreview():void{ if (equipPreview != null){ equipPreview.close(); }; } } }//package dinowaurs.betaMenu
Section 31
//AccessoryScroller (dinowaurs.betaMenu.AccessoryScroller) package dinowaurs.betaMenu { import flash.display.*; import dinowaurs.*; import dinowaurs.managers.*; public class AccessoryScroller { public var currentPage:int;// = 0 public var equip_or_purchase:String; public var accessoryList:Array; public var accessoryClips:Array; public var base:Sprite; public var accType:String; public function AccessoryScroller(_arg1:Sprite, _arg2:String, _arg3:Array){ var _local4:KongItem; var _local5:AccessoryButton; var _local6:String; var _local7:int; var _local8:AccessoryButton; super(); base = _arg1; if (base.name.match("Purchase")){ if (_arg2.match("head")){ trace("here"); }; }; if (base.name.match("Equip")){ equip_or_purchase = "equip"; } else { equip_or_purchase = "purchase"; }; accType = _arg2; accessoryList = new Array(); accessoryClips = new Array(); if (equip_or_purchase.match("equip")){ _local5 = new AccessoryButton("equip", "clear", null, base, "icon_clear"); accessoryClips.push(_local5); _local5.catagoryAccessories = accessoryClips; }; for each (_local4 in _arg3) { _local6 = _local4.accessoryHandle; if (_local4.catagory == accType){ _local7 = Math.floor((Math.random() * 3)); _local8 = new AccessoryButton(equip_or_purchase, _local6, _local4, base, ("icon_" + _local6)); accessoryClips.push(_local8); _local8.catagoryAccessories = accessoryClips; }; }; loadPage(0); } public function loadPage(_arg1:int):void{ var _local3:MelbaButton; var _local4:int; var _local5:MelbaButton; if (_arg1 != 0){ if (_arg1 < 0){ return; }; if (_arg1 > ((accessoryClips.length - 1) / 4)){ return; }; }; currentPage = _arg1; var _local2:int; for each (_local3 in accessoryClips) { if (_local3.base.parent != null){ _local3.base.parent.removeChild(_local3.base); }; }; _local4 = (_arg1 * 4); while (_local4 < accessoryClips.length) { _local5 = accessoryClips[_local4]; base.addChild(_local5.base); _local5.base.x = ((40 * (_local2 - (Math.floor((_local2 / 4)) * 4))) + 31); _local5.base.y = (45 + (40 * Math.floor((_local2 / 4)))); _local2++; if (_local2 >= 12){ break; }; _local4++; }; MovieClip(base).btn_scrollUp.visible = true; MovieClip(base).btn_scrollDown.visible = true; if (currentPage == 0){ MovieClip(base).btn_scrollUp.visible = false; }; if (currentPage >= Math.floor(((accessoryClips.length - 5) / 4))){ MovieClip(base).btn_scrollDown.visible = false; }; } public function checkAccType(_arg1:String):Boolean{ if (_arg1.match("clear")){ return (true); }; if (accType.match("head")){ if (_arg1.match("beekeepermask")){ return (true); }; if (_arg1.match("COeye")){ return (true); }; if (_arg1.match("fro")){ return (true); }; if (_arg1.match("helmetknight")){ return (true); }; if (_arg1.match("oldbeard")){ return (true); }; if (_arg1.match("propellerhat")){ return (true); }; if (_arg1.match("tophat")){ return (true); }; } else { if (accType.match("back")){ if (_arg1.match("butterflytrampstamp")){ return (true); }; } else { if (accType.match("tail")){ if (_arg1.match("chartail")){ return (false); }; } else { if (accType.match("foot")){ if (_arg1.match("sweatband")){ return (true); }; } else { if (accType.match("suit")){ }; }; }; }; }; return (false); } public function kill():void{ var _local1:AccessoryButton; for each (_local1 in accessoryClips) { _local1.myKillFlag = true; if (_local1.base.parent != null){ _local1.base.parent.removeChild(_local1.base); }; }; base = null; accessoryClips = new Array(); accessoryList = new Array(); } } }//package dinowaurs.betaMenu
Section 32
//ArenaLobby (dinowaurs.betaMenu.ArenaLobby) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.*; import it.gotoandplay.smartfoxserver.data.*; import dinowaurs.managers.*; import engine.networking.*; public class ArenaLobby extends MenuScreen { public var refreshBtn:MelbaButton; public var scrollinUp:Boolean;// = false public var autoRefresher:int;// = 1000 public var scrollDownBtn:MelbaButton; public var playerListBase:Sprite; public var playerBtns:Array; public var exitBtn:MelbaButton; public var playerList:Array; public var playerChallenges:Array; public var arenaName:String; public var scrollUpBtn:MelbaButton; public var scrollTimer:int;// = 4 public var scrollinDown:Boolean;// = false public function ArenaLobby(_arg1:String){ var _local2:MelbaButton; super(null, "none", AssetLoader.getAssetMC("mainMenu2", "battle_listpopup")); arenaName = _arg1; if (Main.betaMenu.currentArenaLobby != null){ Main.betaMenu.currentArenaLobby.myKillFlag = true; }; Main.betaMenu.currentArenaLobby = this; Main.setTextF(MovieClip(base).arenaName, "arenalobbyName", _arg1); if (Main.betaMenu.battleScreen != null){ Main.betaMenu.battleScreen.base.addChild(base); }; fillList(null); for each (_local2 in buttons) { if (_local2.base.name.match("scrollUp")){ _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, scrollUp, false, 0, true); _local2.base.addEventListener(MouseEvent.MOUSE_OUT, scrollUpCancel, false, 0, true); _local2.base.addEventListener(MouseEvent.MOUSE_UP, scrollUpCancel, false, 0, true); scrollUpBtn = _local2; scrollUpBtn.base.visible = false; } else { if (_local2.base.name.match("scrollDown")){ _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, scrollDown, false, 0, true); _local2.base.addEventListener(MouseEvent.MOUSE_OUT, scrollDownCancel, false, 0, true); _local2.base.addEventListener(MouseEvent.MOUSE_UP, scrollDownCancel, false, 0, true); scrollDownBtn = _local2; } else { if (_local2.base.name.match("refresh")){ _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, refresh, false, 0, true); refreshBtn = _local2; } else { if (_local2.base.name.match("exit")){ _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, exit, false, 0, true); exitBtn = _local2; }; }; }; }; }; playerListBase = new Sprite(); base.addChild(playerListBase); playerListBase.x = MovieClip(base).playerListMask.x; playerListBase.y = MovieClip(base).playerListMask.y; playerListBase.mask = MovieClip(base).playerListMask; playerChallenges = new Array(); refresh(null); } public function doLevelText(_arg1:TextField, _arg2:String):void{ var _local3:TextFormat = _arg1.getTextFormat(); Main.setTextF(_arg1, "arenalobbyPlayerStatus", _arg2); } public function fillList(_arg1:Array):void{ var _local4:String; var _local5:String; var _local6:int; var _local7:String; var _local8:Array; var _local9:String; if (_arg1 == null){ return; }; var _local2:* = new Array("playerStats"); var _local3:int; while (_local3 < _arg1.length) { if ((_arg1[_local3] is User)){ return; }; _local5 = _arg1[_local3]; _local6 = 0; while (_local6 < Main.friendsList.length) { _local7 = Main.friendsList[_local6]; if (_local5 == _local7){ _local8 = _arg1.splice(_local3, 1); for each (_local9 in _arg1) { _local8.push(_local9); }; _arg1 = _local8; }; _local6++; }; _local3++; }; for each (_local4 in _arg1) { _local2.push(_local4); }; NetworkManager.serverMessage(_local2); } public function setUserCount(_arg1:int):void{ Main.setTextF(MovieClip(base).playerCount, "arenalobbyPlayerCount", _arg1.toString()); } public function scrollDownCancel(_arg1:MouseEvent):void{ scrollinDown = false; } public function scrollUp(_arg1:MouseEvent):void{ if (playerListBase.y < MovieClip(base).playerListMask.y){ scrollinUp = true; playerListBase.y = (playerListBase.y + 15); }; if (Main.betaMenu.currentPlayerSummarized != null){ Main.betaMenu.currentPlayerSummarized.killSummary(); }; } public function updateStats(_arg1:Array):void{ var _local4:PlayerStats; var _local5:int; var _local6:Boolean; var _local7:LobbyPlayerButton; var _local8:LobbyPlayerButton; var _local9:Boolean; var _local10:PlayerStats; var _local11:LobbyPlayerButton; if (playerBtns == null){ playerBtns = new Array(); }; if (playerListBase == null){ playerListBase = new Sprite(); base.addChild(playerListBase); playerListBase.x = MovieClip(base).playerListMask.x; playerListBase.y = MovieClip(base).playerListMask.y; playerListBase.mask = MovieClip(base).playerListMask; }; var _local2:Array = formatRawStats(_arg1); if (_local2.length != NetworkManager.sfc.getActiveRoom().getUserCount()){ return; }; if (_local2.length == 1){ if (playerBtns.length == 1){ if (LobbyPlayerButton(playerBtns[0]).myStats.userName == PlayerStats(_local2[0]).userName){ return; }; }; }; var _local3:Array = new Array(); for each (_local4 in _local2) { _local6 = false; for each (_local7 in playerBtns) { if (_local4.userName == _local7.myStats.userName){ _local3.push(_local7); _local7.setStats(_local4); doLevelText(TextField(_local7.base.status), _local4.playerLevel.toString()); _local6 = true; }; }; if (!_local6){ _local8 = new LobbyPlayerButton(_local4.userName); _local8.setStats(_local4); doLevelText(TextField(_local8.base.status), _local4.playerLevel.toString()); _local3.push(_local8); }; }; _local5 = 0; while (_local5 < playerBtns.length) { _local9 = false; for each (_local10 in _local2) { if (LobbyPlayerButton(playerBtns[_local5]).myStats.userName == _local10.userName){ _local9 = true; }; }; if (!_local9){ LobbyPlayerButton(playerBtns[_local5]).myKillFlag = true; }; _local5++; }; playerBtns = _local3; playerList = _local2; _local5 = 0; while (_local5 < playerBtns.length) { _local11 = (playerBtns[_local5] as LobbyPlayerButton); playerListBase.addChild(_local11.base); _local11.base.x = 0; _local11.base.y = (_local5 * 15); _local5++; }; setUserCount(playerList.length); } public function updateBoosts(_arg1:Array):void{ var _local2:int; var _local3:PlayerStats; if (playerList != null){ _local2 = 0; while (_local2 < _arg1.length) { for each (_local3 in playerList) { if (_local3.userName == _arg1[_local2]){ _local3.boostCode = _arg1[(_local2 + 1)]; }; }; _local2++; }; }; if (Main.betaMenu == null){ return; }; if (Main.betaMenu.currentPlayerSummarized != null){ if (Main.betaMenu.currentPlayerSummarized.mySummary != null){ Main.betaMenu.currentPlayerSummarized.mySummary.updateBoosts(); }; }; } public function refresh(_arg1:MouseEvent):void{ NetworkManager.serverMessage(new Array("userList", NetworkManager.currentLobby)); } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; scrollUpBtn.base.visible = false; scrollDownBtn.base.visible = false; scrollTimer--; if (scrollTimer <= 0){ if (scrollinUp){ if (playerListBase.y < MovieClip(base).playerListMask.y){ playerListBase.y = (playerListBase.y + 15); }; } else { if (scrollinDown){ if (playerListBase.y > (MovieClip(base).playerListMask.y - ((playerBtns.length - 10) * 15))){ playerListBase.y = (playerListBase.y - 15); }; }; }; scrollTimer = 4; }; if (playerBtns != null){ if (playerListBase.y < MovieClip(base).playerListMask.y){ scrollUpBtn.base.visible = true; }; if (playerListBase.y > (MovieClip(base).playerListMask.y - ((playerBtns.length - 10) * 15))){ scrollDownBtn.base.visible = true; }; }; if (autoRefresher <= 0){ if (Main.betaMenu.currentPlayerChallenge == null){ if (Main.betaMenu.currentPlayerSummarized == null){ refresh(null); }; }; autoRefresher = 1000; }; } override public function kill():void{ var _local1:LobbyPlayerButton; var _local2:PlayerChallenge; scrollUpBtn.base.removeEventListener(MouseEvent.MOUSE_DOWN, scrollUp); scrollUpBtn.base.removeEventListener(MouseEvent.MOUSE_OUT, scrollUpCancel); scrollUpBtn.base.removeEventListener(MouseEvent.MOUSE_UP, scrollUpCancel); scrollDownBtn.base.removeEventListener(MouseEvent.MOUSE_DOWN, scrollDown); scrollDownBtn.base.removeEventListener(MouseEvent.MOUSE_OUT, scrollDownCancel); scrollDownBtn.base.removeEventListener(MouseEvent.MOUSE_UP, scrollDownCancel); refreshBtn.base.removeEventListener(MouseEvent.MOUSE_DOWN, refresh); exitBtn.base.removeEventListener(MouseEvent.MOUSE_DOWN, exit); if (Main.betaMenu != null){ if (Main.betaMenu.currentPlayerChallenge != null){ Main.betaMenu.currentPlayerChallenge.myKillFlag = true; Main.betaMenu.currentPlayerChallenge = null; }; if (Main.betaMenu.currentPlayerSummarized != null){ Main.betaMenu.currentPlayerSummarized.myKillFlag = true; Main.betaMenu.currentPlayerSummarized = null; }; }; scrollUpBtn.myKillFlag = true; scrollDownBtn.myKillFlag = true; exitBtn.myKillFlag = true; refreshBtn.myKillFlag = true; playerList = new Array(); for each (_local1 in playerBtns) { _local1.myKillFlag = true; }; if (playerListBase != null){ if (playerListBase.parent != null){ playerListBase.parent.removeChild(playerListBase); }; }; for each (_local2 in playerChallenges) { _local2.myKillFlag = true; }; super.kill(); } public function scrollDown(_arg1:MouseEvent):void{ if (playerListBase.y > (MovieClip(base).playerListMask.y - ((playerBtns.length - 10) * 15))){ scrollinDown = true; playerListBase.y = (playerListBase.y - 15); }; if (Main.betaMenu.currentPlayerSummarized != null){ Main.betaMenu.currentPlayerSummarized.killSummary(); }; } public function scrollUpCancel(_arg1:MouseEvent):void{ scrollinUp = false; } public function exit(_arg1:MouseEvent):void{ NetworkManager.serverMessage(new Array("joinLobby", "Lobby")); Main.betaMenu.currentArenaLobby = null; myKillFlag = true; NetworkManager.getRoomList(); BattleScreen(Main.betaMenu.battleScreen).clearArenaPreview(); } public function formatRawStats(_arg1:Array):Array{ var _local4:Array; var _local5:int; var _local6:PlayerStats; var _local2:Array = new Array(); var _local3:int; while (_local3 < _arg1.length) { if (_arg1[_local3].match("userStats_delim")){ _local4 = new Array("00", "00", "00"); _local5 = (_local3 + 1); _local5 = (_local3 + 1); while (_local5 < _arg1.length) { _local4.push(_arg1[_local5]); if ((_local5 + 1) < _arg1.length){ if (_arg1[(_local5 + 1)].match("userStats_delim")){ break; }; }; _local5++; }; _local3 = (_local5 - 1); _local6 = new PlayerStats(_local4); _local2.push(_local6); }; _local3++; }; return (_local2); } public function spawnChallenge(_arg1:String, _arg2:int):void{ var _local3:PlayerChallenge = new PlayerChallenge(_arg1, this, _arg2); base.addChild(_local3.base); Main.betaMenu.currentPlayerChallenge = _local3; playerChallenges.push(_local3); } public function removeChallenge(_arg1:String):void{ var _local2:PlayerChallenge; for each (_local2 in playerChallenges) { if (_local2.userName == _arg1){ _local2.myKillFlag = true; _local2 = null; }; }; } } }//package dinowaurs.betaMenu
Section 33
//BattleScreen (dinowaurs.betaMenu.BattleScreen) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.managers.*; import engine.networking.*; public class BattleScreen extends MenuScreen { public var lastOpen:MovieClip; public var arenaPreview:MovieClip; public var winterPreview:MovieClip; public var junglePreview:MovieClip; public var helpScreen:HelpScreen; public var wastePreview:MovieClip; public var didHelp:Boolean;// = false public var refreshTimer:int;// = 2500 public var desertPreview:MovieClip; public function BattleScreen(_arg1:Sprite=null, _arg2:String="none", _arg3:Sprite=null){ var _local4:MelbaButton; super(_arg1, _arg2, _arg3); for each (_local4 in buttons) { if (_local4.base.name == "btn_tabHelp"){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, spawnHelp); }; }; arenaPreview = MovieClip(base).preview_arena; winterPreview = arenaPreview.winter; arenaPreview.removeChild(winterPreview); desertPreview = arenaPreview.desert; arenaPreview.removeChild(desertPreview); wastePreview = arenaPreview.waste; arenaPreview.removeChild(wastePreview); junglePreview = arenaPreview.jungle; arenaPreview.removeChild(junglePreview); lastOpen = null; if (NetworkManager.currentLobby.match("Winter")){ selectArena("winter"); } else { if (NetworkManager.currentLobby.match("Desert")){ selectArena("desert"); } else { if (NetworkManager.currentLobby.match("Waste")){ selectArena("waste"); } else { if (NetworkManager.currentLobby.match("Jungle")){ selectArena("jungle"); }; }; }; }; } override public function getOnTop():void{ super.getOnTop(); NetworkManager.getRoomList(); if (Main.GAME_SETTINGS.BattleScreenHelp == 1){ spawnHelp(null); }; } override public function tick(_arg1:uint):void{ super.tick(_arg1); } override public function notOnTop():void{ super.notOnTop(); if (helpScreen != null){ helpScreen.myKillFlag = true; helpScreen = null; }; } public function selectArena(_arg1:String):void{ NetworkManager.getRoomList(); if (_arg1.match("winter")){ if (lastOpen != null){ arenaPreview.removeChild(lastOpen); }; lastOpen = winterPreview; arenaPreview.addChild(lastOpen); Main.setTextF(MovieClip(base).arenaName, "battlescreenArenaName", "Yetisburg"); Main.betaMenu.selectedArena = "winter"; Main.arenaType = "winter"; } else { if (_arg1.match("jungle")){ if (lastOpen != null){ arenaPreview.removeChild(lastOpen); }; lastOpen = junglePreview; arenaPreview.addChild(lastOpen); Main.setTextF(MovieClip(base).arenaName, "battlescreenArenaName", "Zanzibarland"); Main.betaMenu.selectedArena = "jungle"; Main.arenaType = "jungle"; } else { if (_arg1.match("waste")){ if (lastOpen != null){ arenaPreview.removeChild(lastOpen); }; lastOpen = wastePreview; arenaPreview.addChild(lastOpen); Main.setTextF(MovieClip(base).arenaName, "battlescreenArenaName", "Geigersville"); Main.betaMenu.selectedArena = "waste"; Main.arenaType = "waste"; } else { if (_arg1.match("desert")){ if (lastOpen != null){ arenaPreview.removeChild(lastOpen); }; lastOpen = desertPreview; arenaPreview.addChild(lastOpen); Main.setTextF(MovieClip(base).arenaName, "battlescreenArenaName", "Mexington"); Main.betaMenu.selectedArena = "desert"; Main.arenaType = "desert"; }; }; }; }; } public function clearArenaPreview():void{ if (lastOpen != null){ arenaPreview.removeChild(lastOpen); }; lastOpen = null; Main.setTextF(MovieClip(base).arenaName, "battlescreenArenaNameDefault", "arenaName"); } override public function btnMouseDown(_arg1:MouseEvent):void{ var _local3:int; super.btnMouseDown(_arg1); var _local2:MovieClip = MovieClip(_arg1.currentTarget); if (_local2.name.match("winter")){ selectArena("winter"); } else { if (_local2.name.match("jungle")){ selectArena("jungle"); } else { if (_local2.name.match("wasteland")){ selectArena("waste"); } else { if (_local2.name.match("desert")){ selectArena("desert"); } else { if (_local2.name.match("startGame")){ _local3 = Math.floor((Math.random() * 4)); if (_local3 == 0){ Main.pickedArena = "winter"; } else { if (_local3 == 1){ Main.pickedArena = "jungle"; } else { _local3 = 2; if (_local3){ Main.pickedArena = "desert"; } else { Main.pickedArena = "waste"; }; }; }; if (!Main.dinoSlots[Main.currentDino].dinoType.match("none")){ Main.betaMenu.startGame(); }; NetworkManager.currentLobby = "none"; if (Main.betaMenu.currentArenaLobby != null){ Main.betaMenu.currentArenaLobby.myKillFlag = true; Main.betaMenu.currentArenaLobby = null; }; }; }; }; }; }; } public function spawnHelp(_arg1:MouseEvent):void{ if (!didHelp){ helpScreen = new HelpScreen(this, "battleHelp"); didHelp = true; }; } } }//package dinowaurs.betaMenu
Section 34
//BetaMenu (dinowaurs.betaMenu.BetaMenu) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import engine.core.*; import flash.utils.*; import dinowaurs.managers.*; import engine.networking.*; public class BetaMenu { public var objectContainer:Sprite; public var screens:Array; public var tutorialArrows:MovieClip; public var optionsArrow:MovieClip; public var dinoSelectors:Array; public var detailBtns:Array; public var currentDinoViewer:DinoViewer; public var toolTipsOffBtns:Array; public var baseScreen:MenuScreen; public var currentPlayerSummarized:LobbyPlayerButton; public var userStatsDisplays:Array; public var creationScreen:CreationScreen; public var selectedArena:String;// = "winter" public var accessoryCounters:Array; public var dinoViewers:Array; public var boostArrowTimer:Timer; public var exportScreen:Creation_Export; public var battleScreen:MenuScreen; public var object:DisplayObjectContainer; public var matchingScreen:MatchingScreen; public var snapshot:BitmapData; public var currentPlayerChallenge:PlayerChallenge; public var base:Sprite; public var tutorialState:int;// = 0 public var initialized:Boolean;// = false public var snapshotTimer:Timer; public var currentArenaLobby:ArenaLobby; public var displaymap:Bitmap; public var toolTipsOnBtn:MelbaButton; public var kingTips:Array; public function BetaMenu(){ toolTipsOffBtns = new Array(); base = new Sprite(); GameData.BACKGROUND_BASE.addChild(base); dinoSelectors = new Array(); screens = new Array(); dinoViewers = new Array(); accessoryCounters = new Array(); if (Main.GAME_SETTINGS.ToolTips == 0){ turnHelpTipsOff(); }; if (Main.GAME_SETTINGS.ToolTips == 1){ turnHelpTipsOn(); }; kingTips = new Array(); detailBtns = new Array(); userStatsDisplays = new Array(); } public function comeBack():void{ var _local1:MenuScreen; for each (_local1 in _local1) { _local1.restore(); }; GameData.BACKGROUND_BASE.addChild(base); } public function setDinoSlot(_arg1:int):void{ var _local2:DinoSelector; Main.currentDino = _arg1; NetworkManager.serverMessage(["chooseDinoSlot", _arg1]); for each (_local2 in dinoSelectors) { _local2.updateDinoInfos(Main.dinoSlots, Main.currentDino); }; updateDinoViewers(); if (exportScreen != null){ exportScreen.setDino("none"); }; } public function updateRoomCounts(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{ if (battleScreen != null){ MovieClip(battleScreen.base).num_winter.text = _arg1; MovieClip(battleScreen.base).num_desert.text = _arg2; MovieClip(battleScreen.base).num_wasteland.text = _arg3; MovieClip(battleScreen.base).num_jungle.text = _arg4; }; } public function equipAcc(_arg1:String, _arg2:AccessoryButton=null):void{ var _local3:DinoInfo; var _local4:String; var _local5:AccessoryButton; Main.endPreview(_arg1); if (Main.dinoSlots[Main.currentDino].dinoType != "none"){ _local3 = Main.dinoSlots[Main.currentDino]; for each (_local4 in _local3.accessories) { if (_local4 == _arg1){ _local3.removeAccessory(_arg1); updateDinoViewers(); Main.previewingAcc = null; Main.savedDinoInfo = null; return; }; }; if (_arg1.match("clear")){ if (_arg2 != null){ for each (_local5 in _arg2.catagoryAccessories) { _local3.removeAccessory(_local5.accHandle); }; }; } else { _local3.addAccessory(_arg1); }; }; updateDinoViewers(); popBoostArrow(); Main.previewingAcc = null; Main.savedDinoInfo = null; Main.sendDinoInfo(Main.currentDino); } public function statsUpdates():void{ var _local1:StatsDisplay; var _local2:MenuScreen; if (Main.myPlayerStats == null){ return; }; if (baseScreen != null){ for each (_local2 in baseScreen.screens) { if ((_local2 is AccessoryScreen)){ Main.setTextF(MovieClip(AccessoryScreen(_local2).base).dna_count, "accscreenDNA", Main.myPlayerStats.dna.toString()); }; }; }; for each (_local1 in userStatsDisplays) { _local1.updateStats(Main.myPlayerStats); }; } public function turnHelpTipsOn():void{ var _local1:MovieClip; var _local2:MelbaButton; Main.GAME_SETTINGS.ToolTips = 0; for each (_local1 in kingTips) { _local1.visible = true; }; if (toolTipsOnBtn != null){ toolTipsOnBtn.greyout(); }; for each (_local2 in toolTipsOffBtns) { _local2.killGreyout(); }; trace(("help tips ON, tooltips ==" + Main.GAME_SETTINGS.ToolTips)); } public function kredUpdate():void{ var _local1:MenuScreen; if (baseScreen != null){ for each (_local1 in baseScreen.screens) { if ((_local1 is AccessoryScreen)){ Main.setTextF(MovieClip(AccessoryScreen(_local1).base).kred_count, "accscreenDNA", Main.kredBalance.toString()); }; }; }; } public function boostPopTimer(_arg1:TimerEvent):void{ if (boostArrowTimer != null){ boostArrowTimer.stop(); boostArrowTimer = null; }; if (optionsArrow != null){ optionsArrow.visible = false; }; } public function addDinoViewer(_arg1:DinoViewer):void{ dinoViewers.push(_arg1); } public function disableDetailBtns():void{ var _local1:DetailButton; for each (_local1 in detailBtns) { _local1.active = false; }; } public function updateDinoSelectors():void{ var _local1:DinoSelector; for each (_local1 in dinoSelectors) { _local1.updateDinoInfos(Main.dinoSlots, Main.currentDino); }; } public function drawStep(_arg1:Event):Boolean{ var _local3:Point; var _local2:Boolean; var _local4:Rectangle = new Rectangle(0, 0, snapshot.width, snapshot.height); snapshot.fillRect(_local4, 0); snapshot.draw(objectContainer); displaymap.bitmapData = snapshot; _local3 = checkExportBorders(snapshot); if ((((_local3.x == 0)) && ((_local3.y == 0)))){ _local2 = true; } else { object.x = (object.x - _local3.x); object.y = (object.y - _local3.y); }; return (_local2); } public function addDinoSelector(_arg1:DinoSelector):void{ dinoSelectors.push(_arg1); _arg1.updateDinoInfos(Main.dinoSlots, Main.currentDino); } public function setCurrentDinoViewer(_arg1:DinoViewer):void{ if (currentDinoViewer != null){ currentDinoViewer.clear(); }; currentDinoViewer = _arg1; updateDinoViewers(); } public function popBoostArrow():void{ if (optionsArrow != null){ optionsArrow.visible = true; }; boostArrowTimer = new Timer(2000); boostArrowTimer.addEventListener(TimerEvent.TIMER, boostPopTimer); boostArrowTimer.start(); } public function turnHelpTipsOff():void{ var _local1:MovieClip; var _local2:MelbaButton; Main.GAME_SETTINGS.ToolTips = 1; for each (_local1 in kingTips) { _local1.visible = false; }; if (toolTipsOnBtn != null){ toolTipsOnBtn.killGreyout(); }; for each (_local2 in toolTipsOffBtns) { _local2.greyout(); }; trace(("help tips OFF, tooltips ==" + Main.GAME_SETTINGS.ToolTips)); } public function dinoCreate(_arg1:String, _arg2:String, _arg3:String):void{ Main.dinoSlots[Main.currentDino] = new DinoInfo(_arg1, _arg2, _arg3); updateDinoSelectors(); Main.sendDinoInfo(Main.currentDino); } public function updateAccessoryCounters():void{ var _local1:AccessoryCounter; for each (_local1 in accessoryCounters) { _local1.updateScrollers(); }; } public function checkExportBorders(_arg1:BitmapData):Point{ var _local3:int; var _local2:Point = new Point(0, 0); _local3 = 0; while (_local3 < _arg1.width) { if (_arg1.getPixel(_local3, 0) != 0){ return (new Point(0, -20)); }; if (_arg1.getPixel(_local3, _arg1.height) != 0){ return (new Point(0, 20)); }; _local3++; }; _local3 = 0; while (_local3 < _arg1.height) { if (_arg1.getPixel(0, _local3) != 0){ return (new Point(-20, 0)); }; if (_arg1.getPixel(_arg1.width, _local3) != 0){ return (new Point(20, 0)); }; _local3++; }; return (_local2); } public function kill():void{ var _local1:DetailButton; var _local2:MenuScreen; var _local3:AccessoryCounter; var _local4:DinoSelector; for each (_local1 in detailBtns) { _local1.myKillFlag = true; }; detailBtns = new Array(); for each (_local2 in screens) { _local2.myKillFlag = true; }; screens = new Array(); for each (_local3 in accessoryCounters) { _local3.myKillFlag = true; }; for each (_local4 in dinoSelectors) { _local4.kill(); }; dinoSelectors = null; dinoViewers = null; accessoryCounters = null; detailBtns = null; userStatsDisplays = null; } public function exportCmd(_arg1:Event):void{ var _local2:DinoAnimation; var _local3:DisplayObjectContainer; var _local4:Number; var _local5:Point; var _local6:Number; var _local7:Number; if (exportScreen.dinoViewer != null){ _local2 = exportScreen.dinoViewer.myAnimation; object = exportScreen.dinoViewer.myAnimation.mAnimator; _local3 = object.parent; _local4 = object.scaleX; _local5 = new Point(object.x, object.y); object.scaleX = (object.scaleY = 1.25); objectContainer = new Sprite(); objectContainer.addChild(object); _local6 = object.width; _local7 = object.height; snapshot = new BitmapData((_local6 + 50), (_local7 + 50), true); displaymap = new Bitmap(); do { } while (!(drawStep(null))); _local3.addChild(object); object.scaleX = (object.scaleY = _local4); object.x = _local5.x; object.y = _local5.y; if (!Main.unKong){ KongApiManager.kongregate.images.submitAvatar(displaymap, exportScreen.exportDone); }; }; } public function enableDetailBtns():void{ var _local1:DetailButton; for each (_local1 in detailBtns) { _local1.active = true; }; } public function visible(_arg1:Boolean):void{ var _local2:MenuScreen; for each (_local2 in screens) { _local2.base.visible = _arg1; }; } public function initialize(_arg1:String):void{ var _local2:MenuScreen; if (initialized){ return; }; initialized = true; if (Main.connectingScreen != null){ if (Main.connectingScreen.parent != null){ Main.connectingScreen.parent.removeChild(Main.connectingScreen); }; }; baseScreen = new MenuScreen(base, "menuBase"); screens.push(baseScreen); if (_arg1 != null){ for each (_local2 in baseScreen.screens) { if (_local2.base.name.match(_arg1)){ _local2.getOnTop(); }; }; }; updateAccessoryCounters(); updateDinoSelectors(); updateDinoViewers(); } public function startGame():void{ NetworkManager.startNewGame(); matchingScreen = new MatchingScreen(); base.addChild(matchingScreen.base); Main.arenaType = selectedArena; } public function updateDinoViewers():void{ if (currentDinoViewer != null){ currentDinoViewer.clear(); currentDinoViewer.loadDino(Main.dinoSlots[Main.currentDino]); currentDinoViewer.centerAnimator(); }; } public function hide():void{ var _local1:MenuScreen; for each (_local1 in screens) { _local1.disable(); }; if (GameData.BACKGROUND_BASE.contains(base)){ GameData.BACKGROUND_BASE.removeChild(base); }; } } }//package dinowaurs.betaMenu
Section 35
//BoostIconMGR (dinowaurs.betaMenu.BoostIconMGR) package dinowaurs.betaMenu { import flash.display.*; import flash.text.*; import dinowaurs.*; import fl.motion.*; public class BoostIconMGR { public var base:MovieClip; public var clips:Array; public var tintage:Boolean; public function BoostIconMGR(_arg1:MovieClip, _arg2:Boolean=true){ var _local3:MovieClip; super(); base = _arg1; tintage = _arg2; clips = new Array(); clips.push(_arg1.head_viewerIcon); clips.push(_arg1.back_viewerIcon); clips.push(_arg1.feet_viewerIcon); if (!clips[2]){ clips[2] = _arg1.feet_boostIcon; }; clips.push(_arg1.tail_viewerIcon); if (!clips[3]){ clips[3] = _arg1.tail_boostIcon; }; clips.push(_arg1.armor_viewerIcon); for each (_local3 in clips) { _local3.visible = false; }; } public function getClipFrame(_arg1:String):int{ switch (_arg1){ case "cannon": return (1); case "sam": return (2); case "castle": return (3); case "clusterBomb": return (4); case "meteor": return (5); case "jetpack": return (6); case "lawFirm": return (7); case "airStrike": return (8); case "flamethrower": return (9); case "speed": return (10); case "armor": return (11); }; return (0); } public function setBoosts(_arg1:String):void{ var _local5:String; var _local6:Number; if (base.noBoost_reminder != null){ base.noBoost_reminder.visible = false; }; if ((((_arg1 == null)) || ((_arg1 == "")))){ if (base.noBoost_reminder != null){ base.noBoost_reminder.visible = true; }; return; }; var _local2:Array = _arg1.split("_"); var _local3:int; var _local4:int; while (_local4 < (_local2.length / 2)) { _local5 = _local2[(_local4 * 2)]; _local6 = parseFloat(_local2[((_local4 * 2) + 1)]); if (((((((!((_local5 == ""))) && (!((_local5 == "null"))))) && (!((_local5 == null))))) && ((_local3 < 5)))){ clips[_local3].visible = true; clips[_local3].gotoAndStop(getClipFrame(_local5)); setLevel(clips[_local3], extrapolateBoostLevel(_local5, _local6)); _local3++; }; _local4++; }; } public function extrapolateBoostLevel(_arg1:String, _arg2:Number):int{ var _local3:int; if (_arg1 == "jetpack"){ _local3 = Math.round((_arg2 / parseFloat(GameConfig.getValue("jetpackPowerBoost")))); } else { if (_arg1 == "armor"){ _local3 = Math.round((_arg2 / parseFloat(GameConfig.getValue("armorBoost")))); } else { if (_arg1 == "speed"){ _local3 = Math.round((_arg2 / parseFloat(GameConfig.getValue("speedBoost")))); } else { _local3 = Math.round((_arg2 / parseFloat(GameConfig.getValue((_arg1 + "DamageBoost"))))); }; }; }; return (_local3); } public function setLevel(_arg1:MovieClip, _arg2:int):void{ _arg1.boost_value.text = _arg2; var _local3:Color = new Color(); if (_arg2 == 1){ _local3.setTint(9225791, 1); } else { if (_arg2 == 2){ _local3.setTint(16496411, 1); } else { _local3.setTint(11680547, 1); }; }; if (tintage){ _arg1.transform.colorTransform = _local3; }; } } }//package dinowaurs.betaMenu
Section 36
//BoostScreen (dinowaurs.betaMenu.BoostScreen) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.dinos.*; import flash.text.*; import dinowaurs.*; import dinowaurs.managers.*; import engine.networking.*; public class BoostScreen extends MovieClip { public var suitIconSpace:MovieClip; public var tailItem:KongItem; public var helpScreen:HelpScreen; public var headBoostEntry:BoostItemEntry; public var headItem:KongItem; public var backItem:KongItem; public var footBoostEntry:BoostItemEntry; public var footItem:KongItem; public var suitTextbox:TextField; public var dinoViewer:DinoViewer; public var boostMap:Array; public var carrotSpecial:MelbaButton; public var boostValueTextboxes:Array; public var suitItem:KongItem; public var xBtn:MelbaButton; public var dinoInfo:DinoInfo; public var backBoostEntry:BoostItemEntry; public var helpBtn:MelbaButton; public var screenBase:MovieClip; public var didHelp:Boolean;// = false public var suitSpecial:MelbaButton; public var boostNameTextboxes:Array; public var tailBoostEntry:BoostItemEntry; public function BoostScreen(){ var _local1:DinoInfo; super(); screenBase = AssetLoader.getAssetMC("mainMenu2", "boostScreen"); addChild(screenBase); screenBase.x = (screenBase.y = 28); headBoostEntry = new BoostItemEntry(screenBase.head_title, screenBase.head_comboBox, screenBase.head_boostIcon, screenBase.head_accessory); headBoostEntry.comboBox.addEventListener(Event.CHANGE, updateChoice); backBoostEntry = new BoostItemEntry(screenBase.back_title, screenBase.back_comboBox, screenBase.back_boostIcon, screenBase.back_accessory); backBoostEntry.comboBox.addEventListener(Event.CHANGE, updateChoice); tailBoostEntry = new BoostItemEntry(screenBase.tail_title, screenBase.tail_comboBox, screenBase.tail_boostIcon, screenBase.tail_accessory); tailBoostEntry.comboBox.addEventListener(Event.CHANGE, updateChoice); footBoostEntry = new BoostItemEntry(screenBase.feet_title, screenBase.feet_comboBox, screenBase.feet_boostIcon, screenBase.feet_accessory); footBoostEntry.comboBox.addEventListener(Event.CHANGE, updateChoice); suitIconSpace = screenBase.suit_accessory; suitTextbox = screenBase.suit_title; boostNameTextboxes = new Array(); boostNameTextboxes.push(screenBase.statName_speed); boostNameTextboxes.push(screenBase.statName_weapon1); boostNameTextboxes.push(screenBase.statName_weapon2); boostNameTextboxes.push(screenBase.statName_weapon3); boostNameTextboxes.push(screenBase.statName_defense); boostValueTextboxes = new Array(); boostValueTextboxes.push(screenBase.statValue_speed); boostValueTextboxes.push(screenBase.statValue_weapon1); boostValueTextboxes.push(screenBase.statValue_weapon2); boostValueTextboxes.push(screenBase.statValue_weapon3); boostValueTextboxes.push(screenBase.statValue_defense); xBtn = new MelbaButton(null, "none", screenBase.btn_xBtn); xBtn.base.addEventListener(MouseEvent.CLICK, closeMe, false, 0, true); helpBtn = new MelbaButton(null, "none", screenBase.btn_tabHelp); helpBtn.base.addEventListener(MouseEvent.CLICK, help, false, 0, true); fillItems(Main.dinoSlots[Main.currentDino]); if (screenBase.viewer_fordino != null){ dinoViewer = new DinoViewer(screenBase.viewer_fordino, 0, 0, -1, -2); screenBase.viewer_fordino.scaleX = 0.75; screenBase.viewer_fordino.scaleY = 0.75; _local1 = Main.dinoSlots[Main.currentDino]; if (_local1 != null){ dinoViewer.loadDino(_local1); }; }; dealWithSpecials(); } public function updateBoostMap(_arg1:String, _arg2:int, _arg3:Array){ var _local4:MapEntry; if (_arg1 != ""){ if (_arg3[_arg1] == null){ _arg3[_arg1] = new MapEntry(_arg1, _arg2); } else { _local4 = MapEntry(_arg3[_arg1]); MapEntry(_arg3[_arg1]).lvl = (_local4.lvl + _arg2); _arg3[_arg1] = _local4; }; }; } public function closeMe(_arg1:MouseEvent):void{ if (parent != null){ parent.removeChild(this); }; NetworkManager.serverMessage(["myBoosts"]); } public function help(_arg1:MouseEvent):void{ if (!didHelp){ helpScreen = new HelpScreen(this, "accessoryHelp"); helpScreen.nextPage(null); didHelp = true; }; } public function updateChoice(_arg1:Event):void{ var _local2:BoostItemEntry; var _local3 = -1; if (headBoostEntry.changed){ _local2 = headBoostEntry; _local3 = 0; }; if (backBoostEntry.changed){ _local2 = backBoostEntry; _local3 = 1; }; if (tailBoostEntry.changed){ _local2 = tailBoostEntry; _local3 = 2; }; if (footBoostEntry.changed){ _local2 = footBoostEntry; _local3 = 3; }; if (_local2 == null){ return; }; _local2.changed = false; var _local4:String = dinoInfo.boostChoices; if (_local4 == null){ _local4 = "n_n_n_n_n"; }; var _local5:Array = _local4.split("_"); var _local6:int; while (_local6 < _local5.length) { if (_local5[_local6] == ""){ _local5[_local6] = "n"; }; _local6++; }; _local5[_local3] = _local2.getComboChoice(); dinoInfo.boostChoices = _local5.join("_"); fillItems(dinoInfo); NetworkManager.serverMessage(["setBoosts", Main.currentDino, dinoInfo.boostChoices]); } public function dealWithSpecials():void{ var _local2:DisplayObject; var _local3:DinoInfo; var _local4:*; var _local1:int; while (_local1 < screenBase.numChildren) { _local2 = screenBase.getChildAt(_local1); if (_local2.name.match("specials_")){ _local3 = Main.dinoSlots[Main.currentDino]; _local2.visible = false; if (_local2.name.match("suit")){ suitSpecial = new MelbaButton(null, "none", MovieClip(_local2)); for each (_local4 in _local3.accessories) { if (_local4.match("_suit")){ _local2.visible = true; }; }; }; if (_local2.name.match("carrot")){ carrotSpecial = new MelbaButton(null, "none", MovieClip(_local2)); for each (_local4 in _local3.accessories) { if (_local4.match("carrotstick")){ _local2.visible = true; }; }; }; }; _local1++; }; } public function fillItems(_arg1:DinoInfo):void{ var _local2:String; var _local3:String; var _local6:MapEntry; var _local7:int; var _local8:int; var _local9:KongItem; var _local10:String; var _local11:KongItem; var _local12:MapEntry; dinoInfo = _arg1; headItem = null; backItem = null; tailItem = null; footItem = null; suitItem = null; for each (_local2 in _arg1.accessories) { _local9 = ItemManager.getItem(_local2); _local10 = _local9.catagory; _local11 = null; if (_local9.catagory.match("head")){ _local11 = headItem; }; if (_local9.catagory.match("back")){ _local11 = backItem; }; if (_local9.catagory.match("tail")){ _local11 = tailItem; }; if (_local9.catagory.match("foot")){ _local11 = footItem; }; if (_local9.catagory.match("suit")){ _local11 = suitItem; }; if ((((_local11 == null)) || ((getItemLevel(_local11) < getItemLevel(_local9))))){ if (_local9.catagory.match("head")){ headItem = _local9; }; if (_local9.catagory.match("back")){ backItem = _local9; }; if (_local9.catagory.match("tail")){ tailItem = _local9; }; if (_local9.catagory.match("foot")){ footItem = _local9; }; if (_local9.catagory.match("suit")){ suitItem = _local9; }; }; }; _local3 = _arg1.boostChoices; if (_local3 == null){ _local3 = "____"; }; var _local4:Array = _local3.split("_"); headBoostEntry.fillItem(headItem, getItemLevel(headItem), _local4[0]); backBoostEntry.fillItem(backItem, getItemLevel(backItem), _local4[1]); tailBoostEntry.fillItem(tailItem, getItemLevel(tailItem), _local4[2]); footBoostEntry.fillItem(footItem, getItemLevel(footItem), _local4[3]); boostMap = new Array(); updateBoostMap(_local4[0], getItemLevel(headItem), boostMap); updateBoostMap(_local4[1], getItemLevel(backItem), boostMap); updateBoostMap(_local4[2], getItemLevel(tailItem), boostMap); updateBoostMap(_local4[3], getItemLevel(footItem), boostMap); var _local5:Array = new Array(); for each (_local6 in boostMap) { if (((!((_local6.str == "n"))) && ((_local6.lvl > 0)))){ _local5.push(_local6); }; }; _local5.sortOn("lvl", (Array.NUMERIC | Array.DESCENDING)); _local7 = _local5.length; _local8 = 0; while (_local8 < boostNameTextboxes.length) { if (_local5.length > 0){ _local12 = _local5.shift(); boostNameTextboxes[_local8].text = _local12.str; boostValueTextboxes[_local8].text = ("+" + _local12.lvl); } else { boostNameTextboxes[_local8].text = ""; boostValueTextboxes[_local8].text = ""; }; _local8++; }; for each (_local2 in dinoInfo.accessories) { if (_local2.match("_suit")){ boostNameTextboxes[_local7].text = "armor"; boostValueTextboxes[_local7].text = "+3"; }; }; } public static function getSuitLevel(_arg1:KongItem):int{ var _local2:int; if (_arg1 != null){ _local2 = 1; } else { return (0); }; return (_local2); } public static function getItemLevel(_arg1:KongItem):int{ var _local2:int; if (_arg1 != null){ if (_arg1.kredCost >= 5){ _local2 = 1; }; if (_arg1.kredCost >= 10){ _local2 = 2; }; if (_arg1.kredCost >= 15){ _local2 = 3; }; if (_arg1.identifier.match("carrot")){ _local2 = 0; }; } else { return (0); }; return (_local2); } } }//package dinowaurs.betaMenu import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.*; import dinowaurs.managers.*; class MapEntry { public var str:String; public var lvl:int; private function MapEntry(_arg1:String, _arg2:int){ str = _arg1; lvl = _arg2; } } class BoostItemEntry { public var accIconSpace:MovieClip; public var itemNameBox:TextField; public var changed:Boolean;// = false public var boostIcon:MovieClip; public var comboBox; private function BoostItemEntry(_arg1:TextField, _arg2, _arg3:MovieClip, _arg4:MovieClip){ itemNameBox = _arg1; comboBox = _arg2; boostIcon = _arg3; accIconSpace = _arg4; comboBox.addEventListener(Event.CHANGE, changedMe); var _local5:TextFormat = new TextFormat(null, null, 5682); comboBox.textField.setStyle("textFormat", _local5); var _local6:TextFormat = new TextFormat(null, null, 0xFFFFFF); comboBox.dropdown.setRendererStyle("textFormat", _local6); } public function fillBoostCombo(_arg1):void{ _arg1.removeAll(); _arg1.addItem(obj("Set Boost Here!")); _arg1.addItem(obj("Cannon Damage")); _arg1.addItem(obj("SAM Damage")); _arg1.addItem(obj("Castle Damage")); _arg1.addItem(obj("Cluster Damage")); _arg1.addItem(obj("Meteor Range")); _arg1.addItem(obj("Law Firm Lifespan")); _arg1.addItem(obj("Air Strike Range")); _arg1.addItem(obj("Flame Lifespan")); _arg1.addItem(obj("Jetpack Power")); _arg1.addItem(obj("Dino Speed")); } public function getComboIndexFromString(_arg1:String):int{ if (_arg1 == "cannon"){ return (1); }; if (_arg1 == "sam"){ return (2); }; if (_arg1 == "castle"){ return (3); }; if (_arg1 == "clusterBomb"){ return (4); }; if (_arg1 == "meteor"){ return (5); }; if (_arg1 == "lawFirm"){ return (6); }; if (_arg1 == "airStrike"){ return (7); }; if (_arg1 == "flamethrower"){ return (8); }; if (_arg1 == "jetpack"){ return (9); }; if (_arg1 == "speed"){ return (10); }; return (0); } public function fillItem(_arg1:KongItem, _arg2:int, _arg3:String):void{ if (_arg1 == null){ Main.setTextF(itemNameBox, "boostScreenItemName", "No Item!"); boostIcon.visible = false; accIconSpace.visible = false; return; }; if (_arg2 > 0){ fillBoostCombo(comboBox); }; if (_arg2 != 0){ comboBox.selectedIndex = getComboIndexFromString(_arg3); }; var _local4:String = ("icon_" + _arg1.accessoryHandle.split("_")[0]); if (accIconSpace.numChildren != 0){ accIconSpace.removeChildAt(0); }; accIconSpace.addChild(AssetLoader.getAssetMC("accessories", _local4)); Main.setTextF(itemNameBox, "boostScreenItemName", _arg1.name); boostIcon.gotoAndStop((_arg2 + 1)); } public function obj(_arg1:String):Object{ var _local2:Object = new Object(); _local2.label = _arg1; _local2.data = "data"; return (_local2); } public function getComboChoice():String{ switch (comboBox.selectedIndex){ case 0: return (""); case 1: return ("cannon"); case 2: return ("sam"); case 3: return ("castle"); case 4: return ("clusterBomb"); case 5: return ("meteor"); case 6: return ("lawFirm"); case 7: return ("airStrike"); case 8: return ("flamethrower"); case 9: return ("jetpack"); case 10: return ("speed"); }; return (""); } public function changedMe(_arg1:Event):void{ changed = true; } }
Section 37
//Creation_ChildScreen (dinowaurs.betaMenu.Creation_ChildScreen) package dinowaurs.betaMenu { import flash.display.*; public class Creation_ChildScreen extends MenuScreen { public var creationScreen:CreationScreen; public function Creation_ChildScreen(_arg1:Sprite=null, _arg2:String="none", _arg3:Sprite=null){ super(_arg1, _arg2, _arg3); } } }//package dinowaurs.betaMenu
Section 38
//Creation_ColorPick (dinowaurs.betaMenu.Creation_ColorPick) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.dinos.*; import dinowaurs.managers.*; public class Creation_ColorPick extends Creation_ChildScreen { public var dinoType:String; public var dinoName:String;// = "noName" public var dinoViewer:DinoViewer; public var dinoColor:String; public var colorHash:Array; public function Creation_ColorPick(_arg1:Sprite=null, _arg2:String="none", _arg3:Sprite=null){ var _local4:MelbaButton; super(_arg1, _arg2, _arg3); for each (_local4 in buttons) { if (_local4.base.name.match("btn_back")){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, backBtn, false, 0, true); } else { if (_local4.base.name.match("btn_check")){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, confirm, false, 0, true); } else { _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, colorDown, false, 0, true); }; }; }; dinoViewer = new DinoViewer(MovieClip(base).viewer_fordino, 0, 0, -1, -2); colorHash = new Array(); colorHash["btn_red"] = "Red"; colorHash["btn_tan"] = "Tan"; colorHash["btn_yellow"] = "Yellow"; colorHash["btn_purple"] = "Purple"; colorHash["btn_pink"] = "Pink"; colorHash["btn_orange"] = "Orange"; colorHash["btn_olive"] = "Olive"; colorHash["btn_lightgreen"] = "LightGreen"; colorHash["btn_intuition"] = "Intuition"; colorHash["btn_green"] = "Green"; colorHash["btn_charcoal"] = "Charcoal"; colorHash["btn_brown"] = "Brown"; colorHash["btn_blue"] = "Blue"; colorHash["btn_albino"] = "Albino"; } override public function show():void{ super.show(); MovieClip(creationScreen.base).kingTip.gotoAndStop(2); } override public function kill():void{ var _local1:MelbaButton; for each (_local1 in buttons) { if (!_local1.myKillFlag){ if (_local1.base.name.match("btn_back")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, backBtn); } else { if (_local1.base.name.match("btn_check")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, confirm); } else { _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, colorDown); }; }; }; }; if (dinoViewer != null){ dinoViewer.kill(); }; super.kill(); } public function setDino(_arg1:String):void{ if (dinoViewer != null){ dinoViewer.clear(); }; var _local2:DinoInfo = new DinoInfo(_arg1, "fuzzy"); dinoViewer = new DinoViewer(MovieClip(base).viewer_fordino, 0, 0, -1, -2); dinoViewer.loadDino(_local2); dinoViewer.centerAnimator(); dinoType = _arg1; } public function colorDown(_arg1:MouseEvent):void{ if (colorHash[_arg1.currentTarget.name] == null){ return; }; var _local2:DinoInfo = dinoViewer.thisDinoInfo; _local2.dinoColor = colorHash[_arg1.currentTarget.name]; dinoViewer.clear(); dinoViewer.loadDino(_local2); dinoViewer.centerAnimator(); } public function confirm(_arg1:MouseEvent):void{ if (MovieClip(base).dinoName.text.match(/^$/)){ return; }; if (dinoType == "stego"){ SoundManager.playFX("CTR_StegoRoar", 0); } else { if (dinoType == "tri"){ SoundManager.playFX("CTR_TricerRoar", 0); } else { if (dinoType == "bronto"){ SoundManager.playFX("CTR_BrontoRoar", 0); } else { if (dinoType == "ankylo"){ SoundManager.playFX("CTR_AnkyloRoar", 0); }; }; }; }; dinoName = MovieClip(base).dinoName.text; dinoColor = dinoViewer.thisDinoInfo.dinoColor; dinoViewer.clear(); Main.betaMenu.dinoCreate(dinoType, dinoName, dinoColor); MovieClip(base).dinoName.text = ""; creationScreen.selectColor("red"); if (Main.betaMenu.tutorialArrows.hatchery_arrow.visible){ Main.betaMenu.tutorialArrows.tutorial_arrow.visible = true; }; Main.betaMenu.tutorialArrows.hatchery_arrow.visible = false; } public function backBtn(_arg1:MouseEvent):void{ creationScreen.backColor(); } } }//package dinowaurs.betaMenu
Section 39
//Creation_DinoPick (dinowaurs.betaMenu.Creation_DinoPick) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.managers.*; public class Creation_DinoPick extends Creation_ChildScreen { public function Creation_DinoPick(_arg1:Sprite=null, _arg2:String="none", _arg3:Sprite=null){ var _local4:MelbaButton; super(_arg1, _arg2, _arg3); for each (_local4 in buttons) { if (_local4.base.name.match("_stego")){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, selectStego, false, 0, true); } else { if (_local4.base.name.match("_tri")){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, selectTri, false, 0, true); } else { if (_local4.base.name.match("_bronto")){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, selectBronto, false, 0, true); } else { if (_local4.base.name.match("_ankylo")){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, selectAnkylo, false, 0, true); }; }; }; }; }; } public function selectStego(_arg1:MouseEvent):void{ SoundManager.playFX("CTR_StegoRoar", 0); creationScreen.dinoChoiceMade("stego"); } public function selectBronto(_arg1:MouseEvent):void{ SoundManager.playFX("CTR_BrontoRoar", 0); creationScreen.dinoChoiceMade("bronto"); } public function selectAnkylo(_arg1:MouseEvent):void{ SoundManager.playFX("CTR_AnkyloRoar", 0); creationScreen.dinoChoiceMade("ankylo"); } override public function show():void{ super.show(); MovieClip(creationScreen.base).kingTip.gotoAndStop(1); } override public function kill():void{ var _local1:MelbaButton; for each (_local1 in buttons) { if (!_local1.myKillFlag){ if (_local1.base.name.match("_stego")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, selectStego); } else { if (_local1.base.name.match("_tri")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, selectTri); } else { if (_local1.base.name.match("_bronto")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, selectBronto); } else { if (_local1.base.name.match("_ankylo")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, selectAnkylo); }; }; }; }; }; }; super.kill(); } public function selectTri(_arg1:MouseEvent):void{ SoundManager.playFX("CTR_TricerRoar", 0); creationScreen.dinoChoiceMade("tri"); } } }//package dinowaurs.betaMenu
Section 40
//Creation_Export (dinowaurs.betaMenu.Creation_Export) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.managers.*; import com.adobe.images.*; public class Creation_Export extends Creation_ChildScreen { public var dinoViewer:DinoViewer; public function Creation_Export(_arg1:Sprite=null, _arg2:String="none", _arg3:Sprite=null){ super(_arg1, _arg2, _arg3); dinoViewer = new DinoViewer(MovieClip(base).viewer_fordino, 0, -20, -1, -2); Main.betaMenu.exportScreen = this; } override public function hide():void{ super.hide(); if (dinoViewer != null){ dinoViewer.clear(); }; } override public function show():void{ super.show(); MovieClip(creationScreen.base).kingTip.gotoAndStop(3); Main.betaMenu.setCurrentDinoViewer(dinoViewer); var _local1:TextFormat = new TextFormat(); _local1.font = TextField(MovieClip(base).dinoName).defaultTextFormat.font; _local1.size = TextField(MovieClip(base).dinoName).defaultTextFormat.size; _local1.align = TextField(MovieClip(base).dinoName).defaultTextFormat.align; _local1.color = TextField(MovieClip(base).dinoName).defaultTextFormat.color; _local1.letterSpacing = -2; MovieClip(base).dinoName.text = Main.dinoSlots[Main.currentDino].dinoName; TextField(MovieClip(base).dinoName).defaultTextFormat = _local1; } public function exportDone(_arg1:Boolean):void{ } override public function btnMouseDown(_arg1:MouseEvent):void{ if (DisplayObject(_arg1.target).name.match("export")){ if (!Main.unKong){ KongApiManager.kongregate.images.submitAvatar(dinoViewer.myBaseClip, exportDone); }; }; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; var _local2:TextFormat = new TextFormat(); _local2.font = TextField(MovieClip(base).dinoName).defaultTextFormat.font; _local2.size = TextField(MovieClip(base).dinoName).defaultTextFormat.size; _local2.align = TextField(MovieClip(base).dinoName).defaultTextFormat.align; _local2.color = TextField(MovieClip(base).dinoName).defaultTextFormat.color; _local2.letterSpacing = -2; MovieClip(base).dinoName.text = Main.dinoSlots[Main.currentDino].dinoName; TextField(MovieClip(base).dinoName).defaultTextFormat = _local2; } override public function kill():void{ if (dinoViewer != null){ dinoViewer.kill(); }; super.kill(); } public function setDino(_arg1:String):void{ var _local2:TextFormat = new TextFormat(); _local2.font = TextField(MovieClip(base).dinoName).defaultTextFormat.font; _local2.size = TextField(MovieClip(base).dinoName).defaultTextFormat.size; _local2.align = TextField(MovieClip(base).dinoName).defaultTextFormat.align; _local2.color = TextField(MovieClip(base).dinoName).defaultTextFormat.color; _local2.letterSpacing = -2; MovieClip(base).dinoName.text = Main.dinoSlots[Main.currentDino].dinoName; TextField(MovieClip(base).dinoName).defaultTextFormat = _local2; } } }//package dinowaurs.betaMenu
Section 41
//CreationScreen (dinowaurs.betaMenu.CreationScreen) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.managers.*; public class CreationScreen extends MenuScreen { public var colorPick:Creation_ColorPick; public var dinoChoice:String;// = "none" public var export:Creation_Export; public var dinoPick:Creation_DinoPick; public var topCreateScreen:String;// = "none" public function CreationScreen(_arg1:Sprite=null, _arg2:String="none", _arg3:Sprite=null){ var _local4:MenuScreen; super(_arg1, _arg2, _arg3); for each (_local4 in screens) { Creation_ChildScreen(_local4).creationScreen = this; if (!_local4.base.name.match("dinoPick")){ _local4.hide(); }; if (_local4.base.name.match("color")){ colorPick = Creation_ColorPick(_local4); }; if (_local4.base.name.match("dino")){ dinoPick = Creation_DinoPick(_local4); }; if (_local4.base.name.match("export")){ export = Creation_Export(_local4); }; }; startTicking(); new MelbaButton(null, "none", kingTip.btn_helpTipsOff); } override public function getOnTop():void{ super.getOnTop(); if (topCreateScreen.match("export")){ export.show(); } else { if (topCreateScreen.match("colorPick")){ colorPick.show(); } else { dinoPick.show(); }; }; } public function gotoColorPick():void{ topCreateScreen = "colorPick"; colorPick.show(); dinoPick.hide(); export.hide(); } override public function notOnTop():void{ super.notOnTop(); } public function gotoDinoPick():void{ topCreateScreen = "dinoPick"; colorPick.hide(); export.hide(); dinoPick.show(); } public function backColor():void{ gotoDinoPick(); } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; if (Main.dinoSlots[Main.currentDino].dinoName.match("none")){ if (!colorPick.showing){ if (!dinoPick.showing){ gotoDinoPick(); }; }; } else { if (!export.showing){ gotoExport(); }; }; } public function gotoExport():void{ topCreateScreen = "export"; colorPick.hide(); dinoPick.hide(); export.show(); } public function dinoChoiceMade(_arg1:String):void{ dinoChoice = _arg1; colorPick.setDino(dinoChoice); export.setDino(dinoChoice); gotoColorPick(); } override public function kill():void{ super.kill(); } public function selectColor(_arg1:String):void{ gotoExport(); } } }//package dinowaurs.betaMenu
Section 42
//DetailButton (dinowaurs.betaMenu.DetailButton) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.*; import dinowaurs.managers.*; public class DetailButton extends MelbaButton { public var active:Boolean;// = true public function DetailButton(_arg1:Sprite=null, _arg2:String="none", _arg3:MovieClip=null){ super(_arg1, _arg2, _arg3); if (!base.name.match("quik")){ Main.betaMenu.detailBtns.push(this); }; this.startTicking(); if (base.name.match("detail")){ Main.addGraphicsDetailBtn(this); } else { if (base.name.match("arena")){ Main.addArenaDetailBtn(this); }; }; } override public function mouseOut(_arg1:MouseEvent):void{ if (base.currentFrame != 3){ super.mouseOut(_arg1); }; stopTicking(); } override public function stopTicking():void{ toolTipTimer = 500; if (myToolTip != null){ if (myToolTip.parent != null){ myToolTip.parent.removeChild(myToolTip); myToolTip = null; }; }; mouseIsOver = false; } override public function mouseDown(_arg1:MouseEvent):void{ var _local3:Sprite; var _local4:int; super.mouseDown(_arg1); startTicking(); var _local2 = ""; if (base.name.match("high")){ _local2 = "high"; } else { if (base.name.match("medium")){ _local2 = "medium"; } else { if (base.name.match("low")){ _local2 = "low"; }; }; }; if (base.name.match("arena")){ Main.setArenaDetail(_local2); _local3 = Sprite(base.parent); _local4 = 0; while (_local4 < _local3.numChildren) { if (_local3.getChildAt(_local4).name.match("arena")){ MovieClip(_local3.getChildAt(_local4)).gotoAndStop(1); }; _local4++; }; tick(10); } else { Main.setGraphicDetail(_local2); }; } override public function mouseOver(_arg1:MouseEvent):void{ if (base.currentFrame != 3){ super.mouseOver(_arg1); }; } override public function tick(_arg1:uint):void{ var _local3:Sprite; var _local4:int; super.tick(_arg1); bSubscribing = false; if (myKillFlag){ return; }; if (base.currentFrame == 3){ stopTicking(); }; if (!active){ return; }; var _local2:GameSettings = Main.GAME_SETTINGS; if (base.name.match("high_detail")){ if (Main.GAME_SETTINGS.GraphicsQuality.match("high")){ if (base.currentFrame != 3){ trace("patented!"); _local3 = Sprite(base.parent); _local4 = 0; while (_local4 < _local3.numChildren) { if (_local3.getChildAt(_local4).name.match("detail")){ MovieClip(_local3.getChildAt(_local4)).gotoAndStop(1); }; _local4++; }; base.gotoAndStop(3); stopTicking(); }; }; }; if (base.name.match("medium_detail")){ if (Main.GAME_SETTINGS.GraphicsQuality.match("medium")){ if (base.currentFrame != 3){ _local3 = Sprite(base.parent); _local4 = 0; while (_local4 < _local3.numChildren) { if (_local3.getChildAt(_local4).name.match("detail")){ MovieClip(_local3.getChildAt(_local4)).gotoAndStop(1); }; _local4++; }; base.gotoAndStop(3); stopTicking(); }; }; }; if (base.name.match("low_detail")){ if (Main.GAME_SETTINGS.GraphicsQuality.match("low")){ if (base.currentFrame != 3){ _local3 = Sprite(base.parent); _local4 = 0; while (_local4 < _local3.numChildren) { if (_local3.getChildAt(_local4).name.match("detail")){ MovieClip(_local3.getChildAt(_local4)).gotoAndStop(1); }; _local4++; }; base.gotoAndStop(3); stopTicking(); }; }; }; if (base.name.match("high_arena")){ if (Main.ARENA_DETAIL.match("high")){ if (base.currentFrame != 3){ trace("patented!"); _local3 = Sprite(base.parent); _local4 = 0; while (_local4 < _local3.numChildren) { if (_local3.getChildAt(_local4).name.match("arena")){ MovieClip(_local3.getChildAt(_local4)).gotoAndStop(1); }; _local4++; }; base.gotoAndStop(3); stopTicking(); MovieClip(base.parent).arena_detail_display.switcher.gotoAndStop(1); }; }; }; if (base.name.match("medium_arena")){ if (Main.ARENA_DETAIL.match("medium")){ if (base.currentFrame != 3){ _local3 = Sprite(base.parent); _local4 = 0; while (_local4 < _local3.numChildren) { if (_local3.getChildAt(_local4).name.match("arena")){ MovieClip(_local3.getChildAt(_local4)).gotoAndStop(1); }; _local4++; }; base.gotoAndStop(3); stopTicking(); MovieClip(base.parent).arena_detail_display.switcher.gotoAndStop(2); }; }; }; if (base.name.match("low_arena")){ if (Main.ARENA_DETAIL.match("low")){ if (base.currentFrame != 3){ _local3 = Sprite(base.parent); _local4 = 0; while (_local4 < _local3.numChildren) { if (_local3.getChildAt(_local4).name.match("arena")){ MovieClip(_local3.getChildAt(_local4)).gotoAndStop(1); }; _local4++; }; base.gotoAndStop(3); stopTicking(); MovieClip(base.parent).arena_detail_display.switcher.gotoAndStop(3); }; }; }; } override public function kill():void{ if (base.name.match("detail")){ Main.removeGraphicsDetailBtn(this); } else { if (base.name.match("arena")){ Main.removeArenaDetailBtn(this); }; }; super.kill(); } } }//package dinowaurs.betaMenu
Section 43
//DinoSelector (dinowaurs.betaMenu.DinoSelector) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import engine.core.*; import dinowaurs.managers.*; public class DinoSelector extends MelbaObject { public var selectorBracket:MovieClip; public var base:MovieClip; public var currentSlot:int; public var colorHash:Array; public var mouseOver:Array; public var dinoInfos:Array; public function DinoSelector(_arg1:MovieClip){ var _local3:MovieClip; super("dinoSelector"); base = _arg1; dinoInfos = new Array(); selectorBracket = AssetLoader.getAssetMC("mainMenu2", "dinoBracket"); base.addChildAt(selectorBracket, 0); var _local2:int; while (_local2 < 3) { _local3 = getSlotClip(_local2); if (_local3 != null){ _local3.addEventListener(MouseEvent.MOUSE_DOWN, slotDown, false, 0, true); _local3.addEventListener(MouseEvent.MOUSE_OVER, slotOver, false, 0, true); _local3.addEventListener(MouseEvent.MOUSE_OUT, slotOut, false, 0, true); _local3.xBtn.addEventListener(MouseEvent.MOUSE_DOWN, xDown, false, 0, true); _local3.xBtn.addEventListener(MouseEvent.MOUSE_OVER, xOver, false, 0, true); _local3.xBtn.addEventListener(MouseEvent.MOUSE_OUT, xOut, false, 0, true); MovieClip(_local3.xBtn).useHandCursor = true; MovieClip(_local3.xBtn).buttonMode = true; }; _local2++; }; mouseOver = new Array(); mouseOver.push(true); mouseOver.push(false); mouseOver.push(false); colorHash = new Array(); colorHash["Red"] = 14; colorHash["Tan"] = 13; colorHash["Yellow"] = 12; colorHash["Purple"] = 11; colorHash["Pink"] = 10; colorHash["Orange"] = 9; colorHash["Olive"] = 8; colorHash["LightGreen"] = 7; colorHash["Intuition"] = 6; colorHash["Green"] = 5; colorHash["Charcoal"] = 4; colorHash["Brown"] = 3; colorHash["Blue"] = 2; colorHash["Albino"] = 1; } public function slotDown(_arg1:MouseEvent):void{ SoundManager.playFX("INT_MenuGselect", 0); var _local2:MovieClip = MovieClip(_arg1.currentTarget); if (_local2.name.match("0")){ Main.betaMenu.setDinoSlot(0); if (Main.dinoSlots[0].dinoName.match("none")){ Main.betaMenu.creationScreen.getOnTop(); }; }; if (_local2.name.match("1")){ Main.betaMenu.setDinoSlot(1); if (Main.dinoSlots[1].dinoName.match("none")){ Main.betaMenu.creationScreen.getOnTop(); }; }; if (_local2.name.match("2")){ Main.betaMenu.setDinoSlot(2); if (Main.dinoSlots[2].dinoName.match("none")){ Main.betaMenu.creationScreen.getOnTop(); }; }; if (MovieClip(_arg1.currentTarget).name.match("0")){ mouseOver[0] = true; }; if (MovieClip(_arg1.currentTarget).name.match("1")){ mouseOver[1] = true; }; if (MovieClip(_arg1.currentTarget).name.match("2")){ mouseOver[2] = true; }; } public function getSlotClip(_arg1:int):MovieClip{ var _local2:int; while (_local2 < base.numChildren) { if (base.getChildAt(_local2).name.match(("slot" + _arg1))){ return (MovieClip(base.getChildAt(_local2))); }; _local2++; }; return (null); } public function kill():void{ var _local2:MovieClip; var _local1:int; while (_local1 < 3) { _local2 = getSlotClip(_local1); if (_local2 != null){ _local2.removeEventListener(MouseEvent.MOUSE_DOWN, slotDown); _local2.removeEventListener(MouseEvent.MOUSE_OVER, slotOver); _local2.removeEventListener(MouseEvent.MOUSE_OUT, slotOut); _local2.xBtn.removeEventListener(MouseEvent.MOUSE_DOWN, xDown); _local2.xBtn.removeEventListener(MouseEvent.MOUSE_OVER, xOver); _local2.xBtn.removeEventListener(MouseEvent.MOUSE_OUT, xOut); }; _local1++; }; if (base.parent != null){ base.parent.removeChild(base); }; base = null; dinoInfos = null; mouseOver = new Array(); if (selectorBracket.parent != null){ selectorBracket.parent.removeChild(selectorBracket); }; selectorBracket = null; colorHash = null; } public function updateClips():void{ var _local2:MovieClip; var _local3:DinoInfo; var _local4:BoostIconMGR; mouseOver[currentSlot] = true; var _local1:int; while (_local1 < 3) { _local2 = getSlotClip(_local1); _local3 = dinoInfos[_local1]; _local4 = new BoostIconMGR(_local2, false); _local4.setBoosts(DinoInfo(dinoInfos[_local1]).boostCode); if (!dinoInfos[_local1].dinoType.match("none")){ _local2.gotoAndStop(1); if (_local3.dinoType.match("ankylo")){ _local2.gotoAndStop(3); }; if (_local3.dinoType.match("bronto")){ _local2.gotoAndStop(5); }; if (_local3.dinoType.match("stego")){ _local2.gotoAndStop(7); }; if (_local3.dinoType.match("tri")){ _local2.gotoAndStop(9); }; if (mouseOver[_local1]){ _local2.gotoAndStop((_local2.currentFrame + 1)); }; Main.setTextF(_local2.dinoName, "dinoselectorDinoName", _local3.dinoName); _local2.x = 0; if (currentSlot == _local1){ _local2.x = -20; selectorBracket.y = _local2.y; selectorBracket.x = _local2.x; }; if (base.name.match("create")){ _local2.xBtn.visible = true; } else { _local2.xBtn.visible = false; }; } else { Main.setTextF(_local2.dinoName, "dinoselectorDinoName", "Click to add dino..."); _local2.gotoAndStop(1); if (mouseOver[_local1]){ _local2.gotoAndStop(2); }; _local2.x = 0; if (currentSlot == _local1){ _local2.x = -20; selectorBracket.y = _local2.y; selectorBracket.x = _local2.x; }; _local2.xBtn.visible = false; }; _local1++; }; } public function slotOver(_arg1:MouseEvent):void{ if (MovieClip(_arg1.currentTarget).name.match("0")){ mouseOver[0] = true; }; if (MovieClip(_arg1.currentTarget).name.match("1")){ mouseOver[1] = true; }; if (MovieClip(_arg1.currentTarget).name.match("2")){ mouseOver[2] = true; }; updateClips(); } public function xOver(_arg1:MouseEvent):void{ MovieClip(_arg1.currentTarget).gotoAndStop(2); } public function slotOut(_arg1:MouseEvent):void{ if (MovieClip(_arg1.currentTarget).name.match("0")){ if (Main.currentDino != 0){ mouseOver[0] = false; }; }; if (MovieClip(_arg1.currentTarget).name.match("1")){ if (Main.currentDino != 1){ mouseOver[1] = false; }; }; if (MovieClip(_arg1.currentTarget).name.match("2")){ if (Main.currentDino != 2){ mouseOver[2] = false; }; }; updateClips(); } public function xOut(_arg1:MouseEvent):void{ MovieClip(_arg1.currentTarget).gotoAndStop(1); } public function xDown(_arg1:MouseEvent):void{ SoundManager.playFX("INT_MenuGselect", 0); if (MovieClip(_arg1.currentTarget).parent.name.match("0")){ Main.dinoSlots[0] = new DinoInfo("none", "none"); Main.sendDinoInfo(0); }; if (MovieClip(_arg1.currentTarget).parent.name.match("1")){ Main.dinoSlots[1] = new DinoInfo("none", "none"); Main.sendDinoInfo(1); }; if (MovieClip(_arg1.currentTarget).parent.name.match("2")){ Main.dinoSlots[2] = new DinoInfo("none", "none"); Main.sendDinoInfo(2); }; Main.betaMenu.updateDinoSelectors(); } public function updateDinoInfos(_arg1:Array, _arg2:int):void{ dinoInfos = _arg1; mouseOver[currentSlot] = false; currentSlot = _arg2; updateClips(); } } }//package dinowaurs.betaMenu
Section 44
//DinoViewer (dinowaurs.betaMenu.DinoViewer) package dinowaurs.betaMenu { import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import dinowaurs.*; import dinowaurs.managers.*; public class DinoViewer { public var myHeightLimit:Number; public var myAnimator:String; public var myBaseClip:MovieClip; public var centerOffset:Point; public var thisDinoInfo:DinoInfo; public var skeleton:Array; public var myWidthLimit:Number; public var accessories:Array; public var myAnimation:DinoAnimation; public var doNotCenter:Boolean;// = false public function DinoViewer(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){ myBaseClip = new MovieClip(); _arg1.addChild(myBaseClip); myBaseClip.x = _arg2; myBaseClip.y = _arg3; myBaseClip.graphics.lineStyle(1, 0xFF0000, 0); myBaseClip.graphics.lineTo(_arg4, 0); myBaseClip.graphics.lineTo(_arg4, _arg5); myBaseClip.graphics.lineTo(0, _arg5); myBaseClip.graphics.lineTo(0, 0); myWidthLimit = _arg4; myHeightLimit = _arg5; skeleton = new Array(); centerOffset = new Point(); if (Main.betaMenu != null){ Main.betaMenu.addDinoViewer(this); }; } public function loadDino(_arg1:DinoInfo, _arg2:Boolean=false):void{ var _local3:Bone; var _local4:int; var _local5:BoneImp; var _local6:Accessory; trace("guys"); if (_arg1 == null){ clear(); return; }; trace("tent"); if (thisDinoInfo != null){ if (thisDinoInfo.isCopy(_arg1)){ return; }; }; clear(); thisDinoInfo = _arg1; thisDinoInfo.dinoName = String(thisDinoInfo.dinoName); thisDinoInfo.dinoType = String(thisDinoInfo.dinoType); if (thisDinoInfo.dinoType.match("none")){ clear(); return; }; trace("boxer"); trace("the horse"); if (myAnimation != null){ myAnimation.kill(); }; myAnimation = null; trace(("bomba " + thisDinoInfo.dinoType)); if (thisDinoInfo.dinoType.match("bronto")){ trace("this is bronto!"); myAnimator = "bronto_breathing"; myAnimation = new DinoAnimation(myAnimator, "breathing", new Point(), "bronto", thisDinoInfo.dinoColor, true); myAnimation.stop(); centerOffset = new Point(235, 170); } else { if (thisDinoInfo.dinoType.match("ankylo")){ trace("this is ankylo!"); myAnimator = "ankylo_breathing"; myAnimation = new DinoAnimation(myAnimator, "breathing", new Point(), "ankylo", thisDinoInfo.dinoColor, true); myAnimation.stop(); centerOffset = new Point(151, 117.6); } else { if (thisDinoInfo.dinoType.match("stego")){ trace("this is stego!"); myAnimator = "stego_breathing"; myAnimation = new DinoAnimation(myAnimator, "breathing", new Point(), "stego", thisDinoInfo.dinoColor, true); myAnimation.stop(); centerOffset = new Point(195.5, 190.4); } else { if (thisDinoInfo.dinoType.match("tri")){ myAnimator = "tri_breathing"; myAnimation = new DinoAnimation(myAnimator, "breathing", new Point(), "tri", thisDinoInfo.dinoColor, true); myAnimation.stop(); centerOffset = new Point(169.4, 198.1); }; }; }; }; trace("choo-choo!"); if (myWidthLimit != -1){ if ((myAnimation.mAnimator.width / myWidthLimit) > (myAnimation.mAnimator.height / myHeightLimit)){ myAnimation.mAnimator.scaleY = (myWidthLimit / myAnimation.mAnimator.width); myAnimation.mAnimator.scaleX = (myWidthLimit / myAnimation.mAnimator.width); } else { myAnimation.mAnimator.scaleX = (myHeightLimit / myAnimation.mAnimator.height); myAnimation.mAnimator.scaleY = (myHeightLimit / myAnimation.mAnimator.height); }; } else { if (myHeightLimit == -2){ trace("hello"); myAnimation.mAnimator.scaleX = (myAnimation.mAnimator.scaleY = 0.65); myAnimation.mAnimator.x = -((myAnimation.mAnimator.width / 2)); myAnimation.mAnimator.y = -(myAnimation.mAnimator.height); if (thisDinoInfo.dinoType.match("tri")){ myAnimation.mAnimator.y = (myAnimation.mAnimator.y + 15); }; if (thisDinoInfo.dinoType.match("tri")){ myAnimation.mAnimator.x = (myAnimation.mAnimator.x + 2); }; if (thisDinoInfo.dinoType.match("bronto")){ myAnimation.mAnimator.y = (myAnimation.mAnimator.y + 14); }; if (thisDinoInfo.dinoType.match("bronto")){ myAnimation.mAnimator.x = (myAnimation.mAnimator.x - 3); }; if (thisDinoInfo.dinoType.match("stego")){ myAnimation.mAnimator.y = (myAnimation.mAnimator.y + 5); }; if (thisDinoInfo.dinoType.match("stego")){ myAnimation.mAnimator.x = (myAnimation.mAnimator.x - 5); }; if (thisDinoInfo.dinoType.match("ankylo")){ myAnimation.mAnimator.y = (myAnimation.mAnimator.y + 8); }; if (thisDinoInfo.dinoType.match("ankylo")){ myAnimation.mAnimator.x = (myAnimation.mAnimator.x - 17); }; if (_arg2){ myAnimation.mAnimator.scaleX = (myAnimation.mAnimator.scaleX * -1); myAnimation.mAnimator.x = (myAnimation.mAnimator.x + myAnimation.mAnimator.width); }; doNotCenter = true; } else { if (myHeightLimit == -3){ myAnimation.mAnimator.x = -((myAnimation.mAnimator.width / 2)); myAnimation.mAnimator.y = -(myAnimation.mAnimator.height); doNotCenter = true; } else { myAnimation.mAnimator.scaleX = (myAnimation.mAnimator.scaleY = 0.65); centerOffset.x = (centerOffset.x * myAnimation.mAnimator.scaleX); centerOffset.y = (centerOffset.y * myAnimation.mAnimator.scaleY); }; }; }; if (myAnimation != null){ myBaseClip.addChild(myAnimation.mAnimator); }; accessories = new Array(); if (myAnimation != null){ if (myAnimation.skeletalAnim != null){ skeleton = new Array(); for each (_local3 in myAnimation.skeletalAnim.bones) { _local5 = new BoneImp(myAnimation.skeletonBase, _local3.mID); _local5.setScript(_local3); _local5.animator = myAnimation.mDinoClip; skeleton.push(_local5); _local5.freezeFrame(1); }; _local4 = 0; while (_local4 < thisDinoInfo.accessories.length) { trace(thisDinoInfo.accessories[_local4]); if (!thisDinoInfo.accessories[_local4].match("_suit")){ _local6 = new Accessory(thisDinoInfo.dinoType, thisDinoInfo.accessories[_local4]); _local6.setSkelArray(skeleton); accessories.push(_local6); } else { myAnimation.attachSuit(new Suit(thisDinoInfo.dinoType, thisDinoInfo.accessories[_local4], "static", true)); }; _local4++; }; }; }; } public function bakeAccessories():void{ } public function centerAnimator():void{ if (doNotCenter){ return; }; if (myAnimation != null){ myAnimation.mAnimator.x = ((myBaseClip.width - myAnimation.mAnimator.width) / 2); myAnimation.mAnimator.y = ((myBaseClip.height - myAnimation.mAnimator.height) / 2); }; } public function kill():void{ clear(); } public function clear():void{ var _local1:Accessory; var _local2:BoneImp; if (myAnimation != null){ myAnimation.myKillFlag = true; myBaseClip.removeChild(myAnimation.mAnimator); myAnimation = null; }; for each (_local1 in accessories) { _local1.myKillFlag = true; }; accessories = new Array(); for each (_local2 in skeleton) { _local2.myKillFlag = true; }; skeleton = new Array(); thisDinoInfo = null; } } }//package dinowaurs.betaMenu
Section 45
//EarnScreen (dinowaurs.betaMenu.EarnScreen) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.managers.*; public class EarnScreen extends MenuScreen { public var winLoss:WinLossScreen; public function EarnScreen(_arg1:WinLossScreen, _arg2:Sprite=null, _arg3:String="none"){ var _local4:MelbaButton; var _local5:int; var _local6:DisplayObject; super(_arg2, ("earnScreen_" + _arg3), null, "misc"); if (_arg3 == "bone"){ Main.setTextF(MovieClip(base).dinokillCount, "earnScreenFlavor", (Main.myPlayerStats.kills + " to be exact.")); } else { if (_arg3 == "egg"){ Main.setTextF(MovieClip(base).gamesCount, "earnScreenFlavor", ((Main.myPlayerStats.wins + Main.myPlayerStats.losses) + " of them.")); } else { if (_arg3 == "meteor"){ Main.setTextF(MovieClip(base).strikeCount, "earnScreenFlavor", (Main.myPlayerStats.adjStrikeDist + " megapixels.")); } else { if (_arg3 == "villager"){ Main.setTextF(MovieClip(base).villageCount, "earnScreenFlavor", (Main.myPlayerStats.villageKills + " villages worth.")); }; }; }; }; for each (_local4 in buttons) { if (_local4.base.name.match("xBtn")){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, xBtn, false, 0, true); }; }; _local5 = 0; while (_local5 < base.numChildren) { _local6 = base.getChildAt(_local5); _local6.visible = true; if (_local6.name.match("award")){ if (_local6.name.match("egg")){ MovieClip(_local6).gotoAndStop(Main.myPlayerStats.getEggLvl()); }; if (_local6.name.match("meteor")){ MovieClip(_local6).gotoAndStop(Main.myPlayerStats.getMeteorLvl()); }; if (_local6.name.match("bone")){ MovieClip(_local6).gotoAndStop(Main.myPlayerStats.getBoneLvl()); }; if (_local6.name.match("villager")){ MovieClip(_local6).gotoAndStop(Main.myPlayerStats.getVillagerLvl()); }; }; if (_local6.name.match("levelWidget")){ MovieClip(_local6).level_bg.gotoAndStop(Main.myPlayerStats.playerLevel); MovieClip(_local6).level_number.text = Main.myPlayerStats.playerLevel; }; _local5++; }; winLoss = _arg1; } public function xBtn(_arg1:MouseEvent):void{ var _local2:MelbaButton; for each (_local2 in buttons) { _local2.myKillFlag = true; }; myKillFlag = true; winLoss.closeEarnScreen(); } } }//package dinowaurs.betaMenu
Section 46
//EquipPreview (dinowaurs.betaMenu.EquipPreview) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.*; import flash.net.*; import dinowaurs.managers.*; public class EquipPreview extends MovieClip { public var item:KongItem; public var myClip:MovieClip; public function EquipPreview(_arg1:String){ var _local2:String; var _local3:Loader; var _local4:KongItem; var _local5:int; super(); item = ItemManager.getItem(_arg1); if (item == null){ item = new KongItem({id:"not_found", description:"database not found", name:"DB Not Found"}); item.name = "Error"; item.description = "Could not establish connection to kong item database. Please verify network connection."; }; myClip = AssetLoader.getAssetMC("mainMenu2", "accessory_detailEQUIP"); addChild(myClip); Main.setTextF(myClip.accessoryTitle, "accpreviewTitle", item.name); Main.setTextF(myClip.accessoryDescription, "accpreviewDescription", item.description); myClip.accessoryEquipped.visible = false; for each (_local2 in Main.savedDinoInfo.accessories) { if (_local2.match(_arg1)){ myClip.accessoryEquipped.visible = true; }; }; x = 328; y = 236; _local3 = new Loader(); _local3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, accDrawIOerror); _local3.load(new URLRequest((("accessoryDrawings/" + _arg1) + ".gif"))); myClip.accessoryArt.addChild(_local3); _local4 = ItemManager.getItem(_arg1); _local5 = 0; if (_local4.catagory != "suit"){ _local5 = BoostScreen.getItemLevel(_local4); } else { _local5 = 4; }; if (_local4.accessoryHandle.match("carrot")){ _local5 = 5; }; myClip.boost_icon.gotoAndStop((_local5 + 1)); } public function accDrawIOerror(_arg1:IOErrorEvent):void{ AssetLoader.setupErrorGuy(); AssetLoader.errorGuy.appendText(_arg1.text); } public function close():void{ if (parent != null){ parent.removeChild(this); }; item = null; } } }//package dinowaurs.betaMenu
Section 47
//HelpScreen (dinowaurs.betaMenu.HelpScreen) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.dinos.*; import dinowaurs.managers.*; public class HelpScreen extends MenuScreen { public var callingScreen; public var handle:String; public var dinoViewer:DinoViewer; public function HelpScreen(_arg1, _arg2:String="none"){ var _local3:Sprite; var _local4:MelbaButton; var _local5:DinoInfo; handle = _arg2; if ((_arg1 is MenuScreen)){ _local3 = MenuScreen(_arg1).base; } else { _local3 = Sprite(_arg1); }; super(_local3, _arg2, null); if ((((_arg1 is MenuScreen)) || ((_arg1 is BoostScreen)))){ callingScreen = _arg1; }; MovieClip(base).stop(); if (!_arg2.match("titleCredits")){ base.x = (base.y = 28); }; for each (_local4 in buttons) { if (_local4.base.name.match("next")){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, nextPage, false, 0, true); } else { if (_local4.base.name.match("prev")){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, previousPage, false, 0, true); } else { if (_local4.base.name.match("xBtn")){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, killMeBtn, false, 0, true); }; }; }; }; if (MovieClip(base).viewer_fordino != null){ dinoViewer = new DinoViewer(MovieClip(base).viewer_fordino, 0, 0, -1, -2); MovieClip(base).viewer_fordino.scaleX = 0.75; MovieClip(base).viewer_fordino.scaleY = 0.75; _local5 = Main.dinoSlots[Main.currentDino]; if (_local5 != null){ dinoViewer.loadDino(_local5); }; }; manageButtons(); } public function killMeBtn(_arg1:MouseEvent):void{ myKillFlag = true; if (dinoViewer != null){ dinoViewer.clear(); }; if (handle.match("battle")){ Main.GAME_SETTINGS.BattleScreenHelp = 0; } else { if (handle.match("accessory")){ Main.GAME_SETTINGS.AccessoryScreenHelp = 0; }; }; Main.saveGameSettings(); if (callingScreen != null){ if ((callingScreen is BattleScreen)){ BattleScreen(callingScreen).didHelp = false; }; if ((callingScreen is AccessoryScreen)){ AccessoryScreen(callingScreen).didHelp = false; }; if ((callingScreen is BoostScreen)){ BoostScreen(callingScreen).didHelp = false; }; }; } public function previousPage(_arg1:MouseEvent):void{ MovieClip(base).gotoAndStop((MovieClip(base).currentFrame - 1)); manageButtons(); if (handle.match("accessory")){ if ((((MovieClip(base).currentFrame == 2)) || ((MovieClip(base).currentFrame == 3)))){ dinoViewer.myBaseClip.visible = false; } else { dinoViewer.myBaseClip.visible = true; }; }; } public function nextPage(_arg1:MouseEvent):void{ MovieClip(base).gotoAndStop((MovieClip(base).currentFrame + 1)); manageButtons(); if (handle.match("accessory")){ if ((((MovieClip(base).currentFrame == 2)) || ((MovieClip(base).currentFrame == 3)))){ dinoViewer.myBaseClip.visible = false; } else { dinoViewer.myBaseClip.visible = true; }; }; } public function manageButtons():void{ var _local1:MovieClip = MovieClip(base); if (_local1.btn_prev == null){ return; }; if (_local1.currentFrame == 1){ _local1.btn_prev.visible = false; } else { _local1.btn_prev.visible = true; }; if (_local1.currentFrame == _local1.totalFrames){ _local1.btn_next.visible = false; } else { _local1.btn_next.visible = true; }; } } }//package dinowaurs.betaMenu
Section 48
//InstructionSheet (dinowaurs.betaMenu.InstructionSheet) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.managers.*; public class InstructionSheet extends MenuScreen { public function InstructionSheet(_arg1:Sprite=null){ var _local2:MelbaButton; super(_arg1, "tutorialInstructions"); for each (_local2 in buttons) { _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, x_btn, false, 0, true); }; base.x = (base.y = 0); if (Main.GAME_MANAGER != null){ base.x = (base.x + 30); }; } public function x_btn(_arg1:MouseEvent):void{ var _local2:MelbaButton; myKillFlag = true; for each (_local2 in buttons) { _local2.myKillFlag = true; }; } } }//package dinowaurs.betaMenu
Section 49
//KingVillager (dinowaurs.betaMenu.KingVillager) package dinowaurs.betaMenu { import flash.display.*; import engine.core.*; import dinowaurs.managers.*; public class KingVillager extends Tickable { public var base:MovieClip; public var parentScreen:MenuScreen; public function KingVillager(_arg1:MenuScreen, _arg2:MovieClip){ super("kingVil", true); parentScreen = _arg1; base = _arg2; base.stop(); startTicking(); } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; if (base.currentFrame == (base.totalFrames - 3)){ if (parentScreen.kingTip != null){ if (Main.GAME_SETTINGS.ToolTips == 0){ parentScreen.kingTip.visible = true; }; }; stopTicking(); }; } } }//package dinowaurs.betaMenu
Section 50
//LobbyPlayerButton (dinowaurs.betaMenu.LobbyPlayerButton) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.*; import dinowaurs.managers.*; public class LobbyPlayerButton extends MelbaButton { public var myStats:PlayerStats; public var mySummary:PlayerSummary; public var userName:String; public function LobbyPlayerButton(_arg1:String){ var _local2:String; super(null, "none", AssetLoader.getAssetMC("mainMenu2", "playerEntry")); userName = _arg1; Main.setTextF(base.playerName, "lobbyplayerbuttonName", userName); for each (_local2 in Main.friendsList) { if (_local2 == userName){ base.playerName.textColor = 0xFF00; }; }; } public function setStats(_arg1:PlayerStats):void{ myStats = _arg1; if (mySummary != null){ mySummary.setStats(myStats); }; } override public function mouseDown(_arg1:MouseEvent):void{ trace("kaput"); SoundManager.playFX("INT_MenuGselect", 0); if (mySummary == null){ trace("guyjesus"); mySummary = new PlayerSummary(userName); if (myStats != null){ mySummary.setStats(myStats); }; if (Main.betaMenu.currentPlayerSummarized != null){ Main.betaMenu.currentPlayerSummarized.killSummary(); }; Main.betaMenu.currentPlayerSummarized = this; Main.betaMenu.battleScreen.base.addChild(mySummary.base); }; } public function killSummary():void{ if (mySummary == null){ return; }; mySummary.myKillFlag = true; if (mySummary.base == null){ return; }; if (mySummary.base.parent != null){ mySummary.base.parent.removeChild(mySummary.base); }; mySummary = null; } override public function kill():void{ super.kill(); killSummary(); myStats = null; mySummary = null; } } }//package dinowaurs.betaMenu
Section 51
//MaroonedScreen (dinowaurs.betaMenu.MaroonedScreen) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import flash.system.*; import dinowaurs.managers.*; public class MaroonedScreen extends MenuScreen { public var dinoViewer:DinoViewer; public function MaroonedScreen(_arg1:Boolean=false){ var _local2:MelbaButton; super(null, "none", AssetLoader.getAssetMC("misc", "discoScreen_playerLeft")); MovieClip(base).switch_text.stop(); if (_arg1){ MovieClip(base).switch_text.gotoAndStop(2); }; for each (_local2 in buttons) { if (_local2.base.name.match("automatch")){ _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, automatch, false, 0, true); }; if (_local2.base.name.match("menu")){ _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, back_to_menu, false, 0, true); }; }; dinoViewer = new DinoViewer(MovieClip(base).viewer_fordino, 0, 0, -1, -2); dinoViewer.loadDino(Main.dinoSlots[Main.currentDino]); } public function back_to_menu(_arg1:MouseEvent):void{ if (Main.betaMenu == null){ Main.betaMenu = new BetaMenu(); Main.betaMenu.initialize(Main.savedMenuTab); }; SoundManager.stopFX("AMB_Winter"); myKillFlag = true; } public function automatch(_arg1:MouseEvent):void{ myKillFlag = true; Main.betaMenu = new BetaMenu(); Main.betaMenu.initialize(Main.savedMenuTab); if (Main.dinoSlots[Main.currentDino].dinoType != "none"){ Main.betaMenu.startGame(); }; } override public function kill():void{ var _local1:MelbaButton; for each (_local1 in buttons) { if (_local1.base.name.match("automatch")){ _local1.base.addEventListener(MouseEvent.MOUSE_DOWN, automatch, false, 0, true); }; if (_local1.base.name.match("menu")){ _local1.base.addEventListener(MouseEvent.MOUSE_DOWN, back_to_menu, false, 0, true); }; }; super.kill(); System.gc(); } } }//package dinowaurs.betaMenu
Section 52
//MatchingScreen (dinowaurs.betaMenu.MatchingScreen) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.dinos.*; import flash.text.*; import dinowaurs.managers.*; import engine.networking.*; public class MatchingScreen extends MenuScreen { public var exitBtn:MelbaButton; public var quickBtn:MelbaButton; public var dinoViewer:DinoViewer; public var bestBtn:MelbaButton; public function MatchingScreen(){ var _local2:MelbaButton; var _local3:TrophyCase; super(null, "none", AssetLoader.getAssetMC("misc", "matchingScreen")); var _local1:int; while (_local1 < base.numChildren) { if (base.getChildAt(_local1).name.match("username")){ if (!Main.GUEST_MODE_ENABLED){ Main.setTextF(TextField(base.getChildAt(_local1)), "matchingscreenUserName", (NetworkManager.myUsername + "'s")); } else { Main.setTextF(TextField(base.getChildAt(_local1)), "matchingscreenUserName", "Guest-a-saurus's"); }; } else { if (base.getChildAt(_local1).name.match("dinoname")){ Main.setTextF(TextField(base.getChildAt(_local1)), "matchingscreenDinoName", Main.dinoSlots[Main.currentDino].dinoName); }; }; _local1++; }; for each (_local2 in buttons) { if (_local2.base.name.match("best")){ _local2.base.gotoAndStop(3); _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, bestMatchDown, false, 0, true); bestBtn = _local2; }; if (_local2.base.name.match("quick")){ _local2.base.gotoAndStop(1); _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, quickMatchDown, false, 0, true); quickBtn = _local2; }; if (_local2.base.name.match("exit")){ _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, exitMatching); exitBtn = _local2; }; }; MovieClip(base).viewer_fordino.y = (MovieClip(base).viewer_fordino.y - 15); dinoViewer = new DinoViewer(MovieClip(base).viewer_fordino, 0, 0, -1, -2); dinoViewer.loadDino(Main.dinoSlots[Main.currentDino]); if (Main.matchType == "best"){ }; if (Main.myPlayerStats != null){ _local3 = new TrophyCase(MovieClip(base), Main.myPlayerStats); }; base.mouseEnabled = true; base.mouseChildren = true; } public function bestMatchDown(_arg1:MouseEvent):void{ if (bestBtn.base.currentFrame != 3){ bestBtn.base.gotoAndStop(3); quickBtn.base.gotoAndStop(1); }; NetworkManager.serverMessage(["matchType", "best"]); Main.matchType = "best"; } override public function kill():void{ var _local1:MelbaButton; for each (_local1 in buttons) { if (_local1.base.name.match("best")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, bestMatchDown); }; if (_local1.base.name.match("quick")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, quickMatchDown); }; if (_local1.base.name.match("exit")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, exitMatching); }; }; bestBtn = null; quickBtn = null; exitBtn = null; if (dinoViewer != null){ dinoViewer.clear(); }; dinoViewer = null; super.kill(); } public function quickMatchDown(_arg1:MouseEvent):void{ if (quickBtn.base.currentFrame != 3){ quickBtn.base.gotoAndStop(3); bestBtn.base.gotoAndStop(1); }; NetworkManager.serverMessage(["matchType", "quick"]); Main.matchType = "quick"; } public function exitMatching(_arg1:MouseEvent):void{ Main.stopMatching(); myKillFlag = true; } public function updatePlayersOnline(_arg1:int):void{ Main.setTextF(MovieClip(base).total_players, "matchingscreenPlayersOnline", _arg1.toString()); } } }//package dinowaurs.betaMenu
Section 53
//MelbaButton (dinowaurs.betaMenu.MelbaButton) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.dinos.*; import flash.text.*; import engine.core.*; import flash.net.*; import dinowaurs.managers.*; import engine.networking.*; public class MelbaButton extends Tickable { public var creditsPage:HelpScreen; public var base:MovieClip; public var myToolTip:Sprite; public var usefulRef:MelbaButton; public var mouseIsOver:Boolean;// = false public var greyOut:Sprite; public var toolTipTimer:int;// = 500 public function MelbaButton(_arg1:Sprite=null, _arg2:String="none", _arg3:MovieClip=null){ if (_arg1 != null){ _arg1.addChild(base); } else { if (_arg3 == null){ return; }; base = _arg3; }; base.buttonMode = true; base.useHandCursor = true; base.stop(); if (base.name.match("helpTipsOff")){ Main.betaMenu.toolTipsOffBtns.push(this); if (Main.GAME_SETTINGS.ToolTips == 0){ greyout(); } else { killGreyout(); }; } else { if (base.name.match("helpTipsOn")){ Main.betaMenu.toolTipsOnBtn = this; if (Main.GAME_SETTINGS.ToolTips == 1){ greyout(); } else { killGreyout(); }; } else { if (base.name.match("export")){ }; }; }; restore(); } override public function stopTicking():void{ super.stopTicking(); toolTipTimer = 500; if (myToolTip != null){ if (myToolTip.parent != null){ myToolTip.parent.removeChild(myToolTip); myToolTip = null; }; }; } public function spawnGuestDialog():void{ var dialog:MenuScreen; var killDialog:Function; var toKong:Function; var btn:MelbaButton; killDialog = function (_arg1:MouseEvent):void{ dialog.kill(); }; toKong = function (_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://www.kongregate.com/games/intuition/dinowaurs/"), "_blank"); }; if (!Main.unKong){ dialog = new MenuScreen(GameData.BattleIntroBase, "accessory_guest"); for each (btn in dialog.buttons) { if (btn.base.name.match("accessoryCancel")){ btn.base.addEventListener(MouseEvent.MOUSE_DOWN, killDialog); }; }; } else { dialog = new MenuScreen(GameData.BattleIntroBase, "accessory_unKong", null, "unKong"); for each (btn in dialog.buttons) { if (btn.base.name.match("accessoryCancel")){ btn.base.addEventListener(MouseEvent.MOUSE_DOWN, killDialog); }; if (btn.base.name.match("btn_toKong")){ btn.base.addEventListener(MouseEvent.MOUSE_DOWN, toKong); }; }; }; } public function restore():void{ base.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown, false, 0, true); base.addEventListener(MouseEvent.MOUSE_OVER, mouseOver, false, 0, true); base.addEventListener(MouseEvent.MOUSE_OUT, mouseOut, false, 0, true); } public function greyout():void{ if (greyOut == null){ greyOut = new Sprite(); greyOut.graphics.lineStyle(1, 5682, 0.75); greyOut.graphics.beginFill(5682, 0.75); greyOut.graphics.drawCircle(0, 0, (base.height / 2)); greyOut.graphics.endFill(); base.addChild(greyOut); }; } public function killGreyout():void{ if (greyOut != null){ base.removeChild(greyOut); greyOut = null; }; } public function mouseOver(_arg1:MouseEvent):void{ if (base.totalFrames >= 2){ if (base.currentFrame != 3){ base.gotoAndStop(2); }; }; startTicking(); mouseIsOver = true; if (base.name.match("Pick")){ if (base.name.match("ankylo")){ MovieClip(base.parent).ankylo.gotoAndStop(2); } else { if (base.name.match("bronto")){ MovieClip(base.parent).bronto.gotoAndStop(2); } else { if (base.name.match("stego")){ MovieClip(base.parent).stego.gotoAndStop(2); } else { if (base.name.match("tri")){ MovieClip(base.parent).tri.gotoAndStop(2); }; }; }; }; }; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; if (mouseIsOver){ toolTipTimer = (toolTipTimer - _arg1); if (toolTipTimer <= 0){ if (myToolTip == null){ displayTip(); }; }; }; } override public function kill():void{ disable(); if (base == null){ return; }; if (base.parent != null){ base.parent.removeChild(base); }; base = null; } public function mouseDown(_arg1:MouseEvent):void{ var _local2:int; var _local3:HelpScreen; var _local4:InstructionSheet; var _local5:DinoInfo; if (Main.GAME_MANAGER != null){ if (Main.tutorialGame != -1){ if (base.name.match("btn_quit")){ NetworkManager.quitGame(); } else { if (base.name.match("btn_continue")){ _local2 = Main.tutorialGame; Main.GAME_MANAGER.tutorialScripter.signalEvent(("endTutorial_" + Main.tutorialGame)); if (_local2 == 2){ if (base.parent.parent != null){ base.parent.parent.removeChild(base.parent); }; }; }; }; }; }; if (base.name.match("export")){ Main.betaMenu.exportCmd(null); }; if (base.name.match("btn_credits")){ if (creditsPage != null){ if (creditsPage.base != null){ if (creditsPage.base.parent != null){ return; }; }; }; _local3 = new HelpScreen(GameData.BattleIntroBase, "titleCredits"); creditsPage = _local3; }; if (DinoInfo(Main.dinoSlots[Main.currentDino]).dinoType != "none"){ if (base.name.match("winter")){ if (Main.GUEST_MODE_ENABLED){ spawnGuestDialog(); return; }; Main.betaMenu.selectedArena = "Yetisburg"; resetSiblingBtns(); base.gotoAndStop(3); new ArenaLobby("Yetisburg"); NetworkManager.joinLobby("lobbyWinter"); NetworkManager.getRoomList(); } else { if (base.name.match("desert")){ if (Main.GUEST_MODE_ENABLED){ spawnGuestDialog(); return; }; Main.betaMenu.selectedArena = "Mexington"; resetSiblingBtns(); base.gotoAndStop(3); new ArenaLobby("Mexington"); NetworkManager.joinLobby("lobbyDesert"); NetworkManager.getRoomList(); } else { if (base.name.match("wasteland")){ if (Main.GUEST_MODE_ENABLED){ spawnGuestDialog(); return; }; Main.betaMenu.selectedArena = "Geigersville"; resetSiblingBtns(); base.gotoAndStop(3); new ArenaLobby("Geigersville"); NetworkManager.joinLobby("lobbyWaste"); NetworkManager.getRoomList(); } else { if (base.name.match("jungle")){ if (Main.GUEST_MODE_ENABLED){ spawnGuestDialog(); return; }; Main.betaMenu.selectedArena = "Zanzibarland"; resetSiblingBtns(); base.gotoAndStop(3); new ArenaLobby("Zanzibarland"); NetworkManager.joinLobby("lobbyJungle"); NetworkManager.getRoomList(); } else { if (base.name.match("btn_instructions")){ _local4 = new InstructionSheet(GameData.BattleIntroBase); }; }; }; }; }; }; if (base.name.match("clearAccessories")){ trace("clearAccessories!"); if (Main.dinoSlots[Main.currentDino].dinoType != "none"){ _local5 = Main.dinoSlots[Main.currentDino]; while (_local5.accessories.length > 0) { _local5.removeAccessory(_local5.accessories[0]); }; Main.betaMenu.updateDinoSelectors(); Main.betaMenu.updateDinoViewers(); Main.sendDinoInfo(Main.currentDino); }; }; stopTicking(); if (base.name.match("btn_helpTipsOff")){ Main.betaMenu.turnHelpTipsOff(); if (usefulRef != null){ usefulRef.killGreyout(); }; greyout(); }; if (base.name.match("btn_helpTipsOn")){ Main.betaMenu.turnHelpTipsOn(); if (usefulRef != null){ usefulRef.killGreyout(); }; greyout(); }; if (base.name.match("btn_disableSounds")){ SoundManager.mute = !(SoundManager.mute); SoundManager.stopAllFX(); if (SoundManager.mute){ greyout(); } else { killGreyout(); Main.menuMusicScript.nextTrack(null); }; }; } public function disable():void{ if (base != null){ base.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDown); base.removeEventListener(MouseEvent.MOUSE_OVER, mouseOver); base.removeEventListener(MouseEvent.MOUSE_OUT, mouseOut); }; stopTicking(); } public function mouseOut(_arg1:MouseEvent):void{ if (base.currentFrame != 3){ base.gotoAndStop(1); }; stopTicking(); mouseIsOver = false; if (base.name.match("Pick")){ if (base.name.match("ankylo")){ MovieClip(base.parent).ankylo.gotoAndStop(1); } else { if (base.name.match("bronto")){ MovieClip(base.parent).bronto.gotoAndStop(1); } else { if (base.name.match("stego")){ MovieClip(base.parent).stego.gotoAndStop(1); } else { if (base.name.match("tri")){ MovieClip(base.parent).tri.gotoAndStop(1); }; }; }; }; }; } public function resetSiblingBtns():void{ var _local2:MovieClip; var _local1:int; while (_local1 < base.parent.numChildren) { if (base.parent.getChildAt(_local1).name.match("btn_")){ _local2 = MovieClip(base.parent.getChildAt(_local1)); _local2.gotoAndStop(1); }; _local1++; }; } public function getTipText():String{ if (base.name == "tab_title"){ return ("Title Screen"); }; if (base.name == "tab_tutorial"){ return ("Tutorials"); }; if (base.name == "tab_creation"){ return ("Hatchery"); }; if (base.name == "tab_accessories"){ return ("Dressing Room"); }; if (base.name == "tab_options"){ return ("Options"); }; if (base.name == "tab_battle"){ return ("Battle"); }; if (base.name == "tab_suits"){ return ("Suits"); }; if (base.name == "tab_tail"){ return ("Tail"); }; if (base.name == "tab_back"){ return ("Misc."); }; if (base.name == "tab_feet"){ return ("Footwear"); }; if (base.name == "tab_head"){ return ("Headgear"); }; if (base.name == "tutorial_0"){ return ("Tutorial: Controls"); }; if (base.name == "tutorial_1"){ return ("Tutorial: Mechanics"); }; if (base.name == "tutorial_2"){ return ("Practice Duel"); }; if (base.name == "btn_back"){ return ("Go Back"); }; if (base.name == "btn_ankylo"){ return ("Select Ankylo"); }; if (base.name == "btn_bronto"){ return ("Select Bronto"); }; if (base.name == "btn_stego"){ return ("Select Stego"); }; if (base.name == "btn_scrollUp"){ return ("Scroll Up"); }; if (base.name == "btn_scrollDown"){ return ("Scroll Down"); }; if (base.name == "btn_high_detail_opt"){ return ("High Graphic Detail"); }; if (base.name == "btn_medium_detail_opt"){ return ("Medium Graphic Detail"); }; if (base.name == "btn_low_detail_opt"){ return ("Low Graphic Detail"); }; if (base.name == "btn_high_arena_opt"){ return ("High Arena Detail"); }; if (base.name == "btn_medium_arena_opt"){ return ("Medium Arena Detail"); }; if (base.name == "btn_low_arena_opt"){ return ("Low Arena Detail"); }; if (base.name == "slider_music"){ return ("Music Volume"); }; if (base.name == "slider_effects"){ return ("Sound FX Volume"); }; if (base.name == "btn_desert"){ return ("Mexington"); }; if (base.name == "btn_winter"){ return ("Yetisburg"); }; if (base.name == "btn_jungle"){ return ("Zanzibarland"); }; if (base.name == "btn_wasteland"){ return ("Geigersville"); }; if (base.name == "btn_startGame"){ return ("Start Matching"); }; if (base.name == "btn_boostScreen"){ return ("BOOST THAT DINO!"); }; if (base.name == "specials_suit"){ return ("Armor Boost"); }; if (base.name == "specials_carrot"){ return ("DNA Boost"); }; return ("none"); } public function displayTip():void{ var _local1:Sprite = new Sprite(); var _local2:TextField = new TextField(); _local2.text = getTipText(); _local2.textColor = 0xFFFFFF; _local2.embedFonts = true; var _local3:TextFormat = new TextFormat("CodexCom", 16); _local3.letterSpacing = -0.5; _local2.setTextFormat(_local3); if (_local2.text == "none"){ return; }; _local2.multiline = false; _local2.autoSize = "left"; _local2.mouseEnabled = false; _local1.addChild(_local2); _local1.graphics.beginFill(5682, 0.9); _local1.graphics.drawRoundRect(-5, -3, (_local1.width + 10), (_local1.height + 6), 10, 10); _local1.graphics.endFill(); GameData.GUI_BASE.addChild(_local1); _local1.x = GameData.GUI_BASE.mouseX; _local1.y = GameData.GUI_BASE.mouseY; if (_local1.x > 500){ _local1.x = (_local1.x - _local1.width); }; _local1.y = (_local1.y - _local1.height); myToolTip = _local1; myToolTip.mouseEnabled = false; } } }//package dinowaurs.betaMenu
Section 54
//MenuScreen (dinowaurs.betaMenu.MenuScreen) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.dinos.*; import engine.core.*; import flash.net.*; import dinowaurs.managers.*; import engine.networking.*; import flash.filters.*; public class MenuScreen extends Tickable { public var topTab:MenuScreen; public var buttons:Array; public var showing:Boolean;// = true public var screens:Array; public var kingAnim:MovieClip; public var kingVil:KingVillager; public var kingTip:MovieClip; public var base:Sprite; public var tab:ScreenTab; public var baseParent:Sprite; public var myLevelWidget:PlayerLevelWidget; public var background:Sprite; public var sliders:Array; public var parentScreen:MenuScreen; public static var newsLoader:Loader; public static var newsURL:String; public static var newsContainer:MovieClip; public function MenuScreen(_arg1:Sprite=null, _arg2:String="none", _arg3:Sprite=null, _arg4:String="mainMenu2"){ var _local5:MelbaButton; var _local6:MelbaButton; var _local7:MelbaButton; super(_arg2, true); if (_arg1 != null){ base = AssetLoader.getAssetMC(_arg4, _arg2); _arg1.addChild(base); baseParent = _arg1; } else { if (_arg3 != null){ base = _arg3; baseParent = Sprite(base.parent); } else { return; }; }; sliders = new Array(); buttons = new Array(); screens = new Array(); assignButtons(); for each (_local7 in buttons) { _local7.base.addEventListener(MouseEvent.MOUSE_DOWN, btnMouseDown, false, 0, true); if (_local7.base.name.match("btn_helpTipsOff")){ _local5 = _local7; } else { if (_local7.base.name.match("btn_helpTipsOn")){ _local6 = _local7; }; }; }; if (((!((_local5 == null))) && (!((_local6 == null))))){ _local5.usefulRef = _local6; _local6.usefulRef = _local5; _local6.greyout(); }; base.cacheAsBitmap = true; startTicking(); } public function show():void{ if (base.parent == null){ showing = true; baseParent.addChild(base); }; } public function assignButtons():void{ var _local3:DisplayObject; var _local4:DropShadowFilter; var _local5:String; var _local6:DetailButton; var _local7:MelbaButton; var _local8:int; var _local9:DinoInfo; var _local10:DinoSelector; var _local11:StatsDisplay; var _local12:SliderBar; var _local13:CreationScreen; var _local14:Creation_DinoPick; var _local15:Creation_ColorPick; var _local16:Creation_Export; var _local17:AccessoryScreen; var _local18:AccessoryCounter; var _local19:BattleScreen; var _local20:MenuScreen; var _local21:int; var _local22:TutorialButton; var _local1:Array = new Array(); var _local2:int; while (_local2 < base.numChildren) { _local1.push(base.getChildAt(_local2)); _local2++; }; for each (_local3 in _local1) { if ((((Math.round(_local3.width) == 125)) && ((Math.round(_local3.height) == 125)))){ _local3.visible = false; Sprite(_local3).mouseEnabled = false; }; if (_local3.name.match("betaSticker")){ _local3.visible = false; }; if (_local3.name.match("bg_multiply")){ _local4 = new DropShadowFilter(0, 45, 0, 1, 22, 22); _local3.filters = [_local4]; }; if (_local3.name.match("newsContainer")){ newsContainer = MovieClip(_local3); _local5 = NetworkManager.newsURL; if (NetworkManager.newsURL != null){ setupNews(NetworkManager.newsURL); } else { newsContainer.visible = false; }; }; if (_local3.name.match("btn_")){ if (_local3.name.match("_opt")){ _local6 = new DetailButton(null, "none", MovieClip(_local3)); buttons.push(_local6); } else { if ((_local3 is MovieClip)){ _local7 = new MelbaButton(null, "none", MovieClip(_local3)); buttons.push(_local7); }; }; }; if (_local3.name.match("menuhelpScreen_mc")){ Main.betaMenu.tutorialArrows = MovieClip(_local3); MovieClip(_local3).hatchery_arrow.visible = true; _local8 = 0; for each (_local9 in Main.dinoSlots) { if (_local9.dinoName != "none"){ _local8++; }; }; if (_local8 > 0){ MovieClip(_local3).hatchery_arrow.visible = false; }; MovieClip(_local3).tutorial_arrow.visible = false; MovieClip(_local3).accessories_arrow.visible = false; MovieClip(_local3).options_arrow.visible = false; Main.betaMenu.optionsArrow = MovieClip(_local3).options_arrow; MovieClip(_local3).battle_arrow.visible = false; }; if (_local3.name.match("bg_")){ background = Sprite(_local3); }; if (_local3.name.match("tab_")){ tab = new ScreenTab(this, null, "none", MovieClip(_local3)); }; if (_local3.name.match("dinoSelector_")){ _local10 = new DinoSelector(MovieClip(_local3)); Main.betaMenu.addDinoSelector(_local10); }; if (_local3.name.match("userStats")){ _local11 = new StatsDisplay(MovieClip(_local3), Main.GUEST_MODE_ENABLED); Main.betaMenu.userStatsDisplays.push(_local11); Main.betaMenu.statsUpdates(); }; if (_local3.name.match("slider_")){ _local12 = new SliderBar(MovieClip(_local3)); sliders.push(_local12); }; if (_local3.name.match("award")){ Sprite(_local3).visible = false; }; if (_local3.name.match("kingTip")){ kingTip = MovieClip(_local3); if (!base.name.match("tutorial")){ kingTip.visible = false; }; if (!_local3.name.match("kingTipTut")){ Main.betaMenu.kingTips.push(kingTip); }; }; if (_local3.name.match("kingAnim")){ trace("found king ANIM KING ANIM!!!!!"); kingAnim = MovieClip(_local3); kingVil = new KingVillager(this, kingAnim); }; if (_local3.name.match("scr_")){ if (_local3.name.match("scr_create")){ _local13 = new CreationScreen(null, "none", Sprite(_local3)); _local13.parentScreen = this; screens.push(_local13); Main.betaMenu.creationScreen = _local13; } else { if (_local3.name.match("scr_dinoPick")){ _local14 = new Creation_DinoPick(null, "none", Sprite(_local3)); _local14.parentScreen = this; screens.push(_local14); } else { if (_local3.name.match("scr_colorPick")){ _local15 = new Creation_ColorPick(null, "none", Sprite(_local3)); _local15.parentScreen = this; screens.push(_local15); } else { if (_local3.name.match("scr_export")){ _local16 = new Creation_Export(null, "none", Sprite(_local3)); _local16.parentScreen = this; screens.push(_local16); } else { if (_local3.name.match("scr_accessories")){ _local17 = new AccessoryScreen(null, "none", Sprite(_local3)); _local17.parentScreen = this; screens.push(_local17); } else { if (_local3.name.match("scr_accCount_")){ _local18 = new AccessoryCounter(null, "none", Sprite(_local3)); _local18.parentScreen = this; screens.push(_local18); } else { if (_local3.name.match("scr_battle")){ _local19 = new BattleScreen(null, "none", Sprite(_local3)); _local19.parentScreen = this; screens.push(_local19); Main.betaMenu.battleScreen = _local19; } else { _local20 = new MenuScreen(null, "none", Sprite(_local3)); _local20.parentScreen = this; screens.push(_local20); }; }; }; }; }; }; }; }; if (_local3.name.match("userName_")){ GameData.console.appendLine((("menuScreen with _userName object ! GUEST_MODE_ENABLED==" + Main.GUEST_MODE_ENABLED) + "\n")); if (!Main.GUEST_MODE_ENABLED){ Main.setTextF(MovieClip(_local3).text, "menuUserName", NetworkManager.myUsername); if (myLevelWidget == null){ if (MovieClip(base).level == null){ myLevelWidget = new PlayerLevelWidget(); base.addChild(myLevelWidget.clip); myLevelWidget.clip.x = (((MovieClip(base).userName_.x + (MovieClip(base).userName_.width / 2)) + (MovieClip(base).userName_.text.textWidth / 2)) + 15); myLevelWidget.clip.y = (MovieClip(base).userName_.y - 2.5); if (Main.myPlayerStats != null){ myLevelWidget.setLevel(Main.myPlayerStats.playerLevel); }; }; }; } else { Main.setTextF(MovieClip(_local3).text, "menuUserName", "Guest-a-saurus"); }; }; if (_local3.name.match("tutorial_")){ _local21 = 0; if (_local3.name.match("_0")){ _local21 = 0; } else { if (_local3.name.match("_1")){ _local21 = 1; } else { if (_local3.name.match("_2")){ _local21 = 2; }; }; }; _local22 = new TutorialButton(_local21, null, "none", MovieClip(_local3)); buttons.push(_local22); }; }; } public function getOnTop():void{ if (parentScreen.topTab != null){ if (ID.Value == parentScreen.topTab.ID.Value){ return; }; }; if (parentScreen != null){ parentScreen.setTopTab(this); }; var _local1:MovieClip = MovieClip(base.parent); base.parent.removeChild(base); _local1.addChildAt(base, (_local1.numChildren - 1)); tab.onTop = true; Main.saveGameSettings(); if (background != null){ if (background.parent == null){ base.addChildAt(background, 0); }; }; if (kingAnim != null){ kingAnim.gotoAndPlay(0); kingAnim = null; }; if (myLevelWidget != null){ if (Main.myPlayerStats != null){ myLevelWidget.setLevel(Main.myPlayerStats.playerLevel); myLevelWidget.clip.x = (((MovieClip(base).userName_.x + (MovieClip(base).userName_.width / 2)) + (MovieClip(base).userName_.text.textWidth / 2)) + 15); myLevelWidget.clip.y = (MovieClip(base).userName_.y - 2.5); }; }; } public function setTopTab(_arg1:MenuScreen):void{ if (topTab != null){ topTab.notOnTop(); }; topTab = _arg1; } public function restore():void{ var _local1:MelbaButton; for each (_local1 in buttons) { _local1.restore(); }; } override public function kill():void{ var _local1:MelbaButton; var _local2:SliderBar; var _local3:MenuScreen; var _local4:int; for each (_local1 in buttons) { if (_local1.base != null){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, btnMouseDown); }; _local1.myKillFlag = true; }; buttons = new Array(); if (base != null){ if (base.parent != null){ base.parent.removeChild(base); }; }; baseParent = null; if (tab != null){ tab.myKillFlag = true; }; tab = null; topTab = null; if (kingVil != null){ kingVil.myKillFlag = true; }; kingVil = null; if (background != null){ _local4 = 0; while (_local4 < background.numChildren) { background.removeChild(background.getChildAt(_local4)); _local4++; }; if (background.parent != null){ background.parent.removeChild(background); }; background = null; }; for each (_local2 in sliders) { _local2.myKillFlag = true; }; sliders = new Array(); kingAnim = null; kingTip = null; for each (_local3 in screens) { _local3.myKillFlag = true; }; screens = new Array(); disable(); base = null; } public function disable():void{ var _local1:MelbaButton; for each (_local1 in buttons) { _local1.disable(); }; } public function btnMouseDown(_arg1:MouseEvent):void{ } public function hide():void{ if (base.parent != null){ showing = false; baseParent.removeChild(base); }; } public function notOnTop():void{ if (background != null){ base.removeChild(background); }; tab.onTop = false; tab.base.gotoAndStop(1); } public static function setupNews(_arg1:String):void{ var unKongNews:MovieClip; var toKongBtn:MelbaButton; var _url = _arg1; if (!Main.unKong){ newsLoader = new Loader(); newsLoader.addEventListener(IOErrorEvent.IO_ERROR, newsLoadError); newsLoader.load(new URLRequest(_url)); newsContainer.addChild(newsLoader); newsLoader.x = 13.6; newsLoader.y = -385; newsContainer.useHandCursor = true; newsContainer.buttonMode = true; newsContainer.up = true; newsContainer.addEventListener(MouseEvent.CLICK, newsClick); newsContainer.addEventListener(Event.ENTER_FRAME, newsEnterFrame); } else { var toKong:Function = function (_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://www.kongregate.com/games/intuition/dinowaurs/"), "_blank"); }; newsContainer.y = (newsContainer.y - 40); unKongNews = AssetLoader.getAssetMC("unKong", "unKong_title"); newsContainer.addChild(unKongNews); unKongNews.y = 40; toKongBtn = new MelbaButton(null, "none", unKongNews.btn_toKong); toKongBtn.base.addEventListener(MouseEvent.CLICK, toKong); }; } public static function newsClick(_arg1:MouseEvent):void{ if (newsContainer.up){ newsContainer.up = false; } else { newsContainer.up = true; }; } public static function newsLoadError(_arg1:IOErrorEvent):void{ newsContainer.visible = false; } public static function newsEnterFrame(_arg1:Event):void{ if (newsContainer.up){ newsContainer.y = (newsContainer.y - (newsContainer.y / 10)); } else { newsContainer.y = (newsContainer.y + (((newsContainer.height - newsContainer.y) - 33) / 10)); }; newsContainer.y = Math.floor(newsContainer.y); } } }//package dinowaurs.betaMenu
Section 55
//PlayerChallenge (dinowaurs.betaMenu.PlayerChallenge) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.*; import dinowaurs.managers.*; import engine.networking.*; public class PlayerChallenge extends MenuScreen { public var userStats:PlayerStats; public var userName:String; public function PlayerChallenge(_arg1:String, _arg2:ArenaLobby, _arg3:int){ var _local4:MelbaButton; var _local5:LobbyPlayerButton; super(null, "none", AssetLoader.getAssetMC("mainMenu2", "playerSummaryChallenge")); NetworkManager.serverMessage(new Array("playerStats", _arg1)); userName = _arg1; Main.setTextF(MovieClip(base).playerName, "challengePlayerName", userName); Main.betaMenu.currentPlayerChallenge; for each (_local4 in buttons) { if (_local4.base.name.match("challenge")){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, acceptChallenge, false, 0, true); } else { if (_local4.base.name.match("decline")){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, declineChallenge, false, 0, true); }; }; }; for each (_local5 in _arg2.playerBtns) { if (_local5.myStats.userName == _arg1){ setStats(_local5.myStats); }; }; } public function declineChallenge(_arg1:MouseEvent):void{ NetworkManager.serverMessage(new Array("rejectChallenge", userName)); kill(); Main.betaMenu.currentPlayerChallenge = null; } public function updateBoosts():void{ var _local1:BoostIconMGR = new BoostIconMGR(MovieClip(base)); _local1.setBoosts(userStats.boostCode); } public function doStatusText(_arg1:TextField, _arg2:String):void{ var _local3:TextFormat = _arg1.getTextFormat(); _arg1.text = _arg2; if (_arg2.match("playing")){ _local3.color = 11680547; } else { if (_arg2.match("available")){ _local3.color = 11322943; } else { _local3.color = 0x999999; }; }; _arg1.setTextFormat(_local3); } public function acceptChallenge(_arg1:MouseEvent):void{ if (Main.dinoSlots[Main.currentDino].dinoName.match("none")){ return; }; NetworkManager.serverMessage(new Array("acceptChallenge", userName, Main.currentDino)); } public function setStats(_arg1:PlayerStats):void{ userStats = _arg1; Main.setTextF(MovieClip(base).win_loss, "challengeWinLoss", ((userStats.wins + "/") + userStats.losses)); Main.setTextF(MovieClip(base).rank, "challengeRank", userStats.rank.toString()); Main.setTextF(MovieClip(base).rating, "challengeRating", userStats.elo.toString()); var _local2:TrophyCase = new TrophyCase(MovieClip(base), userStats); var _local3:PlayerLevelWidget = new PlayerLevelWidget(); _local3.bg = MovieClip(base).level.level_bg; _local3.numBox = MovieClip(base).level.level_number; _local3.clip = MovieClip(base).level; _local3.setLevel(userStats.playerLevel); updateBoosts(); } override public function kill():void{ var _local1:MelbaButton; for each (_local1 in buttons) { if (_local1.base.name.match("challenge")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, acceptChallenge); } else { if (_local1.base.name.match("decline")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, declineChallenge); }; }; }; super.kill(); } } }//package dinowaurs.betaMenu
Section 56
//PlayerChallengePending (dinowaurs.betaMenu.PlayerChallengePending) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.managers.*; import engine.networking.*; public class PlayerChallengePending extends MenuScreen { public function PlayerChallengePending(_arg1:Stage, _arg2:String){ var _local4:MelbaButton; var _local3:Sprite = new Sprite(); _arg1.addChild(_local3); super(_local3, "playerChallengePending"); MovieClip(base).playerName.text = _arg2; for each (_local4 in buttons) { if (_local4.base.name.match("cancel")){ _local4.base.addEventListener(MouseEvent.MOUSE_DOWN, cancelChallenge); }; }; } public function cancelChallenge(_arg1:MouseEvent):void{ myKillFlag = true; NetworkManager.serverMessage(new Array("cancelChallenge")); } } }//package dinowaurs.betaMenu
Section 57
//PlayerLevelWidget (dinowaurs.betaMenu.PlayerLevelWidget) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.managers.*; public class PlayerLevelWidget { public var clip:MovieClip; public var bg:MovieClip; public var numBox:TextField; public function PlayerLevelWidget(){ clip = AssetLoader.getAssetMC("misc", "level"); numBox = clip.level_number; bg = clip.level_bg; numBox.text = "0"; clip.addEventListener(MouseEvent.MOUSE_DOWN, mousedown); } public function setClip(_arg1:MovieClip):void{ clip = _arg1; bg = clip.level_bg; numBox = clip.level_number; } public function resize(_arg1:Number, _arg2:Number):void{ if (_arg1 != 0){ if (((((clip.width + 4) >= _arg1)) && (((clip.width - 4) < _arg1)))){ return; }; clip.scaleX = (clip.scaleY = (_arg1 / clip.width)); } else { if (_arg2 != 0){ if (((((clip.height + 4) >= _arg2)) && (((clip.height - 4) < _arg2)))){ return; }; clip.scaleX = (clip.scaleY = (_arg2 / clip.height)); }; }; } public function setLevel(_arg1:int):void{ if ((((_arg1 < 0)) || ((_arg1 > 50)))){ return; }; numBox.text = _arg1.toString(); if (_arg1 < 49){ bg.gotoAndStop(_arg1); } else { bg.gotoAndStop(50); }; } public function awardAction():void{ var _local1:MovieClip = AssetLoader.getAssetMC("misc", "award_animation"); clip.addChild(_local1); } public function mousedown(_arg1:MouseEvent):void{ trace("booyah!"); } } }//package dinowaurs.betaMenu
Section 58
//PlayerSummary (dinowaurs.betaMenu.PlayerSummary) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.*; import dinowaurs.managers.*; import engine.networking.*; public class PlayerSummary extends MenuScreen { public var rankedOn:Boolean;// = false public var waitTimer:int;// = -1 public var userStats:PlayerStats; public var pendingChallengeScreen:PlayerChallengePending; public var rankedButton:MelbaButton; public var userName:String; public var dinoViewer:DinoViewer; public function PlayerSummary(_arg1:String){ var _local2:MelbaButton; super(null, "none", AssetLoader.getAssetMC("mainMenu2", "lobbyViewer")); userName = _arg1; Main.setTextF(MovieClip(base).playerName, "playersummaryPlayerName", userName); for each (_local2 in buttons) { if (_local2.base.name.match("challenge")){ _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, challengePlayer, false, 0, true); if (userName.match(NetworkManager.myUsername)){ _local2.base.visible = false; }; }; if (_local2.base.name.match("ranked")){ if (userName.match(NetworkManager.myUsername)){ _local2.base.visible = false; }; _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, rankedDown, false, 0, true); rankedButton = _local2; }; }; dinoViewer = new DinoViewer(MovieClip(base).viewer_fordino, 0, -25, -1, -2); } public function challengeRejected():void{ var _local1:MelbaButton; for each (_local1 in buttons) { if (_local1.base.name.match("challenge")){ _local1.disable(); _local1.base.gotoAndStop(5); }; }; killPendingChallengeScreen(); } public function rankedDown(_arg1:MouseEvent):void{ if (!rankedOn){ rankedButton.disable(); rankedButton.base.gotoAndStop(2); rankedOn = true; } else { rankedButton.restore(); rankedOn = false; }; } public function killPendingChallengeScreen():void{ if (pendingChallengeScreen != null){ pendingChallengeScreen.myKillFlag = true; pendingChallengeScreen = null; }; } public function updateBoosts():void{ var _local1:BoostIconMGR = new BoostIconMGR(MovieClip(base)); _local1.setBoosts(userStats.boostCode); } public function setStats(_arg1:PlayerStats):void{ userStats = _arg1; Main.setTextF(MovieClip(base).win_loss, "playersummaryWinLoss", ((userStats.wins + "/") + userStats.losses)); Main.setTextF(MovieClip(base).rank, "playersummaryRank", userStats.rank.toString()); Main.setTextF(MovieClip(base).rating, "playersummaryRating", userStats.elo.toString()); dinoViewer.loadDino(userStats.currentDinoInfo); Main.setTextF(MovieClip(base).dinoName, "playersummaryDinoName", userStats.currentDinoInfo.dinoName); myLevelWidget = new PlayerLevelWidget(); myLevelWidget.setClip(MovieClip(base).level); var _local2:TextField = MovieClip(base).playerName; userStats.calculateLevel(); myLevelWidget.setLevel(userStats.playerLevel); var _local3:TrophyCase = new TrophyCase(MovieClip(base), userStats); updateBoosts(); } override public function kill():void{ var _local1:MelbaButton; for each (_local1 in buttons) { if (!_local1.myKillFlag){ if (_local1.base.name.match("challenge")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, challengePlayer); }; if (_local1.base.name.match("ranked")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, rankedDown); }; }; }; if (pendingChallengeScreen != null){ pendingChallengeScreen.myKillFlag = true; pendingChallengeScreen = null; }; if (dinoViewer != null){ dinoViewer.clear(); }; super.kill(); } override public function tick(_arg1:uint):void{ var _local2:int; var _local3:int; super.tick(_arg1); if (waitTimer >= 0){ waitTimer = (waitTimer - _arg1); _local2 = Math.floor((waitTimer / 1000)); _local3 = Math.floor((waitTimer / (1000 * 60))); _local2 = (_local2 - (_local3 * 60)); MovieClip(base).btn_challenge.gotoAndStop(6); MovieClip(base).match_timer.text = (((_local3 + ":") + _local2) + " min"); if (waitTimer < 0){ MovieClip(base).btn_challenge.gotoAndStop(1); MovieClip(base).match_timer.text = ""; }; }; } public function doStatusText(_arg1:TextField, _arg2:String):void{ var _local3:TextFormat = _arg1.getTextFormat(); if (_arg2 == null){ return; }; Main.setTextF(_arg1, "arenalobbyPlayerStatus", _arg2); } public function challengePlayer(_arg1:MouseEvent):void{ var _local3:MelbaButton; if (Main.dinoSlots[Main.currentDino].dinoName.match("none")){ return; }; trace("challenge!!!"); var _local2:int; if (rankedOn){ _local2 = 1; }; NetworkManager.challengePlayer(userName, _local2); for each (_local3 in buttons) { if (_local3.base.name.match("challenge")){ _local3.disable(); _local3.base.gotoAndStop(3); }; }; } public function waitChallenge(_arg1:String):void{ var _local2:int = parseInt(_arg1); waitTimer = _local2; var _local3:int = Math.floor((_local2 / 1000)); var _local4:int = Math.floor((_local2 / (1000 * 60))); _local3 = (_local3 - (_local4 * 60)); MovieClip(base).btn_challenge.gotoAndStop(6); MovieClip(base).match_timer.text = (((_local4 + ":") + _local3) + " min"); killPendingChallengeScreen(); } public function acceptChallenge():void{ var _local1:MelbaButton; killPendingChallengeScreen(); for each (_local1 in buttons) { if (_local1.base.name.match("challenge")){ _local1.disable(); _local1.base.gotoAndStop(4); }; }; } public function challengeConfirmed(_arg1:String):void{ var _local2:PlayerChallengePending = new PlayerChallengePending(base.stage, _arg1); pendingChallengeScreen = _local2; } } }//package dinowaurs.betaMenu
Section 59
//QuikOptions (dinowaurs.betaMenu.QuikOptions) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import engine.core.*; import dinowaurs.managers.*; import engine.networking.*; public class QuikOptions extends MenuScreen { public var detailBtns:Array; public var activated:Boolean;// = false public var goingUp:Boolean;// = true public var goingDown:Boolean;// = false public function QuikOptions(){ var _local2:MelbaButton; var _local3:DetailButton; var _local1:MovieClip = AssetLoader.getAssetMC("villageMenu", "escmenu_contents"); GameData.GUI_BASE.addChild(_local1); super(null, "none", _local1); base.y = -340; detailBtns = new Array(); for each (_local2 in buttons) { if (_local2.base.name.match("quitGame")){ _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, quitBtnDown, false, 0, true); }; if (_local2.base.name.match("detail")){ detailBtns.push(_local2); _local2.tick(10); }; if (_local2.base.name.match("xBtn")){ _local2.base.addEventListener(MouseEvent.MOUSE_DOWN, xbtnDown, false, 0, true); }; }; for each (_local3 in detailBtns) { _local3.active = false; }; } public function xbtnDown(_arg1:MouseEvent):void{ deactivate(); } public function quitBtnDown(_arg1:MouseEvent):void{ myKillFlag = true; NetworkManager.quitGame(); } public function toggle():void{ if (activated){ deactivate(); } else { activate(); }; } public function activate():void{ var _local1:DetailButton; goingUp = false; goingDown = true; Main.GAME_MANAGER.mPlayerDino.inMenu = true; activated = true; for each (_local1 in detailBtns) { _local1.active = true; }; } public function deactivate():void{ var _local1:DetailButton; goingUp = true; goingDown = false; Main.GAME_MANAGER.mPlayerDino.inMenu = false; activated = false; for each (_local1 in detailBtns) { _local1.active = false; }; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; if (Main.GAME_MANAGER == null){ if (base.parent != null){ base.parent.removeChild(base); }; return; }; if (Main.GAME_MANAGER.mPlayerDino == null){ return; }; if (activated){ if (!Main.GAME_MANAGER.mPlayerDino.inMenu){ Main.GAME_MANAGER.mPlayerDino.inMenu = true; }; }; if (goingUp){ if (base.y != -340){ base.y = (base.y - 40); if (base.y <= -340){ base.y = -340; }; }; } else { if (goingDown){ if (base.y != 0){ base.y = (base.y + 40); if (base.y >= 0){ base.y = 0; }; }; }; }; } override public function kill():void{ var _local1:MelbaButton; for each (_local1 in buttons) { if (_local1.base.name.match("quitGame")){ _local1.base.removeEventListener(MouseEvent.MOUSE_DOWN, quitBtnDown); _local1.myKillFlag = true; }; if (_local1.base.name.match("detail")){ _local1.myKillFlag = true; }; if (_local1.base.name.match("xBtn")){ _local1.base.addEventListener(MouseEvent.MOUSE_DOWN, xbtnDown); _local1.myKillFlag = true; }; }; detailBtns = new Array(); super.kill(); } } }//package dinowaurs.betaMenu
Section 60
//ScreenTab (dinowaurs.betaMenu.ScreenTab) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import dinowaurs.managers.*; import engine.networking.*; public class ScreenTab extends MelbaButton { public var onTop:Boolean;// = false public var parentScreen:MenuScreen; public function ScreenTab(_arg1:MenuScreen, _arg2:Sprite=null, _arg3:String="none", _arg4:MovieClip=null){ super(_arg2, _arg3, _arg4); parentScreen = _arg1; } override public function mouseOut(_arg1:MouseEvent):void{ if (!onTop){ base.gotoAndStop(1); }; stopTicking(); mouseIsOver = false; } override public function mouseDown(_arg1:MouseEvent):void{ super.mouseDown(_arg1); if (Main.betaMenu != null){ if (Main.betaMenu.currentArenaLobby != null){ Main.betaMenu.currentArenaLobby.myKillFlag = true; Main.betaMenu.currentArenaLobby = null; NetworkManager.joinLobby("Lobby"); }; }; parentScreen.getOnTop(); base.gotoAndStop(2); Main.betaMenu.updateDinoSelectors(); } override public function mouseOver(_arg1:MouseEvent):void{ if (!onTop){ base.gotoAndStop(2); }; startTicking(); mouseIsOver = true; } override public function kill():void{ super.kill(); parentScreen = null; } } }//package dinowaurs.betaMenu
Section 61
//SliderBar (dinowaurs.betaMenu.SliderBar) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import engine.core.*; import dinowaurs.managers.*; public class SliderBar extends MelbaButton { public var slider:MovieClip; public var width:Number; public var dragging:Boolean; public var buttonTicking:Boolean;// = false public function SliderBar(_arg1:MovieClip){ super(null, "null", _arg1); base = _arg1; width = base.width; slider = base.slider; slider.addEventListener(MouseEvent.MOUSE_UP, sliderUp, false, 0, true); slider.addEventListener(MouseEvent.MOUSE_DOWN, sliderDown, false, 0, true); slider.addEventListener(MouseEvent.MOUSE_OVER, sliderOver, false, 0, true); slider.addEventListener(MouseEvent.MOUSE_OUT, sliderOut, false, 0, true); startTicking(); bSubscribing = true; } override public function stopTicking():void{ super.stopTicking(); buttonTicking = false; bSubscribing = true; } override public function startTicking():void{ super.startTicking(); buttonTicking = true; } public function sliderDown(_arg1:MouseEvent):void{ slider.startDrag(); dragging = true; Main.stageRef.addEventListener(MouseEvent.MOUSE_UP, sliderUp, false, 0, true); } public function sliderOut(_arg1:MouseEvent):void{ slider.gotoAndStop(1); } public function sliderOver(_arg1:MouseEvent):void{ slider.gotoAndStop(2); } public function sliderUp(_arg1:MouseEvent):void{ slider.stopDrag(); dragging = false; Main.stageRef.removeEventListener(MouseEvent.MOUSE_UP, sliderUp); } override public function tick(_arg1:uint):void{ var _local2:int; var _local3:int; if (buttonTicking){ super.tick(_arg1); } else { if (myKillFlag){ super.tick(_arg1); return; }; }; slider.y = 0; if (dragging){ slider.x = base.mouseX; } else { if (base.name.match("effects")){ slider.x = (Main.GAME_SETTINGS.EffectsVolume * 228); } else { slider.x = (Main.GAME_SETTINGS.MusicVolume * 228); }; _local2 = int(Math.round(((slider.x / 228) * 99))); _local3 = parseInt(slider.value.text); if (_local3 != _local2){ Main.setTextF(slider.value, "sliderValue", Math.round(((slider.x / 228) * 99)).toString()); }; return; }; if (slider.x <= 0){ slider.x = 1; }; if (slider.x >= 228){ slider.x = 227; }; _local2 = int(Math.round(((slider.x / 228) * 99))); _local3 = parseInt(slider.value.text); if (_local3 != _local2){ Main.setTextF(slider.value, "sliderValue", Math.round(((slider.x / 228) * 99)).toString()); }; if (base.name.match("music")){ Main.GAME_SETTINGS.MusicVolume = (_local2 / 100); } else { if (base.name.match("effects")){ Main.GAME_SETTINGS.EffectsVolume = (_local2 / 100); }; }; } override public function kill():void{ slider.removeEventListener(MouseEvent.MOUSE_UP, sliderUp); slider.removeEventListener(MouseEvent.MOUSE_DOWN, sliderDown); slider.removeEventListener(MouseEvent.MOUSE_OVER, sliderOver); slider.removeEventListener(MouseEvent.MOUSE_OUT, sliderOut); super.kill(); } } }//package dinowaurs.betaMenu
Section 62
//StatsDisplay (dinowaurs.betaMenu.StatsDisplay) package dinowaurs.betaMenu { import flash.display.*; import flash.text.*; import dinowaurs.*; public class StatsDisplay { public var rank_text:TextField; public var win_loss_text:TextField; public var rating_text:TextField; public var base:MovieClip; public var accuracy_text:TextField; public var kills_text:TextField; public var guestMode:Boolean; public function StatsDisplay(_arg1:MovieClip, _arg2:Boolean=false){ base = _arg1; base.award_egg.visible = false; base.award_bone.visible = false; base.award_meteor.visible = false; base.award_villager.visible = false; win_loss_text = base.stats_winloss; rank_text = base.stats_rank; rating_text = base.stats_rating; accuracy_text = base.stats_accuracy; kills_text = base.stats_kills; guestMode = _arg2; if (guestMode){ win_loss_text.visible = false; rank_text.visible = false; rating_text.visible = false; accuracy_text.visible = false; kills_text.visible = false; }; } public function updateStats(_arg1:PlayerStats):void{ if (guestMode){ return; }; win_loss_text.visible = true; rank_text.visible = true; rating_text.visible = true; accuracy_text.visible = true; kills_text.visible = true; win_loss_text.text = ((_arg1.wins + "/") + _arg1.losses); rank_text.text = (_arg1.rank + " "); rating_text.text = (_arg1.elo + " "); accuracy_text.text = (_arg1.accuracy + "%"); kills_text.text = (_arg1.kills + " "); new TrophyCase(base, _arg1); } } }//package dinowaurs.betaMenu
Section 63
//TrophyCase (dinowaurs.betaMenu.TrophyCase) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.*; import engine.core.*; import dinowaurs.managers.*; import engine.networking.*; public class TrophyCase { public var mouseOverClip:MovieClip; public var mouseOverTimer:int;// = -1 public var base:MovieClip; public var tip:MovieClip; public var stats:PlayerStats; public function TrophyCase(_arg1:MovieClip, _arg2:PlayerStats){ stats = _arg2; base = _arg1; if ((((((((_arg1.award_egg == null)) || ((_arg1.award_bone == null)))) || ((_arg1.award_meteor == null)))) || ((_arg1.award_villager == null)))){ return; }; var _local3:MovieClip = _arg1.award_egg; _local3.parent.mouseEnabled = false; if (_local3.parent.parent != null){ _local3.parent.parent.mouseEnabled = false; }; _local3.addEventListener(MouseEvent.MOUSE_OVER, mouseOver, false, 0, true); _local3.addEventListener(MouseEvent.MOUSE_OUT, mouseOut, false, 0, true); _local3.addEventListener(Event.ENTER_FRAME, enterFrame); var _local4:MovieClip = _arg1.award_bone; _local4.addEventListener(MouseEvent.MOUSE_OVER, mouseOver, false, 0, true); _local4.addEventListener(MouseEvent.MOUSE_OUT, mouseOut, false, 0, true); var _local5:MovieClip = _arg1.award_meteor; _local5.addEventListener(MouseEvent.MOUSE_OVER, mouseOver, false, 0, true); _local5.addEventListener(MouseEvent.MOUSE_OUT, mouseOut, false, 0, true); var _local6:MovieClip = _arg1.award_villager; _local6.addEventListener(MouseEvent.MOUSE_OVER, mouseOver, false, 0, true); _local6.addEventListener(MouseEvent.MOUSE_OUT, mouseOut, false, 0, true); if (_arg2.userName == NetworkManager.myUsername){ trace("this is me"); }; updateAwardClips(); } public function displayTip(_arg1:MovieClip):void{ tip = new MovieClip(); var _local2:TextField = new TextField(); if (_arg1.name.match("bone")){ _local2.text = ("Dino Kills: " + stats.kills); } else { if (_arg1.name.match("meteor")){ _local2.text = (("Strike Distance: " + stats.adjStrikeDist) + " MP"); } else { if (_arg1.name.match("egg")){ _local2.text = ("Games Played: " + (stats.wins + stats.losses)); } else { if (_arg1.name.match("villager")){ _local2.text = ("Village Kills: " + stats.villageKills); }; }; }; }; _local2.textColor = 0xFFFFFF; _local2.embedFonts = true; var _local3:TextFormat = new TextFormat("CodexCom", 16); _local3.letterSpacing = -0.5; _local2.setTextFormat(_local3); if (_local2.text == "none"){ return; }; _local2.multiline = false; _local2.autoSize = "left"; _local2.mouseEnabled = false; tip.addChild(_local2); tip.graphics.beginFill(5682, 0.85); tip.graphics.drawRoundRect(-5, -3, (tip.width + 10), (tip.height + 6), 10, 10); tip.graphics.endFill(); GameData.BattleIntroBase.addChild(tip); tip.x = GameData.GUI_BASE.mouseX; tip.y = GameData.GUI_BASE.mouseY; if (tip.x > 500){ tip.x = (tip.x - tip.width); }; tip.y = (tip.y - tip.height); tip.mouseEnabled = false; } public function awardCeremony(_arg1:Array):void{ var _local2:String; stats.updateAwardLevels(); updateAwardClips(); for each (_local2 in _arg1) { if (_local2.match("egg")){ base.award_egg.addChild(AssetLoader.getAssetMC("misc", "award_animation")); }; if (_local2.match("bone")){ base.award_bone.addChild(AssetLoader.getAssetMC("misc", "award_animation")); }; if (_local2.match("meteor")){ base.award_meteor.addChild(AssetLoader.getAssetMC("misc", "award_animation")); }; if (_local2.match("villager")){ base.award_villager.addChild(AssetLoader.getAssetMC("misc", "award_animation")); }; }; } public function updateAwardClips():void{ if (stats.previousBoneLevel != 0){ base.award_bone.gotoAndStop(stats.previousBoneLevel); base.award_bone.visible = true; } else { base.award_bone.visible = false; }; if (stats.previousEggLevel != 0){ base.award_egg.gotoAndStop(stats.previousEggLevel); base.award_egg.visible = true; } else { base.award_egg.visible = false; }; if (stats.previousMeteorLevel != 0){ base.award_meteor.gotoAndStop(stats.previousMeteorLevel); base.award_meteor.visible = true; } else { base.award_meteor.visible = false; }; if (stats.previousVillagerLevel != 0){ base.award_villager.gotoAndStop(stats.previousVillagerLevel); base.award_villager.visible = true; } else { base.award_villager.visible = false; }; } public function mouseOut(_arg1:MouseEvent):void{ mouseOverTimer = -1; killTip(); } public function enterFrame(_arg1:Event):void{ if (mouseOverTimer != -1){ mouseOverTimer++; if (mouseOverTimer > 15){ if (tip == null){ displayTip(mouseOverClip); }; }; }; } public function mouseOver(_arg1:MouseEvent):void{ mouseOverTimer = 0; mouseOverClip = MovieClip(_arg1.currentTarget); } public function killTip():void{ if (tip != null){ if (tip.parent != null){ tip.parent.removeChild(tip); tip = null; }; }; } } }//package dinowaurs.betaMenu
Section 64
//TutorialButton (dinowaurs.betaMenu.TutorialButton) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import flash.utils.*; import dinowaurs.managers.*; import engine.networking.*; public class TutorialButton extends MelbaButton { public var triskoTimer:Timer; public var tip:MovieClip; public var tutNumber:int; public function TutorialButton(_arg1:int, _arg2:Sprite=null, _arg3:String="none", _arg4:MovieClip=null){ super(_arg2, _arg3, _arg4); tutNumber = _arg1; tip = MovieClip(base.parent).kingTipTut; triskoTimer = new Timer(5000); triskoTimer.addEventListener(TimerEvent.TIMER, enableAgain); if (MovieClip(base).tut_frame != null){ if (Main.myPlayerStats != null){ if ((Main.myPlayerStats.wins + Main.myPlayerStats.losses) == 0){ if (Main.flashingTut == tutNumber){ MovieClip(base).tut_frame.play(); } else { MovieClip(base).tut_frame.gotoAndStop(1); }; } else { MovieClip(base).tut_frame.gotoAndStop(1); }; } else { MovieClip(base).tut_frame.gotoAndStop(1); }; }; } public function enableAgain(_arg1:TimerEvent):void{ Main.tutsEnabled = true; triskoTimer.stop(); } override public function mouseDown(_arg1:MouseEvent):void{ super.mouseDown(_arg1); if (Main.tutsEnabled){ if (tutNumber == 0){ Main.arenaType = "winter"; } else { if (tutNumber == 1){ Main.arenaType = "desert"; } else { Main.arenaType = "waste"; }; }; NetworkManager.tutorialChoice = tutNumber; Main.tutorialGame = tutNumber; Main.flashingTut = (tutNumber + 1); Main.updateOpponentUsername("Intuition"); NetworkManager.startSandboxGame(); disableTut(); }; } override public function mouseOut(_arg1:MouseEvent):void{ super.mouseOut(_arg1); tip.gotoAndStop(1); startTicking(); } public function disableTut():void{ Main.tutsEnabled = false; triskoTimer.start(); } override public function mouseOver(_arg1:MouseEvent):void{ super.mouseOver(_arg1); tip.gotoAndStop((tutNumber + 2)); } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (MovieClip(base).tut_frame == null){ return; }; if (Main.myPlayerStats == null){ MovieClip(base).tut_frame.gotoAndStop(1); return; }; if (MovieClip(base).tut_frame != null){ if ((Main.myPlayerStats.wins + Main.myPlayerStats.losses) == 0){ if (Main.flashingTut == tutNumber){ MovieClip(base).tut_frame.play(); } else { MovieClip(base).tut_frame.gotoAndStop(1); }; } else { MovieClip(base).tut_frame.gotoAndStop(1); }; stopTicking(); }; } } }//package dinowaurs.betaMenu
Section 65
//WinLossScreen (dinowaurs.betaMenu.WinLossScreen) package dinowaurs.betaMenu { import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.*; import engine.core.*; import dinowaurs.managers.*; public class WinLossScreen extends MenuScreen { public var awardCeremonyTimer:int;// = 1500 public var myTrophyCase:TrophyCase; public var toAwardArray:Array; public var leftLevelWidget:PlayerLevelWidget; public var leftDinoViewer:DinoViewer; public var awardStack:Array; public var rightLevelWidget:PlayerLevelWidget; public var levelName:String; public var oldDna:int; public var hisTrophyCase:TrophyCase; public var rightDinoViewer:DinoViewer; public var mapnameSet:Boolean;// = false public function WinLossScreen(_arg1:Sprite, _arg2:String="win"){ var _local5:BoostIconMGR; var _local3 = (_arg2 + "Screen"); if (_arg2.match("win")){ _local3 = (_local3 + "2"); }; super(_arg1, _local3, null, "misc"); levelName = GameData.mLevel.levelName; MovieClip(base).menuBtn.addEventListener(MouseEvent.MOUSE_DOWN, Main.killResultsScreen, false, 0, true); rightDinoViewer = new DinoViewer(MovieClip(base).right.viewer_fordino, 0, 0, -1, -3); rightDinoViewer.loadDino(Main.dinoSlots[Main.currentDino]); var _local4:BoostIconMGR = new BoostIconMGR(MovieClip(base).right.infoBox); _local4.setBoosts(Main.dinoSlots[Main.currentDino].boostCode); if (Main.enemyDinoInfo != null){ leftDinoViewer = new DinoViewer(MovieClip(base).left.viewer_fordino, 0, 0, -1, -3); leftDinoViewer.loadDino(Main.enemyDinoInfo); _local5 = new BoostIconMGR(MovieClip(base).left.infoBox); _local5.setBoosts(Main.enemyDinoInfo.boostCode); }; rightLevelWidget = new PlayerLevelWidget(); leftLevelWidget = new PlayerLevelWidget(); Main.setTextF(MovieClip(base).statsBox.dna_thing.value, "winlossDNA", ""); oldDna = Main.oldDna; MovieClip(base).statsBox.dna_thing.visible = false; } public function doAwardCeremony(_arg1:Array, _arg2:PlayerStats):void{ var _local4:String; var _local5:int; var _local6:String; if (Main.GUEST_MODE_ENABLED){ return; }; var _local3:MovieClip = AssetLoader.getAssetMC("misc", "award_ani_confetti"); base.addChild(_local3); if (myTrophyCase == null){ updateMyStats(_arg2); }; myTrophyCase.awardCeremony(_arg1); awardStack = new Array(); for each (_local4 in _arg1) { if (_local4.match("playerLevel")){ rightLevelWidget.awardAction(); awardStack.push("level"); } else { awardStack.push(_local4); }; }; if (awardStack.length == 1){ spawnEarnScreen(awardStack.pop()); awardStack = new Array(); return; }; _local5 = 0; while (_local5 < awardStack.length) { _local6 = awardStack[_local5]; if (_local6 != "level"){ spawnEarnScreen(_local6); if (_local5 != (awardStack.length - 1)){ awardStack[_local5] = awardStack.pop(); } else { awardStack.pop(); }; return; }; _local5++; }; } public function updateMyStats(_arg1:PlayerStats):void{ var _local2:MovieClip = MovieClip(base).right.infoBox; myTrophyCase = new TrophyCase(_local2, _arg1); TextField(_local2.username).autoSize = TextFieldAutoSize.LEFT; if (Main.GUEST_MODE_ENABLED){ rightLevelWidget.clip.visible = false; }; rightLevelWidget.setLevel(_arg1.playerLevel); MovieClip(base).right.addChild(rightLevelWidget.clip); rightLevelWidget.clip.x = (((_local2.username.x + _local2.username.textWidth) + 15) + _local2.x); rightLevelWidget.clip.y = ((_local2.username.y + _local2.y) - 2.5); Main.setTextF(MovieClip(base).statsBox.dna_thing.value, "winlossDNA", (_arg1.dna - oldDna).toString()); if (((((_arg1.dna - oldDna) > 0)) && (!(Main.GUEST_MODE_ENABLED)))){ MovieClip(base).statsBox.dna_thing.visible = true; }; if (!Main.unKong){ KongApiManager.kongregate.stats.submit("MaxDna", _arg1.dna); }; if (!Main.unKong){ KongApiManager.kongregate.stats.submit("AllTimeDNA", ((_arg1.dna - oldDna) / 2)); }; } public function prepAwardCeremony(_arg1:Array):void{ toAwardArray = _arg1; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; if (!mapnameSet){ if (MovieClip(base).mapname != null){ if (levelName == null){ levelName = "NO_NAME"; }; Main.setTextF(MovieClip(base).mapname.mapname, "battleintroMapName", levelName); mapnameSet = true; }; }; if (awardCeremonyTimer > 0){ awardCeremonyTimer = (awardCeremonyTimer - _arg1); if (awardCeremonyTimer <= 0){ if (toAwardArray != null){ doAwardCeremony(toAwardArray, Main.myPlayerStats); }; }; }; if (MovieClip(base).currentFrame == MovieClip(base).totalFrames){ myKillFlag = true; }; } override public function kill():void{ if (leftDinoViewer != null){ leftDinoViewer.clear(); }; if (rightDinoViewer != null){ rightDinoViewer.clear(); }; MovieClip(base).menuBtn.removeEventListener(MouseEvent.MOUSE_DOWN, Main.killResultsScreen); super.kill(); } public function updateEnemyStats(_arg1:PlayerStats):void{ var _local2:MovieClip = MovieClip(base).left.infoBox; hisTrophyCase = new TrophyCase(_local2, _arg1); TextField(_local2.username).autoSize = TextFieldAutoSize.RIGHT; if (Main.opponentUsername.match("Guest")){ leftLevelWidget.clip.visible = false; }; leftLevelWidget.setLevel(_arg1.playerLevel); MovieClip(base).left.addChild(leftLevelWidget.clip); leftLevelWidget.clip.x = ((_local2.username.x - 10) + _local2.x); leftLevelWidget.clip.y = ((_local2.username.y + _local2.y) - 2.5); leftLevelWidget.clip.x = (leftLevelWidget.clip.x - leftLevelWidget.clip.width); var _local3:BoostIconMGR = new BoostIconMGR(MovieClip(base).left.infoBox); _local3.setBoosts(_arg1.boostCode); } public function closeEarnScreen():void{ var _local1:int; var _local2:String; if (awardStack.length > 0){ if (awardStack.length == 1){ spawnEarnScreen(awardStack[0]); awardStack = new Array(); } else { _local1 = 0; while (_local1 < awardStack.length) { _local2 = awardStack[_local1]; if (_local2 != "level"){ spawnEarnScreen(_local2); if (_local1 != (awardStack.length - 1)){ awardStack[_local1] = awardStack.pop(); } else { awardStack.pop(); }; return; }; _local1++; }; }; }; } public function spawnEarnScreen(_arg1:String):void{ var _local2:EarnScreen = new EarnScreen(this, base, _arg1); } } }//package dinowaurs.betaMenu
Section 66
//AbsoluteServerDino (dinowaurs.dinos.AbsoluteServerDino) package dinowaurs.dinos { import flash.display.*; import engine.display.*; public class AbsoluteServerDino extends MelbaActor { public var rad:Number; public function AbsoluteServerDino(_arg1:Canvas, _arg2:Number, _arg3:Number, _arg4:String="melbaTile", _arg5:Boolean=false){ var _local6:Sprite = new Sprite(); _local6.graphics.lineStyle(1, 0xFF0000); _local6.graphics.beginFill(0xFF0000, 0.4); _local6.graphics.drawCircle(0, 0, 300); _local6.graphics.endFill(); var _local7:MelbaPawn = new MelbaPawn(_local6, 2, "mySprite"); super(_arg1, _local7, _arg2, _arg3, _arg4, _arg5); } public function setRadius(_arg1:Number):void{ if (rad != _arg1){ rad = _arg1; Sprite(mPawn.content).graphics.clear(); Sprite(mPawn.content).graphics.lineStyle(1, 0xFF0000); Sprite(mPawn.content).graphics.beginFill(0xFF0000, 0.4); Sprite(mPawn.content).graphics.drawCircle(0, 0, rad); Sprite(mPawn.content).graphics.endFill(); }; } } }//package dinowaurs.dinos
Section 67
//Dino (dinowaurs.dinos.Dino) package dinowaurs.dinos { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.text.*; import dinowaurs.*; import engine.display.*; import engine.core.*; import dinowaurs.weapons.*; import fl.motion.*; import engine.physics.*; import dinowaurs.managers.*; import flash.ui.*; public class Dino extends PhysicsActor { public var letsExcept:Boolean;// = false public var keyLeft:Boolean; public var transitX:Number;// = -1 private var mTerrain:Terrain; public var tick_height:Number;// = 0 private var mMoveTarget:Number; public var mLastY:Number; public var mDinoColor:String; public var inChat:Boolean;// = false public var inMenu:Boolean; public var frontFootClip:MovieClip; public var mHealth:int; public var footprintThing:Number; public var mXDiff:Number; public var shakey:int;// = 0 public var gunMountBone:Bone; public var last_E_D_M:Array; public var boostCode:String; public var goodToGo:Boolean;// = true public var speedMult:Number;// = 1 public var footPrintCounter:Number; public var eggForFade:MovieClip; public var tick_y:Number;// = 0 public var transitY:Number;// = -1 public var tick_x:Number;// = 0 public var slowZoneMult:Number; public var targetCenter:Point; public var dino_base:Class; public var serverX:Number;// = 0 public var serverY:Number;// = 0 public var shootDelayDisplay:MovieClip; public var direction:int; public var jetpackLaunch:Boolean;// = false public var jetpackState:int; public var myAbsoluteServerDino:AbsoluteServerDino; public var MY_Y:Number; public var mBigHealth:int; public var inSlowZone:Boolean; public var mGun:Weapon; public var currentGunCode:uint;// = 1000 public var myPawnContent:MovieClip; public var tick_width:Number;// = 0 public var mPlayerOwner:PlayerInfo; public var MY_X:Number; public var respawningDisplay:MovieClip; public var weaponEquipHash:Array; public var tickCamCounter:int; public var debugTextbox:TextField; public var mYDiff:Number; public var animCounter:int; public var respawnTransition:Boolean;// = false public var respawning:Boolean; public var mTerrainOffset:Point; public var use_direction:Boolean;// = false public var equippedAccessories:Array; private var mOnGround:Boolean;// = false public var rotateToTerrainIter:int;// = 0 public var focus:Boolean;// = true public var thisDinoMoveState:int;// = 0 public var backFootClip:MovieClip; public var playerOwnerID:int;// = 0 public var mShootDelay:int; public var mDinoType:String; public var currentWeapon:int; public var equippedWeapons:Array; public var myAnimationController:DinoAnimationController; public var mBigHealthTotal:int; public var keyRight:Boolean; public function Dino(_arg1:Canvas, _arg2:Terrain, _arg3:Boolean, _arg4:DinoInfo, _arg5:int){ dino_base = AssetLoader.getAsset("misc", "dino_base"); boostCode = _arg4.boostCode; trace("DINO CONSTRUCTOR"); mBigHealth = _arg5; mBigHealthTotal = _arg5; mDinoType = _arg4.dinoType; mDinoColor = _arg4.dinoColor; respawning = false; var _local6:MelbaPawn = new MelbaPawn(new dino_base(), 1, "main dino pawn"); if (mDinoType == "bronto"){ mHealth = 15; setTerrainOffset(new Point(238.7, 116.8)); permCenter = new Point(250, 65); frontFootClip = new MovieClip(); frontFootClip.x = 55; frontFootClip.y = 26; MovieClip(_local6.content).rotator.addChild(frontFootClip); backFootClip = new MovieClip(); backFootClip.x = -58; backFootClip.y = 26; MovieClip(_local6.content).rotator.addChild(backFootClip); permCenter = new Point(240, 75); } else { if (mDinoType == "ankylo"){ mHealth = 12; setTerrainOffset(new Point(182.8, 85.6)); permCenter = new Point(185, 50); frontFootClip = new MovieClip(); frontFootClip.x = 62; frontFootClip.y = 20; MovieClip(_local6.content).rotator.addChild(frontFootClip); backFootClip = new MovieClip(); backFootClip.x = -40; backFootClip.y = 20; MovieClip(_local6.content).rotator.addChild(backFootClip); permCenter = new Point(190, 60); } else { if (mDinoType == "stego"){ mHealth = 12; setTerrainOffset(new Point(210, 150)); permCenter = new Point(185, 50); frontFootClip = new MovieClip(); frontFootClip.x = 67; frontFootClip.y = 25; MovieClip(_local6.content).rotator.addChild(frontFootClip); backFootClip = new MovieClip(); backFootClip.x = -63; backFootClip.y = 25; MovieClip(_local6.content).rotator.addChild(backFootClip); permCenter = new Point(190, 60); } else { if (mDinoType == "tri"){ mHealth = 11; setTerrainOffset(new Point(160, 145)); permCenter = new Point(165, 92); frontFootClip = new MovieClip(); frontFootClip.x = 67; frontFootClip.y = 25; MovieClip(_local6.content).rotator.addChild(frontFootClip); backFootClip = new MovieClip(); backFootClip.x = -63; backFootClip.y = 25; MovieClip(_local6.content).rotator.addChild(backFootClip); }; }; }; }; myAnimationController = new DinoAnimationController(this, _arg4, MovieClip(_local6.content).rotator); MovieClip(_local6.content).rotator.x = mTerrainOffset.x; MovieClip(_local6.content).rotator.y = mTerrainOffset.y; if ((((mDinoType == "bronto")) || ((mDinoType == "tri")))){ if (myAnimationController.activeAnimation.skeletalAnim != null){ gunMountBone = myAnimationController.activeAnimation.skeletalAnim.bones[1]; }; } else { if (myAnimationController.activeAnimation.skeletalAnim != null){ gunMountBone = myAnimationController.activeAnimation.skeletalAnim.bones[21]; }; }; super(_arg1, _local6, 200, _arg2.getHeight(200), "dino", true); mTerrain = _arg2; if (_arg3){ TileManager.setAvatar(this); }; mGun = null; mMoveTarget = -1; inMenu = false; mShootDelay = 0; Main.stageRef.addEventListener(KeyboardEvent.KEY_DOWN, myKeyDown, false, 0, true); Main.stageRef.addEventListener(KeyboardEvent.KEY_UP, myKeyUp, false, 0, true); Main.stageRef.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown, false, 0, true); Main.stageRef.addEventListener(MouseEvent.MOUSE_UP, mouseUp, false, 0, true); footPrintCounter = 30; equippedWeapons = new Array("none", "none"); currentWeapon = 0; inSlowZone = false; slowZoneMult = 1; initWeapEquipHash(); myPawnContent = mPawn.mMovieClip; debugTextbox = new TextField(); debugTextbox.autoSize = TextFieldAutoSize.LEFT; if (Main.debugON){ Pawn.the.addChild(debugTextbox); }; Pawn.recalculateInitialCenter(); Main.stageRef.addEventListener(Event.ACTIVATE, gotFocus); Main.stageRef.addEventListener(Event.DEACTIVATE, lostFocus); } public function myKeyUp(_arg1:KeyboardEvent):void{ var _local2:Sprite; if (GameData.console.State == "down"){ return; }; if (Main.GAME_MANAGER == null){ return; }; if (!mAvatarTile){ return; }; if ((((_arg1.keyCode == 65)) || ((_arg1.keyCode == 37)))){ if (jetpackLaunch){ return; }; keyLeft = false; direction = 0; use_direction = true; Main.GAME_MANAGER.signalMovementEvent(new Point(0, 0)); myAnimationController.playAnimation("breathing"); if (mGun != null){ mGun.setSkelArray(myAnimationController.skeleton); _local2 = Sprite(mGun.mMovieClip.parent.parent); _local2.removeChild(mGun.mMovieClip.parent); _local2.addChild(mGun.mMovieClip.parent); }; } else { if ((((_arg1.keyCode == 68)) || ((_arg1.keyCode == 39)))){ if (jetpackLaunch){ return; }; keyRight = false; direction = 0; use_direction = true; Main.GAME_MANAGER.signalMovementEvent(new Point(0, 0)); myAnimationController.playAnimation("breathing"); if (mGun != null){ mGun.setSkelArray(myAnimationController.skeleton); _local2 = Sprite(mGun.mMovieClip.parent.parent); _local2.removeChild(mGun.mMovieClip.parent); _local2.addChild(mGun.mMovieClip.parent); }; }; }; } public function lostFocus(_arg1:Event):void{ keyRight = false; keyLeft = false; if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.signalMovementEvent(new Point(0, 0), true); }; } override public function shiftVertical(_arg1:Number):void{ super.shiftVertical(_arg1); MY_Y = mPawn.the.y; } public function networkHealth(_arg1:int):void{ var _local2:MelbaPawn; var _local3:int; var _local4:String; var _local5:DNATag; if (_arg1 != mBigHealth){ correctForHealthChange(_arg1); UIManager.mMinimap.dinoHitz(this); if (_arg1 < mBigHealth){ if (mDinoType == "bronto"){ SoundManager.playFX("CTR_BrontoImpact"); }; if (mDinoType == "ankylo"){ SoundManager.playFX("CTR_AnkyloImpact"); }; if (mDinoType == "stego"){ SoundManager.playFX("CTR_StegoImpact"); }; if (mDinoType == "tri"){ SoundManager.playFX("CTR_TricerImpact"); }; _local2 = new MelbaPawn(AssetLoader.getAssetMC("dinos", ("hit_effect_" + mDinoColor)), 1, "partPawn"); _local2.the.scaleX = (_local2.the.scaleY = 1); new Particle(ParentCanvas, _local2, ((Math.random() * mPawn.the.width) + mPawn.the.x), ((mPawn.the.height / 2) + mPawn.the.y), 10, "dinoHit", true); }; shakey = (mBigHealth - _arg1); mBigHealth = _arg1; if (Main.GAME_MANAGER.mPlayerDino != null){ if (ID.Value == Main.GAME_MANAGER.mPlayerDino.ID.Value){ UIManager.mGoldWidget.dinoHealth_bar.gotoAndStop(Math.round(((mBigHealth / mBigHealthTotal) * 100))); }; }; if (mBigHealth <= 0){ if (mDinoType == "bronto"){ SoundManager.playFX("CTR_BrontoDeath"); }; if (mDinoType == "ankylo"){ SoundManager.playFX("CTR_AnkyloDeath"); }; if (mDinoType == "stego"){ SoundManager.playFX("CTR_StegoDeath"); }; if (mDinoType == "tri"){ SoundManager.playFX("CTR_TricerDeath"); }; if (Main.GAME_MANAGER != null){ if (Main.tutorialGame == -1){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value != ID.Value){ _local3 = 0; for each (_local4 in DinoInfo(Main.dinoSlots[Main.currentDino]).accessories) { if (_local4.match("carrot")){ _local3 = 1; }; }; if (Main.rankedMatch){ _local5 = new DNATag(Main.GAME_MANAGER.Canvas_GUI_CRAZY, StagePos.x, StagePos.y, (1 + _local3)); }; }; }; }; }; }; }; } public function getWeapFromCode(_arg1:String):String{ if (weaponEquipHash[_arg1] != null){ return (weaponEquipHash[_arg1]); }; return ("none"); } public function initWeapEquipHash():void{ weaponEquipHash = new Array(); weaponEquipHash["CN"] = "cannon"; weaponEquipHash["SA"] = "SAM"; weaponEquipHash["CS"] = "castle"; weaponEquipHash["CB"] = "clusterBomb"; weaponEquipHash["MT"] = "meteorGun"; weaponEquipHash["JP"] = "jetpack"; weaponEquipHash["LF"] = "lawFirm"; weaponEquipHash["AS"] = "airStrike"; weaponEquipHash["FL"] = "flamethrower"; weaponEquipHash["XX"] = "none"; weaponEquipHash[""] = "none"; } public function E_D_E(_arg1:Array):void{ currentWeapon = parseInt(_arg1[4]); equippedWeapons[0] = weaponEquipHash[_arg1[2]]; if ((((equippedWeapons[0] == "none")) && ((currentWeapon == 0)))){ currentWeapon = 1; }; equippedWeapons[1] = weaponEquipHash[_arg1[3]]; if ((((equippedWeapons[1] == "none")) && ((currentWeapon == 1)))){ currentWeapon = 0; }; this.equipWeaponStr(equippedWeapons[currentWeapon]); if (mGun == null){ return; }; this.mGun.startTicking(); if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value == ID.Value){ UIManager.setEquippedWeapons(equippedWeapons, currentWeapon); }; }; }; } public function toggleAbsoluteServerDino():void{ if (myAbsoluteServerDino == null){ myAbsoluteServerDino = new AbsoluteServerDino(this.ParentCanvas, 0, 0); } else { myAbsoluteServerDino.myKillFlag = true; myAbsoluteServerDino = null; }; } public function tickInterpolate():void{ var _local1:Number = ((Pawn.the.x + Pawn.InitialCenterX) - serverX); var _local2:Number = (Pawn.the.y - serverY); if (playerOwnerID != Main.GAME_MANAGER.mPlayerInfo.mUserID){ if (_local1 < -40){ mInertia.x = (4 * speedMult); } else { if (_local1 > 40){ mInertia.x = (-4 * speedMult); }; }; }; var _local3:Number = 600; var _local4:Number = 100; if (((!(keyLeft)) && (!(keyRight)))){ if (thisDinoMoveState == 2){ _local3 = 1600; _local4 = 50; }; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value != ID.Value){ _local4 = (_local4 * 0.75); }; }; if (Math.abs(_local1) > _local3){ Pawn.the.x = (serverX - Pawn.InitialCenterX); Pawn.the.y = serverY; } else { Pawn.the.x = (Pawn.the.x + (-(_local1) / _local4)); Pawn.the.y = (Pawn.the.y + (-(_local2) / _local4)); }; } else { if (Math.abs(_local1) > _local3){ Pawn.the.x = (Pawn.the.x + (-(_local1) / _local4)); Pawn.the.y = (Pawn.the.y + (-(_local2) / _local4)); }; }; } public function equipWeaponStr(_arg1:String):void{ trace(("try to equip " + _arg1)); if (_arg1 == "cannon"){ equipWeapon(0); } else { if (_arg1 == "rocketLauncher"){ equipWeapon(1); } else { if (_arg1 == "SAM"){ equipWeapon(2); } else { if (_arg1 == "castle"){ equipWeapon(3); } else { if (_arg1 == "minigun"){ equipWeapon(4); } else { if (_arg1 == "airStrike"){ equipWeapon(5); } else { if (_arg1 == "minelayer"){ equipWeapon(6); } else { if (_arg1 == "clusterBomb"){ equipWeapon(7); } else { if (_arg1 == "meteorGun"){ equipWeapon(8); } else { if (_arg1 == "flamethrower"){ equipWeapon(9); } else { if (_arg1 == "lawFirm"){ equipWeapon(10); } else { if (_arg1 == "jetpack"){ equipWeapon(11); }; }; }; }; }; }; }; }; }; }; }; }; } public function tickRespawning():void{ if (eggForFade != null){ eggForFade.alpha = (eggForFade.alpha - 0.04); if (eggForFade.alpha <= 0){ eggForFade.parent.removeChild(eggForFade); eggForFade = null; }; }; if (respawning){ if (respawningDisplay == null){ respawningDisplay = AssetLoader.getAssetMC("misc", "egg_hatch"); respawningDisplay.x = (respawningDisplay.x - 160); respawningDisplay.y = (respawningDisplay.y + 80); respawningDisplay.scaleX = 0.8; respawningDisplay.scaleY = 0.8; Sprite(mPawn.the).addChild(respawningDisplay); }; } else { if (respawningDisplay != null){ respawningDisplay.gotoAndPlay(68); eggForFade = respawningDisplay; respawningDisplay = null; if (mDinoType == "bronto"){ SoundManager.playFX("CTR_BrontoHappy", 0); }; if (mDinoType == "ankylo"){ SoundManager.playFX("CTR_AnkyloHappy", 0); }; if (mDinoType == "stego"){ SoundManager.playFX("CTR_StegoHappy", 0); }; if (mDinoType == "tri"){ SoundManager.playFX("CTR_TricerHappy", 0); }; SoundManager.playFX("SFX_EggHatching"); }; }; } public function setDirection():void{ var _local1:Sprite; if (keyLeft){ if (mPawn.Flipped == 1){ if (mGun != null){ mGun.remove(); }; mPawn.flipX(); UIManager.mMinimap.flipDino(this, mPawn.Flipped); if (mGun != null){ mGun.setSkelArray(myAnimationController.skeleton); _local1 = Sprite(mGun.mMovieClip.parent.parent); _local1.removeChild(mGun.mMovieClip.parent); _local1.addChild(mGun.mMovieClip.parent); }; }; } else { if (keyRight){ if (mPawn.Flipped == -1){ if (mGun != null){ mGun.remove(); }; mPawn.flipX(); UIManager.mMinimap.flipDino(this, mPawn.Flipped); if (mGun != null){ mGun.setSkelArray(myAnimationController.skeleton); _local1 = Sprite(mGun.mMovieClip.parent.parent); _local1.removeChild(mGun.mMovieClip.parent); _local1.addChild(mGun.mMovieClip.parent); }; }; } else { if (mInertia.x < 0){ if (mPawn.Flipped == 1){ if (mGun != null){ mGun.remove(); }; mPawn.flipX(); UIManager.mMinimap.flipDino(this, mPawn.Flipped); if (mGun != null){ mGun.setSkelArray(myAnimationController.skeleton); _local1 = Sprite(mGun.mMovieClip.parent.parent); _local1.removeChild(mGun.mMovieClip.parent); _local1.addChild(mGun.mMovieClip.parent); }; }; } else { if (mInertia.x > 0){ if (mPawn.Flipped == -1){ if (mGun != null){ mGun.remove(); }; mPawn.flipX(); UIManager.mMinimap.flipDino(this, mPawn.Flipped); if (mGun != null){ mGun.setSkelArray(myAnimationController.skeleton); _local1 = Sprite(mGun.mMovieClip.parent.parent); _local1.removeChild(mGun.mMovieClip.parent); _local1.addChild(mGun.mMovieClip.parent); }; }; }; }; }; }; } public function E_D_M(_arg1:Array):void{ var _local9:MelbaPawn; var _local10:Particle; var _local11:int; var _local12:String; var _local13:DNATag; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value == ID.Value){ UIManager.jetpackHeatThing.gotoAndStop(parseInt(_arg1[8])); }; }; }; jetpackState = parseInt(_arg1[9]); if (parseInt(_arg1[6]) == 3){ if (!respawning){ trace("go there and do this"); if (Main.GAME_MANAGER != null){ if (Main.tutorialGame == -1){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value != ID.Value){ _local11 = 0; for each (_local12 in DinoInfo(Main.dinoSlots[Main.currentDino]).accessories) { if (_local12.match("carrot")){ _local11 = 1; }; }; if (Main.rankedMatch){ _local13 = new DNATag(Main.GAME_MANAGER.Canvas_GUI_CRAZY, StagePos.x, StagePos.y, (1 + _local11)); }; }; }; }; }; Main.signalKill(ID.Value); _local9 = new MelbaPawn(AssetLoader.getAssetMC("dinos", (mDinoType + "_death_bones")), 1, "deathPartPawn"); _local10 = new Particle(ParentCanvas, _local9, mPawn.the.x, mPawn.the.y, 2000, "deathParticle", false); _local10.permCenter.y = (_local10.permCenter.y - 150); _local10.permCenter.x = _local10.Pawn.InitialCenterX; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value == ID.Value){ TileManager.setAvatar(_local10); }; }; }; if (mPawn.Flipped == -1){ _local10.Pawn.flipX(); }; }; }; var _local2:Number = parseFloat(_arg1[2]); var _local3:Number = parseFloat(_arg1[3]); if (myAbsoluteServerDino != null){ myAbsoluteServerDino.Pawn.the.x = parseFloat(_arg1[8]); myAbsoluteServerDino.Pawn.the.y = parseFloat(_arg1[9]); myAbsoluteServerDino.setRadius(parseFloat(_arg1[10])); }; thisDinoMoveState = parseInt(_arg1[6]); var _local4:Number = 600; var _local5:Number = 100; if (thisDinoMoveState == 2){ _local4 = 1600; _local5 = 10; }; var _local6:Number = ((Pawn.the.x + Pawn.InitialCenterX) - _local2); if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value != ID.Value){ if (Math.abs(parseFloat(_arg1[4])) > 0.5){ _local2 = (_local2 + (20 * parseFloat(_arg1[4]))); }; _local5 = (_local5 * 0.75); }; }; serverX = _local2; serverY = _local3; var _local7:Number = ((Pawn.the.x + Pawn.InitialCenterX) - _local2); var _local8:Number = 0; if ((((Math.abs(_local7) > _local4)) || ((Math.abs(_local8) > _local4)))){ Pawn.the.x = (_local2 - Pawn.InitialCenterX); Pawn.the.y = _local3; } else { if (((!(keyLeft)) && (!(keyRight)))){ Pawn.the.x = (Pawn.the.x + (-(_local7) / _local5)); Pawn.the.y = (Pawn.the.y + (-(_local8) / _local5)); }; }; mInertia.x = parseFloat(_arg1[4]); mInertia.y = parseFloat(_arg1[5]); if (thisDinoMoveState > 1){ mInertia.x = parseFloat(_arg1[4]); mInertia.y = parseFloat(_arg1[5]); setDirection(); } else { if (Math.abs(parseFloat(_arg1[4])) <= 0.5){ if (keyLeft){ Main.GAME_MANAGER.signalMovementEvent(new Point(-1, 0), true); } else { if (keyRight){ Main.GAME_MANAGER.signalMovementEvent(new Point(1, 0), true); }; }; }; }; if (thisDinoMoveState == 0){ this.respawning = false; this.slowZoneMult = 1; this.inSlowZone = false; if (jetpackLaunch){ if (mDinoType == "bronto"){ SoundManager.playFX("CTR_BrontoEffortB", 0); }; if (mDinoType == "ankylo"){ SoundManager.playFX("CTR_AnkyloEffortB", 0); }; if (mDinoType == "stego"){ SoundManager.playFX("CTR_StegoEffortB", 0); }; if (mDinoType == "tri"){ SoundManager.playFX("CTR_TricerEffortB", 0); }; }; this.jetpackLaunch = false; } else { if (thisDinoMoveState == 1){ this.respawning = false; this.slowZoneMult = 0.5; this.inSlowZone = true; if (jetpackLaunch){ if (mDinoType == "bronto"){ SoundManager.playFX("CTR_BrontoEffortB", 0); }; if (mDinoType == "ankylo"){ SoundManager.playFX("CTR_AnkyloEffortB", 0); }; if (mDinoType == "stego"){ SoundManager.playFX("CTR_StegoEffortB", 0); }; if (mDinoType == "tri"){ SoundManager.playFX("CTR_TricerEffortB", 0); }; }; this.jetpackLaunch = false; } else { if (thisDinoMoveState == 2){ this.respawning = false; this.slowZoneMult = 1; this.inSlowZone = false; this.jetpackLaunch = true; } else { if (thisDinoMoveState == 3){ this.respawning = true; this.slowZoneMult = 1; this.inSlowZone = false; if (jetpackLaunch){ if (mDinoType == "bronto"){ SoundManager.playFX("CTR_BrontoEffortB", 0); }; if (mDinoType == "ankylo"){ SoundManager.playFX("CTR_AnkyloEffortB", 0); }; if (mDinoType == "stego"){ SoundManager.playFX("CTR_StegoEffortB", 0); }; if (mDinoType == "tri"){ SoundManager.playFX("CTR_TricerEffortB", 0); }; }; this.jetpackLaunch = false; }; }; }; }; if (thisDinoMoveState > 1){ if (((keyLeft) || (keyRight))){ keyLeft = false; keyRight = false; direction = 0; }; }; networkHealth(parseInt(_arg1[7])); if (Pawn.the.x > GameData.LEVEL_RIGHT){ Pawn.the.x = GameData.LEVEL_RIGHT; }; if (Pawn.the.x < GameData.LEVEL_LEFT){ Pawn.the.x = GameData.LEVEL_LEFT; }; if (Pawn.the.y > GameData.LEVEL_BOTTOM){ Pawn.the.y = GameData.LEVEL_BOTTOM; }; if (Pawn.the.y < GameData.LEVEL_TOP){ Pawn.the.y = GameData.LEVEL_TOP; }; if (mTerrain.getHeight((mPawn.the.x + mTerrainOffset.x)) < (mPawn.the.y + mTerrainOffset.y)){ mYDiff = (mLastY - (mTerrain.getHeight((mPawn.the.x + mTerrainOffset.x)) - mTerrainOffset.y)); mPawn.the.y = (mTerrain.getHeight((mPawn.the.x + mTerrainOffset.x)) - mTerrainOffset.y); mOnGround = true; mLastY = mPawn.the.y; mInertia.x = 0; }; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value != ID.Value){ Main.GAME_MANAGER.mEnemyDino = this; mInertia.x = parseFloat(_arg1[4]); mInertia.y = parseFloat(_arg1[5]); setDirection(); } else { if (((!(Main.GAME_MANAGER.airStriking)) && (!(respawning)))){ if (!(TileManager.AVATAR is BallisticProjectile)){ TileManager.setAvatar(this); }; }; }; }; }; if (respawnTransition){ if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.transitionCameraToDino(transitX, transitY); }; respawnTransition = false; }; } override public function shiftHorizontal(_arg1:Number):void{ var _local2:Particle; var _local3:String; super.shiftHorizontal(_arg1); MY_X = mPawn.the.x; if (((!((Main.GAME_MANAGER == null))) && (!(jetpackLaunch)))){ footPrintCounter--; if (footPrintCounter > 0){ return; }; footPrintCounter = 70; _local3 = "snowMountain"; if (Main.GAME_MANAGER.arena == "waste"){ _local3 = "wasteArena"; } else { if (Main.GAME_MANAGER.arena == "jungle"){ _local3 = "jungleArena"; } else { if (Main.GAME_MANAGER.arena == "desert"){ _local3 = "desertArena"; }; }; }; if (_arg1 < 0){ if (footprintThing > 0){ footprintThing = 0; } else { footprintThing = 10; }; _local2 = new Particle(Main.GAME_MANAGER.Canvas_VillageBase, new MelbaPawn(AssetLoader.getAssetSP(_local3, "footprint"), 2), ((Pawn.the.x + Pawn.the.width) - 200), ((mTerrain.getHeight(((Pawn.the.x + Pawn.the.width) - 200)) + footprintThing) + 10), 2000, "footprint", false); _local2.FadeOut = 0.001; } else { if (footprintThing > 0){ footprintThing = 0; } else { footprintThing = 10; }; _local2 = new Particle(Main.GAME_MANAGER.Canvas_VillageBase, new MelbaPawn(AssetLoader.getAssetSP(_local3, "footprint"), 2), (Pawn.the.x + 100), ((mTerrain.getHeight((Pawn.the.x + 100)) + footprintThing) + 10), 2000, "footprint", false); _local2.FadeOut = 0.001; }; }; } public function tickSetCamOffset():void{ focus = true; if (Main.stageRef.mouseX < 0){ focus = false; } else { if (Main.stageRef.mouseX > 700){ focus = false; }; }; if (Main.stageRef.mouseY < 0){ focus = false; } else { if (Main.stageRef.mouseY > 450){ focus = false; }; }; targetCenter = new Point(); if (((!(respawning)) && (focus))){ targetCenter.y = (Pawn.InitialCenterY + ((myPawnContent.rotator.rotation * 3) * TileManager.mZoomLevel)); if (!inMenu){ targetCenter.x = (Pawn.InitialCenterX + (((Main.stageRef.mouseX - 350) * 0.5) * TileManager.mZoomLevel)); } else { targetCenter.x = Pawn.InitialCenterX; }; myPawnContent.visible = true; } else { if (respawning){ targetCenter.y = 100; targetCenter.x = 250; myPawnContent.visible = false; } else { if (!focus){ targetCenter.y = 100; targetCenter.x = 250; keyLeft = false; keyRight = false; Main.GAME_MANAGER.signalMovementEvent(new Point(0, 0)); }; }; }; if (isNaN(targetCenter.y)){ targetCenter.y = 0; }; } public function mouseUp(_arg1:MouseEvent):void{ if (mGun != null){ mGun.mouseUp(_arg1); }; } public function myKeyDown(_arg1:KeyboardEvent):void{ var _local2:Sprite; if (GameData.console.State == "down"){ return; }; if (_arg1.keyCode == 32){ } else { if (_arg1.keyCode == 86){ }; }; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.tutorialScripter != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut.movementDisabled){ return; }; }; }; }; if (!mAvatarTile){ return; }; if (Main.GAME_MANAGER == null){ return; }; if (inMenu){ return; }; if (!focus){ return; }; if (respawning){ return; }; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.airStriking){ return; }; }; if ((((_arg1.keyCode == 65)) || ((_arg1.keyCode == 37)))){ if (jetpackLaunch){ return; }; keyLeft = true; Main.GAME_MANAGER.signalMovementEvent(new Point(-1, 0)); direction = (-4 * speedMult); use_direction = true; setDirection(); myAnimationController.playAnimation("walk"); if (mGun != null){ mGun.setSkelArray(myAnimationController.skeleton); _local2 = Sprite(mGun.mMovieClip.parent.parent); _local2.removeChild(mGun.mMovieClip.parent); _local2.addChild(mGun.mMovieClip.parent); }; } else { if ((((_arg1.keyCode == 68)) || ((_arg1.keyCode == 39)))){ if (jetpackLaunch){ return; }; keyRight = true; Main.GAME_MANAGER.signalMovementEvent(new Point(1, 0)); direction = (4 * speedMult); use_direction = true; setDirection(); myAnimationController.playAnimation("walk"); if (mGun != null){ mGun.setSkelArray(myAnimationController.skeleton); _local2 = Sprite(mGun.mMovieClip.parent.parent); _local2.removeChild(mGun.mMovieClip.parent); _local2.addChild(mGun.mMovieClip.parent); }; }; }; } public function E_D_S(_arg1:Array):void{ this.currentWeapon = parseInt(_arg1[2]); this.equipWeaponStr(equippedWeapons[currentWeapon]); if (mGun != null){ this.mGun.startTicking(); }; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value == ID.Value){ UIManager.setEquippedWeapons(equippedWeapons, currentWeapon); }; }; }; } override public function kill():void{ var _local1:GameManager; if (respawning){ direction = 0; }; if (UIManager.mMinimap != null){ UIManager.mMinimap.removeDino(this); }; if (mGun != null){ mGun.myKillFlag = true; }; mGun = null; Main.stageRef.removeEventListener(KeyboardEvent.KEY_DOWN, myKeyDown); Main.stageRef.removeEventListener(KeyboardEvent.KEY_UP, myKeyUp); Main.stageRef.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDown); Main.stageRef.removeEventListener(MouseEvent.MOUSE_UP, mouseUp); mAvatarTile = false; if (UIManager.mDino != null){ if (UIManager.mDino.ID.Value == ID.Value){ UIManager.mDino = null; }; }; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mEnemyDino != null){ if (Main.GAME_MANAGER.mEnemyDino.ID.Value == ID.Value){ _local1 = Main.GAME_MANAGER; if (Main.GAME_MANAGER.tutorialScripter != null){ Main.GAME_MANAGER.tutorialScripter.signalEvent("killDino"); }; }; }; if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value == ID.Value){ Main.GAME_MANAGER.mPlayerDino = null; }; }; }; trace((("dino " + ID.Value) + " killin meself!")); myAnimationController.myKillFlag = true; myAnimationController.startTicking(); super.kill(); } public function equipWeapon(_arg1:uint):void{ if (Main.GAME_MANAGER == null){ return; }; if (mGun != null){ if (_arg1 == currentGunCode){ return; }; mGun.myKillFlag = true; mGun.mParentDino = null; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value == ID.Value){ Main.GAME_MANAGER.airStriking = false; }; }; }; }; currentGunCode = _arg1; trace(("gonna equip :: " + _arg1)); if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value == ID.Value){ if (_arg1 != 0){ Main.cannonOnly = false; }; }; }; }; switch (_arg1){ case 0: mGun = new Cannon(this, -70, -70, gunMountBone); UIManager.mShotCostTag.cost.text = -20; break; case 1: mGun = new RocketLauncher(this, 25, -12, gunMountBone); UIManager.mShotCostTag.cost.text = -20; break; case 2: mGun = new SAM(this, 0, 0, gunMountBone); UIManager.mShotCostTag.cost.text = -100; break; case 3: mGun = new Castle(this, 0, 0, gunMountBone); UIManager.mShotCostTag.cost.text = -100; break; case 4: mGun = new Minigun(this, -35, -35, gunMountBone); UIManager.mShotCostTag.cost.text = -200; break; case 5: mGun = new AirStrike(this, 0, 0, gunMountBone); UIManager.mShotCostTag.cost.text = -500; break; case 6: mGun = new MineLayer(this, 0, 0, gunMountBone); UIManager.mShotCostTag.cost.text = -300; break; case 7: mGun = new ClusterBomb(this, 0, 0, gunMountBone); UIManager.mShotCostTag.cost.text = -200; break; case 8: mGun = new MeteorGun(this, 0, 0, gunMountBone); UIManager.mShotCostTag.cost.text = -600; if (Main.GAME_MANAGER.tutorialScripter != null){ Main.GAME_MANAGER.tutorialScripter.signalEvent("equipMeteor"); }; break; case 9: mGun = new Flamethrower(this, 0, 0, gunMountBone); break; case 10: mGun = new LawFirm(this, 0, 0, gunMountBone); break; case 11: mGun = new Jetpack(this, 0, 0, gunMountBone); break; }; if (Main.GAME_MANAGER.arenaMusicScript != null){ if ((((((_arg1 == 10)) || ((_arg1 == 9)))) || ((_arg1 == 5)))){ Main.GAME_MANAGER.arenaMusicScript.signalMusicEvent("equipTier3"); }; }; if (mGun != null){ if (MovieClip(mGun.mMovieClip).rotator != null){ MovieClip(mGun.mMovieClip).rotator.stop(); if (MovieClip(mGun.mMovieClip).rotator.animator != null){ MovieClip(mGun.mMovieClip).rotator.animator.stop(); }; }; if (MovieClip(mGun.mMovieClip).animator != null){ MovieClip(mGun.mMovieClip).animator.stop(); }; if (mAvatarTile){ UIManager.setEquippedWeapons(equippedWeapons, currentWeapon); }; mGun.setSkelArray(myAnimationController.skeleton); if (equippedWeapons[0] != "none"){ if (equippedWeapons[1] != "none"){ Main.GAME_MANAGER.tutorialScripter.signalEvent("equip2weapons"); }; }; }; if ((((equippedWeapons[0] == "jetpack")) || ((equippedWeapons[1] == "jetpack")))){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value == ID.Value){ UIManager.jetpackHeatThing.visible = true; }; } else { if (Main.GAME_MANAGER.mPlayerDino.ID.Value == ID.Value){ UIManager.jetpackHeatThing.visible = false; }; }; if (Main.GAME_MANAGER.currentVillageMenu != null){ Main.GAME_MANAGER.currentVillageMenu.updateAllButtons(); }; } public function setAccessories(_arg1:Array):void{ var _local2:*; var _local3:Accessory; equippedAccessories = new Array(); for each (_local2 in _arg1) { if (!_local2.match("_suit")){ _local3 = new Accessory(mDinoType, _local2); myAnimationController.attachAccessory(_local3); } else { myAnimationController.attachSuit(_local2); }; equippedAccessories.push(_local2); }; } public function E_event(_arg1:Array):void{ if (_arg1[0] == "E_D_M"){ E_D_M(_arg1); } else { if (_arg1[0] == "E_D_E"){ E_D_E(_arg1); } else { if (_arg1[0] == "E_D_S"){ E_D_S(_arg1); }; }; }; } public function get StagePos():Point{ return (Pawn.the.parent.localToGlobal(new Point((Pawn.the.x + Pawn.InitialCenterX), Pawn.the.y))); } override public function networkUpdate(_arg1:Array):void{ var _local2:MelbaPawn; var _local3:Particle; var _local4:int; var _local5:String; var _local6:DNATag; var _local7:MelbaPawn; if (_arg1[14] == "true"){ if (!respawning){ trace("go there and do this"); if (Main.GAME_MANAGER != null){ if (Main.tutorialGame == -1){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value != ID.Value){ _local4 = 0; for each (_local5 in DinoInfo(Main.dinoSlots[Main.currentDino]).accessories) { if (_local5.match("carrot")){ _local4 = 1; }; }; if (Main.rankedMatch){ _local6 = new DNATag(Main.GAME_MANAGER.Canvas_GUI_CRAZY, StagePos.x, StagePos.y, (1 + _local4)); }; }; }; }; }; Main.signalKill(ID.Value); _local2 = new MelbaPawn(AssetLoader.getAssetMC("dinos", (mDinoType + "_death_bones")), 1, "deathPartPawn"); _local3 = new Particle(ParentCanvas, _local2, mPawn.the.x, mPawn.the.y, 2000, "deathParticle", false); _local3.permCenter.y = (_local3.permCenter.y - 150); _local3.permCenter.x = _local3.Pawn.InitialCenterX; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value == ID.Value){ TileManager.setAvatar(_local3); }; }; }; if (mPawn.Flipped == -1){ _local3.Pawn.flipX(); }; }; }; super.networkUpdate(_arg1); if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value == ID.Value){ trace("hello chicken!"); }; }; }; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value != ID.Value){ Main.GAME_MANAGER.mEnemyDino = this; mInertia.x = parseFloat(_arg1[6]); mInertia.y = parseFloat(_arg1[7]); setDirection(); }; }; }; serverX = _arg1[4]; serverY = _arg1[5]; if (_arg1[20] == "true"){ use_direction = false; }; if (use_direction){ if (mInertia.x != direction){ Main.GAME_MANAGER.signalMovementEvent(new Point(direction, 0)); }; mInertia.x = direction; }; if (_arg1[18] == "true"){ inSlowZone = true; } else { inSlowZone = false; }; slowZoneMult = _arg1[19]; setDirection(); mLastY = mPawn.the.y; if (_arg1[10] != mBigHealth){ correctForHealthChange(_arg1[10]); if (_arg1[10] < mBigHealth){ if (mDinoType == "bronto"){ SoundManager.playFX("CTR_BrontoImpact"); }; if (mDinoType == "ankylo"){ SoundManager.playFX("CTR_AnkyloImpact"); }; if (mDinoType == "stego"){ SoundManager.playFX("CTR_StegoImpact"); }; if (mDinoType == "tri"){ SoundManager.playFX("CTR_TricerImpact"); }; _local7 = new MelbaPawn(AssetLoader.getAssetMC("dinos", ("hit_effect_" + mDinoColor)), 1, "partPawn"); _local7.the.scaleX = (_local7.the.scaleY = 1); new Particle(ParentCanvas, _local7, ((Math.random() * mPawn.the.width) + mPawn.the.x), ((mPawn.the.height / 2) + mPawn.the.y), 10, "dinoHit", true); }; }; if (mBigHealth != _arg1[10]){ shakey = (mBigHealth - _arg1[10]); }; mBigHealth = _arg1[10]; if (Main.GAME_MANAGER.mPlayerDino != null){ if (ID.Value == Main.GAME_MANAGER.mPlayerDino.ID.Value){ UIManager.mGoldWidget.dinoHealth_bar.gotoAndStop(Math.round(((mBigHealth / mBigHealthTotal) * 100))); }; }; if (mBigHealth <= 0){ if (mDinoType == "bronto"){ SoundManager.playFX("CTR_BrontoDeath"); }; if (mDinoType == "ankylo"){ SoundManager.playFX("CTR_AnkyloDeath"); }; if (mDinoType == "stego"){ SoundManager.playFX("CTR_StegoDeath"); }; if (mDinoType == "tri"){ SoundManager.playFX("CTR_TricerDeath"); }; if (Main.GAME_MANAGER != null){ if (Main.tutorialGame == -1){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value != ID.Value){ _local4 = 0; for each (_local5 in DinoInfo(Main.dinoSlots[Main.currentDino]).accessories) { if (_local5.match("carrot")){ _local4 = 1; }; }; if (Main.rankedMatch){ _local6 = new DNATag(Main.GAME_MANAGER.Canvas_GUI_CRAZY, StagePos.x, StagePos.y, (1 + _local4)); }; }; }; }; }; }; mShootDelay = _arg1[13]; if (_arg1[14] == "true"){ mInertia.x = 0; direction = 0; if (!respawning){ if (mDinoType == "bronto"){ SoundManager.playFX("CTR_BrontoDeath"); }; if (mDinoType == "ankylo"){ SoundManager.playFX("CTR_AnkyloDeath"); }; if (mDinoType == "stego"){ SoundManager.playFX("CTR_StegoDeath"); }; if (mDinoType == "tri"){ SoundManager.playFX("CTR_TricerDeath"); }; }; respawning = true; } else { respawning = false; }; equippedWeapons[0] = _arg1[15]; equippedWeapons[1] = _arg1[16]; currentWeapon = _arg1[17]; if (mTerrain.getHeight((mPawn.the.x + mTerrainOffset.x)) < (mPawn.the.y + mTerrainOffset.y)){ mYDiff = (mLastY - (mTerrain.getHeight((mPawn.the.x + mTerrainOffset.x)) - mTerrainOffset.y)); mPawn.the.y = (mTerrain.getHeight((mPawn.the.x + mTerrainOffset.x)) - mTerrainOffset.y); mOnGround = true; mLastY = mPawn.the.y; }; if (jetpackLaunch){ if (_arg1[21] == "false"){ if (mDinoType == "bronto"){ SoundManager.playFX("CTR_BrontoEffortB", 0); }; if (mDinoType == "ankylo"){ SoundManager.playFX("CTR_AnkyloEffortB", 0); }; if (mDinoType == "stego"){ SoundManager.playFX("CTR_StegoEffortB", 0); }; if (mDinoType == "tri"){ SoundManager.playFX("CTR_TricerEffortB", 0); }; SoundManager.playFX("SFX_JetFire_S"); jetpackLaunch = false; }; } else { if (_arg1[21] == "true"){ if (mDinoType == "bronto"){ SoundManager.playFX("CTR_BrontoEffort", 0); }; if (mDinoType == "ankylo"){ SoundManager.playFX("CTR_AnkyloEffort", 0); }; if (mDinoType == "stego"){ SoundManager.playFX("CTR_StegoEffort", 0); }; if (mDinoType == "tri"){ SoundManager.playFX("CTR_TricerEffort", 0); }; SoundManager.playFX("SFX_JetFire_R"); jetpackLaunch = true; }; }; playerOwnerID = parseInt(_arg1[22]); speedMult = parseFloat(_arg1[23]); if (playerOwnerID == -2){ equipWeaponStr("cannon"); }; if (respawnTransition){ if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.transitionCameraToDino(transitX, transitY); }; respawnTransition = false; }; if (parseInt(_arg1[22]) == Main.GAME_MANAGER.mPlayerInfo.mUserID){ Main.GAME_MANAGER.mPlayerDino = this; Main.GAME_MANAGER.setPlayerDino(this.ID.Value); if (((!(Main.GAME_MANAGER.airStriking)) && (!(respawning)))){ TileManager.setAvatar(this); }; UIManager.mMinimap.addDino(this); }; } public function gotFocus(_arg1:Event):void{ } public function tickInterpCamera():void{ if (targetCenter != null){ permCenter.y = (permCenter.y - ((permCenter.y - targetCenter.y) / 7)); permCenter.x = (permCenter.x - ((permCenter.x - targetCenter.x) / 7)); }; } override public function tick(_arg1:uint):void{ var _local4:Color; var _local5:Boolean; var _local6:MelbaObject; if (UIManager.jetpackHeatThing != null){ if (jetpackState == 2){ if ((mGun is Jetpack)){ _local4 = new Color(); _local4.setTint(11680547, 0.5); mGun.mMovieClip.transform.colorTransform = _local4; if (UIManager.jetpackHeatThing.overheat.currentFrame == 1){ if (Jetpack(mGun).lastFloater != null){ MovieClip(Jetpack(mGun).lastFloater.Pawn.content).value.text = "OVERHEAT!"; }; }; }; } else { if ((mGun is Jetpack)){ _local4 = new Color(); if (UIManager.jetpackHeatThing.currentFrame > 50){ _local4.setTint(11680547, 0.25); }; mGun.mMovieClip.transform.colorTransform = _local4; }; }; UIManager.jetpackHeatThing.overheat.gotoAndStop(jetpackState); }; if (Pawn.the.stage != null){ debugTextbox.text = ((((keyLeft + " : ") + keyRight) + " : ") + jetpackLaunch); debugTextbox.y = 200; }; var _local2:TextFormat = new TextFormat(null, 30); debugTextbox.defaultTextFormat = _local2; if (Main.GAME_MANAGER != null){ _local5 = false; for each (_local6 in Main.GAME_MANAGER.mNetworkedObjects) { if (_local6.ID.Value == ID.Value){ _local5 = true; }; }; if (!_local5){ Main.GAME_MANAGER.mNetworkedObjects.push(this); }; if (Main.GAME_MANAGER.tutorialScripter != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut.movementDisabled){ Main.GAME_MANAGER.signalMovementEvent(new Point(0, 0), true); mInertia.x = 0; keyLeft = false; keyRight = false; }; }; }; }; if (playerOwnerID == -2){ if (mBigHealth <= 0){ if (mPawn.the.visible){ UIManager.mMinimap.removeDino(this); }; mPawn.the.visible = false; }; }; if (((!(jetpackLaunch)) && (!(respawning)))){ if (keyRight){ mInertia.x = (4 * speedMult); } else { if (keyLeft){ mInertia.x = (-4 * speedMult); } else { mInertia.x = 0; }; }; }; if (inSlowZone){ mInertia.x = (mInertia.x * slowZoneMult); }; super.tick(_arg1); if (inSlowZone){ mInertia.x = (mInertia.x / slowZoneMult); }; if (myKillFlag){ return; }; if (Main.GAME_MANAGER == null){ return; }; tickInterpolate(); setDirection(); tick_x = Pawn.the.x; tick_y = Pawn.the.y; tick_width = Pawn.the.width; tick_height = 300; if (animCounter <= 0){ if (mFirstTick){ if (mInertia.x != 0){ myAnimationController.playAnimation("walk"); } else { myAnimationController.playAnimation("breathing"); }; animCounter = 10; }; }; animCounter--; if (inMenu){ goodToGo = false; } else { goodToGo = true; }; if (mAvatarTile){ if (tickCamCounter <= 0){ tickSetCamOffset(); tickCamCounter = 10; }; tickCamCounter--; if (mFirstTick){ tickInterpCamera(); }; }; if (respawning){ myPawnContent.visible = false; } else { if (!myPawnContent.visible){ myPawnContent.visible = true; }; }; tickRespawning(); if (mGun == null){ if (!(equippedWeapons[currentWeapon]) == "none"){ equipWeaponStr(equippedWeapons[currentWeapon]); }; }; if (mAvatarTile){ if ((MY_Y + tick_height) > level_bottom){ mPawn.the.y = (level_bottom - tick_height); mInertia.y = 0; }; if (MY_Y < level_top){ mPawn.the.y = level_top; mInertia.y = 0; }; if (MY_X < level_left){ mPawn.the.x = level_left; mInertia.x = 0; }; if ((MY_X + tick_width) > (level_right - 100)){ mPawn.the.x = ((level_right - tick_width) - 100); mInertia.x = 0; }; }; var _local3:Number = mTerrain.getHeight((tick_x + mTerrainOffset.x)); if (_local3 < (tick_y + mTerrainOffset.y)){ if (!mOnGround){ mInertia.x = 0; }; mYDiff = (mLastY - (_local3 - mTerrainOffset.y)); mPawn.the.y = (_local3 - mTerrainOffset.y); mOnGround = true; mLastY = mPawn.the.y; } else { mYDiff = mInertia.y; mOnGround = false; }; tickRotateToTerrain(); mXDiff = mInertia.x; dinoShakey(); } public function tickRotateToTerrain():void{ var _local1:Point; var _local2:Point; var _local3:Point; var _local4:Point; var _local5:Number; var _local6:Number; var _local7:Number; if (rotateToTerrainIter <= 0){ _local1 = new Point(frontFootClip.x, frontFootClip.y); _local2 = GameData.SCENE_BASE.globalToLocal(frontFootClip.parent.localToGlobal(_local1)); _local3 = new Point(backFootClip.x, backFootClip.y); _local4 = GameData.SCENE_BASE.globalToLocal(backFootClip.parent.localToGlobal(_local3)); _local5 = mTerrain.getHeight(_local2.x); _local6 = mTerrain.getHeight(_local4.x); _local7 = (_local5 - _local6); myPawnContent.rotator.rotation = (_local7 * 0.5); rotateToTerrainIter = 15; }; rotateToTerrainIter--; } public function setMoveTarget(_arg1:Number):void{ mMoveTarget = _arg1; } public function correctForHealthChange(_arg1:Number):void{ var _local2:Number = (_arg1 / mBigHealthTotal); if (mDinoType == "bronto"){ myAnimationController.takeDamage((_local2 * 15)); } else { if (mDinoType == "ankylo"){ myAnimationController.takeDamage((_local2 * 12)); } else { if (mDinoType == "stego"){ myAnimationController.takeDamage((_local2 * 12)); } else { if (mDinoType == "tri"){ myAnimationController.takeDamage((_local2 * 11)); }; }; }; }; } public function dinoShakey():void{ if (shakey > 0){ mPawn.the.x = (mPawn.the.x + ((Math.random() * shakey) - (shakey / 2))); mPawn.the.y = (mPawn.the.y + ((Math.random() * shakey) - (shakey / 2))); shakey = (shakey - 1); }; } public function setTerrainOffset(_arg1:Point):void{ mTerrainOffset = _arg1; } public function mouseDown(_arg1:MouseEvent):void{ if (respawning){ return; }; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.tutorialScripter != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut.gunDisabled){ return; }; }; }; }; if (mGun != null){ mGun.mouseDown(_arg1); }; } } }//package dinowaurs.dinos
Section 68
//DinoAnimation (dinowaurs.dinos.DinoAnimation) package dinowaurs.dinos { import flash.events.*; import flash.display.*; import flash.geom.*; import dinowaurs.*; import engine.core.*; import dinowaurs.SkeletalAnim.*; import dinowaurs.managers.*; public class DinoAnimation extends Tickable { public var ForDinoViewer:Boolean; public var mDinoClip:MovieClip; public var mSkeletonClip:MovieClip; public var suit:Suit; public var skeletalAnim:SkeletalAnimation; public var dinoType:String; public var mDinoDamage:Array; public var origH:Number; public var handle:String; public var origW:Number; public var mMask:MovieClip; public var suitPlace:Sprite; public var mAnimator:MovieClip; public var skeletonBase:Sprite; public function DinoAnimation(_arg1:String, _arg2:String, _arg3:Point, _arg4:String, _arg5:String, _arg6:Boolean=false){ var _local7:Class; var _local8:MovieClip; var _local9:Class; var _local10:Class; var _local11:MovieClip; var _local12:int; super(((_arg2 + " ") + _arg4), true); ForDinoViewer = _arg6; if (_arg5 == null){ _arg5 = "Intuition"; }; if (!ForDinoViewer){ _local7 = AssetLoader.getAsset("dinos", (_arg1 + "_skeleton")); _local8 = new (_local7); mSkeletonClip = _local8.skeleton; _local8.removeChild(mSkeletonClip); _local9 = AssetLoader.getAsset("dinos", (_arg1 + "_mask")); mMask = new (_local9); _local10 = AssetLoader.getAsset((_arg4 + _arg5), _arg1); _local11 = new (_local10); mDinoClip = _local11.dino; _local11.removeChild(mDinoClip); mAnimator = new MovieClip(); mAnimator.addChild(mSkeletonClip); mAnimator.addChild(mDinoClip); mAnimator.addChild(mMask); suitPlace = new Sprite(); mAnimator.addChild(suitPlace); mDinoDamage = new Array(); _local12 = 1; while (_local12 <= mMask.numChildren) { mDinoDamage.push(mMask[("msk" + _local12)]); _local12++; }; mDinoClip.mask = mMask; } else { mAnimator = AssetLoader.getAssetMC("dinos", (((_arg4 + "_") + _arg5) + "_static")); origW = mAnimator.width; origH = mAnimator.height; suitPlace = new Sprite(); mAnimator.addChild(suitPlace); }; dinoType = _arg4; skeletonBase = new Sprite(); mAnimator.addChild(skeletonBase); mAnimator.x = -(_arg3.x); mAnimator.y = -(_arg3.y); assignSkeletalAnimation(_arg2); handle = _arg2; startTicking(); } public function resetSkeletalAnim():void{ var _local2:int; var _local1:String = ((dinoType + "_") + handle); if (_local1 == "bronto_walk"){ skeletalAnim = new bronto_walk_SK(skeletonBase); } else { if (_local1 == "bronto_breathing"){ skeletalAnim = new bronto_breathing_SK(skeletonBase); } else { if (_local1 == "ankylo_walk"){ skeletalAnim = new ankylo_walk_SK(skeletonBase); } else { if (_local1 == "ankylo_breathing"){ skeletalAnim = new ankylo_breathing_SK(skeletonBase); } else { if (_local1 == "stego_walk"){ skeletalAnim = new stego_walk_SK(skeletonBase); } else { if (_local1 == "stego_breathing"){ skeletalAnim = new stego_breathing_SK(skeletonBase); }; }; }; }; }; }; if (skeletalAnim != null){ _local2 = 0; while (_local2 < skeletalAnim.bones.length) { skeletalAnim.bones[_local2].animator = mDinoClip; _local2++; }; }; } public function stop():void{ if (ForDinoViewer){ return; }; mDinoClip.stop(); mSkeletonClip.stop(); var _local1:int; while (_local1 < mDinoDamage.length) { mDinoDamage[_local1].stop(); _local1++; }; if (suit != null){ suit.gotoAndStop(mDinoClip.currentFrame); }; } public function assignSkeletalAnimation(_arg1:String):void{ var _local3:int; var _local2:String = ((dinoType + "_") + _arg1); if (_local2 == "bronto_walk"){ skeletalAnim = new bronto_walk_SK(skeletonBase); } else { if (_local2 == "bronto_breathing"){ skeletalAnim = new bronto_breathing_SK(skeletonBase); } else { if (_local2 == "ankylo_walk"){ trace("doolie"); skeletalAnim = new ankylo_walk_SK(skeletonBase); } else { if (_local2 == "ankylo_breathing"){ trace("doolie"); skeletalAnim = new ankylo_breathing_SK(skeletonBase); } else { if (_local2 == "stego_walk"){ skeletalAnim = new stego_walk_SK(skeletonBase); } else { if (_local2 == "stego_breathing"){ skeletalAnim = new stego_breathing_SK(skeletonBase); } else { if (_local2 == "tri_breathing"){ skeletalAnim = new tri_breathing_SK(skeletonBase); } else { if (_local2 == "tri_walk"){ skeletalAnim = new tri_walk_SK(skeletonBase); }; }; }; }; }; }; }; }; if (skeletalAnim != null){ _local3 = 0; while (_local3 < skeletalAnim.bones.length) { skeletalAnim.bones[_local3].animator = mDinoClip; _local3++; }; }; } public function play():void{ if (ForDinoViewer){ return; }; mDinoClip.play(); mSkeletonClip.play(); var _local1:int; while (_local1 < mDinoDamage.length) { mDinoDamage[_local1].play(); _local1++; }; if (suit != null){ suit.gotoAndPlay(mDinoClip.currentFrame); }; } public function bakeAccessories():void{ var _local1:Bone; var _local2:MovieClip; for each (_local1 in skeletalAnim.bones) { if (_local1.mClip.numChildren > 0){ _local2 = _local1.swapClip(); }; }; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; if (!mFirstTick){ return; }; if (!ForDinoViewer){ skeletalAnim.setFrame(mDinoClip.currentFrame); } else { skeletalAnim.setFrame(1); }; } override public function kill():void{ if (mAnimator != null){ if (mAnimator.parent != null){ mAnimator.parent.removeChild(mAnimator); }; mAnimator = null; }; mDinoClip = null; mSkeletonClip = null; mMask = null; mDinoDamage = null; if (skeletalAnim != null){ skeletalAnim.kill(); }; super.kill(); } public function attachSuit(_arg1:Suit):void{ if (suit != null){ return; }; suit = _arg1; suitPlace.addChild(_arg1); } public function removeSuit():void{ if (suit != null){ if (mAnimator.contains(suit)){ mAnimator.removeChild(suit); }; suit = null; }; } public function effectDamage(_arg1:Array):void{ if (ForDinoViewer){ return; }; var _local2:int; while (_local2 < _arg1.length) { if (_arg1[_local2]){ if (mMask.contains(mDinoDamage[_local2])){ mMask.removeChild(mDinoDamage[_local2]); if (suit != null){ suit.removeMask(_local2); }; }; } else { if (!mMask.contains(mDinoDamage[_local2])){ mMask.addChild(mDinoDamage[_local2]); if (suit != null){ suit.addMask(_local2); }; }; }; _local2++; }; } } }//package dinowaurs.dinos
Section 69
//DinoAnimationController (dinowaurs.dinos.DinoAnimationController) package dinowaurs.dinos { import flash.display.*; import dinowaurs.*; import engine.core.*; import dinowaurs.SkeletalAnim.*; public class DinoAnimationController extends Tickable { public var skeleton:Array; public var myDino:Dino; public var targetRotator:MovieClip; public var dinoType:String; public var goodBits:Array; public var activeAnimation:DinoAnimation; public var badBits:Array; public var animations:Array; public var accessories:Array; public var damagedBits:Array; public var dinoColor:String; public var animHash:Array; public function DinoAnimationController(_arg1:Dino, _arg2:DinoInfo, _arg3:MovieClip){ var _local4:String; super(); dinoType = _arg2.dinoType; dinoColor = _arg2.dinoColor; myDino = _arg1; animations = new Array(); damagedBits = new Array(); goodBits = new Array(); badBits = new Array(); skeleton = new Array(); targetRotator = _arg3; trace(("DINO ANIM CTRL iinit: dinotype==" + dinoType)); animHash = new Array(); animHash["walk"] = false; animHash["breathing"] = false; if (dinoType == "bronto"){ animations = new Array(new DinoAnimation("bronto_walk", "walk", _arg1.mTerrainOffset, "bronto", dinoColor), new DinoAnimation("bronto_breathing", "breathing", _arg1.mTerrainOffset, "bronto", dinoColor)); damagedBits = new Array(false, false, false, false, false, false, false, false, false, false, false, false, false, false, false); goodBits = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14); }; if (dinoType == "ankylo"){ animations = new Array(new DinoAnimation("ankylo_walk", "walk", _arg1.mTerrainOffset, "ankylo", dinoColor), new DinoAnimation("ankylo_breathing", "breathing", _arg1.mTerrainOffset, "ankylo", dinoColor)); damagedBits = new Array(false, false, false, false, false, false, false, false, false, false, false, false); goodBits = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11); }; if (dinoType == "stego"){ animations = new Array(new DinoAnimation("stego_walk", "walk", _arg1.mTerrainOffset, "stego", dinoColor), new DinoAnimation("stego_breathing", "breathing", _arg1.mTerrainOffset, "stego", dinoColor)); damagedBits = new Array(false, false, false, false, false, false, false, false, false, false, false, false); goodBits = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11); }; if (dinoType == "tri"){ animations = new Array(new DinoAnimation("tri_walk", "walk", _arg1.mTerrainOffset, "tri", dinoColor), new DinoAnimation("tri_breathing", "breathing", _arg1.mTerrainOffset, "tri", dinoColor)); damagedBits = new Array(false, false, false, false, false, false, false, false, false, false, false); goodBits = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10); }; activeAnimation = animations[0]; targetRotator.addChild(activeAnimation.mAnimator); activeAnimation.play(); targetRotator.x = (targetRotator.y = 0); accessories = new Array(); playAnimation((dinoType + "_breathing")); for each (_local4 in _arg2.accessories) { if (_local4.match("_suit")){ attachSuit(_local4); }; }; } public function attachAccessory(_arg1:Accessory):void{ if (activeAnimation != null){ _arg1.setSkelArray(skeleton); }; accessories.push(_arg1); } public function takeDamage(_arg1:int):void{ var _local3:Number; var _local4:Number; var _local5:int; if (_arg1 < 0){ _arg1 = 0; }; if (_arg1 < goodBits.length){ while (goodBits.length > _arg1) { _local3 = Math.round((Math.random() * (goodBits.length - 1))); badBits.push(goodBits[_local3]); goodBits[_local3] = goodBits[(goodBits.length - 1)]; goodBits.pop(); }; }; if (_arg1 > goodBits.length){ while (goodBits.length < _arg1) { _local4 = Math.round((Math.random() * (badBits.length - 1))); goodBits.push(badBits[_local4]); badBits[_local4] = badBits[(badBits.length - 1)]; badBits.pop(); }; }; var _local2:int; while (_local2 < damagedBits.length) { damagedBits[_local2] = true; _local5 = 0; while (_local5 < goodBits.length) { if (goodBits[_local5] == _local2){ damagedBits[_local2] = false; }; _local5++; }; _local2++; }; activeAnimation.effectDamage(damagedBits); } public function stopAnimation():void{ if (activeAnimation != null){ activeAnimation.stop(); }; } public function loadAccessories(_arg1:DinoInfo):void{ var _local2:int; var _local3:Accessory; if (activeAnimation != null){ if (activeAnimation.skeletalAnim != null){ _local2 = 0; while (_local2 < _arg1.accessories.length) { if (!_arg1.accessories[_local2].match("_suit")){ _local3 = new Accessory(_arg1.dinoType, _arg1.accessories[_local2]); attachAccessory(_local3); } else { attachSuit(String(_arg1.accessories[_local2])); }; _local2++; }; }; }; } override public function kill():void{ var _local2:BoneImp; myDino = null; var _local1:int; while (_local1 < animations.length) { animations[_local1].myKillFlag = true; _local1++; }; for each (_local2 in skeleton) { _local2.myKillFlag = true; }; skeleton = null; animations = null; activeAnimation = null; damagedBits = null; super.kill(); } public function attachSuit(_arg1:String):void{ var _local2:Suit = new Suit(dinoType, _arg1, "walk"); var _local3:Suit = new Suit(dinoType, _arg1, "breathing"); DinoAnimation(animations[0]).attachSuit(_local2); DinoAnimation(animations[1]).attachSuit(_local3); } public function playAnimation(_arg1:String):void{ var _local2:int; var _local3:SkeletalAnimation; var _local4:int; var _local5:Accessory; var _local6:Bone; if (!animHash[_arg1]){ animHash["walk"] = false; animHash["breathing"] = false; animHash[_arg1] = true; _local2 = 0; while (_local2 < animations.length) { if (_arg1.match(animations[_local2].handle)){ _local3 = animations[_local2].skeletalAnim; if (skeleton.length == 0){ for each (_local6 in _local3.bones) { skeleton.push(new BoneImp(animations[_local2].skeletonBase, _local6.mID)); }; }; _local4 = 0; while (_local4 < _local3.bones.length) { skeleton[_local4].setScript(_local3.bones[_local4]); skeleton[_local4].setBase(animations[_local2].skeletonBase); skeleton[_local4].animator = animations[_local2].mDinoClip; if ((((_arg1 == "walk")) && ((dinoType == "stego")))){ skeleton[_local4].yoff = 15; } else { skeleton[_local4].yoff = 0; }; _local4++; }; for each (_local5 in accessories) { _local5.setSkelArray(skeleton); }; if (myDino.mGun != null){ myDino.mGun.setSkelArray(skeleton); }; if (targetRotator.contains(activeAnimation.mAnimator)){ targetRotator.removeChild(activeAnimation.mAnimator); }; activeAnimation = animations[_local2]; activeAnimation.effectDamage(damagedBits); }; _local2++; }; targetRotator.addChild(activeAnimation.mAnimator); activeAnimation.play(); }; } } }//package dinowaurs.dinos
Section 70
//DinoInfo (dinowaurs.dinos.DinoInfo) package dinowaurs.dinos { import dinowaurs.*; import dinowaurs.managers.*; public class DinoInfo { public var dinoType:String; public var dinoColor:String; public var accessories:Array; public var dinoName:String; public var lose:int; public var boostChoices:String; public var boostCode:String; public var win:int; public var accessoryBones:Array; public function DinoInfo(_arg1:String, _arg2:String, _arg3:String="Intuition"){ dinoType = _arg1; dinoName = _arg2; dinoColor = _arg3; win = 0; lose = 0; accessories = new Array(); accessoryBones = new Array(); } public function addAccessory(_arg1:String):void{ var _local2:Accessory = new Accessory(dinoType, _arg1); var _local3:int; while (_local3 < accessoryBones.length) { if (_local2.boneIDs[0] == accessoryBones[_local3]){ accessoryBones[_local3] = accessoryBones[(accessoryBones.length - 1)]; accessoryBones.pop(); accessories[_local3] = accessories[(accessories.length - 1)]; accessories.pop(); }; _local3++; }; _local3 = 0; while (_local3 < accessories.length) { if (accessories[_local3] == _arg1){ return; }; _local3++; }; accessories.push(_arg1); accessoryBones.push(_local2.boneIDs[0]); _local2.myKillFlag = true; } public function removeAccessory(_arg1:String):void{ var _local2:int; while (_local2 < accessories.length) { if (accessories[_local2] == _arg1){ accessories[_local2] = accessories[(accessories.length - 1)]; accessories.pop(); accessoryBones[_local2] = accessoryBones[(accessories.length - 1)]; accessoryBones.pop(); }; _local2++; }; } public function isCopy(_arg1:DinoInfo):Boolean{ if (dinoType != _arg1.dinoType){ return (false); }; if (dinoName != _arg1.dinoName){ return (false); }; if (dinoColor != _arg1.dinoColor){ return (false); }; if (accessories.length != _arg1.accessories.length){ return (false); }; var _local2:int; while (_local2 < accessories.length) { if (accessories[_local2] != _arg1.accessories[_local2]){ return (false); }; _local2++; }; return (true); } } }//package dinowaurs.dinos
Section 71
//AssetLoader (dinowaurs.managers.AssetLoader) package dinowaurs.managers { import flash.events.*; import flash.display.*; import flash.text.*; import bloader.*; import com.wispagency.display.*; import flash.net.*; import flash.system.*; import flash.utils.*; import flash.media.*; public class AssetLoader { public static var assetQueue:Array; public static var totalBytes:Number; public static var currentTarget:String; private static var versionNum:String = ""; public static var progressTimer:Timer; public static var assetHash:Array; public static var assetLoader:Loader; public static var errorGuy:TextField; public static var stageRef:Stage; private static var returnClass:Class; public static var loading:Boolean; private static var classToCheck:String; public static var bulkLoader:BulkLoader; public static var AssetsDomain:ApplicationDomain; private static var initialized:Boolean = false; public static var lastBytesLoaded:uint; public static var assetDomain:String = "http://dinowaurs-assets.s3.amazonaws.com/"; public static var sameBytesIter:int; public static var useBigBertha:Boolean = true; public static var bulkProgress:Number; public static var assetURL:Array; public static var bytesLoaded:Number; public static function loadNext():void{ var _local1:LoaderContext; if (assetQueue.length > 0){ while (((!((assetHash[assetQueue[0]] == null))) && ((assetQueue.length > 0)))) { assetQueue[0] = assetQueue[(assetQueue.length - 1)]; assetQueue.pop(); }; if (assetQueue.length <= 0){ return; }; if (assetQueue[0] != null){ _local1 = new LoaderContext(false, AssetsDomain); assetLoader.load(new URLRequest(assetURL[assetQueue[0]])); currentTarget = assetQueue[0]; loading = true; }; }; } public static function initialize(_arg1:Stage):void{ if (initialized){ return; }; stageRef = _arg1; initialized = true; loading = false; AssetsDomain = new ApplicationDomain(ApplicationDomain.currentDomain); assetLoader = new Loader(); assetLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete, false, 0, true); assetLoader.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler); assetLoader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); assetLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); assetLoader.contentLoaderInfo.addEventListener(Event.OPEN, openHandler); assetLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); assetLoader.contentLoaderInfo.addEventListener(Event.UNLOAD, unLoadHandler); assetQueue = new Array(); assetHash = new Array(); assetURL = new Array(); if (!useBigBertha){ assetURL["misc"] = (((assetDomain + "miscAssets") + versionNum) + ".swf"); assetURL["dinos"] = (((assetDomain + "dinoAssets") + versionNum) + ".swf"); assetURL["weapons2"] = (((assetDomain + "newWeaponAssets") + versionNum) + ".swf"); assetURL["accessories"] = (((assetDomain + "accessoryAssets2") + versionNum) + ".swf"); assetURL["mainMenu2"] = (((assetDomain + "mainMenu2f") + versionNum) + ".swf"); assetURL["gameIntro"] = (((assetDomain + "introAssets") + versionNum) + ".swf"); assetURL["music_menu"] = (((assetDomain + "music_menu") + versionNum) + ".swf"); assetURL["bg"] = (((assetDomain + "bgAssets") + versionNum) + ".swf"); assetURL["gameGui"] = (((assetDomain + "gameGuiAssets2") + versionNum) + ".swf"); assetURL["villagers"] = (((assetDomain + "villagerAssets") + versionNum) + ".swf"); assetURL["villageMenu"] = (((assetDomain + "villageMenuAssets") + versionNum) + ".swf"); assetURL["villages"] = (((assetDomain + "villageAssets") + versionNum) + ".swf"); assetURL["tutorial"] = (((assetDomain + "tutorialAssets") + versionNum) + ".swf"); assetURL["sound"] = (((assetDomain + "soundAssets") + versionNum) + ".swf"); } else { assetURL["misc"] = (((assetDomain + "bigBertha") + versionNum) + ".swf"); assetURL["dinos"] = (((assetDomain + "bigBertha") + versionNum) + ".swf"); assetURL["weapons2"] = (((assetDomain + "bigBertha") + versionNum) + ".swf"); assetURL["accessories"] = (((assetDomain + "bigBertha") + versionNum) + ".swf"); assetURL["mainMenu2"] = (((assetDomain + "bigBertha") + versionNum) + ".swf"); assetURL["gameIntro"] = (((assetDomain + "bigBertha") + versionNum) + ".swf"); assetURL["music_menu"] = (((assetDomain + "bigBertha") + versionNum) + ".swf"); assetURL["bg"] = (((assetDomain + "heftyHelga") + versionNum) + ".swf"); assetURL["gameGui"] = (((assetDomain + "heftyHelga") + versionNum) + ".swf"); assetURL["villagers"] = (((assetDomain + "heftyHelga") + versionNum) + ".swf"); assetURL["villageMenu"] = (((assetDomain + "heftyHelga") + versionNum) + ".swf"); assetURL["villages"] = (((assetDomain + "heftyHelga") + versionNum) + ".swf"); assetURL["tutorial"] = (((assetDomain + "heftyHelga") + versionNum) + ".swf"); assetURL["sound"] = (((assetDomain + "heftyHelga") + versionNum) + ".swf"); }; assetURL["bigBertha"] = (((assetDomain + "bigBertha") + versionNum) + ".swf"); assetURL["heftyHelga"] = (((assetDomain + "heftyHelga") + versionNum) + ".swf"); assetURL["snowMountain"] = (((assetDomain + "snowMountainAssets") + versionNum) + ".swf"); assetURL["alphaMenu"] = (((assetDomain + "alphaMenuAssets") + versionNum) + ".swf"); assetURL["desertArena"] = (((assetDomain + "desertArenaAssets") + versionNum) + ".swf"); assetURL["wasteArena"] = (((assetDomain + "wasteArenaAssets") + versionNum) + ".swf"); assetURL["jungleArena"] = (((assetDomain + "jungleArenaAssets") + versionNum) + ".swf"); assetURL["music_jungle"] = (((assetDomain + "music_jungle") + versionNum) + ".swf"); assetURL["music_winter"] = (((assetDomain + "music_winter") + versionNum) + ".swf"); assetURL["music_desert"] = (((assetDomain + "music_mexico") + versionNum) + ".swf"); assetURL["music_waste"] = (((assetDomain + "music_waste") + versionNum) + ".swf"); assetURL["music_waste"] = (((assetDomain + "music_waste") + versionNum) + ".swf"); assetURL["unKong"] = (assetDomain + "unKong.swf"); assetURL["stegoAlbino"] = (assetDomain + "dinoAssets/stegoAlbino.swf"); assetURL["stegoBlue"] = (assetDomain + "dinoAssets/stegoBlue.swf"); assetURL["stegoBrown"] = (assetDomain + "dinoAssets/stegoBrown.swf"); assetURL["stegoCharcoal"] = (assetDomain + "dinoAssets/stegoCharcoal.swf"); assetURL["stegoGreen"] = (assetDomain + "dinoAssets/stegoGreen.swf"); assetURL["stegoIntuition"] = (assetDomain + "dinoAssets/stegoIntuition.swf"); assetURL["stegoLightGreen"] = (assetDomain + "dinoAssets/stegoLightGreen.swf"); assetURL["stegoOlive"] = (assetDomain + "dinoAssets/stegoOlive.swf"); assetURL["stegoOrange"] = (assetDomain + "dinoAssets/stegoOrange.swf"); assetURL["stegoPink"] = (assetDomain + "dinoAssets/stegoPink.swf"); assetURL["stegoPurple"] = (assetDomain + "dinoAssets/stegoPurple.swf"); assetURL["stegoRed"] = (assetDomain + "dinoAssets/stegoRed.swf"); assetURL["stegoTan"] = (assetDomain + "dinoAssets/stegoTan.swf"); assetURL["stegoYellow"] = (assetDomain + "dinoAssets/stegoYellow.swf"); assetURL["brontoAlbino"] = (assetDomain + "dinoAssets/brontoAlbino.swf"); assetURL["brontoBlue"] = (assetDomain + "dinoAssets/brontoBlue.swf"); assetURL["brontoBrown"] = (assetDomain + "dinoAssets/brontoBrown.swf"); assetURL["brontoCharcoal"] = (assetDomain + "dinoAssets/brontoCharcoal.swf"); assetURL["brontoGreen"] = (assetDomain + "dinoAssets/brontoGreen.swf"); assetURL["brontoIntuition"] = (assetDomain + "dinoAssets/brontoIntuition.swf"); assetURL["brontoLightGreen"] = (assetDomain + "dinoAssets/brontoLightGreen.swf"); assetURL["brontoOlive"] = (assetDomain + "dinoAssets/brontoOlive.swf"); assetURL["brontoOrange"] = (assetDomain + "dinoAssets/brontoOrange.swf"); assetURL["brontoPink"] = (assetDomain + "dinoAssets/brontoPink.swf"); assetURL["brontoPurple"] = (assetDomain + "dinoAssets/brontoPurple.swf"); assetURL["brontoRed"] = (assetDomain + "dinoAssets/brontoRed.swf"); assetURL["brontoTan"] = (assetDomain + "dinoAssets/brontoTan.swf"); assetURL["brontoYellow"] = (assetDomain + "dinoAssets/brontoYellow.swf"); assetURL["ankyloAlbino"] = (assetDomain + "dinoAssets/ankyloAlbino.swf"); assetURL["ankyloBlue"] = (assetDomain + "dinoAssets/ankyloBlue.swf"); assetURL["ankyloBrown"] = (assetDomain + "dinoAssets/ankyloBrown.swf"); assetURL["ankyloCharcoal"] = (assetDomain + "dinoAssets/ankyloCharcoal.swf"); assetURL["ankyloGreen"] = (assetDomain + "dinoAssets/ankyloGreen.swf"); assetURL["ankyloIntuition"] = (assetDomain + "dinoAssets/ankyloIntuition.swf"); assetURL["ankyloLightGreen"] = (assetDomain + "dinoAssets/ankyloLightGreen.swf"); assetURL["ankyloOlive"] = (assetDomain + "dinoAssets/ankyloOlive.swf"); assetURL["ankyloOrange"] = (assetDomain + "dinoAssets/ankyloOrange.swf"); assetURL["ankyloPink"] = (assetDomain + "dinoAssets/ankyloPink.swf"); assetURL["ankyloPurple"] = (assetDomain + "dinoAssets/ankyloPurple.swf"); assetURL["ankyloRed"] = (assetDomain + "dinoAssets/ankyloRed.swf"); assetURL["ankyloTan"] = (assetDomain + "dinoAssets/ankyloTan.swf"); assetURL["ankyloYellow"] = (assetDomain + "dinoAssets/ankyloYellow.swf"); assetURL["triAlbino"] = (assetDomain + "dinoAssets/triAlbino.swf"); assetURL["triBlue"] = (assetDomain + "dinoAssets/triBlue.swf"); assetURL["triBrown"] = (assetDomain + "dinoAssets/triBrown.swf"); assetURL["triCharcoal"] = (assetDomain + "dinoAssets/triCharcoal.swf"); assetURL["triGreen"] = (assetDomain + "dinoAssets/triGreen.swf"); assetURL["triIntuition"] = (assetDomain + "dinoAssets/triIntuition.swf"); assetURL["triLightGreen"] = (assetDomain + "dinoAssets/triLightGreen.swf"); assetURL["triOlive"] = (assetDomain + "dinoAssets/triOlive.swf"); assetURL["triOrange"] = (assetDomain + "dinoAssets/triOrange.swf"); assetURL["triPink"] = (assetDomain + "dinoAssets/triPink.swf"); assetURL["triPurple"] = (assetDomain + "dinoAssets/triPurple.swf"); assetURL["triRed"] = (assetDomain + "dinoAssets/triRed.swf"); assetURL["triTan"] = (assetDomain + "dinoAssets/triTan.swf"); assetURL["triYellow"] = (assetDomain + "dinoAssets/triYellow.swf"); assetURL["ankylo_biz_suit"] = (assetDomain + "suits/ankylo_biz_suit.swf"); assetURL["bronto_biz_suit"] = (assetDomain + "suits/bronto_biz_suit.swf"); assetURL["stego_biz_suit"] = (assetDomain + "suits/stego_biz_suit.swf"); assetURL["tri_biz_suit"] = (assetDomain + "suits/tri_biz_suit.swf"); assetURL["ankylo_tanuki_suit"] = (assetDomain + "suits/ankylo_tanuki_suit.swf"); assetURL["bronto_tanuki_suit"] = (assetDomain + "suits/bronto_tanuki_suit.swf"); assetURL["stego_tanuki_suit"] = (assetDomain + "suits/stego_tanuki_suit.swf"); assetURL["tri_tanuki_suit"] = (assetDomain + "suits/tri_tanuki_suit.swf"); assetURL["ankylo_space_suit"] = (assetDomain + "suits/ankylo_space_suit.swf"); assetURL["bronto_space_suit"] = (assetDomain + "suits/bronto_space_suit.swf"); assetURL["stego_space_suit"] = (assetDomain + "suits/stego_space_suit.swf"); assetURL["tri_space_suit"] = (assetDomain + "suits/tri_space_suit.swf"); } public static function getAssetSP(_arg1:String, _arg2:String):Sprite{ var _local3:Class; if (assetHash[_arg1] != null){ _local3 = assetHash[_arg1].getDefinition(_arg2); return (new (_local3)); }; return (null); } public static function initHandler(_arg1:Event):void{ } public static function openHandler(_arg1:Event):void{ } public static function unLoadHandler(_arg1:Event):void{ } public static function loadAsset(_arg1:String):void{ var _local2:String; if (useBigBertha){ if (((((((((((((_arg1.match("misc")) || (_arg1.match("dinos")))) || (_arg1.match("weapons2")))) || (_arg1.match("accessories")))) || (_arg1.match("mainMenu2")))) || (_arg1.match("gameIntro")))) || (_arg1.match("music_menu")))){ _arg1 = "bigBertha"; }; if (((((((((((((_arg1.match("bg")) || (_arg1.match("gameGui")))) || (_arg1.match("villagers")))) || (_arg1.match("villageMenu")))) || (_arg1.match("villages")))) || (_arg1.match("tutorial")))) || (_arg1.match("sound")))){ _arg1 = "heftyHelga"; }; }; for each (_local2 in assetQueue) { if (_local2 == _arg1){ return; }; }; if (assetURL[_arg1] != null){ assetQueue.push(_arg1); }; if (!loading){ loadNext(); }; } public static function getProgress():Number{ if (!loading){ return (-1); }; return ((bytesLoaded / totalBytes)); } public static function getAssetBMPD(_arg1:String, _arg2:String):BitmapData{ var _local3:Class; if (assetHash[_arg1] != null){ _local3 = assetHash[_arg1].getDefinition(_arg2); return (new _local3(0, 0)); }; return (null); } public static function getAsset(_arg1:String, _arg2:String):Class{ if (assetHash[_arg1] != null){ return (assetHash[_arg1].getDefinition(_arg2)); }; trace((((("Asset " + _arg2) + " from library ") + _arg1) + " not found!")); return (null); } public static function loadComplete(_arg1:Event):void{ var _local2:ApplicationDomain = _arg1.target.loader.contentLoaderInfo.applicationDomain; if (((assetQueue[0].match("sound")) || (assetQueue[0].match("heftyHelga")))){ Main.initSoundFlag = true; }; if (assetQueue[0].match("bigBertha")){ assetHash["misc"] = _local2; assetHash["dinos"] = _local2; assetHash["weapons2"] = _local2; assetHash["accessories"] = _local2; assetHash["mainMenu2"] = _local2; assetHash["gameIntro"] = _local2; assetHash["music_menu"] = _local2; }; if (assetQueue[0].match("heftyHelga")){ assetHash["bg"] = _local2; assetHash["gameGui"] = _local2; assetHash["villagers"] = _local2; assetHash["villageMenu"] = _local2; assetHash["villages"] = _local2; assetHash["tutorial"] = _local2; assetHash["sound"] = _local2; }; assetHash[assetQueue[0]] = _local2; loading = false; loadNext(); } public static function setupErrorGuy():void{ errorGuy = new TextField(); errorGuy.autoSize = "left"; errorGuy.background = true; errorGuy.backgroundColor = 11680547; var _local1:TextFormat = new TextFormat(null, 12); errorGuy.defaultTextFormat = _local1; stageRef.addChild(errorGuy); } public static function get QueueLength():int{ return (assetQueue.length); } public static function getAssetMC(_arg1:String, _arg2:String):MovieClip{ var _local3:Class; if (assetHash[_arg1] != null){ _local3 = assetHash[_arg1].getDefinition(_arg2); return (new (_local3)); }; return (null); } public static function get CurrentLoadLibrary():String{ if (QueueLength > 0){ return (assetQueue[0]); }; return ("none"); } public static function progressCheck(_arg1:TimerEvent):void{ var _local2:Number; var _local3:int; if (!loading){ progressTimer.stop(); }; if (assetLoader.contentLoaderInfo.bytesLoaded == lastBytesLoaded){ sameBytesIter++; if (sameBytesIter > 45){ if (errorGuy == null){ setupErrorGuy(); }; stageRef.addChild(errorGuy); errorGuy.text = ""; errorGuy.appendText(("\n froze on load, re-starting load. error on " + currentTarget)); _local2 = (Math.floor(((assetLoader.contentLoaderInfo.bytesLoaded * 100) / assetLoader.contentLoaderInfo.bytesTotal)) / 100); errorGuy.appendText((("\n " + _local2) + "%")); assetLoader.close(); _local3 = 0; while (_local3 < (assetQueue.length - 1)) { assetQueue[_local3] = assetQueue[(_local3 + 1)]; _local3++; }; assetQueue.pop(); loadAsset(currentTarget); loadNext(); }; } else { sameBytesIter = 0; }; lastBytesLoaded = assetLoader.contentLoaderInfo.bytesLoaded; } public static function checkLib(_arg1:String):Boolean{ if (assetHash[_arg1] != null){ return (true); }; return (false); } public static function onBulkProgress(_arg1:BulkProgressEvent):void{ bulkProgress = (_arg1.bytesLoaded / _arg1.bytesTotal); } public static function httpStatusHandler(_arg1:HTTPStatusEvent):void{ } public static function getAssetBMP(_arg1:String, _arg2:String):Bitmap{ var _local3:Class; if (assetHash[_arg1] != null){ _local3 = assetHash[_arg1].getDefinition(_arg2); return (new Bitmap(new _local3(0, 0))); }; return (null); } public static function progressHandler(_arg1:ProgressEvent):void{ bytesLoaded = _arg1.bytesLoaded; totalBytes = _arg1.bytesTotal; } public static function ioErrorHandler(_arg1:IOErrorEvent):void{ if (errorGuy == null){ setupErrorGuy(); }; stageRef.addChild(errorGuy); errorGuy.appendText((("\n" + String(_arg1.text)) + "\n")); errorGuy.appendText(("currentTarget == " + currentTarget)); var _local2:int; while (_local2 < (assetQueue.length - 1)) { assetQueue[_local2] = assetQueue[(_local2 + 1)]; _local2++; }; assetQueue.pop(); loadAsset(currentTarget); loadNext(); } public static function bulkLoadComplete(_arg1:BulkProgressEvent):void{ var _local2:MovieClip = bulkLoader.getMovieClip(assetURL[assetQueue[0]]); } } }//package dinowaurs.managers
Section 72
//AutoZoomManager (dinowaurs.managers.AutoZoomManager) package dinowaurs.managers { import dinowaurs.dinos.*; import dinowaurs.*; import engine.display.*; import engine.core.*; public class AutoZoomManager extends Tickable { public var deactivateCount:int; public var active:Boolean; public var deactiveTimer:int; public function AutoZoomManager(){ super("autozoomer", true); deactiveTimer = 30000; active = false; } public function clearAll():void{ myKillFlag = true; startTicking(); } public function deactivate():void{ deactiveTimer = 30000; deactivateCount++; TileManager.mZoomRate = 1; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; if (!active){ return; }; if (deactiveTimer > 0){ deactiveTimer = (deactiveTimer - _arg1); return; }; if (deactivateCount >= 5){ active = false; } else { deactivateCount = 0; }; if (Main.GAME_MANAGER.airStriking){ return; }; if (Main.GAME_MANAGER.mPlayerDino == null){ return; }; if (Main.GAME_MANAGER.mPlayerDino.Pawn == null){ return; }; if (Main.GAME_MANAGER.mEnemyDino == null){ return; }; if (Main.GAME_MANAGER.mEnemyDino.Pawn == null){ return; }; var _local2:Dino = Main.GAME_MANAGER.mEnemyDino; var _local3:Dino = Main.GAME_MANAGER.mPlayerDino; var _local4:VillageZone = findClosestEnemyVillage(_local3.Pawn.the.x); var _local5:Number = Math.abs((_local3.Pawn.the.x - _local2.Pawn.the.x)); if (_local5 > 4000){ if (Math.abs((_local3.Pawn.the.x - _local4.mBaseTile.Pawn.the.x)) < _local5){ _local5 = Math.abs((_local3.Pawn.the.x - _local4.mBaseTile.Pawn.the.x)); }; }; TileManager.mZoomRate = 4; TileManager.mZoomLevel = 4; if (_local5 < 4000){ TileManager.mZoomLevel = 7; }; if (_local5 < 2000){ TileManager.mZoomLevel = 6; }; if (_local5 < 1000){ TileManager.mZoomLevel = 5; }; if (_local5 < 500){ TileManager.mZoomLevel = 4; }; if (_local5 < 250){ TileManager.mZoomLevel = 3; }; if (_local5 < 125){ TileManager.mZoomLevel = 2; }; } private function findClosestEnemyVillage(_arg1:Number):VillageZone{ var _local6:VillageZone; var _local2:Number = 1000000; var _local3:Number = 1000001; var _local4 = -1; var _local5:int; while (_local5 < Main.GAME_MANAGER.mVillageArray.length) { _local6 = Main.GAME_MANAGER.mVillageArray[_local5]; _local3 = 1000001; if (_local6.mOwnerID != Main.GAME_MANAGER.mPlayerInfo.mUserID){ _local3 = Math.abs((_local6.mBaseTile.Pawn.the.x - _arg1)); if (_local3 < _local2){ _local2 = _local3; _local4 = _local5; }; }; _local5++; }; if (_local4 == -1){ return (null); }; return (Main.GAME_MANAGER.mVillageArray[_local4]); } } }//package dinowaurs.managers
Section 73
//BackgroundManager (dinowaurs.managers.BackgroundManager) package dinowaurs.managers { import flash.events.*; import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import dinowaurs.*; import engine.display.*; import engine.core.*; import flash.ui.*; public class BackgroundManager extends Tickable { public var twoOff:Number;// = -2300 public var dino:Dino; public var bg1ScaleFactor:Number;// = 0.02 public var bg1Tiles:Array; public var bg1Bitmap:Bitmap; public var bg2Bitmap:Bitmap; public var mBG1_pan:Sprite; public var mBG2_pan:Sprite; public var terrainLow:Number;// = -1 public var targetX:Number;// = 0 public var targetY:Number;// = 0 public var oneOff:Number;// = -2300 public var solid:Bitmap; public var bg2ScaleFactor:Number;// = 0.05 public var terrainHigh:Number;// = -1 public var solidBitmap:Bitmap; public var bg2Tiles:Array; public function BackgroundManager(_arg1:String="desert"){ var _local6:DisplayObject; var _local7:Sprite; var _local8:DisplayObject; var _local9:DisplayObject; var _local10:DisplayObject; var _local11:Sprite; super("bgManager", true); solid = AssetLoader.getAssetBMP("bg", ("bg_0_" + _arg1)); GameData.BACKGROUND_BASE.addChild(solid); var _local2:String = Main.ARENA_DETAIL; if (!Main.ARENA_DETAIL.match("high")){ _local7 = AssetLoader.getAssetSP("bg", ("bg1_short_" + _arg1)); _local8 = DisplayObject(_local7.getChildAt(0)); DisplayObject(_local7.getChildAt(0)).x = (_local8.x - 200); _local9 = DisplayObject(_local7.getChildAt(1)); DisplayObject(_local7.getChildAt(1)).x = (_local9.x - 200); _local10 = DisplayObject(_local7.getChildAt(2)); DisplayObject(_local7.getChildAt(2)).x = (_local10.x - 200); GameData.BACKGROUND_BASE.addChild(_local8); GameData.BACKGROUND_BASE.addChild(_local9); GameData.BACKGROUND_BASE.addChild(_local10); _local11 = AssetLoader.getAssetSP("bg", ("bg2_short_" + _arg1)); _local8 = DisplayObject(_local11.getChildAt(0)); DisplayObject(_local11.getChildAt(0)).x = (_local8.x - 100); _local9 = DisplayObject(_local11.getChildAt(1)); DisplayObject(_local11.getChildAt(1)).x = (_local9.x - 100); _local10 = DisplayObject(_local11.getChildAt(2)); DisplayObject(_local11.getChildAt(2)).x = (_local10.x - 100); GameData.BACKGROUND_BASE.addChild(_local8); GameData.BACKGROUND_BASE.addChild(_local9); GameData.BACKGROUND_BASE.addChild(_local10); return; }; mBG1_pan = new Sprite(); var _local3:Sprite = AssetLoader.getAssetSP("bg", ("bg1_short_" + _arg1)); mBG1_pan.addChild(_local3); mBG1_pan.cacheAsBitmap = true; GameData.BACKGROUND_BASE.addChild(mBG1_pan); mBG2_pan = new Sprite(); var _local4:Sprite = AssetLoader.getAssetSP("bg", ("bg2_short_" + _arg1)); mBG2_pan.addChild(_local4); mBG2_pan.cacheAsBitmap = true; GameData.BACKGROUND_BASE.addChild(mBG2_pan); bg1Tiles = new Array(); var _local5:int; while (_local5 < _local3.numChildren) { bg1Tiles.push(_local3.getChildAt(_local5)); _local5++; }; _local5 = 0; for each (_local6 in bg1Tiles) { _local6.x = (_local6.x - (_local5 * 3)); _local5++; _local3.removeChild(_local6); }; bg2Tiles = new Array(); _local5 = 0; while (_local5 < _local4.numChildren) { bg2Tiles.push(_local4.getChildAt(_local5)); _local5++; }; _local5 = 0; for each (_local6 in bg2Tiles) { _local6.x = (_local6.x - (_local5 * 3)); _local5++; _local4.removeChild(_local6); }; } public function setTerrain(_arg1:Terrain):void{ var _local2:Number = -10000; var _local3:Number = 10000; var _local4 = -1; var _local5 = -1; var _local6:int; while (_local6 < _arg1.mHeightMap.length) { if (_local2 < _arg1.mHeightMap[_local6]){ _local2 = int(_arg1.mHeightMap[_local6]); _local4 = _local6; }; if (_local3 > _arg1.mHeightMap[_local6]){ _local3 = int(_arg1.mHeightMap[_local6]); _local5 = _local6; }; _local6++; }; terrainHigh = _arg1.mHeightMap[_local4]; terrainLow = _arg1.mHeightMap[_local5]; } public function setDino(_arg1:Dino):void{ dino = _arg1; } public function myKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.UP){ oneOff = (oneOff + 50); }; if (_arg1.keyCode == Keyboard.DOWN){ oneOff = (oneOff - 50); }; if (_arg1.keyCode == Keyboard.LEFT){ twoOff = (twoOff + 50); }; if (_arg1.keyCode == Keyboard.RIGHT){ twoOff = (twoOff - 50); }; trace(("oneOff==" + oneOff)); trace(("twoOff==" + twoOff)); } public function clearAll():void{ var _local1:DisplayObject; var _local2:int; GameData.BACKGROUND_BASE.removeChild(solid); solid = null; if (mBG1_pan != null){ GameData.BACKGROUND_BASE.removeChild(mBG1_pan); mBG1_pan = null; GameData.BACKGROUND_BASE.removeChild(mBG2_pan); mBG2_pan = null; }; for each (_local1 in bg1Tiles) { if (_local1.parent != null){ _local1.parent.removeChild(_local1); }; }; bg1Tiles = new Array(); for each (_local1 in bg2Tiles) { if (_local1.parent != null){ _local1.parent.removeChild(_local1); }; }; bg2Tiles = new Array(); Main.stageRef.removeEventListener(KeyboardEvent.KEY_DOWN, myKeyDown); _local2 = 0; while (_local2 < GameData.BACKGROUND_BASE.numChildren) { GameData.BACKGROUND_BASE.removeChildAt(_local2); }; } override public function tick(_arg1:uint):void{ var _local4:Number; var _local5:Number; var _local6:DisplayObject; super.tick(_arg1); if (myKillFlag){ return; }; if (mBG1_pan == null){ return; }; var _local2:int = int((-(TileManager.scrollSpeedX) * (_arg1 * 0.0625))); var _local3:int = int((-(TileManager.scrollSpeedY) * (_arg1 * 0.0625))); if (TileManager.targetPoint == null){ return; }; if (TileManager.bgScrollX){ targetX = int((TileManager.targetPoint.x * 0.5)); }; targetY = int((TileManager.targetPoint.y * 0.5)); if (TileManager.targetPoint == null){ return; }; mBG1_pan.x = int(((-(targetX) * bg1ScaleFactor) * mBG1_pan.scaleX)); mBG1_pan.y = int(((-((targetY + oneOff)) * bg1ScaleFactor) * mBG1_pan.scaleY)); mBG2_pan.x = int(((-(targetX) * bg2ScaleFactor) * mBG2_pan.scaleX)); mBG2_pan.y = int(((-((targetY + twoOff)) * bg2ScaleFactor) * mBG2_pan.scaleY)); for each (_local6 in bg1Tiles) { _local4 = ((_local6.x * mBG1_pan.scaleX) + mBG1_pan.x); _local5 = (((_local6.x + _local6.width) * mBG1_pan.scaleX) + mBG1_pan.x); if (_local5 >= 0){ if (_local4 <= 750){ if (_local6.parent == null){ mBG1_pan.addChild(_local6); }; } else { if (_local6.parent != null){ mBG1_pan.removeChild(_local6); }; }; } else { if (_local6.parent != null){ mBG1_pan.removeChild(_local6); }; }; }; for each (_local6 in bg2Tiles) { _local4 = ((_local6.x * mBG2_pan.scaleX) + mBG2_pan.x); _local5 = (((_local6.x + _local6.width) * mBG2_pan.scaleX) + mBG2_pan.x); if (_local5 >= 0){ if (_local4 <= 750){ if (_local6.parent == null){ mBG2_pan.addChild(_local6); }; } else { if (_local6.parent != null){ mBG2_pan.removeChild(_local6); }; }; } else { if (_local6.parent != null){ mBG2_pan.removeChild(_local6); }; }; }; } } }//package dinowaurs.managers
Section 74
//GameManager (dinowaurs.managers.GameManager) package dinowaurs.managers { import flash.events.*; import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import flash.text.*; import dinowaurs.betaMenu.*; import dinowaurs.*; import engine.display.*; import dinowaurs.audio.*; import engine.core.*; import dinowaurs.weapons.*; import flash.system.*; import flash.utils.*; import flash.media.*; import engine.physics.*; import engine.networking.*; import dinowaurs.tutorial.*; import flash.errors.*; public class GameManager extends MelbaObject { public var resultsScreen:MovieClip; public var lastUpdate:Array; public var arena:String; public var mTerrain:Terrain; private var airStrikingB:Boolean; public var musicTracks:Array; public var mVillageArray:Array; public var currentWeapons:Array; public var jungle_arenaMusicScript:MusicScript; private var mInitialized:Boolean;// = false public var myQuikOptions:QuikOptions; private var gameStarted:Boolean;// = false public var priceWatcher:PriceWatcher; public var Canvas_VillageBase:Canvas; public var tutorialScripter:TutorialScript; public var selectedDino:int; private var updateEvents:int;// = 0 public var Canvas_GUI_CRAZY:Canvas; public var startTime:uint; public var netUpdateTypes:Array; public var Canvas_Terrain:Canvas; private var console:Console; public var Canvas_Base:Canvas; public var Canvas_Actor:Canvas; public var mSlowZonePosArray:Array; private var Canvas_Console:Sprite; public var replicatedProjectiles:Array; private var updateLimit:int;// = 3 public var Canvas_BG:Canvas; public var ultraLowDetail:Boolean;// = false public var enemyDinoInfo:DinoInfo; public var FNtimes:Array; public var FNnames:Array; public var Canvas_Rock_Back:Canvas; public var mPlayerInfo:PlayerInfo; public var esc_widget:MovieClip; private var mGameStarted:Boolean;// = false public var mNetworkedObjects:Array; public var backgroundManager:BackgroundManager; public var myDinoInfo:DinoInfo; public var transitionToTileOffset:Number;// = 225 private var mMovementState:Point; public var currentAirStrikeCraft:int; public var mEnemyDino:Dino; public var connectedToSandbox:Boolean;// = false public var Canvas_Village:Canvas; public var arenaMusicScript:MusicScript; public var myAccountDinos:Array; public var Canvas_GUI:Canvas; public var mPlayerDino:Dino; public var netUpdateCount:Array; public var sandboxServer:SandboxServer; public var villagers:Array; public var netUpdateSize:Array; public var soundChannel:SoundChannel; public var Canvas_Rock_Front:Canvas; public var currentVillageMenu:VillageMenu2; public function GameManager(){ if (mInitialized){ return; }; resetProfiler(); currentWeapons = new Array(); mNetworkedObjects = new Array(); villagers = new Array(); selectedDino = 0; mMovementState = new Point(0, 0); mVillageArray = new Array(); mSlowZonePosArray = new Array(); mInitialized = true; FPSDisplay.display(); } public function eventProfilerData():void{ var _local1:uint = getTimer(); GameData.console.appendLine((("NET OBJECTS***************** == " + mNetworkedObjects.length) + "\n")); var _local2:int; while (_local2 < netUpdateTypes.length) { GameData.console.appendLine((((((netUpdateTypes[_local2] + ": ") + (netUpdateCount[_local2] / ((_local1 - startTime) / 1000))) + " : ") + netUpdateCount[_local2]) + "\n")); GameData.console.appendLine(((" " + Math.round((netUpdateSize[_local2] / netUpdateCount[_local2]))) + " chars\n")); GameData.console.appendLine(((" " + netUpdateSize[_local2]) + " total\n")); _local2++; }; } public function projectileWeaponShootEvent(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{ if (tutorialScripter != null){ tutorialScripter.signalEvent("shootGun"); }; sendServerMessage(new Array("shootEvent", _arg1, _arg2, _arg3, _arg4)); } public function strikeDropHammer(_arg1:Number):void{ tutorialScripter.signalEvent("dropTheHammer"); trace("DROP THE HAMMER DUDE!!! DROP IT DROP IT!!!"); sendServerMessage(new Array("dropHammer", _arg1)); } public function displayProfilerData():void{ var _local4:String; var _local1:uint = getTimer(); trace("PROFILER TIMES**************"); var _local2:int; while (_local2 < FNnames.length) { trace((((FNnames[_local2] + ": ") + (FNtimes[_local2] / (_local1 - startTime))) + "%")); _local2++; }; trace(("NET OBJECTS***************** == " + mNetworkedObjects.length)); var _local3:int; while (_local3 < netUpdateTypes.length) { trace(((((netUpdateTypes[_local3] + ": ") + (netUpdateCount[_local3] / ((_local1 - startTime) / 1000))) + " : ") + netUpdateCount[_local3])); trace(((" " + Math.round((netUpdateSize[_local3] / netUpdateCount[_local3]))) + " chars")); trace((" ------" + lastUpdate[_local3])); _local3++; }; trace(("PROJECTILES**************** == " + replicatedProjectiles.length)); for each (_local4 in replicatedProjectiles) { trace(_local4); trace("*****************************************************"); }; } public function getEnemyBuiltClosestVillage():VillageZone{ var _local3:VillageZone; var _local1:Number = 1000000; var _local2:VillageZone; for each (_local3 in mVillageArray) { if (_local3.mVillageBuilt){ if (_local3.mOwnerID != mPlayerInfo.mUserID){ if (Math.abs((_local3.mXPos - (mPlayerDino.Pawn.the.x + (mPlayerDino.Pawn.the.width / 2)))) < _local1){ _local1 = Math.abs((_local3.mXPos - (mPlayerDino.Pawn.the.x + (mPlayerDino.Pawn.the.width / 2)))); _local2 = _local3; }; }; }; }; return (_local2); } public function updateTerrainData(_arg1:Array):void{ var _local5:MelbaTile; var _local6:MelbaTile; if (!mInitialized){ return; }; var _local2:Array = new Array(); var _local3 = 2; while (_local3 < _arg1.length) { _local2.push(int(_arg1[_local3])); _local3++; }; mTerrain = new Terrain(Canvas_Terrain, 3000, _local2, _arg1[1], arena); mTerrain.draw(); UIManager.mTerrain = mTerrain; UIManager.mMinimap.setTerrain(mTerrain); if (backgroundManager != null){ backgroundManager.setTerrain(mTerrain); }; spawnUndergroundStuff(); var _local4:Number = 0; if (arena == "winter"){ _local6 = new MelbaTile(Canvas_VillageBase, new MelbaPawn(AssetLoader.getAssetSP("snowMountain", "barrier1"), 2), 10, mTerrain.getHeight(10)); _local5 = new MelbaTile(Canvas_VillageBase, new MelbaPawn(AssetLoader.getAssetSP("snowMountain", "barrier2"), 2), (-(GameData.CLAMP_LEFT) - _local4), mTerrain.getHeight((-(GameData.CLAMP_LEFT) - _local4)), "right_barrier"); } else { if (arena == "desert"){ _local6 = new MelbaTile(Canvas_VillageBase, new MelbaPawn(AssetLoader.getAssetSP("desertArena", "barrier1"), 2), 10, mTerrain.getHeight(10)); _local5 = new MelbaTile(Canvas_VillageBase, new MelbaPawn(AssetLoader.getAssetSP("desertArena", "barrier2"), 2), (-(GameData.CLAMP_LEFT) - _local4), mTerrain.getHeight((-(GameData.CLAMP_LEFT) - _local4)), "right_barrier"); } else { if (arena == "waste"){ _local6 = new MelbaTile(Canvas_VillageBase, new MelbaPawn(AssetLoader.getAssetSP("wasteArena", "structure1"), 2), 10, mTerrain.getHeight(10)); _local5 = new MelbaTile(Canvas_VillageBase, new MelbaPawn(AssetLoader.getAssetSP("wasteArena", "structure1"), 2), (-(GameData.CLAMP_LEFT) - _local4), mTerrain.getHeight((-(GameData.CLAMP_LEFT) - _local4)), "right_barrier"); } else { if (arena == "jungle"){ _local6 = new MelbaTile(Canvas_VillageBase, new MelbaPawn(AssetLoader.getAssetSP("jungleArena", "barrier1"), 2), 10, mTerrain.getHeight(10)); _local5 = new MelbaTile(Canvas_VillageBase, new MelbaPawn(AssetLoader.getAssetSP("jungleArena", "barrier2"), 2), (-(GameData.CLAMP_LEFT) - _local4), mTerrain.getHeight((-(GameData.CLAMP_LEFT) - _local4)), "right_barrier"); }; }; }; }; _local6.Pawn.the.scaleX = (_local6.Pawn.the.scaleY = 2); _local5.Pawn.the.scaleX = (_local5.Pawn.the.scaleY = 2); } public function lose():void{ var _local1:WinLossScreen; trace("you have lost the game, buddy.!"); SoundManager.stopAllFX(); SoundManager.playFX("CTR_VillagersPanicC"); if (Main.tutorialGame == -1){ _local1 = new WinLossScreen(GameData.BattleIntroBase, "loss"); resultsScreen = MovieClip(_local1.base); Main.winLossScreen = _local1; }; Main.endGame(); } public function signalDelayEnd(_arg1:String, _arg2:MelbaObject):void{ if (_arg1.match(/reload/)){ } else { if (_arg1.match("villageMode")){ VillageZone(_arg2).switchMode(); } else { if (_arg1.match(/^equip_/)){ } else { if (_arg1.match("results")){ GameData.mGameBase.removeChild(resultsScreen); }; }; }; }; } public function updateNetworkedObject(_arg1:Array):void{ objectNetUpdate(_arg1[0], _arg1); var _local2:int; while (_local2 < mNetworkedObjects.length) { if (mNetworkedObjects[_local2].ID.Value == _arg1[2]){ mNetworkedObjects[_local2].networkUpdate(_arg1); return; }; _local2++; }; spawnObject(_arg1); } public function createVegetation():void{ var _local4:int; if (ultraLowDetail){ return; }; if (Main.ARENA_DETAIL == "low"){ return; }; var _local1:int = (GameData.LEVEL_RIGHT - 1200); var _local2 = 200; var _local3:Array = mVillageArray.slice(0, (mVillageArray.length - 1)); _local2 = 200; while (_local2 < _local1) { _local4 = int((_local2 - _local3[0].mXPos)); if (_local4 < 0){ _local4 = -(_local4); }; if (_local2 < _local3[0].mXPos){ if (_local4 > 600){ spawnGroup("rock", _local2); }; } else { if (_local2 > _local3[0].mXPos){ if (_local4 > 600){ spawnGroup("rock", _local2); }; if (_local3.length > 1){ _local3.shift(); }; }; }; if (Main.ARENA_DETAIL == "medium"){ _local2 = (_local2 + ((Math.random() * 600) + 2800)); } else { _local2 = (_local2 + ((Math.random() * 600) + 1800)); }; }; _local3 = mVillageArray.slice(0, (mVillageArray.length - 1)); _local2 = 200; while (_local2 < _local1) { _local4 = int((_local2 - _local3[0].mXPos)); if (_local4 < 0){ _local4 = -(_local4); }; if (_local2 < _local3[0].mXPos){ if (_local4 > 600){ spawnGroup("tree", _local2); }; } else { if (_local2 > _local3[0].mXPos){ if (_local4 > 600){ spawnGroup("tree", _local2); }; if (_local3.length > 1){ _local3.shift(); }; }; }; if (Main.ARENA_DETAIL == "medium"){ _local2 = (_local2 + ((Math.random() * 600) + 2800)); } else { _local2 = (_local2 + ((Math.random() * 600) + 1800)); }; }; } public function getMyClosestConstructioningVillage():VillageZone{ var _local3:VillageZone; var _local1:Number = 1000000; var _local2:VillageZone; for each (_local3 in mVillageArray) { if (_local3.constructioning){ if (Math.abs((_local3.mXPos - (mPlayerDino.Pawn.the.x + (mPlayerDino.Pawn.the.width / 2)))) < _local1){ _local1 = Math.abs((_local3.mXPos - (mPlayerDino.Pawn.the.x + (mPlayerDino.Pawn.the.width / 2)))); _local2 = _local3; }; }; }; return (_local2); } public function strikeDeploy(_arg1:int):void{ tutorialScripter.signalEvent("deployAirStrike"); trace("STRIKE DEPLOY SEND IT SEND IT!!"); sendServerMessage(new Array("strikeDeploy", _arg1.toString())); } public function sendBuildVillageEvent(_arg1:VillageZone):void{ var _local2:Array = new Array("villageBuild", _arg1.ID.Value); sendServerMessage(_local2); } public function transitionCameraToTile(_arg1:MelbaTile, _arg2:String="tile"):void{ TileManager.transitionPeriod = 100; TileManager.transitionSpeed = 1; var _local3:Number = transitionToTileOffset; if (_arg2 == "laser"){ _local3 = 2400; } else { if (_arg2 == "airStrike"){ _local3 = 2500; } else { if (_arg2 == "bomb"){ TileManager.transitionSpeed = 2; _local3 = -800; } else { if (_arg2 == "meteor"){ TileManager.transitionSpeed = 2; _local3 = -800; }; }; }; }; TileManager.transitionPoint = new Point(((TileManager.AVATAR.Pawn.the.x + TileManager.AVATAR.permCenter.x) - _arg1.Pawn.the.x), ((((TileManager.AVATAR.Pawn.the.y - (150 / TileManager.mZoomLevel)) - _local3) + TileManager.AVATAR.permCenter.x) - _arg1.Pawn.the.y)); trace(((("GAMEMGR TRANSITION CAM TO tile " + TileManager.transitionPoint.x) + ", ") + TileManager.transitionPoint.y)); TileManager.setAvatar(_arg1); } public function discoResume():void{ UIManager.inMenu = false; if (mPlayerDino != null){ mPlayerDino.inMenu = false; mPlayerDino.inChat = false; }; } public function fullNetworkUpdate(_arg1:Array):void{ var _local3:String; var _local4:Array; var _local5:VillageZone; var _local6:Dino; var _local2 = 1; while (_local2 < _arg1.length) { _local3 = _arg1[_local2]; if (((_local3.match(/^T_*/)) || (_local3.match(/^E_*/)))){ _local4 = extractObjectData(_arg1, _local2); _local2 = (_local2 + (_local4.length - 1)); if (_local3.match(/^T_terrain/)){ trace("terrain datas"); updateTerrainData(_local4); }; if (_local3.match("T_staticDinoInfo")){ updateStaticDinoInfo(_arg1); return; }; if (_local3.match(/^T_playerDino/)){ } else { if (_local3.match(/^T_*/)){ updateNetworkedObject(_local4); } else { if (_local3.match(/^E_V_*/)){ _local5 = VillageZone(getNetworkedObject(parseInt(_local4[1]))); if (_local5 != null){ _local5.E_event(_local4); }; objectNetUpdate(_local3, _local4); } else { if (_local3.match(/^E_D_*/)){ _local6 = Dino(getNetworkedObject(parseInt(_local4[1]))); if (_local6 != null){ _local6.E_event(_local4); }; objectNetUpdate(_local3, _local4); } else { if (_local3.match(/^E_P_*/)){ if (mPlayerInfo != null){ mPlayerInfo.E_event(_local4); }; objectNetUpdate(_local3, _local4); }; }; }; }; }; }; _local2++; }; } public function equipEvent(_arg1:String, _arg2:int):void{ trace(((("equipEvent " + _arg1) + " slot==") + _arg2)); if (_arg1 == "equip_cannon"){ tutorialScripter.signalEvent("equipCannon"); sendServerMessage(new Array("equipEvent", "cannon", _arg2)); }; if (_arg1 == "equip_SAM"){ tutorialScripter.signalEvent("equipSam"); sendServerMessage(new Array("equipEvent", "SAM", _arg2)); }; if (_arg1 == "equip_flamethrower"){ sendServerMessage(new Array("equipEvent", "flamethrower", _arg2)); }; if (_arg1 == "equip_lawFirm"){ sendServerMessage(new Array("equipEvent", "lawFirm", _arg2)); }; if (_arg1 == "equip_jetpack"){ sendServerMessage(new Array("equipEvent", "jetpack", _arg2)); }; if (_arg1 == "equip_rocketLauncher"){ sendServerMessage(new Array("equipEvent", "rocketLauncher", _arg2)); }; if (_arg1 == "equip_castle"){ sendServerMessage(new Array("equipEvent", "castle", _arg2)); }; if (_arg1 == "equip_minigun"){ sendServerMessage(new Array("equipEvent", "minigun", _arg2)); }; if (_arg1 == "equip_minelayer"){ sendServerMessage(new Array("equipEvent", "minelayer", _arg2)); }; if (_arg1 == "equip_clusterBomb"){ sendServerMessage(new Array("equipEvent", "clusterBomb", _arg2)); }; if (_arg1 == "equip_meteorGun"){ sendServerMessage(new Array("equipEvent", "meteorGun", _arg2)); }; if (_arg1 == "equip_airStrike"){ tutorialScripter.signalEvent("equipAirStrike"); sendServerMessage(new Array("equipEvent", "airStrike", _arg2)); }; } public function killCanvas(_arg1:Canvas):void{ if (_arg1.Base != null){ if (_arg1.Base.parent != null){ _arg1.Base.parent.removeChild(_arg1.Base); }; }; } public function get airStriking():Boolean{ return (airStrikingB); } public function startNewProject(_arg1:String):void{ if (_arg1 == "build_cannon"){ sendServerMessage(new Array("productionEvent", "cannon")); } else { if (_arg1 == "build_rocketLauncher"){ sendServerMessage(new Array("productionEvent", "rocketLauncher")); } else { if (_arg1 == "build_flamethrower"){ sendServerMessage(new Array("productionEvent", "flamethrower")); } else { if (_arg1 == "build_lawFirm"){ sendServerMessage(new Array("productionEvent", "lawFirm")); } else { if (_arg1 == "build_jetpack"){ sendServerMessage(new Array("productionEvent", "jetpack")); } else { if (_arg1 == "build_SAM"){ sendServerMessage(new Array("productionEvent", "SAM")); tutorialScripter.signalEvent("produceSam"); } else { if (_arg1 == "build_minelayer"){ sendServerMessage(new Array("productionEvent", "minelayer")); } else { if (_arg1 == "build_castle"){ sendServerMessage(new Array("productionEvent", "castle")); } else { if (_arg1 == "build_minigun"){ sendServerMessage(new Array("productionEvent", "minigun")); } else { if (_arg1 == "build_airStrike"){ tutorialScripter.signalEvent("produceAirStrike"); sendServerMessage(new Array("productionEvent", "airStrike")); } else { if (_arg1 == "build_clusterBomb"){ sendServerMessage(new Array("productionEvent", "clusterBomb")); } else { if (_arg1 == "build_meteorGun"){ sendServerMessage(new Array("productionEvent", "meteorGun")); }; }; }; }; }; }; }; }; }; }; }; }; } public function getMyClosestVillage():VillageZone{ var _local3:VillageZone; var _local1:Number = 1000000; var _local2:VillageZone; for each (_local3 in mVillageArray) { if (_local3.mOwnerID == mPlayerInfo.mUserID){ if (Math.abs((_local3.mXPos - (mPlayerDino.Pawn.the.x + (mPlayerDino.Pawn.the.width / 2)))) < _local1){ _local1 = Math.abs((_local3.mXPos - (mPlayerDino.Pawn.the.x + (mPlayerDino.Pawn.the.width / 2)))); _local2 = _local3; }; }; }; return (_local2); } public function signalMovementEvent(_arg1:Point, _arg2:Boolean=false):void{ if (airStriking){ if (_arg1.x != 0){ return; }; }; if (((!((_arg1.x == mMovementState.x))) || (_arg2))){ sendServerMessage(new Array("moveEvent", _arg1.x, _arg1.y)); mMovementState.x = _arg1.x; }; } public function objectNetUpdate(_arg1:String, _arg2:Array):void{ var _local3:uint; while (_local3 < netUpdateTypes.length) { if (_arg1 == netUpdateTypes[_local3]){ var _local4 = netUpdateCount; var _local5 = _local3; var _local6 = (_local4[_local5] + 1); _local4[_local5] = _local6; netUpdateSize[_local3] = (netUpdateSize[_local3] + getMessageSize(_arg2)); lastUpdate[_local3] = _arg2; return; }; _local3++; }; netUpdateTypes.push(_arg1); netUpdateCount.push(1); netUpdateSize.push(getMessageSize(_arg2)); lastUpdate.push(_arg2); } public function endGame():void{ var _local1:Tickable; for each (_local1 in mNetworkedObjects) { trace(("killing " + _local1.ID.Name)); _local1.myKillFlag = true; _local1.startTicking(); }; mNetworkedObjects = new Array(); gameStarted = false; mPlayerDino = null; mEnemyDino = null; mPlayerInfo = null; mVillageArray = new Array(); mSlowZonePosArray = new Array(); UIManager.clearAll(); if (backgroundManager != null){ backgroundManager.clearAll(); }; backgroundManager = null; TileManager.clearAll(); TileManager.mInitialized = false; if (tutorialScripter != null){ tutorialScripter.clearAll(); }; mTerrain.myKillFlag = true; mTerrain.startTicking(); if (esc_widget != null){ esc_widget.parent.removeChild(esc_widget); }; FPSDisplay.cull(); arenaMusicScript.stopTune(); killCanvas(Canvas_Base); killCanvas(Canvas_BG); killCanvas(Canvas_Village); killCanvas(Canvas_Rock_Back); killCanvas(Canvas_Terrain); killCanvas(Canvas_VillageBase); killCanvas(Canvas_Actor); killCanvas(Canvas_Rock_Front); killCanvas(Canvas_GUI); killCanvas(Canvas_GUI_CRAZY); } public function switchWeapon():void{ tutorialScripter.signalEvent("switchWeapons"); sendServerMessage(new Array("switchWeapon")); } public function spawnUndergroundStuff():void{ var _local1:Sprite; var _local2:Bitmap; var _local3:MelbaPawn; var _local4:Number; var _local5:Number; var _local6:MelbaTile; var _local7:int; if (Main.ARENA_DETAIL == "low"){ return; }; if (arena == "winter"){ _local7 = 0; while (_local7 < 10) { _local1 = AssetLoader.getAssetSP("snowMountain", "layer1_trails_rotate"); _local1.scaleX = (_local1.scaleY = 2); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = mTerrain.getLayerHeight(1, _local4); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer1_trails_rotate"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = (Math.random() * 360); _local7++; }; _local7 = 0; while (_local7 < 8) { _local1 = AssetLoader.getAssetSP("snowMountain", "layer1_trails_still"); _local1.scaleX = (_local1.scaleY = 4); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = (mTerrain.getLayerHeight(1, _local4) - 15); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer1_trails_still"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = mTerrain.getAngle(_local4); _local7++; }; _local7 = 0; while (_local7 < 20) { _local1 = AssetLoader.getAssetSP("snowMountain", "layer2_pebbles"); _local1.scaleX = (_local1.scaleY = 6); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = (mTerrain.getLayerHeight(2, _local4) + 15); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer2_pebbles"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = (Math.random() * 360); _local7++; }; _local7 = 0; while (_local7 < 20) { _local1 = AssetLoader.getAssetSP("snowMountain", "layer3_pebbles"); _local1.scaleX = (_local1.scaleY = 4); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = ((mTerrain.getLayerHeight(3, _local4) + 50) + (Math.random() * 200)); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer3_pebbles"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = (Math.random() * 360); _local7++; }; _local7 = 0; while (_local7 < 5) { _local1 = AssetLoader.getAssetSP("snowMountain", "layer4_veins"); _local1.scaleX = (_local1.scaleY = 15); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = (mTerrain.getLayerHeight(4, _local4) - 15); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer4_vein"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = mTerrain.getAngle(_local4); _local7++; }; } else { if (arena == "desert"){ _local7 = 0; while (_local7 < 10) { _local2 = AssetLoader.getAssetBMP("desertArena", "layer1_trails1"); _local2.scaleX = (_local2.scaleY = 2); _local2.x = (_local2.x + 0.8); _local2.y = (_local2.y + 0); _local3 = new MelbaPawn(_local2, 3); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = mTerrain.getLayerHeight(1, _local4); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer1_trails1"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = (Math.random() * 360); _local7++; }; _local7 = 0; while (_local7 < 8) { _local2 = AssetLoader.getAssetBMP("desertArena", "layer1_trails2"); _local2.scaleX = (_local2.scaleY = 4); _local2.x = (_local2.x + -32); _local2.y = (_local2.y + -20.8); _local3 = new MelbaPawn(_local2, 3); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = (mTerrain.getLayerHeight(1, _local4) - 15); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer1_trails2"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = mTerrain.getAngle(_local4); _local7++; }; _local7 = 0; while (_local7 < 20) { _local2 = AssetLoader.getAssetBMP("desertArena", "layer2_pebbles"); _local2.scaleX = (_local2.scaleY = 6); _local2.x = (_local2.x + -8.9); _local2.y = (_local2.y + -6.5); _local3 = new MelbaPawn(_local2, 3); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = (mTerrain.getLayerHeight(2, _local4) + 15); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer2_pebbles"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = (Math.random() * 360); _local7++; }; _local7 = 0; while (_local7 < 20) { _local2 = AssetLoader.getAssetBMP("desertArena", "layer3_pebbles"); _local2.scaleX = (_local2.scaleY = 4); _local2.x = (_local2.x + -8.2); _local2.y = (_local2.y + -12.8); _local3 = new MelbaPawn(_local2, 3); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = ((mTerrain.getLayerHeight(3, _local4) + 50) + (Math.random() * 200)); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer3_pebbles"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = (Math.random() * 360); _local7++; }; _local7 = 0; while (_local7 < 5) { _local2 = AssetLoader.getAssetBMP("desertArena", "layer4_veins"); _local2.scaleX = (_local2.scaleY = 10); _local2.x = (_local2.x + 0.1); _local2.y = (_local2.y + 0.3); _local3 = new MelbaPawn(_local2, 3); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = (mTerrain.getLayerHeight(4, _local4) - 100); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer4_veins"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = mTerrain.getAngle(_local4); _local7++; }; } else { if (arena == "waste"){ _local7 = 0; while (_local7 < 10) { _local1 = AssetLoader.getAssetSP("wasteArena", "layer1_trails1"); _local1.scaleX = (_local1.scaleY = 2); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = mTerrain.getLayerHeight(1, _local4); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer1_trails1"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = (Math.random() * 360); _local7++; }; _local7 = 0; while (_local7 < 8) { _local1 = AssetLoader.getAssetSP("wasteArena", "layer1_trails2"); _local1.scaleX = (_local1.scaleY = 4); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = (mTerrain.getLayerHeight(1, _local4) - 15); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer1_trails2"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = mTerrain.getAngle(_local4); _local7++; }; _local7 = 0; while (_local7 < 20) { _local1 = AssetLoader.getAssetSP("wasteArena", "layer2_pebbles"); _local1.scaleX = (_local1.scaleY = 6); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = (mTerrain.getLayerHeight(2, _local4) + 15); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer2_pebbles"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = (Math.random() * 360); _local7++; }; _local7 = 0; while (_local7 < 20) { _local1 = AssetLoader.getAssetSP("wasteArena", "layer3_pebbles"); _local1.scaleX = (_local1.scaleY = 4); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = ((mTerrain.getLayerHeight(3, _local4) + 50) + (Math.random() * 200)); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer3_pebbles"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = (Math.random() * 360); _local7++; }; _local7 = 0; while (_local7 < 5) { _local1 = AssetLoader.getAssetSP("wasteArena", "layer4_veins"); _local1.scaleX = (_local1.scaleY = 10); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = (mTerrain.getLayerHeight(4, _local4) - 100); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer4_veins"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = mTerrain.getAngle(_local4); _local7++; }; } else { if (arena == "jungle"){ _local7 = 0; while (_local7 < 10) { _local1 = AssetLoader.getAssetSP("jungleArena", "layer1_trails1"); _local1.scaleX = (_local1.scaleY = 2); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = mTerrain.getLayerHeight(1, _local4); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer1_trails1"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = (Math.random() * 360); _local7++; }; _local7 = 0; while (_local7 < 8) { _local1 = AssetLoader.getAssetSP("jungleArena", "layer1_trails2"); _local1.scaleX = (_local1.scaleY = 4); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = (mTerrain.getLayerHeight(1, _local4) - 15); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer1_trails2"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = mTerrain.getAngle(_local4); _local7++; }; _local7 = 0; while (_local7 < 20) { _local1 = AssetLoader.getAssetSP("jungleArena", "layer2_pebbles"); _local1.scaleX = (_local1.scaleY = 6); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = (mTerrain.getLayerHeight(2, _local4) + 15); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer2_pebbles"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = (Math.random() * 360); _local7++; }; _local7 = 0; while (_local7 < 20) { _local1 = AssetLoader.getAssetSP("jungleArena", "layer3_pebbles"); _local1.scaleX = (_local1.scaleY = 4); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = ((mTerrain.getLayerHeight(3, _local4) + 50) + (Math.random() * 200)); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer3_pebbles"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = (Math.random() * 360); _local7++; }; _local7 = 0; while (_local7 < 5) { _local1 = AssetLoader.getAssetSP("jungleArena", "layer4_veins"); _local1.scaleX = (_local1.scaleY = 10); _local3 = new MelbaPawn(_local1, 2); _local4 = (Math.random() * GameData.LEVEL_RIGHT); _local5 = (mTerrain.getLayerHeight(4, _local4) - 100); _local6 = new MelbaTile(Canvas_Rock_Front, _local3, _local4, _local5, "layer4_veins"); _local6.Pawn.the.y = _local5; _local6.Pawn.the.rotation = mTerrain.getAngle(_local4); _local7++; }; }; }; }; }; if (_local2 != null){ _local2.scaleX = (_local2.scaleY = 2); }; if (_local1 != null){ _local1.scaleX = _local1.scaleY; }; } public function resetProfiler():void{ startTime = getTimer(); FNtimes = new Array("0"); FNnames = new Array("fntime prof"); netUpdateTypes = new Array(); netUpdateCount = new Array(); netUpdateSize = new Array(); lastUpdate = new Array(); replicatedProjectiles = new Array(); } public function playerLeft():void{ SoundManager.stopAllFX(); SoundManager.playFX("AMB_Winter"); var _local1:MaroonedScreen = new MaroonedScreen(); resultsScreen = MovieClip(_local1.base); GameData.BattleIntroBase.addChild(resultsScreen); Main.endGame("disco"); } public function updateStaticDinoInfo(_arg1:Array):void{ var _local3:int; var _local2:int = Main.myUserID; if (parseInt(_arg1[2]) == Main.myUserID){ myDinoInfo = new DinoInfo(_arg1[4], _arg1[3], _arg1[5]); _local3 = 6; while (_local3 < _arg1.length) { myDinoInfo.addAccessory(_arg1[_local3]); _local3++; }; } else { enemyDinoInfo = new DinoInfo(_arg1[4], _arg1[3], _arg1[5]); _local3 = 6; while (_local3 < _arg1.length) { enemyDinoInfo.addAccessory(_arg1[_local3]); _local3++; }; }; } public function spawnRock(_arg1:Number):void{ var _local3:Sprite; var _local4:MelbaTile; var _local6:int; var _local8:int; var _local2:int = Math.round((Math.random() * 3)); if (arena == "winter"){ switch (Math.round((Math.random() * 4))){ case 0: _local3 = AssetLoader.getAssetSP("snowMountain", "rock1"); break; case 1: _local3 = AssetLoader.getAssetSP("snowMountain", "rock2"); break; case 2: _local3 = AssetLoader.getAssetSP("snowMountain", "rock3"); break; default: _local3 = AssetLoader.getAssetSP("snowMountain", "rock4"); }; } else { if (arena == "desert"){ switch (Math.round((Math.random() * 6))){ case 0: _local3 = AssetLoader.getAssetSP("desertArena", "pebble1"); break; case 1: _local3 = AssetLoader.getAssetSP("desertArena", "pebble3"); break; case 2: _local3 = AssetLoader.getAssetSP("desertArena", "pebble4"); break; case 3: _local3 = AssetLoader.getAssetSP("desertArena", "rock1"); break; case 4: _local3 = AssetLoader.getAssetSP("desertArena", "rock2"); break; default: _local3 = AssetLoader.getAssetSP("desertArena", "pebble2"); }; } else { if (arena == "waste"){ switch (Math.round((Math.random() * 7))){ case 0: _local3 = AssetLoader.getAssetSP("wasteArena", "rock1"); break; case 1: _local3 = AssetLoader.getAssetSP("wasteArena", "rock2"); break; case 2: _local3 = AssetLoader.getAssetSP("wasteArena", "rock3"); break; case 3: _local3 = AssetLoader.getAssetSP("wasteArena", "rock4"); break; case 4: _local3 = AssetLoader.getAssetSP("wasteArena", "rock5"); break; case 5: _local3 = AssetLoader.getAssetSP("wasteArena", "rock6"); break; default: _local3 = AssetLoader.getAssetSP("wasteArena", "rock7"); }; }; }; }; if (arena == "jungle"){ switch (Math.round((Math.random() * 5))){ case 0: _local3 = AssetLoader.getAssetSP("jungleArena", "rock1"); break; case 1: _local3 = AssetLoader.getAssetSP("jungleArena", "rock2"); break; case 2: _local3 = AssetLoader.getAssetSP("jungleArena", "rock4"); break; case 3: _local3 = AssetLoader.getAssetSP("jungleArena", "rock5"); break; default: _local3 = AssetLoader.getAssetSP("jungleArena", "rock3"); }; } else { return; }; var _local5:Boolean; var _local7:int = mVillageArray.length; var _local9:int = mSlowZonePosArray.length; var _local10:int; _local10 = 0; while (_local10 < _local7) { _local6 = int((_arg1 - mVillageArray[_local10].mXPos)); if (_local6 < 0){ _local6 = -(_local6); }; if (_local6 < 600){ _local5 = true; }; _local10++; }; _local10 = 0; while (_local10 < _local9) { _local8 = int((_arg1 - mSlowZonePosArray[_local10])); if (_local8 < 0){ _local8 = -(_local8); }; if (_local8 < 400){ _local5 = true; }; _local10++; }; if ((((_local2 == 0)) && (!(_local5)))){ _local4 = new MelbaTile(Canvas_Rock_Back, new MelbaPawn(_local3, 2), _arg1, (mTerrain.getHeight(_arg1) + 40), "rock"); _local4.Pawn.the.rotation = mTerrain.getAngle(_arg1); _local4.Pawn.the.x = (_local4.Pawn.the.x - (_local4.Pawn.the.rotation / 2)); } else { if (!_local5){ _local4 = new MelbaTile(Canvas_Rock_Front, new MelbaPawn(_local3, 2), _arg1, ((mTerrain.getHeight(_arg1) + 60) + (Math.random() * 40)), "rock"); _local4.Pawn.the.rotation = mTerrain.getAngle(_arg1); _local4.Pawn.the.x = (_local4.Pawn.the.x - _local4.Pawn.the.rotation); }; }; } public function gameStart(_arg1:String="desert"):void{ if (!mInitialized){ return; }; if (gameStarted){ return; }; gameStarted = true; arena = _arg1; trace("START GAME! YEAH!"); PhysicsManager.initialize(); TileManager.initialize(); TileManager.mZoomLevel = 2; NetworkSpawner.initialize(); ScreenShakeManager.initialize(); Canvas_Base = new Canvas(GameData.SCENE_BASE, "base canvas"); Canvas_BG = new Canvas(GameData.SCENE_BASE, "background canvas"); Canvas_Village = new Canvas(GameData.SCENE_BASE, "village canvas"); Canvas_Rock_Back = new Canvas(GameData.SCENE_BASE, "rock_back canvas"); Canvas_Terrain = new Canvas(GameData.SCENE_BASE, "terrain canvas"); Canvas_VillageBase = new Canvas(GameData.SCENE_BASE, "village base canvas"); Canvas_Actor = new Canvas(GameData.SCENE_BASE, "actor canvas"); Canvas_Rock_Front = new Canvas(GameData.SCENE_BASE, "rock_front canvas"); Canvas_GUI = new Canvas(GameData.SCENE_BASE, "gui canvas"); UIManager.mGUICanvas = Canvas_GUI; UIManager.initialize(); Canvas_GUI_CRAZY = new Canvas(GameData.GUI_BASE, "gui canvas crazy"); backgroundManager = new BackgroundManager(_arg1); if (arena == "winter"){ SoundManager.playFXLooped("AMB_Winter"); } else { if (arena == "desert"){ SoundManager.playFXLooped("AMB_Desert"); } else { if (arena == "waste"){ SoundManager.playFXLooped("AMB_Wasteland"); SoundManager.playFXLooped("AMB_DistantWar"); } else { SoundManager.playFXLooped("AMB_Jungle"); }; }; }; myQuikOptions = new QuikOptions(); FPSDisplay.display(); if (arena.match("winter")){ arenaMusicScript = new WinterScript(); } else { if (arena.match("desert")){ arenaMusicScript = new DesertScript(); } else { if (arena.match("jungle")){ arenaMusicScript = new JungleScript(); } else { if (arena.match("waste")){ arenaMusicScript = new WasteScript(); } else { arenaMusicScript = new MusicScript(); }; }; }; }; arenaMusicScript.signalMusicEvent("startGame"); } public function getEmptyClosestVillage():VillageZone{ var _local3:VillageZone; var _local1:Number = 1000000; var _local2:VillageZone; for each (_local3 in mVillageArray) { if (!_local3.mVillageBuilt){ if (Math.abs((_local3.mXPos - (mPlayerDino.Pawn.the.x + (mPlayerDino.Pawn.the.width / 2)))) < _local1){ _local1 = Math.abs((_local3.mXPos - (mPlayerDino.Pawn.the.x + (mPlayerDino.Pawn.the.width / 2)))); _local2 = _local3; }; }; }; return (_local2); } public function spawnObject(_arg1:Array):void{ NetworkSpawner.spawnObject(_arg1); } public function transitionCameraToDino(_arg1:Number=-1, _arg2:Number=-1):void{ if (_arg1 == -1){ TileManager.transitionPeriod = 100; TileManager.transitionSpeed = 1; trace(("GAMEMGR TRANSITION CAM TO DINO: permcenter==" + TileManager.AVATAR.permCenter.y)); trace(("GAMEMGR TRANSITION CAM TO DINO: playerDino==" + mPlayerDino.permCenter.y)); TileManager.transitionPoint = new Point(((TileManager.AVATAR.Pawn.the.x + TileManager.AVATAR.permCenter.x) - mPlayerDino.Pawn.the.x), (((TileManager.AVATAR.Pawn.the.y - (150 / TileManager.mZoomLevel)) + TileManager.AVATAR.permCenter.x) - mPlayerDino.Pawn.the.y)); TileManager.setAvatar(mPlayerDino); } else { TileManager.transitionPeriod = 100; TileManager.transitionSpeed = 1; TileManager.transitionPoint = new Point((_arg1 - mPlayerDino.Pawn.the.x), ((_arg2 - (150 / TileManager.mZoomLevel)) - mPlayerDino.Pawn.the.y)); TileManager.setAvatar(mPlayerDino); }; } public function getEnemyClosestVillage():VillageZone{ var _local3:VillageZone; var _local1:Number = 1000000; var _local2:VillageZone; for each (_local3 in mVillageArray) { if (_local3.mOwnerID != mPlayerInfo.mUserID){ if (Math.abs((_local3.mXPos - (mPlayerDino.Pawn.the.x + (mPlayerDino.Pawn.the.width / 2)))) < _local1){ _local1 = Math.abs((_local3.mXPos - (mPlayerDino.Pawn.the.x + (mPlayerDino.Pawn.the.width / 2)))); _local2 = _local3; }; }; }; return (_local2); } public function setPlayerDino(_arg1:int):void{ var _local2:MelbaObject; if (airStriking){ return; }; if (mPlayerDino == null){ _local2 = getNetworkedObject(_arg1); if (_local2 == null){ return; }; nowSettingPlayerDino(_local2); } else { if (mPlayerDino != null){ if (mPlayerDino.ID.Value != _arg1){ _local2 = getNetworkedObject(_arg1); if (_local2 == null){ return; }; nowSettingPlayerDino(_local2); }; mPlayerDino.ID.Name = "player dino"; }; }; } public function sendDinoInfo():void{ var _local3:int; var _local1:Array = new Array("setDinoInfo", NetworkManager.myUsername, NetworkManager.myPassword); var _local2:int; while (_local2 < myAccountDinos.length) { if (myAccountDinos[_local2] != null){ _local1.push(("dino" + _local2)); _local1.push(myAccountDinos[_local2].dinoType); _local1.push(myAccountDinos[_local2].dinoName); _local3 = 0; while (_local3 < myAccountDinos[_local2].accessories.length) { _local1.push(myAccountDinos[_local2].accessories[_local3]); _local3++; }; }; _local2++; }; sendServerMessage(_local1); } public function discoPause():void{ UIManager.inMenu = true; if (mPlayerDino != null){ mPlayerDino.inMenu = true; mPlayerDino.inChat = true; }; } public function set airStriking(_arg1:Boolean):void{ airStrikingB = _arg1; } public function getNetworkedObject(_arg1:int):MelbaObject{ var _local2:MelbaObject; for each (_local2 in mNetworkedObjects) { if (_local2.ID.Value == _arg1){ return (_local2); }; }; return (null); } public function getMessageSize(_arg1:Array):int{ var _local3:String; var _local2:int; for each (_local3 in _arg1) { _local2 = (_local2 + _local3.length); }; return (_local2); } public function spawnTree(_arg1:Number):void{ var _local3:Sprite; var _local4:MelbaTile; var _local6:int; var _local8:int; var _local2:int = Math.round((Math.random() * 3)); if (arena == "winter"){ switch (Math.round((Math.random() * 5))){ case 0: _local3 = AssetLoader.getAssetSP("snowMountain", "snowTree1"); break; case 1: _local3 = AssetLoader.getAssetSP("snowMountain", "snowTree2"); break; case 2: _local3 = AssetLoader.getAssetSP("snowMountain", "snowTree3"); break; case 3: _local3 = AssetLoader.getAssetSP("snowMountain", "snowTree4"); break; default: _local3 = AssetLoader.getAssetSP("snowMountain", "snowTree5"); }; } else { if (arena == "desert"){ switch (Math.round((Math.random() * 3))){ case 0: _local3 = AssetLoader.getAssetSP("desertArena", "cactus1"); break; case 1: _local3 = AssetLoader.getAssetSP("desertArena", "cactus2"); break; default: _local3 = AssetLoader.getAssetSP("desertArena", "cactus3"); }; } else { if (arena == "waste"){ switch (Math.round((Math.random() * 5))){ case 0: _local3 = AssetLoader.getAssetSP("wasteArena", "tree3"); break; case 1: _local3 = AssetLoader.getAssetSP("wasteArena", "tree2"); break; case 2: _local3 = AssetLoader.getAssetSP("wasteArena", "structure5"); break; case 3: _local3 = AssetLoader.getAssetSP("wasteArena", "structure4"); break; default: _local3 = AssetLoader.getAssetSP("wasteArena", "tree1"); }; } else { if (arena == "jungle"){ switch (Math.round((Math.random() * 7))){ case 0: _local3 = AssetLoader.getAssetSP("jungleArena", "tree4"); break; case 1: _local3 = AssetLoader.getAssetSP("jungleArena", "tree3"); break; case 2: _local3 = AssetLoader.getAssetSP("jungleArena", "tree2"); break; default: _local3 = AssetLoader.getAssetSP("jungleArena", "tree1"); }; } else { return; }; }; }; }; _local3.scaleX = (_local3.scaleY = 2); var _local5:Boolean; var _local7:int = mVillageArray.length; var _local9:int = mSlowZonePosArray.length; var _local10:int; _local10 = 0; while (_local10 < _local7) { _local6 = int((_arg1 - mVillageArray[_local10].mXPos)); if (_local6 < 0){ _local6 = -(_local6); }; if (_local6 < 600){ _local5 = true; }; _local10++; }; _local10 = 0; while (_local10 < _local9) { _local8 = int((_arg1 - mSlowZonePosArray[_local10])); if (_local8 < 0){ _local8 = -(_local8); }; if (_local8 < 400){ _local5 = true; }; _local10++; }; if ((((_local2 == 0)) && (!(_local5)))){ _local4 = new MelbaTile(Canvas_Rock_Back, new MelbaPawn(_local3, 2), _arg1, (mTerrain.getHeight(_arg1) + 60), "tree"); _local4.Pawn.the.x = (_local4.Pawn.the.x - (_local4.Pawn.the.rotation / 2)); } else { if (!_local5){ _local4 = new MelbaTile(Canvas_Rock_Front, new MelbaPawn(_local3, 2), _arg1, ((mTerrain.getHeight(_arg1) + 60) + (Math.random() * 40)), "tree"); _local4.Pawn.the.x = (_local4.Pawn.the.x - _local4.Pawn.the.rotation); }; }; } public function updateDinoInfo(_arg1:Array):void{ myAccountDinos = new Array(null, null, null); var _local2 = -1; var _local3 = 4; while (_local3 < _arg1.length) { trace(((_local3 + ":") + _arg1[_local3])); if (_arg1[_local3] == "dino0"){ _local2 = 0; myAccountDinos[_local2] = new DinoInfo(_arg1[(_local3 + 1)], _arg1[(_local3 + 2)]); _local3 = (_local3 + 2); } else { if (_arg1[_local3] == "dino1"){ _local2 = 1; myAccountDinos[_local2] = new DinoInfo(_arg1[(_local3 + 1)], _arg1[(_local3 + 2)]); _local3 = (_local3 + 2); } else { if (_arg1[_local3] == "dino2"){ _local2 = 2; myAccountDinos[_local2] = new DinoInfo(_arg1[(_local3 + 1)], _arg1[(_local3 + 2)]); _local3 = (_local3 + 2); } else { myAccountDinos[_local2].addAccessory(_arg1[_local3]); }; }; }; _local3++; }; } public function nowSettingPlayerDino(_arg1:MelbaObject):void{ mPlayerDino = Dino(_arg1); if (!mPlayerDino.respawning){ TileManager.setAvatar(mPlayerDino); }; UIManager.mDino = mPlayerDino; mPlayerDino.mPlayerOwner = mPlayerInfo; } public function spawnGroup(_arg1:String, _arg2:int, _arg3:int=5, _arg4:int=450):void{ var _local6:int; var _local5:int; var _local7:int = int(((Math.random() * (_arg3 - 1)) + 1)); _local5 = 0; while (_local5 < _local7) { _local6 = (int(((Math.random() * _arg4) + (_arg4 * _local5))) + _arg2); if (_arg1 == "rock"){ spawnRock(Number(_local6)); }; if (_arg1 == "tree"){ spawnTree(Number(_local6)); }; _local5++; }; } public function removeFromNetworkList(_arg1:Tickable):void{ var _local2:int; while (_local2 < mNetworkedObjects.length) { if (mNetworkedObjects[_local2].ID.Value == _arg1.ID.Value){ mNetworkedObjects[_local2] = mNetworkedObjects[(mNetworkedObjects.length - 1)]; mNetworkedObjects.pop(); break; }; _local2++; }; } public function splodeVillagers(_arg1:BallisticProjectile):void{ var _local4:Number; var _local2:int; while (_local2 < villagers.length) { if (villagers[_local2].Pawn != null){ if (_arg1.Pawn.the.x > (villagers[_local2].Pawn.the.x - 200)){ if (_arg1.Pawn.the.x < (villagers[_local2].Pawn.the.x + 200)){ _local4 = -1; if (_arg1.Pawn.the.x < villagers[_local2].Pawn.the.x){ _local4 = 1; }; villagers[_local2].splode(_local4); villagers[_local2].myKillFlag = true; }; }; }; _local2++; }; var _local3:int; while (_local3 < villagers.length) { if (villagers[_local3].myKillFlag){ if (_local3 == (villagers.length - 1)){ villagers.pop(); } else { villagers[_local3] = villagers.pop(); }; } else { _local3++; }; }; } public function sendServerMessage(_arg1:Array):void{ if (!connectedToSandbox){ NetworkManager.serverMessage(_arg1); } else { sandboxServer.handleEvent(_arg1); }; if (sandboxServer != null){ sandboxServer.handleEvent(_arg1); }; if (tutorialScripter != null){ tutorialScripter.inputEvent(_arg1); }; } public function getMyClosestVillageTier(_arg1:int):VillageZone{ var _local4:VillageZone; var _local2:Number = 1000000; var _local3:VillageZone; for each (_local4 in mVillageArray) { if (_local4.mOwnerID == mPlayerInfo.mUserID){ if (_local4.mVillageLevel == _arg1){ if (Math.abs((_local4.mXPos - (mPlayerDino.Pawn.the.x + (mPlayerDino.Pawn.the.width / 2)))) < _local2){ _local2 = Math.abs((_local4.mXPos - (mPlayerDino.Pawn.the.x + (mPlayerDino.Pawn.the.width / 2)))); _local3 = _local4; }; }; }; }; return (_local3); } public function win():void{ trace("GOT WIN ACTION UP IN HERE!!!"); SoundManager.stopAllFX(); SoundManager.playFX("CTR_VillagersCheerC"); var _local1:WinLossScreen = new WinLossScreen(GameData.BattleIntroBase, "win"); resultsScreen = MovieClip(_local1.base); Main.winLossScreen = _local1; Main.endGame(); } public function disconnect():void{ trace("GOT DISCONNECT ACTION UP IN HERE!!!"); SoundManager.stopAllFX(); resultsScreen = AssetLoader.getAssetMC("misc", "disconnectScreen"); GameData.BattleIntroBase.stage.addChild(resultsScreen); Main.endGame("disco"); } public function startTutorial(_arg1:int=-1):void{ tutorialScripter = new TutorialScript(_arg1); if (_arg1 != -1){ esc_widget = AssetLoader.getAssetMC("tutorial", "esc_widget"); GameData.GUI_BASE.addChild(esc_widget); }; } public function extractObjectData(_arg1:Array, _arg2:int):Array{ var _local3:Array = new Array(_arg1[_arg2]); var _local4:int = (_arg2 + 1); while (_local4 < _arg1.length) { if (((_arg1[_local4].match(/^T_*/)) || (_arg1[_local4].match(/^E_*/)))){ if (!_arg1[_local4].match("Tan")){ break; }; }; _local3.push(_arg1[_local4]); _local4++; }; return (_local3); } public function clusterBombSplode(_arg1:int):void{ var _local2:MelbaObject; var _local3:BallisticProjectile; for each (_local2 in mNetworkedObjects) { if ((_local2 is BallisticProjectile)){ _local3 = BallisticProjectile(_local2); if (_arg1 == _local3.ID.Value){ MovieClip(_local3.Pawn.content).gotoAndPlay(2); }; }; }; } } }//package dinowaurs.managers
Section 75
//ItemManager (dinowaurs.managers.ItemManager) package dinowaurs.managers { import flash.events.*; import dinowaurs.betaMenu.*; import dinowaurs.*; import engine.core.*; import engine.networking.*; public class ItemManager { public static var localTestDNAInventory:Array; public static var currPurchaseItem:KongItem; public static var itemInventory:Array; public static var ownedAccessories:Array; public static var allAccessories:Array; public static var dnaAccessories:Array; public static var localTestAllItems:Array; public static var localTest:Boolean = true; public static var console:Console; public static var itemsBeenGot:Boolean = false; public static var mInitialized:Boolean = false; public static var boostPrompt:MenuScreen; public static var localTestInventory:Array; public static function purchaseItemDNA(_arg1:KongItem):void{ NetworkManager.serverMessage(["dnaPurchase", _arg1.identifier]); NetworkManager.serverMessage(["getDNAAccessories"]); NetworkManager.serverMessage(["playerStats", NetworkManager.myUsername]); currPurchaseItem = _arg1; spawnBoostPrompt(); } public static function dnaInventoryGot(_arg1:Array):void{ var _local2:String; var _local3:Object; var _local4:KongItem; dnaAccessories = new Array(); for each (_local2 in _arg1) { if (_local2 != "dnaAccessories"){ _local3 = new Object(); _local3.identifier = _local2; _local4 = new KongItem(_local3, true); dnaAccessories.push(_local4); }; }; if (Main.betaMenu != null){ Main.betaMenu.updateAccessoryCounters(); }; } public static function requestInventory():void{ NetworkManager.serverMessage(["getDNAAccessories"]); if (!localTest){ NetworkManager.sendXtMessage("KongregateExtension", "kongLoadUserItems", {}, "json"); } else { localInventory(); }; } public static function getItem(_arg1:String):KongItem{ var _local2:KongItem; var _local3:*; var _local4:KongItem; if (allAccessories == null){ if (!localTest){ return (null); }; _local3.name = _arg1; _local3.description = ""; _local3.price = 5; _local3.identifier = _arg1; _local4 = new KongItem(_local3, false); return (_local4); }; for each (_local2 in allAccessories) { if (_local2.identifier.match(_arg1)){ return (_local2); }; }; return (null); } public static function requestAllItems():void{ if (!localTest){ NetworkManager.sendXtMessage("KongregateExtension", "kongLoadItems", {}, "json"); } else { localAllItems(); }; } public static function initialize(_arg1:Console){ if (mInitialized){ return; }; allAccessories = new Array(); ownedAccessories = new Array(); dnaAccessories = new Array(); itemInventory = new Array(); console = _arg1; if (((NetworkManager.ip.match("127.0.0.1")) || (NetworkManager.ip.match("192.168.0.106")))){ localTest = true; } else { localTest = false; }; if (localTest){ localTestAllItems = new Array("beekeepermask_head", "bomberglasses_head", "fezhat_head", "helmetknight_head", "fro_head", "gasmask_head", "mammothmask_head", "propellerhat_head", "oldbeard_head", "sombrero_head", "tophat_head", "spartanhelmet_head", "vikinghelmet_head", "popehat_head", "namhat_head", "ww2helmet_head", "nixonmask_head", "raincloud_head", "tribalmask_head", "angelwing_back", "butterflytrampstamp_back", "carrotstick_back", "gascap_back", "haytarget_back", "indyflag_back", "jet_back", "lance_back", "mexiblanket_back", "moped_back", "navalsash_back", "peaceflag_back", "raptorpouch_back", "sabre_back", "sixpacknecklace_back", "skullnecklace_back", "turntable_back", "zipper_back", "barbwire_foot", "footcast_foot", "garterbelt_foot", "kneepad_foot", "legwarmer_foot", "revolver_foot", "sweatband_foot", "toiletpaper_foot", "trashcan_foot", "bowieknife_tail", "bunnytail_tail", "gothband_tail", "kite_tail", "maracas_tail", "mermaidtail_tail", "piranha_tail", "biz_suit_suit", "space_suit_suit", "tanuki_suit_suit"); localTestInventory = new Array("bowieknife_tail"); localAllItems(); localInventory(); }; } public static function getBuyables():Array{ var _local2:KongItem; var _local3:Boolean; var _local4:KongItem; var _local5:KongItem; var _local1:Array = new Array(); for each (_local2 in allAccessories) { _local3 = false; for each (_local4 in ownedAccessories) { if (_local2.identifier == _local4.identifier){ _local3 = true; }; }; for each (_local5 in dnaAccessories) { if (_local2.identifier == _local5.identifier){ _local3 = true; }; }; if (!_local3){ _local1.push(_local2); }; }; return (_local1); } public static function inventoryGot(_arg1:Array):void{ var _local2:*; var _local3:KongItem; (ownedAccessories = new Array()); for each (var _local6 in _arg1) { _local2 = _local6; _local6; _local3 = new KongItem(_local2, true); ownedAccessories.push(_local3); }; if (Main.betaMenu != null){ Main.betaMenu.updateAccessoryCounters(); }; } public static function cancelBoost(_arg1:MouseEvent):void{ if (boostPrompt != null){ boostPrompt.myKillFlag = true; }; currPurchaseItem = null; } public static function equipItem(_arg1:KongItem):void{ } public static function localAllItems():void{ var _local1:KongItem; var _local2:String; var _local3:Object; var _local4:KongItem; if (localTest){ for each (var _local7 in localTestAllItems) { _local2 = _local7; _local7; _local3 = new Object(); (_local3.name = "Test object"); (_local3.description = "Guaranteed to stay in the air, even when there's no wind! Or atmosphere! Tetanus vaccine not included.*10"); (_local3.identifier = _local2); (_local3.price = 100); _local4 = new KongItem(_local3, false); allAccessories.push(_local4); }; }; for each (_local7 in allAccessories) { _local1 = _local7; _local7; }; if (Main.betaMenu != null){ Main.betaMenu.updateAccessoryCounters(); }; } public static function spawnBoostPrompt():void{ var _local1:MelbaButton; boostPrompt = new MenuScreen(GameData.BattleIntroBase, "accessory_boostNotice"); for each (_local1 in boostPrompt.buttons) { if (_local1.base.name.match("accessoryCancel")){ _local1.base.addEventListener(MouseEvent.MOUSE_DOWN, cancelBoost); } else { if (_local1.base.name.match("boostScreen")){ _local1.base.addEventListener(MouseEvent.MOUSE_DOWN, gotoBoostAndEquip); }; }; }; } public static function allItemsGot(_arg1:Array):void{ var _local2:*; var _local3:KongItem; (itemsBeenGot = true); (allAccessories = new Array()); for each (var _local6 in _arg1) { _local2 = _local6; _local6; _local3 = new KongItem(_local2, true); allAccessories.push(_local3); }; if (Main.betaMenu != null){ Main.betaMenu.updateAccessoryCounters(); }; NetworkManager.sfc.sendXtMessage("KongregateExtension", "kongLoadKredAccount", {}, "json"); } public static function onItemPurchaseResult(_arg1:Object){ if (!_arg1.success){ console.appendLine((("Item Purchase Error == " + _arg1.error) + "\n")); } else { requestInventory(); GameData.console.appendLine(" doing onItemPurchaseResult kred query!"); NetworkManager.sfc.sendXtMessage("KongregateExtension", "kongLoadKredAccount", {}, "json"); spawnBoostPrompt(); }; } public static function localInventory():void{ var _local1:KongItem; var _local2:String; var _local3:Object; var _local4:KongItem; if (localTest){ ownedAccessories = new Array(); for each (_local2 in localTestInventory) { _local3 = new Object(); _local3.name = "Test object"; _local3.description = "Guaranteed to stay in the air, even when there's no wind! Or atmosphere! Tetanus vaccine not included.*10"; _local3.identifier = _local2; _local3.price = 100; _local4 = new KongItem(_local3, true); ownedAccessories.push(_local4); }; }; for each (_local1 in ownedAccessories) { }; if (Main.betaMenu != null){ Main.betaMenu.updateAccessoryCounters(); }; } public static function purchaseItem(_arg1:KongItem):void{ if (KongApiManager.shadow){ return; }; currPurchaseItem = _arg1; if (((!(localTest)) && (!(Main.unKong)))){ KongApiManager.kongregate.mtx.purchaseItems([_arg1.identifier], onItemPurchaseResult); } else { localTestInventory.push(_arg1.identifier); requestInventory(); }; } public static function gotoBoostAndEquip(_arg1:MouseEvent):void{ if (boostPrompt != null){ Main.betaMenu.equipAcc(currPurchaseItem.accessoryHandle); boostPrompt.myKillFlag = true; Main.betaMenu.creationScreen.parentScreen.topTab.base.addChild(new BoostScreen()); }; currPurchaseItem = null; } public static function get AllOwnedItems():Array{ var _local2:KongItem; var _local3:KongItem; var _local1:Array = new Array(); for each (_local2 in ownedAccessories) { _local1.push(_local2); }; for each (_local3 in dnaAccessories) { _local1.push(_local3); }; return (_local1); } } }//package dinowaurs.managers
Section 76
//KongApiManager (dinowaurs.managers.KongApiManager) package dinowaurs.managers { import flash.events.*; import flash.display.*; import engine.core.*; import flash.net.*; import engine.networking.*; public class KongApiManager { public static var shadow:Boolean = false; public static var oppAvatarURL:String; public static var myAvatarURL:String; public static var justSignedIn:Boolean = false; public static var kongregate; public static var initialized:Boolean = false; public static var stage:Sprite; public static function onKongPageLogin(_arg1:Event):void{ if (Main.unKong){ return; }; Main.kongUsername = kongregate.user.getName(); Main.kongPW = kongregate.user.getSessionStamp(); justSignedIn = true; Main.GUEST_MODE_ENABLED = false; NetworkManager.myUsername = Main.kongUsername; if (Main.GAME_MANAGER == null){ GameData.console.appendLine("disconnect now!"); NetworkManager.disconnect(); } else { Main.reloginAfterGame = true; }; } public static function ioerror(_arg1:IOErrorEvent):void{ GameData.console.appendLine((_arg1.text + "\n")); } public static function fakePageLogin(_arg1:String, _arg2:String):void{ Main.kongUsername = _arg1; Main.kongPW = _arg2; justSignedIn = true; Main.GUEST_MODE_ENABLED = false; NetworkManager.myUsername = Main.kongUsername; if (Main.GAME_MANAGER == null){ GameData.console.appendLine("disconnect now!"); NetworkManager.disconnect(); } else { Main.reloginAfterGame = true; }; } public static function initialize(_arg1:String, _arg2:Sprite):void{ if (initialized){ return; }; initialized = true; stage = _arg2; if (_arg1 == "http://www.kongregate.com/flash/API_AS3_Local.swf"){ shadow = true; }; var _local3:URLRequest = new URLRequest(_arg1); var _local4:Loader = new Loader(); _local4.load(_local3); stage.addChild(_local4); _local4.contentLoaderInfo.addEventListener(Event.COMPLETE, KongApiManager.loadComplete); _local4.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioerror); } public static function spawnTab():void{ if (Main.unKong){ return; }; kongregate.chat.showTab("Battle Chat", "Battle Chat", {size:0.2}); kongregate.chat.displayCanvasImage("myAvatar", myAvatarURL, {x:10, y:3}); var _local1:String = NetworkManager.myUsername; if (_local1.match("Guest")){ _local1 = "Guest-a-saurus"; }; kongregate.chat.displayCanvasText("myUsername", _local1, {x:30, y:3}, {font:"Verdana", size:11, color:0x990000}); kongregate.chat.displayCanvasImage("oppAvatar", oppAvatarURL, {x:10, y:23}); var _local2:String = Main.opponentUsername; if (_local2.match("Guest")){ _local2 = "Guest-a-saurus"; }; kongregate.chat.displayCanvasText("oppUsername", _local2, {x:30, y:23}, {font:"Verdana", size:11, color:3368601}); } public static function loadComplete(_arg1:Event):void{ GameData.console.appendLine("kong services loaded \n"); kongregate = _arg1.target.content; kongregate.services.connect(); kongregate.services.addEventListener("login", onKongPageLogin); trace(("\n" + kongregate.services)); trace(("\n" + kongregate.user)); trace(("\n" + kongregate.scores)); trace(("\n" + kongregate.stats)); } } }//package dinowaurs.managers
Section 77
//Main (dinowaurs.managers.Main) package dinowaurs.managers { import flash.events.*; import flash.display.*; import dinowaurs.dinos.*; import flash.text.*; import dinowaurs.betaMenu.*; import dinowaurs.*; import engine.display.*; import it.gotoandplay.smartfoxserver.*; import dinowaurs.audio.*; import engine.core.*; import flash.system.*; import flash.utils.*; import flash.media.*; import it.gotoandplay.smartfoxserver.data.*; import engine.networking.*; import dinowaurs.tutorial.*; import flash.ui.*; public class Main { public static var resultsScreen:MovieClip; public static var menuMusic:SoundEffect; public static var gameEndUpdateStats:Boolean = false; public static var introDone:Boolean = false; public static var gameSettingsTimer:int = 100; public static var kongUsername:String; public static var currBoostCode:String = ""; public static var currentDino:int = 0; public static var myIntro:GameIntro; public static var dinoDupEntryClass:Class = Main_dinoDupEntryClass; public static var ALL_OBJECTS:Dictionary; public static var GAME_MANAGER:GameManager; public static var cannonOnly:Boolean = true; public static var unKong:Boolean = false; public static var playerStatsForUpdate:PlayerStats; public static var tutsEnabled:Boolean = true; public static var pickedArena:String; public static var winLossScreen:WinLossScreen; public static var tutorialGame:int = -1; public static var menuMusicScript:MenuScript; public static var ultraLowDetail:Boolean = false; public static var savedDinoInfo:DinoInfo; public static var enemyDinoInfo:DinoInfo; public static var debugBtns:Boolean = false; public static var wonTheGame:Boolean = true; public static var battleIntro:BattleIntro; private static var owned_accessories:Array; public static var matchType:String = "quick"; public static var thingThing:Array = new Array(); public static var loaderViewText:TextField; public static var ARENA_DETAIL:String; public static var shortcutTimer:int = 30; public static var stageRef:Stage; public static var rankedMatch:Boolean = false; public static var flashingTut:int = 0; public static var newStaticDinos:Array; public static var dinoSlots:Array; public static var initialized:Boolean = false; public static var initialGameState:Array; public static var villageLosses:int = 0; public static var arenaType:String; public static var all_objects_output:MovieClip; public static var kongPW:String; public static var myUserID:int; public static var savedArenaLobby:String = null; public static var myPlayerStats:PlayerStats; public static var previewingAcc:String; public static var tickablesOutput:MovieClip; public static var myStatsBreakdown:MovieClip; public static var fadeTest:SoundEffect; public static var savedMenuTab:String = null; public static var dinoDupEntries:Array; public static var textFormatMap:Array; public static var connectingScreen:MovieClip; public static var opponentUsername:String = "Intuition"; public static var loginTimer:int = 100; public static var graphicsDetailsBtns:Array = new Array(); public static var betaMenu:BetaMenu; public static var oldDna:int; public static var debugON:Boolean = false; public static var reloginAfterGame:Boolean = false; public static var lastQuality:String; public static var statsQueryName:String; public static var enemyPlayerStats:PlayerStats; public static var killstreaks:Array; public static var villageKills:int = 0; public static var flameCount:int = 0; public static var oldLevel:int; public static var mode:int = 0; public static var gameStatsForUpdate:GameStats; public static var GUEST_MODE_ENABLED:Boolean = false; public static var kredBalance:int; public static var deathstreaks:Array; public static var gameStats:GameStats; public static var GAME_SETTINGS:GameSettings; public static var friendsList:Array; public static var bsod:MovieClip; public static var initSoundFlag:Boolean = false; public static var arenaDetailBtns:Array = new Array(); public static var testValue:Number = -2; public static function challengeRejected(_arg1:String):void{ if (betaMenu == null){ return; }; if (betaMenu.currentPlayerSummarized != null){ betaMenu.currentPlayerSummarized.mySummary.challengeRejected(); }; } public static function addArenaDetailBtn(_arg1:DetailButton):void{ arenaDetailBtns.push(_arg1); } public static function initTextFormatMap():void{ textFormatMap = new Array(); textFormatMap["weaponTutBody"] = new formatGuy(0.2, -1); textFormatMap["weaponTutHead"] = new formatGuy(-3, 1); textFormatMap["goldwidgetTutBody"] = new formatGuy(0.2, -1); textFormatMap["goldwidgetTutHead"] = new formatGuy(-2, 1); textFormatMap["tierTutBody"] = new formatGuy(0.2, -1); textFormatMap["tierTutHead"] = new formatGuy(-2, 1); textFormatMap["villagemenuTutBody"] = new formatGuy(0.2, -1); textFormatMap["villagemenuTutHead"] = new formatGuy(-2, 1); textFormatMap["gameobjTutBody"] = new formatGuy(0.2, -1); textFormatMap["gameobjTutHead"] = new formatGuy(-3, 1); textFormatMap["battleintroDinoName"] = new formatGuy(-1.5, 0); textFormatMap["battleintroUserName"] = new formatGuy(-1.5, 0); textFormatMap["battleintroLoadBar"] = new formatGuy(0, 0); textFormatMap["battleintroMapName"] = new formatGuy(-2, 0); textFormatMap["battleintroStats"] = new formatGuy(-0.3, 5); textFormatMap["accpreviewTitle"] = new formatGuy(-2, 0); textFormatMap["accpreviewDescription"] = new formatGuy(0, 0); textFormatMap["accpreviewKreds"] = new formatGuy(0, 0); textFormatMap["accpreviewDNA"] = new formatGuy(0, 0); textFormatMap["arenalobbyName"] = new formatGuy(-2, 0); textFormatMap["arenalobbyPlayerCount"] = new formatGuy(-0.4, 0); textFormatMap["arenalobbyPlayerStatus"] = new formatGuy(-0.4, 0); textFormatMap["battlescreenArenaNameDefault"] = new formatGuy(-1.3, 0); textFormatMap["battlescreenArenaName"] = new formatGuy(-1, 0); textFormatMap["accscreenDNA"] = new formatGuy(0, 0); textFormatMap["dinoselectorDinoName"] = new formatGuy(-1, 0); textFormatMap["dinoselectorWinLose"] = new formatGuy(0, 0); textFormatMap["lobbyplayerbuttonName"] = new formatGuy(-0.4, 0); textFormatMap["matchingscreenUserName"] = new formatGuy(-1.5, 0); textFormatMap["matchingscreenDinoName"] = new formatGuy(-1.5, 0); textFormatMap["matchingscreenPlayersOnline"] = new formatGuy(-1.5, 0); textFormatMap["vilmenuBuyPrice"] = new formatGuy(-0.5, 0); textFormatMap["vilmenuShootPrice"] = new formatGuy(-0.5, 0); textFormatMap["sliderValue"] = new formatGuy(-0.1, 0); textFormatMap["winlossDNA"] = new formatGuy(0, 0); textFormatMap["winlossMatchLength"] = new formatGuy(0, 0); textFormatMap["menuUserName"] = new formatGuy(-1, 0); textFormatMap["playerstatsDisplay"] = new formatGuy(0.3, 4.5); textFormatMap["playersummaryWinLoss"] = new formatGuy(-0.5, 0); textFormatMap["playersummaryRank"] = new formatGuy(-0.5, 0); textFormatMap["playersummaryRating"] = new formatGuy(-0.5, 0); textFormatMap["playersummaryDinoName"] = new formatGuy(0, 0); textFormatMap["playersummaryPlayerName"] = new formatGuy(-1, 0); textFormatMap["challengeWinLoss"] = new formatGuy(-0.5, 0); textFormatMap["challengeRank"] = new formatGuy(-0.5, 0); textFormatMap["challengeRating"] = new formatGuy(-0.5, 0); textFormatMap["challengePlayerName"] = new formatGuy(0, 0); textFormatMap["earnScreenFlavor"] = new formatGuy(0.2, 0); textFormatMap["boostScreenItemName"] = new formatGuy(-1.3, 0); } public static function gotPlayerStats(_arg1:Array):void{ if (_arg1[3] == NetworkManager.myUsername){ if (myPlayerStats == null){ myPlayerStats = new PlayerStats(_arg1); } else { myPlayerStats.newStatsUpdate(_arg1); }; if (betaMenu != null){ betaMenu.statsUpdates(); }; if (winLossScreen != null){ winLossScreen.updateMyStats(myPlayerStats); }; if (gameEndUpdateStats){ updateKongStats(myPlayerStats, null); }; if (battleIntro != null){ battleIntro.myPlayerStatsUpdate(myPlayerStats); }; if (NetworkManager.loggedIn){ if (Main.bsod != null){ if (Main.bsod.parent != null){ Main.bsod.parent.removeChild(Main.bsod); }; Main.bsod = null; }; }; } else { if (_arg1[3] == opponentUsername){ enemyPlayerStats = new PlayerStats(_arg1); if (battleIntro != null){ battleIntro.loadRightStats(); }; if (winLossScreen != null){ winLossScreen.updateEnemyStats(enemyPlayerStats); }; } else { if (_arg1[3] == statsQueryName){ statsQueryName = ""; GameData.console.appendLine((((((("STATS: " + _arg1[3]) + " lvl=") + Math.floor(Math.sqrt(_arg1[7]))) + " elo=") + _arg1[10]) + "\n")); }; }; }; if (betaMenu != null){ if (betaMenu.currentArenaLobby != null){ betaMenu.currentArenaLobby.updateStats(_arg1); }; }; } public static function setGraphicDetail(_arg1:String):void{ var _local2:DetailButton; if (_arg1.match("LOW")){ _arg1 = "low"; } else { if (_arg1.match("MEDIUM")){ _arg1 = "medium"; } else { if (_arg1.match("HIGH")){ _arg1 = "high"; }; }; }; GAME_SETTINGS.GraphicsQuality = _arg1; saveGameSettings(); for each (_local2 in graphicsDetailsBtns) { _local2.tick(10); }; stageRef.quality = _arg1; } public static function gotPlayerBoosts(_arg1:Array):void{ if (_arg1[2] == NetworkManager.myUsername){ if (myPlayerStats != null){ myPlayerStats.boostCode = _arg1[3]; }; if (betaMenu != null){ betaMenu.statsUpdates(); }; if (winLossScreen != null){ winLossScreen.updateMyStats(myPlayerStats); }; if (gameEndUpdateStats){ updateKongStats(myPlayerStats, null); }; if (battleIntro != null){ battleIntro.myPlayerStatsUpdate(myPlayerStats); }; if (betaMenu != null){ betaMenu.updateDinoSelectors(); }; } else { if (_arg1[2] == opponentUsername){ if (enemyPlayerStats != null){ enemyPlayerStats.boostCode = _arg1[3]; if (battleIntro != null){ battleIntro.loadRightStats(); }; if (winLossScreen != null){ winLossScreen.updateEnemyStats(enemyPlayerStats); }; }; }; }; if (betaMenu != null){ if (betaMenu.currentArenaLobby != null){ betaMenu.currentArenaLobby.updateBoosts(_arg1); }; }; } public static function getDate():Date{ var _local1:Date = new Date(); _local1.getDate(); return (_local1); } public static function killDupDinoEntries():void{ var _local1:*; for each (_local1 in dinoDupEntries) { if (_local1.parent != null){ _local1.parent.removeChild(_local1); }; }; dinoDupEntries = new Array(); } public static function challengeCanceled(_arg1:String):void{ if (betaMenu == null){ return; }; if (betaMenu.currentArenaLobby != null){ betaMenu.currentArenaLobby.removeChallenge(_arg1); }; } public static function signalKill(_arg1:int):void{ if (killstreaks == null){ killstreaks = new Array(); killstreaks.push(-1); }; if (deathstreaks == null){ deathstreaks = new Array(); deathstreaks.push(-1); }; if (GAME_MANAGER != null){ if (GAME_MANAGER.mPlayerDino != null){ if (GAME_MANAGER.mPlayerDino.ID.Value == _arg1){ var _local2 = deathstreaks; var _local3 = (deathstreaks.length - 1); var _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; if (killstreaks[(killstreaks.length - 1)] > 0){ killstreaks.push(0); }; } else { _local2 = killstreaks; _local3 = (killstreaks.length - 1); _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; if (deathstreaks[(deathstreaks.length - 1)] > 0){ deathstreaks.push(0); }; }; }; }; } public static function stopMatching():void{ if (betaMenu != null){ if (betaMenu.matchingScreen != null){ NetworkManager.serverMessage(new Array("joinLobby", "Lobby")); betaMenu.matchingScreen.kill(); betaMenu.matchingScreen = null; }; }; } public static function acceptChallenge():void{ if (betaMenu == null){ return; }; if (betaMenu.currentPlayerSummarized != null){ if (betaMenu.currentPlayerSummarized.mySummary != null){ betaMenu.currentPlayerSummarized.mySummary.acceptChallenge(); }; }; } public static function updateOpponentUsername(_arg1:String):void{ opponentUsername = _arg1; NetworkManager.serverMessage(new Array("playerStats", opponentUsername)); } public static function challengeConfirmed(_arg1:String):void{ if (betaMenu == null){ return; }; if (betaMenu.currentPlayerSummarized != null){ betaMenu.currentPlayerSummarized.mySummary.challengeConfirmed(_arg1); }; } public static function saveGameSettings():void{ trace("now saving game settings!"); if (NetworkManager.state == 1){ return; }; var _local1:Array = new Array("setSettings", GAME_SETTINGS.GraphicsQuality, GAME_SETTINGS.ArenaQuality, GAME_SETTINGS.ToolTips, (GAME_SETTINGS.MusicVolume * 100), (GAME_SETTINGS.EffectsVolume * 100), GAME_SETTINGS.AccessoryScreenHelp, GAME_SETTINGS.BattleScreenHelp); NetworkManager.serverMessage(_local1); } public static function updateDupDinoEntries():void{ var _local1:*; var _local2:MelbaObject; var _local3:*; var _local4:Dino; for each (_local1 in dinoDupEntries) { _local1.network_sw.gotoAndStop(2); }; if (GAME_MANAGER != null){ for each (_local2 in GAME_MANAGER.mNetworkedObjects) { for each (_local3 in dinoDupEntries) { if (parseInt(_local3.id.text) == _local2.ID.Value){ _local4 = Dino(_local2); if (_local4.Pawn.the.visible){ _local3.visible_sw.gotoAndStop(1); } else { _local3.visible_sw.gotoAndStop(2); }; _local3.network_sw.gotoAndStop(1); }; }; }; }; } public static function get OWNED_ACCESSORIES():Array{ return (owned_accessories); } public static function signalVillageKill(_arg1:int):void{ if (GAME_MANAGER != null){ if (GAME_MANAGER.mPlayerInfo != null){ if (GAME_MANAGER.mPlayerInfo.mUserID == _arg1){ villageLosses++; } else { villageKills++; }; }; }; } public static function newStaticDino(_arg1:Array):void{ if (newStaticDinos == null){ newStaticDinos = new Array(); }; newStaticDinos.push(_arg1); } public static function endPreview(_arg1:String):void{ if (previewingAcc == _arg1){ if (savedDinoInfo != null){ dinoSlots[currentDino] = savedDinoInfo; }; savedDinoInfo = null; }; betaMenu.updateDinoViewers(); } public static function waitChallenge(_arg1:String, _arg2:String):void{ if (betaMenu != null){ if (betaMenu.currentPlayerSummarized != null){ betaMenu.currentPlayerSummarized.mySummary.waitChallenge(_arg2); }; }; } public static function setArenaDetail(_arg1:String):void{ var _local2:DetailButton; ARENA_DETAIL = _arg1; GAME_SETTINGS.ArenaQuality = _arg1; saveGameSettings(); for each (_local2 in arenaDetailBtns) { _local2.tick(10); }; } public static function sendDinoInfo(_arg1:int):void{ var _local5:String; var _local6:KongItem; var _local2:DinoInfo = dinoSlots[_arg1]; var _local3:Array = new Array("setDinoInfo", _arg1, _local2.dinoType, _local2.dinoName, _local2.dinoColor); if (_local2.dinoColor == null){ _local3[4] = "Intuition"; }; var _local4:* = ItemManager.AllOwnedItems; for each (_local5 in _local2.accessories) { for each (_local6 in _local4) { if (_local6.accessoryHandle == _local5){ _local3.push(_local6.identifier); }; }; }; trace(_local3); NetworkManager.serverMessage(_local3); } public static function removeArenaDetailBtn(_arg1:DetailButton):void{ var _local2:int; while (_local2 < arenaDetailBtns.length) { if (arenaDetailBtns[_local2].ID.Value == _arg1.ID.Value){ if (arenaDetailBtns.length == 1){ arenaDetailBtns = new Array(); } else { if (_local2 != (arenaDetailBtns.length - 1)){ arenaDetailBtns[_local2] = arenaDetailBtns.pop(); } else { arenaDetailBtns.pop(); }; }; } else { _local2++; }; }; } public static function setText(_arg1:TextField, _arg2:Number, _arg3:Number, _arg4:String):void{ var _local5:TextFormat = _arg1.defaultTextFormat; var _local6:TextFormat = new TextFormat(_local5.font, _local5.size, _local5.color, _local5.bold, _local5.italic, _local5.underline, null, null, _local5.align, _local5.leftMargin, _local5.rightMargin, _local5.indent); _local6.leading = _arg3; _local6.letterSpacing = _arg2; _arg1.text = _arg4; _arg1.defaultTextFormat = _local6; } public static function letsLogIn(_arg1:String, _arg2:String):void{ if (loaderViewText != null){ loaderViewText.text = (loaderViewText.text + (((_arg1 + " ") + _arg2) + " ")); }; kongUsername = _arg1; kongPW = _arg2; if (!initialized){ return; }; NetworkManager.login(kongUsername, kongPW); } public static function set OWNED_ACCESSORIES(_arg1:Array):void{ owned_accessories = _arg1; if (betaMenu != null){ betaMenu.updateAccessoryCounters(); }; } public static function challengeRequest(_arg1:String, _arg2:String):void{ if (betaMenu == null){ return; }; if (betaMenu.currentArenaLobby != null){ betaMenu.currentArenaLobby.spawnChallenge(_arg1, parseInt(_arg2)); }; } public static function startBattleIntro():void{ if (battleIntro == null){ battleIntro = new BattleIntro(dinoSlots[currentDino], enemyDinoInfo, GameData.BattleIntroBase); }; } public static function updateGameStats(_arg1:Array):void{ gameStats = new GameStats(); gameStats.networkUpdate(_arg1); if (gameEndUpdateStats){ updateKongStats(null, gameStats); }; if (resultsScreen != null){ trace("UPDATE GAME STATS LOAD PAGE!"); gameStats.loadPage(resultsScreen, 1); if (resultsScreen.left != null){ if (!opponentUsername.match("Guest")){ setTextF(resultsScreen.left.infoBox.username, "battleintroUserName", (opponentUsername + "'s")); } else { setTextF(resultsScreen.left.infoBox.username, "battleintroUserName", "Guest-a-saurus's"); }; if (opponentUsername == "Intuition"){ setTextF(resultsScreen.left.infoBox.dinoname, "battleintroDinoName", "IntuitionDino"); } else { if (enemyDinoInfo != null){ setTextF(resultsScreen.left.infoBox.dinoname, "battleintroDinoName", enemyDinoInfo.dinoName); }; }; resultsScreen.left.infoBox.award_egg.visible = false; resultsScreen.left.infoBox.award_bone.visible = false; resultsScreen.left.infoBox.award_meteor.visible = false; resultsScreen.left.infoBox.award_villager.visible = false; if (!GUEST_MODE_ENABLED){ setTextF(resultsScreen.right.infoBox.username, "battleintroUserName", (NetworkManager.myUsername + "'s")); } else { setTextF(resultsScreen.right.infoBox.username, "battleintroUserName", "Guest-a-saurus's"); }; setTextF(resultsScreen.right.infoBox.dinoname, "battleintroDinoName", dinoSlots[currentDino].dinoName); resultsScreen.right.infoBox.award_egg.visible = false; resultsScreen.right.infoBox.award_bone.visible = false; resultsScreen.right.infoBox.award_meteor.visible = false; resultsScreen.right.infoBox.award_villager.visible = false; }; }; enemyDinoInfo = null; } public static function menubtnOver(_arg1:MouseEvent):void{ MovieClip(_arg1.currentTarget).gotoAndStop(2); } public static function postGameChat(_arg1):void{ NetworkManager.oogChatMsg(_arg1.data.text, opponentUsername); } public static function killResultsScreen(_arg1:MouseEvent):void{ if (betaMenu == null){ betaMenu = new BetaMenu(); betaMenu.initialize(savedMenuTab); }; if (reloginAfterGame){ NetworkManager.disconnect(); }; if (winLossScreen != null){ winLossScreen = null; NetworkManager.serverMessage(["leftChat", opponentUsername]); }; if (!Main.unKong){ KongApiManager.kongregate.chat.closeTab(); }; if (!Main.unKong){ KongApiManager.kongregate.chat.removeEventListener("message", postGameChat); }; System.gc(); if (resultsScreen == null){ return; }; resultsScreen.play(); } public static function newDinoEntry(_arg1:Dino):void{ if (dinoDupEntries == null){ dinoDupEntries = new Array(); }; var _local2:* = new dinoDupEntryClass(); _local2.id.text = _arg1.ID.Value; _local2.type.text = _arg1.mDinoType; _local2.color.text = _arg1.mDinoColor; _local2.timeSpawned.text = getTimer(); if (debugON){ GameData.BattleIntroBase.addChild(_local2); }; _local2.y = (dinoDupEntries.length * _local2.height); dinoDupEntries.push(_local2); } public static function addGraphicsDetailBtn(_arg1:DetailButton):void{ graphicsDetailsBtns.push(_arg1); } public static function signalFlame(_arg1:int):void{ if (GAME_MANAGER != null){ if (GAME_MANAGER.mPlayerInfo != null){ if (GAME_MANAGER.mPlayerInfo.mUserID == _arg1){ flameCount++; }; }; }; } public static function endGame(_arg1:String="none", _arg2:MenuScreen=null):void{ var _local3:Tickable; gameEndUpdateStats = true; killDupDinoEntries(); stageRef.quality = "high"; for each (_local3 in FrameWatcher.registeredTickables) { if (_local3.ID.Name.match("terrain")){ _local3.myKillFlag = true; }; if ((_local3 is MelbaTile)){ _local3.myKillFlag = true; }; if ((_local3 is BoneImp)){ if (BoneImp(_local3).mClip.numChildren <= 0){ _local3.myKillFlag = true; }; }; }; NetworkManager.serverMessage(new Array("playerStats", NetworkManager.myUsername)); if (opponentUsername != "Intuition"){ NetworkManager.serverMessage(new Array("playerStats", opponentUsername)); }; if (GAME_MANAGER != null){ if (GAME_MANAGER.resultsScreen != null){ resultsScreen = GAME_MANAGER.resultsScreen; if (_arg1 != "disco"){ trace("END GAME LOAD PAGE!"); gameStats.loadPage(resultsScreen, 1); setTextF(resultsScreen.left.infoBox.username, "battleintroUserName", (opponentUsername + "'s")); if (opponentUsername == "Intuition"){ setTextF(resultsScreen.left.infoBox.dinoname, "battleintroDinoName", "IntuitionDino"); } else { if (enemyDinoInfo != null){ setTextF(resultsScreen.left.infoBox.dinoname, "battleintroDinoName", enemyDinoInfo.dinoName); }; }; setTextF(resultsScreen.right.infoBox.username, "battleintroUserName", (NetworkManager.myUsername + "'s")); setTextF(resultsScreen.right.infoBox.dinoname, "battleintroDinoName", dinoSlots[currentDino].dinoName); } else { enemyDinoInfo = null; }; }; GAME_MANAGER.endGame(); GAME_MANAGER = null; }; if (_arg2 != null){ resultsScreen = MovieClip(_arg2.base); }; enemyPlayerStats = null; NetworkManager.serverMessage(new Array("joinLobby", "Lobby")); menuMusicScript.signalMusicEvent("enterMenu"); if (((!((tutorialGame == -1))) && (!((_arg1 == "disco"))))){ killResultsScreen(null); }; tutorialGame = -1; if ((((winLossScreen == null)) && (!(Main.unKong)))){ KongApiManager.kongregate.chat.closeTab(); } else { if (!Main.unKong){ KongApiManager.kongregate.chat.addEventListener("message", postGameChat); }; }; System.gc(); } public static function menubtnOut(_arg1:MouseEvent):void{ MovieClip(_arg1.currentTarget).gotoAndStop(1); } public static function enterFrame(_arg1:Event):void{ var _local2:DinoInfo; updateDupDinoEntries(); if (initSoundFlag){ if (!SoundManager.mInitialized){ SoundManager.initialize(); }; }; if (mode == 1){ if (shortcutTimer <= 0){ if (myIntro != null){ myIntro.myKillFlag = true; myIntro.state = 5; shortcutTimer = 30; }; if (betaMenu.initialized){ if (dinoSlots[0].dinoType == "none"){ _local2 = new DinoInfo("bronto", "brontoMan"); dinoSlots[0] = _local2; sendDinoInfo(0); shortcutTimer = 50; } else { shortcutTimer = 20000000; }; }; }; shortcutTimer--; }; if (betaMenu != null){ if (betaMenu.currentArenaLobby == null){ if (savedArenaLobby != null){ betaMenu.currentArenaLobby = new ArenaLobby(savedArenaLobby); savedArenaLobby = null; }; }; }; if (all_objects_output != null){ all_objects_output.textBox.text = (System.totalMemory / 0x0400); }; if (tickablesOutput != null){ tickablesOutput.textBox.text = ("tickables:" + FrameWatcher.AcitveTickablesCount); tickablesOutput.textBox2.text = ("subscrib:" + FrameWatcher.SubscriberCount); }; if (betaMenu != null){ if (((introDone) && (!(betaMenu.initialized)))){ if (NetworkManager.loggedIn){ if (((!((myPlayerStats == null))) || (NetworkManager.myUsername.match("Guest")))){ trace("BETA MENU INITILIZED!"); GameData.console.appendLine("BetaMenuInitialize\n"); betaMenu.initialize(savedMenuTab); menuMusicScript.signalMusicEvent("enterMenu"); if (bsod != null){ if (bsod.parent != null){ bsod.parent.removeChild(bsod); bsod = null; }; }; }; }; }; }; if ((((myIntro == null)) && (!(introDone)))){ }; } public static function setTextF(_arg1:TextField, _arg2:String, _arg3:String):void{ if (textFormatMap[_arg2] == null){ _arg1.text = _arg3; return; }; var _local4:TextFormat = _arg1.defaultTextFormat; var _local5:TextFormat = new TextFormat(_local4.font, _local4.size, _local4.color, _local4.bold, _local4.italic, _local4.underline, null, null, _local4.align, _local4.leftMargin, _local4.rightMargin, _local4.indent); _local5.leading = formatGuy(textFormatMap[_arg2]).leading; _local5.letterSpacing = formatGuy(textFormatMap[_arg2]).letterSpacing; _arg1.text = _arg3; _arg1.defaultTextFormat = _local5; _arg1.setTextFormat(_local5); } public static function disco(_arg1:String):void{ var _local2:MovieClip = new DiscoScreen(_arg1); if (bsod != null){ if (bsod.parent != null){ bsod.parent.removeChild(bsod); }; bsod = null; }; bsod = _local2; GameData.BattleIntroBase.stage.addChild(_local2); if (GAME_MANAGER != null){ }; GameData.Canvas_Console.parent.addChild(GameData.Canvas_Console); } public static function startGame():void{ var _local1:Tickable; var _local2:Array; var _local3:Array; trace("hellow"); gameStatsForUpdate = null; playerStatsForUpdate = null; stageRef.quality = GAME_SETTINGS.GraphicsQuality; oldLevel = myPlayerStats.playerLevel; oldDna = myPlayerStats.dna; for each (_local1 in FrameWatcher.registeredTickables) { if ((((_local1 is MenuScreen)) || ((_local1 is BoneImp)))){ if (!(_local1 is BattleIntro)){ if ((_local1 is BoneImp)){ if (BoneImp(_local1).mClip.numChildren > 0){ BoneImp(_local1).swapClip(); }; }; _local1.myKillFlag = true; }; }; }; betaMenu.disableDetailBtns(); if (tutorialGame != -1){ Main.updateOpponentUsername("Intuition"); }; if (betaMenu.currentArenaLobby != null){ savedArenaLobby = betaMenu.currentArenaLobby.arenaName; betaMenu.currentArenaLobby.myKillFlag = true; betaMenu.currentArenaLobby = null; } else { savedArenaLobby = null; }; GAME_MANAGER = new GameManager(); GAME_MANAGER.ultraLowDetail = ultraLowDetail; if ((((((((pickedArena == "winter")) || ((pickedArena == "desert")))) || ((pickedArena == "waste")))) || ((pickedArena == "jungle")))){ GAME_MANAGER.gameStart(pickedArena); } else { GAME_MANAGER.gameStart(arenaType); }; trace("jiminy"); if (betaMenu != null){ betaMenu.hide(); if (betaMenu.matchingScreen != null){ betaMenu.matchingScreen.kill(); betaMenu.matchingScreen = null; }; if (betaMenu.baseScreen.topTab != null){ savedMenuTab = betaMenu.baseScreen.topTab.base.name; } else { savedMenuTab = "scr_title"; }; betaMenu.kill(); betaMenu = null; }; trace("ballsack"); if (!opponentUsername.match("Guest")){ UIManager.vsDisplay.him.text = opponentUsername; } else { UIManager.vsDisplay.him.text = "Guest-a-saurus"; }; if (!NetworkManager.myUsername.match("Guest")){ UIManager.vsDisplay.me.text = NetworkManager.myUsername; } else { UIManager.vsDisplay.me.text = "Guest-a-saurus"; }; trace(("Main.STARTGAME(): tutorialGame==" + tutorialGame)); if ((((tutorialGame == 0)) || ((tutorialGame == 1)))){ }; menuMusicScript.stopTune(); for each (_local2 in newStaticDinos) { GAME_MANAGER.updateStaticDinoInfo(_local2); }; newStaticDinos = new Array(); for each (_local3 in initialGameState) { GAME_MANAGER.fullNetworkUpdate(_local3); }; initialGameState = new Array(); GAME_MANAGER.createVegetation(); System.gc(); } public static function keydown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 77){ trace(("SubscribingTickables == " + FrameWatcher.SubscriberCount)); trace(("RegisteredTickables == " + FrameWatcher.AcitveTickablesCount)); }; if (_arg1.keyCode == 81){ if (GAME_MANAGER != null){ if (GAME_MANAGER.mPlayerDino != null){ if (GAME_MANAGER.mPlayerDino.inMenu){ return; }; }; }; }; if (_arg1.keyCode == 188){ }; if (_arg1.keyCode == 190){ if (GAME_MANAGER != null){ if (GAME_MANAGER.mPlayerDino != null){ if (GAME_MANAGER.mPlayerDino.inMenu){ return; }; }; }; if (tickablesOutput == null){ if (debugBtns){ tickablesOutput = AssetLoader.getAssetMC("misc", "tickableTool"); tickablesOutput.x = 400; stageRef.addChild(tickablesOutput); }; } else { stageRef.removeChild(tickablesOutput); tickablesOutput = null; }; }; if (_arg1.keyCode == 77){ if (GAME_MANAGER != null){ if (GAME_MANAGER.mPlayerDino != null){ if (GAME_MANAGER.mPlayerDino.inMenu){ return; }; }; }; }; if (_arg1.keyCode == 191){ if (GAME_MANAGER != null){ if (GAME_MANAGER.mPlayerDino != null){ if (GAME_MANAGER.mPlayerDino.inMenu){ return; }; }; }; trace("gooze"); if (all_objects_output == null){ if (debugBtns){ all_objects_output = AssetLoader.getAssetMC("misc", "all_objects_outputter"); stageRef.addChild(all_objects_output); all_objects_output.x = 500; }; } else { stageRef.removeChild(all_objects_output); all_objects_output = null; }; }; if (_arg1.keyCode == 78){ if (GAME_MANAGER != null){ if (GAME_MANAGER.mPlayerDino != null){ if (GAME_MANAGER.mPlayerDino.inMenu){ return; }; }; }; }; if (_arg1.keyCode == 27){ if (battleIntro == null){ stopMatching(); }; }; } public static function readyToStart():void{ NetworkManager.serverMessage(["readyToStart"]); } public static function setMappedFormat(_arg1:String, _arg2:Number, _arg3:Number):void{ textFormatMap[_arg1] = new formatGuy(_arg2, _arg3); } public static function initialize(_arg1:Stage, _arg2:TextField, _arg3:String, _arg4:String, _arg5:Boolean):void{ unKong = _arg5; kongUsername = _arg3; if (kongUsername.match("Guest")){ GUEST_MODE_ENABLED = true; }; kongPW = _arg4; initialized = true; initTextFormatMap(); loaderViewText = _arg2; initialGameState = new Array(); ALL_OBJECTS = new Dictionary(true); GAME_SETTINGS = new GameSettings(); stageRef = _arg1; _arg1.addEventListener(KeyboardEvent.KEY_DOWN, keydown); FrameWatcher.initialize(stageRef); betaMenu = new BetaMenu(); NetworkManager.initialize(); NetworkManager.connect(); ItemManager.initialize(GameData.console); gameStats = new GameStats(); stageRef.addEventListener(Event.ENTER_FRAME, enterFrame); if (kongUsername != null){ }; FPSDisplay.initialize(); AssetLoader.loadAsset("bg"); AssetLoader.loadAsset("villages"); AssetLoader.loadAsset("villagers"); AssetLoader.loadAsset("villageMenu"); AssetLoader.loadAsset("gameGui"); AssetLoader.loadAsset("sound"); AssetLoader.loadAsset("tutorial"); dinoSlots = new Array(); dinoSlots.push(new DinoInfo("none", "Click to add dino...")); dinoSlots.push(new DinoInfo("none", "Click to add dino...")); dinoSlots.push(new DinoInfo("none", "Click to add dino...")); menuMusicScript = new MenuScript(); myIntro = new GameIntro(GameData.BattleIntroBase); } public static function previewAcc(_arg1):void{ var _local2:String; if (savedDinoInfo != null){ return; }; previewingAcc = _arg1; savedDinoInfo = dinoSlots[currentDino]; dinoSlots[currentDino] = new DinoInfo(savedDinoInfo.dinoType, savedDinoInfo.dinoName, savedDinoInfo.dinoColor); for each (_local2 in savedDinoInfo.accessories) { DinoInfo(dinoSlots[currentDino]).addAccessory(_local2); }; DinoInfo(dinoSlots[currentDino]).addAccessory(_arg1); betaMenu.updateDinoViewers(); } public static function updateKongStats(_arg1:PlayerStats=null, _arg2:GameStats=null):void{ var _local4:PlayerStats; var _local5:GameStats; var _local6:*; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local11:int; var _local12:int; if (Main.unKong){ return; }; if (playerStatsForUpdate == null){ if (_arg1 != null){ playerStatsForUpdate = _arg1; }; }; if (gameStatsForUpdate == null){ if (_arg2 != null){ gameStatsForUpdate = _arg2; }; }; var _local3:Boolean = rankedMatch; if (((((!((gameStatsForUpdate == null))) && (!((playerStatsForUpdate == null))))) && (rankedMatch))){ _local4 = playerStatsForUpdate; _local5 = gameStatsForUpdate; _local6 = KongApiManager.kongregate.stats; gameEndUpdateStats = false; _local6.submit("TotalKills", _local4.kills); _local6.submit("KillsPerGame", _local5.dinoKills[_local5.myIter]); _local6.submit("TotalDeaths", _local5.dinoKills[_local5.hisIter]); _local6.submit("DeathsPerGame", _local5.dinoKills[_local5.hisIter]); _local6.submit("TotalVillageKills", _local4.villageKills); _local6.submit("VillageKillsPerGame", villageKills); _local6.submit("Wins", _local4.wins); _local6.submit("Losses", _local4.losses); _local6.submit("TotalHits", _local4.hits); _local6.submit("HitsPerGame", _local5.shotsHit[_local5.myIter]); _local6.submit("TotalMisses", _local4.misses); _local6.submit("MissesPerGame", (_local5.shotsFired[_local5.myIter] - _local5.shotsHit[_local5.myIter])); _local6.submit("TotalStrikeDistance", _local4.adjStrikeDist); _local6.submit("StrikeDistancePerGame", (Math.floor(((100 * _local5.strikeDist[_local5.myIter]) / 0x100000)) / 100)); _local7 = 0; for each (_local8 in killstreaks) { if (_local7 < _local8){ _local7 = _local8; }; }; _local6.submit("Killstreak", _local8); _local9 = 0; for each (_local10 in deathstreaks) { if (_local9 < _local10){ _local9 = _local10; }; }; _local6.submit("Deathstreak", _local9); _local6.submit("Ranking", _local4.rank); _local6.submit("Rating", _local4.elo); _local11 = 0; if ((((((villageLosses == 0)) && ((_local5.dinoKills[_local5.hisIter] == 0)))) && (wonTheGame))){ _local11 = 1; }; _local6.submit("PerfectGames", _local11); _local12 = 0; if (((cannonOnly) && (wonTheGame))){ _local12 = 1; }; _local6.submit("CannonWins", _local12); _local6.submit("ScorchedEarth", flameCount); killstreaks = null; deathstreaks = null; cannonOnly = true; flameCount = 0; wonTheGame = true; gameStatsForUpdate = null; playerStatsForUpdate = null; rankedMatch = false; }; } public static function removeGraphicsDetailBtn(_arg1:DetailButton):void{ var _local2:int; while (_local2 < graphicsDetailsBtns.length) { if (graphicsDetailsBtns[_local2].ID.Value == _arg1.ID.Value){ if (graphicsDetailsBtns.length == 1){ graphicsDetailsBtns = new Array(); } else { if (_local2 != (graphicsDetailsBtns.length - 1)){ graphicsDetailsBtns[_local2] = graphicsDetailsBtns.pop(); } else { graphicsDetailsBtns.pop(); }; }; } else { _local2++; }; }; } public static function setKredBalance(_arg1:int):void{ kredBalance = _arg1; if (betaMenu != null){ betaMenu.kredUpdate(); }; GameData.console.appendLine((("kredBalance==" + kredBalance) + "\n")); } public static function myBoosts(_arg1:Array):void{ if (_arg1[3] == "null"){ _arg1[3] = "____"; }; DinoInfo(dinoSlots[0]).boostCode = _arg1[2]; DinoInfo(dinoSlots[0]).boostChoices = _arg1[3]; if (_arg1[5] == "null"){ _arg1[5] = "____"; }; DinoInfo(dinoSlots[1]).boostCode = _arg1[4]; DinoInfo(dinoSlots[1]).boostChoices = _arg1[5]; if (_arg1[7] == "null"){ _arg1[7] = "____"; }; DinoInfo(dinoSlots[2]).boostCode = _arg1[6]; DinoInfo(dinoSlots[2]).boostChoices = _arg1[7]; if (betaMenu != null){ betaMenu.updateDinoSelectors(); }; } } }//package dinowaurs.managers class formatGuy { public var letterSpacing:Number;// = 0 public var leading:Number;// = 0 private function formatGuy(_arg1:Number, _arg2:Number){ leading = _arg2; letterSpacing = _arg1; } }
Section 78
//Main_dinoDupEntryClass (dinowaurs.managers.Main_dinoDupEntryClass) package dinowaurs.managers { import flash.display.*; import mx.core.*; public class Main_dinoDupEntryClass extends SpriteAsset { public var loaderBar:DisplayObject; public var color:DisplayObject; public var debug_txt:DisplayObject; public var counterTotal:DisplayObject; public var timeSpawned:DisplayObject; public var visible_sw:DisplayObject; public var network_sw:DisplayObject; public var libName:DisplayObject; public var counterNum:DisplayObject; public var type:DisplayObject; public var id:DisplayObject; } }//package dinowaurs.managers
Section 79
//NetworkSpawner (dinowaurs.managers.NetworkSpawner) package dinowaurs.managers { import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import dinowaurs.*; import engine.display.*; import engine.core.*; import dinowaurs.weapons.*; import flash.utils.*; import engine.networking.*; public class NetworkSpawner extends MelbaObject { private static var initialized:Boolean = false; public static function spawnObject(_arg1:Array):void{ var _local2:int; var _local3:Dino; var _local4:ProductionProject; var _local5:BallisticProjectile; var _local6:String; var _local7:Number; var _local8:Class; var _local9:Class; var _local10:Class; var _local11:Class; var _local12:Class; var _local13:Class; var _local14:Class; var _local15:Class; var _local16:Class; var _local17:Class; var _local18:Class; var _local19:Class; var _local20:Class; var _local21:StrikeVehicle; var _local22:Class; var _local23:Class; var _local24:Fire; var _local25:CollideCircle; var _local26:SlowZone; var _local27:Dino; var _local28:DinoInfo; var _local29:PlayerInfo; var _local30:VillageZone; if (_arg1.length >= 5){ if (_arg1[4] == "true"){ trace("this object wants to spawn, but its killed so i WONT!"); return; }; }; if (_arg1[0].match(/^T_proj_/)){ if (_arg1[0] == "T_proj_cannon"){ _local8 = AssetLoader.getAsset("weapons2", "cannonball_proj"); _local5 = new BallisticProjectile(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local8), 2, "cannonball_pawn"), _arg1[4], _arg1[5], _arg1[10], "cannonball"); _local5.collisionSoundH = "SFX_ImpactSmall"; _local5.collisionSoundL = "SFX_ImpactSmall"; } else { if (_arg1[0] == "T_proj_boulder"){ trace("make a boulder?"); _local9 = AssetLoader.getAsset("weapons2", "castle_projectile"); _local5 = new BallisticProjectile(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local9), 1, "boulder_pawn"), _arg1[4], _arg1[5], _arg1[10], "boulder"); _local5.collisionSoundH = "SFX_ImpactLarge"; _local5.collisionSoundL = "SFX_ImpactLarge"; } else { if (_arg1[0] == "T_proj_arrow"){ _local10 = AssetLoader.getAsset("weapons2", "arrow"); _local5 = new BallisticProjectile(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local10), 2, "arrow_pawn"), _arg1[4], _arg1[5], _arg1[10], "arrow"); _local5.collisionSoundH = "SFX_ImpactTiny"; _local5.collisionSoundL = "SFX_ImpactTiny"; } else { if (_arg1[0] == "T_proj_rocket"){ _local11 = AssetLoader.getAsset("weapons", "rocket"); _local5 = new BallisticProjectile(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local11), 1, "rocket_pawn"), _arg1[4], _arg1[5], _arg1[10], "rocket"); _local5.collisionSoundH = "SFX_ImpactExplosionM"; } else { if (_arg1[0] == "T_proj_flame"){ _local12 = AssetLoader.getAsset("weapons2", "flamethrower_projectile"); _local5 = new BallisticProjectile(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local12), 1, "flamer_pawn"), _arg1[4], _arg1[5], _arg1[10], "flame"); _local5.collisionSoundH = "SFX_ImpactTiny"; _local5.collisionSoundL = "SFX_ImpactTiny"; } else { if (_arg1[0] == "T_proj_law"){ _local13 = AssetLoader.getAsset("weapons2", "lawyer_projectile"); _local5 = new BallisticProjectile(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local13), 1, "lawyer_pawn"), _arg1[4], _arg1[5], _arg1[10], "lawyer"); _local5.collisionSoundH = "SFX_ImpactTiny"; _local5.collisionSoundL = "SFX_ImpactTiny"; }; }; }; }; }; }; if (_arg1[0] == "T_proj_SAMrocket"){ _local14 = AssetLoader.getAsset("weapons2", "SAMrocket"); _local5 = new BallisticProjectile(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local14), 2, "SAMrocket_pawn"), _arg1[4], _arg1[5], _arg1[10], "SAMrocket"); _local5.collisionSoundH = "SFX_ImpactExplosionM"; _local5.collisionSoundL = "SFX_ImpactExplosionM"; }; if (_arg1[0] == "T_proj_tracer"){ _local15 = AssetLoader.getAsset("weapons", "tracer"); _local5 = new BallisticProjectile(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local15), 1, "tracer pawn"), _arg1[4], _arg1[5], _arg1[10], "tracer"); _local5.collisionSoundH = "bullet_hit"; }; if (_arg1[0] == "T_proj_mine"){ _local16 = AssetLoader.getAsset("weapons", "mine_roll"); _local5 = new BallisticProjectile(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local16), 1, "mine pawn"), _arg1[4], _arg1[5], _arg1[10], "mine"); _local5.collisionSoundH = "boom"; _local5.flightModel = "spinny"; }; if (_arg1[0] == "T_proj_cluster_main"){ _local17 = AssetLoader.getAsset("weapons2", "cluster_bomb"); _local5 = new BallisticProjectile(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local17), 1, "cluster main pawn"), _arg1[4], _arg1[5], _arg1[10], "cluster main"); _local5.collisionSoundH = "SFX_ImpactSmall"; _local5.collisionSoundL = "SFX_ImpactSmall"; }; if (_arg1[0] == "T_proj_cluster_bomb"){ _local18 = AssetLoader.getAsset("weapons2", "cluster_bomb_projectile"); _local5 = new BallisticProjectile(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local18), 2, "cluster bomb pawn"), _arg1[4], _arg1[5], _arg1[10], "cluster bomb"); _local5.collisionSoundH = "SFX_ImpactExplosionM"; _local5.collisionSoundL = "SFX_ImpactExplosionM"; }; if (_arg1[0] == "T_proj_bomb"){ _local19 = AssetLoader.getAsset("weapons2", "airStrikeBomb"); _local5 = new BallisticProjectile(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local19), 2, "bomb pawn"), _arg1[4], _arg1[5], _arg1[10], "airStrikeBomb"); _local5.ownerID = _arg1[10]; _local5.collisionSoundH = "SFX_ImpactExplosionL"; _local5.collisionSoundL = "SFX_ImpactExplosionL"; trace(("spawn an airstrike bomb, ownerID==" + _arg1[10])); if (Main.GAME_MANAGER.airStriking){ trace("we are airstriking"); trace(((("check to see if " + _local5.ownerID) + " == ") + Main.GAME_MANAGER.mPlayerInfo.mUserID)); if (_local5.ownerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ trace("set the camera!"); if ((TileManager.AVATAR is StrikeVehicle)){ Main.GAME_MANAGER.transitionCameraToTile(_local5, "bomb"); }; TileManager.mZoomLevel = 7; Main.GAME_MANAGER.airStriking = false; }; }; }; if (_arg1[0] == "T_proj_meteor"){ _local20 = AssetLoader.getAsset("weapons2", "fireball"); _local5 = new BallisticProjectile(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local20), 2, "meteor pawn"), _arg1[4], _arg1[5], _arg1[10], "meteor"); _local5.collisionSoundH = "SFX_ImpactExplosionL"; _local5.collisionSoundL = "SFX_ImpactExplosionL"; _local5.ownerID = _arg1[10]; _local5.Pawn.content.scaleX = 4; _local5.Pawn.content.scaleY = 4; trace(("spawn an meteor bomb, ID==" + _arg1[10])); if (Main.GAME_MANAGER.airStriking){ trace("we are airstriking"); trace(((("check to see if " + _local5.ownerID) + " == ") + Main.GAME_MANAGER.mPlayerInfo.mUserID)); if (_local5.ownerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ trace("set the camera!"); _local5.permCenter.y = 250; Main.GAME_MANAGER.transitionCameraToTile(_local5, "meteor"); TileManager.mZoomLevel = 7; Main.GAME_MANAGER.airStriking = false; }; }; }; _local5.networkUpdate(_arg1); Main.GAME_MANAGER.mNetworkedObjects.push(_local5); _local6 = ((((((((((_local5.ID.Value + " ") + "(") + _local5.Pawn.the.x) + ", ") + _local5.Pawn.the.y) + "), (") + _local5.Inertia.x) + ", ") + _local5.Inertia.y) + ")"); Main.GAME_MANAGER.replicatedProjectiles.push(_local6); _local7 = NetworkManager.latency; while (_local7 > 5) { _local5.mFirstTick = false; _local5.tick(10); _local7 = (_local7 - 10); }; } else { if (_arg1[0].match("T_craft")){ if (_arg1[0] == "T_craft_airStrike"){ _local22 = AssetLoader.getAsset("weapons2", "airStrikeCraft"); _local21 = new StrikeVehicle(Main.GAME_MANAGER.Canvas_Actor, new MelbaPawn(new (_local22), 1, "airStrike craft pawn"), _arg1[4], _arg1[5], _arg1[6], _arg1[7], "airStrike craft"); trace("spawning airstrike craft!!!!"); trace(((("check if " + Main.GAME_MANAGER.mPlayerInfo.mUserID) + "==") + _arg1[7])); MovieClip(_local21.Pawn.content).gotoAndPlay(Math.round((Math.random() * MovieClip(_local21.Pawn.content).totalFrames))); if (_arg1[7] == Main.GAME_MANAGER.mPlayerInfo.mUserID){ trace("this is MY airstrike craft!!!!!"); if (TileManager.AVATAR == Main.GAME_MANAGER.mPlayerDino){ Main.GAME_MANAGER.transitionCameraToTile(_local21, "airStrike"); }; TileManager.mZoomLevel = 7; Main.GAME_MANAGER.currentAirStrikeCraft = _local21.ID.Value; }; } else { if (_arg1[0] == "T_craft_laser"){ _local23 = AssetLoader.getAsset("weapons2", "laser"); _local21 = new StrikeVehicle(Main.GAME_MANAGER.Canvas_Rock_Back, new MelbaPawn(new (_local23), 2, "laser craft pawn"), _arg1[4], _arg1[5], _arg1[6], _arg1[7], "laser craft"); if (_arg1[7] == Main.GAME_MANAGER.mPlayerInfo.mUserID){ Main.GAME_MANAGER.transitionCameraToTile(_local21, "laser"); TileManager.mZoomLevel = 7; Main.GAME_MANAGER.currentAirStrikeCraft = _local21.ID.Value; }; }; }; Main.GAME_MANAGER.mNetworkedObjects.push(_local21); _local21.networkUpdate(_arg1); } else { if (_arg1[0] == "T_fire"){ _local24 = new Fire(_arg1[4], _arg1[5], Main.GAME_MANAGER.mTerrain, true); Main.GAME_MANAGER.mNetworkedObjects.push(_local24); _local24.networkUpdate(_arg1); _local24.GlobalForce = new Point(0, 0.1); } else { if (_arg1[0] == "T_collideCircle"){ _local2 = 0; while (_local2 < _arg1.length) { trace(((_local2 + ":") + _arg1[_local2])); _local2++; }; _local25 = new CollideCircle(_arg1[4], _arg1[5], _arg1[6], _arg1[2]); _local25.networkUpdate(_arg1); Main.GAME_MANAGER.mNetworkedObjects.push(_local25); } else { if (_arg1[0] == "T_slowzone"){ _local26 = new SlowZone(Main.GAME_MANAGER.Canvas_VillageBase, Main.GAME_MANAGER.Canvas_Rock_Front, Main.GAME_MANAGER.mTerrain, _arg1[4]); _local26.networkUpdate(_arg1); Main.GAME_MANAGER.mSlowZonePosArray.push(_arg1[4]); UIManager.mMinimap.addSlowZone(_local26); } else { if (_arg1[0] == "T_gun"){ return; _local2 = 0; while (_local2 < Main.GAME_MANAGER.mNetworkedObjects.length) { if (Main.GAME_MANAGER.mNetworkedObjects[_local2].ID.Value == _arg1[5]){ _local3 = Dino(Main.GAME_MANAGER.mNetworkedObjects[_local2]); if (_local3.mGun == null){ _local3.equipWeaponStr(_arg1[4]); _local3.mGun.networkUpdate(_arg1); _local3.mGun.startTicking(); } else { if (_local3.mGun.mWeaponType != _arg1[4]){ _local3.equipWeaponStr(_arg1[4]); _local3.mGun.networkUpdate(_arg1); _local3.mGun.startTicking(); }; }; return; }; _local2++; }; }; if (_arg1[0] == "T_priceWatch"){ if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.priceWatcher = new PriceWatcher(); Main.GAME_MANAGER.priceWatcher.networkUpdate(_arg1); }; } else { if (_arg1[0] == "T_dino"){ _local27 = new Dino(Main.GAME_MANAGER.Canvas_Actor, Main.GAME_MANAGER.mTerrain, false, new DinoInfo(_arg1[11], "?", _arg1[12]), _arg1[10]); _local27.networkUpdate(_arg1); trace(("GOT A NEW DINO X=" + _local27.Pawn.the.x)); Main.newDinoEntry(_local27); Main.GAME_MANAGER.mNetworkedObjects.push(_local27); UIManager.mMinimap.addDino(_local27); UIManager.mMinimap.flipDino(_local27, _local27.Pawn.Flipped); if (_local27.playerOwnerID == Main.myUserID){ if (Main.GAME_MANAGER.myDinoInfo != null){ _local28 = Main.GAME_MANAGER.myDinoInfo; _local27.setAccessories(Main.GAME_MANAGER.myDinoInfo.accessories); }; } else { if (Main.GAME_MANAGER.enemyDinoInfo != null){ _local27.setAccessories(Main.GAME_MANAGER.enemyDinoInfo.accessories); }; }; } else { if (_arg1[0] == "T_player"){ _local29 = new PlayerInfo(); _local29.networkUpdate(_arg1); Main.GAME_MANAGER.mPlayerInfo = _local29; Main.GAME_MANAGER.mNetworkedObjects.push(_local29); trace(("RECIEVED A PLAYER, ID==" + _local29.mDinoID)); } else { if (_arg1[0] == "T_level"){ GameData.mLevel.networkUpdate(_arg1); } else { if (_arg1[0] == "T_village"){ _local30 = new VillageZone(Main.GAME_MANAGER.Canvas_Village, Main.GAME_MANAGER.Canvas_VillageBase, Main.GAME_MANAGER.mTerrain, _arg1[4]); _local30.networkUpdate(_arg1); Main.GAME_MANAGER.mVillageArray.push(_local30); UIManager.mMinimap.setVillages(Main.GAME_MANAGER.mVillageArray); Main.GAME_MANAGER.mNetworkedObjects.push(_local30); } else { if (_arg1[0] == "T_project"){ if (_arg1[8] == "active"){ trace(("spawning a project called " + _arg1[3])); _local4 = new ProductionProject(_arg1[3]); trace("hash"); _local4.networkUpdate(_arg1); trace("jabba"); Main.GAME_MANAGER.mPlayerInfo.setCurrentProject(_local4); trace("pockets"); Main.GAME_MANAGER.mNetworkedObjects.push(_local4); } else { if (_arg1[8] == "available"){ _local4 = new ProductionProject(_arg1[3]); _local4.networkUpdate(_arg1); Main.GAME_MANAGER.mPlayerInfo.addAvailableProject(_local4); }; }; }; }; }; }; }; }; }; }; }; }; }; } public static function initialize():void{ if (!initialized){ initialized = true; }; } } }//package dinowaurs.managers
Section 80
//ScreenShakeManager (dinowaurs.managers.ScreenShakeManager) package dinowaurs.managers { import engine.core.*; public class ScreenShakeManager { public static var mInitialized:Boolean = false; public static var screenShakeValue:Number; public static function initialize():void{ mInitialized = true; } public static function tick(_arg1:uint):void{ if (screenShakeValue > 0){ GameData.SCENE_BASE.x = (GameData.SCENE_BASE.x + (((Math.random() * screenShakeValue) * 4) - ((screenShakeValue * 2) / 2))); GameData.SCENE_BASE.y = (GameData.SCENE_BASE.y + (((Math.random() * screenShakeValue) * 4) - ((screenShakeValue * 2) / 2))); screenShakeValue = (screenShakeValue - ((0.1 * screenShakeValue) + 0.01)); }; } } }//package dinowaurs.managers
Section 81
//SoundManager (dinowaurs.managers.SoundManager) package dinowaurs.managers { import flash.events.*; import flash.display.*; import dinowaurs.audio.*; import flash.media.*; public class SoundManager { public static var currTrack:int; public static var effectChannels:Array; public static var FXglobalFilePos:String = "http://www.intuitiongames.com/Sounds/JoelEdit/"; public static var musicTransform:SoundTransform; public static var effectHandles:Array; public static var fxVolume:Number = 0.2; public static var musicTracks:Array; public static var playingSounds:Array; public static var mute:Boolean = false; public static var maxPlayingSounds:int = 16; public static var musicChannel:SoundChannel; public static var mInitialized:Boolean = false; public static var soundScreenDump:MovieClip; public static var MUSICglobalFilePos:String = "http://www.intuitiongames.com/Sounds/JoelEdit/"; public static var soundEffects:Array; public static var fxTransform:SoundTransform; public static function stopMusic():void{ if (!mInitialized){ return; }; if (musicChannel != null){ musicChannel.stop(); }; } public static function screenDump():void{ if (soundScreenDump.parent == null){ Main.stageRef.addChild(soundScreenDump); } else { Main.stageRef.removeChild(soundScreenDump); }; } public static function initialize():void{ if (mInitialized){ return; }; soundScreenDump = AssetLoader.getAssetMC("misc", "SoundScreenDump"); mInitialized = true; fxTransform = new SoundTransform(1); musicTransform = new SoundTransform(); playingSounds = new Array(); soundEffects = new Array(new SoundEffect("AMB_Desert", 1, 10, 1, 100000), new SoundEffect("AMB_DistantWar", 1, 10, 1, 100000), new SoundEffect("AMB_Jungle", 1, 10, 1, 100000), new SoundEffect("AMB_Wasteland", 1, 10, 1, 100000), new SoundEffect("AMB_Winter", 1, 10, 1, 100000), new SoundEffect("AMB_VillageBuild", 1, 0, 100, 0), new SoundEffect("AMB_VillageHitWS", 1, 0, 100, 0), new SoundEffect("AMB_VillageHitWL", 1, 0, 100, 0), new SoundEffect("AMB_VillageHitSL", 1, 0, 100, 0), new SoundEffect("AMB_VillageHitSS", 1, 0, 100, 0), new SoundEffect("CTR_BrontoDeath", 1, 0, 100, 0), new SoundEffect("CTR_BrontoEffort", 1, 0, 100, 0), new SoundEffect("CTR_BrontoEffortB", 1, 0, 100, 0), new SoundEffect("CTR_BrontoHappy", 1, 0, 100, 0), new SoundEffect("CTR_BrontoImpact", 1, 0, 100, 0), new SoundEffect("CTR_BrontoRoar", 1, 0, 100, 0), new SoundEffect("CTR_AnkyloDeath", 1, 0, 100, 0), new SoundEffect("CTR_AnkyloEffort", 1, 0, 100, 0), new SoundEffect("CTR_AnkyloEffortB", 1, 0, 100, 0), new SoundEffect("CTR_AnkyloHappy", 1, 0, 100, 0), new SoundEffect("CTR_AnkyloImpact", 1, 0, 100, 0), new SoundEffect("CTR_AnkyloRoar", 1, 0, 100, 0), new SoundEffect("CTR_StegoDeath", 1, 0, 100, 0), new SoundEffect("CTR_StegoEffort", 1, 0, 100, 0), new SoundEffect("CTR_StegoEffortB", 1, 0, 100, 0), new SoundEffect("CTR_StegoHappy", 1, 0, 100, 0), new SoundEffect("CTR_StegoImpact", 1, 0, 100, 0), new SoundEffect("CTR_StegoRoar", 1, 0, 100, 0), new SoundEffect("CTR_TricerDeath", 1, 0, 100, 0), new SoundEffect("CTR_TricerEffort", 1, 0, 100, 0), new SoundEffect("CTR_TricerEffortB", 1, 0, 100, 0), new SoundEffect("CTR_TricerHappy", 1, 0, 100, 0), new SoundEffect("CTR_TricerImpact", 1, 0, 100, 0), new SoundEffect("CTR_TricerRoar", 1, 0, 100, 0), new SoundEffect("CTR_VillagersCheerC", 1, 0, 100, 0), new SoundEffect("CTR_VillagersCheerD", 1, 0, 100, 0), new SoundEffect("CTR_VillagersPanicC", 1, 0, 100, 0), new SoundEffect("CTR_VillagersPanicF", 1, 0, 100, 0), new SoundEffect("CTR_VillagersRabble", 1, 0, 100, 0), new SoundEffect("INT_ChargeUp", 1, 0, 2, 0), new SoundEffect("INT_MenuGconfirm", 1, 0, 2, 0), new SoundEffect("INT_MenuGselect", 1, 0, 2, 0), new SoundEffect("SFX_ImpactTiny", 1, 0, 500, 0), new SoundEffect("SFX_ImpactSmall", 1, 0, 500, 0), new SoundEffect("SFX_ImpactLarge", 1, 0, 500, 0), new SoundEffect("SFX_ImpactExplosionM", 1, 0, 500, 0), new SoundEffect("SFX_ImpactExplosionL", 1, 0, 500, 0), new SoundEffect("SFX_AirFire_O", 1, 0, 2, 0), new SoundEffect("SFX_AirFire_R", 1, 0, 2, 100000), new SoundEffect("SFX_AirFire_S", 1, 0, 2, 0), new SoundEffect("SFX_CannonFire_H", 1, 0, 2, 0), new SoundEffect("SFX_CannonFire_L", 1, 0, 2, 0), new SoundEffect("SFX_CastleFire_H", 1, 0, 2, 0), new SoundEffect("SFX_CastleFire_L", 1, 0, 2, 0), new SoundEffect("SFX_ClusterFire_H", 1, 0, 2, 0), new SoundEffect("SFX_ClusterFire_L", 1, 0, 2, 0), new SoundEffect("SFX_FlameFire_H", 1, 0, 2, 0), new SoundEffect("SFX_FlameFire_L", 1, 0, 2, 0), new SoundEffect("SFX_JetFire_H", 1, 0, 2, 0), new SoundEffect("SFX_JetFire_L", 1, 0, 2, 0), new SoundEffect("SFX_LawyerFire_H", 1, 0, 2, 0), new SoundEffect("SFX_LawyerFire_L", 1, 0, 2, 0), new SoundEffect("SFX_LawyerHit_H", 1, 0, 2, 0), new SoundEffect("SFX_LawyerHit_L", 1, 0, 2, 0), new SoundEffect("SFX_Meteor_O", 1, 0, 2, 0), new SoundEffect("SFX_Meteor_R", 1, 0, 2, 100000), new SoundEffect("SFX_Meteor_S", 1, 0, 2, 0), new SoundEffect("SFX_SamFire_L", 1, 0, 2, 0), new SoundEffect("SFX_SamFire_H", 1, 0, 2, 0), new SoundEffect("SFX_EggHatching", 1, 0, 100, 0)); mInitialized = true; } public static function addPlayingSound(_arg1:SoundEffect):void{ var _local2:int; var _local3:Number; var _local4:int; if (playingSounds.length > maxPlayingSounds){ _local3 = 100000; _local4 = -1; _local2 = 0; while (_local2 < playingSounds.length) { if (_local3 > playingSounds[_local2].SCORE){ _local3 = playingSounds[_local2].SCORE; _local4 = _local2; }; _local2++; }; if (_local4 != -1){ playingSounds[_local2] = playingSounds[(playingSounds.length - 1)]; playingSounds.pop(); }; }; _local2 = 0; while (_local2 < playingSounds.length) { if (_arg1.handle == playingSounds[_local2].handle){ return; }; _local2++; }; playingSounds.push(_arg1); } public static function stopFX(_arg1:String):void{ if (!mInitialized){ return; }; trace(("stop the fx for " + _arg1)); var _local2:int; while (_local2 < soundEffects.length) { if (_arg1 == soundEffects[_local2].handle){ soundEffects[_local2].stop(); }; _local2++; }; } public static function nextTrack():void{ if (!mInitialized){ return; }; mute = !(mute); if (mute == true){ stopAllFX(); } else { SoundManager.playFXLooped("MUSIC_Auto"); }; } public static function playMusicTrack(_arg1:int):void{ if (!mInitialized){ return; }; if (mute){ return; }; if (_arg1 < 0){ return; }; if (_arg1 >= musicTracks.length){ return; }; if (musicChannel != null){ musicChannel.stop(); }; musicChannel = musicTracks[_arg1].play(0, 0, fxTransform); currTrack = _arg1; } public static function killStatsFroRespawn():void{ var _local2:SoundEffect; var _local1:int; while (_local1 < soundEffects.length) { _local2 = soundEffects[_local1]; if (!_local2.handle.match("AMB")){ _local2.stop(); }; _local1++; }; } public static function playFXLooped(_arg1:String):SoundEffect{ if (!mInitialized){ return (null); }; if (mute){ trace("its mute motherfucka!"); return (null); }; return (playFX(_arg1)); } public static function tick(_arg1:uint):void{ if (soundScreenDump.parent != null){ screenDumpEnterFrame(null); }; } public static function screenDumpEnterFrame(_arg1:Event):void{ soundScreenDump.textBox.text = ""; var _local2:int; while (_local2 < playingSounds.length) { soundScreenDump.textBox.text = (soundScreenDump.textBox.text + (playingSounds[_local2].getInfo() + "\n")); _local2++; }; } public static function setFXVolume(_arg1:Number):void{ if (!mInitialized){ return; }; fxTransform = new SoundTransform(_arg1); playFX("arrow_hit"); } public static function setMusicVolume(_arg1:Number):void{ if (!mInitialized){ return; }; musicChannel.soundTransform = new SoundTransform(_arg1); } public static function get soundsPlaying():int{ var _local2:SoundEffect; var _local1:int; for each (_local2 in soundEffects) { _local1 = (_local1 + _local2.channels.length); }; return (_local1); } public static function removePlayingSound(_arg1:SoundEffect):void{ var _local2:int; while (_local2 < playingSounds.length) { if (_arg1.handle == playingSounds[_local2].handle){ playingSounds[_local2] = playingSounds[(playingSounds.length - 1)]; playingSounds.pop(); }; _local2++; }; } public static function stopAllFX():void{ if (!mInitialized){ return; }; var _local1:int; while (_local1 < soundEffects.length) { soundEffects[_local1].stop(); _local1++; }; } public static function playFX(_arg1:String, _arg2:int=0):SoundEffect{ if (!mInitialized){ return (null); }; if (mute){ return (null); }; trace(("sounds playing == " + soundsPlaying)); if (soundsPlaying >= maxPlayingSounds){ return (null); }; var _local3:int; while (_local3 < soundEffects.length) { if (_arg1 == soundEffects[_local3].handle){ addPlayingSound(soundEffects[_local3]); return (soundEffects[_local3].play(_arg2)); }; _local3++; }; return (null); } } }//package dinowaurs.managers
Section 82
//UIManager (dinowaurs.managers.UIManager) package dinowaurs.managers { import flash.events.*; import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import flash.text.*; import dinowaurs.*; import engine.display.*; import engine.core.*; import flash.utils.*; import engine.networking.*; public class UIManager { public static var goldUpdateTimer:int; public static var mGUICanvas:Canvas; public static var mMinimap:Minimap; public static var mTerrain:Terrain; public static var mShotCostTag:MovieClip; public static var mGoldWidget:MovieClip; public static var autoZoomMgr:AutoZoomManager; public static var livEquip:MovieClip; public static var mDino:Dino; public static var mPriceTag:MovieClip; public static var mMoveMode:Boolean = false; public static var inMenu:Boolean; public static var vsDisplay:MovieClip; public static var dblClickCtr:int = -1; public static var goldUpdateTimerMAX:int = 10; public static var chatBox:ChatBox; public static var side:String = "right"; public static var mInVillage:Boolean = false; public static var jetpackHeatThing:MovieClip; public static var justShotNoMenu:Boolean; public static var mProductionWidget:ProductionWidget; public static var currentVillageMenu:VillageMenu2; public static var mShootMode:Boolean = false; public static var mPlayerInfo:PlayerInfo; public static function openVillageMenu(_arg1:VillageMenu2):void{ if (currentVillageMenu != null){ currentVillageMenu.closeMenu(); }; currentVillageMenu = _arg1; } public static function clearAll():void{ autoZoomMgr.clearAll(); if (currentVillageMenu != null){ currentVillageMenu.closeMenu(); }; if (mMinimap.mBase.parent != null){ mMinimap.mBase.parent.removeChild(mMinimap.mBase); }; mMinimap.myKillFlag = true; mMinimap.startTicking(); mMinimap = null; if (vsDisplay.parent != null){ vsDisplay.parent.removeChild(vsDisplay); }; vsDisplay = null; if (livEquip.parent != null){ livEquip.parent.removeChild(livEquip); }; livEquip = null; if (jetpackHeatThing.parent != null){ jetpackHeatThing.parent.removeChild(jetpackHeatThing); }; jetpackHeatThing = null; if (mGoldWidget.parent != null){ mGoldWidget.parent.removeChild(mGoldWidget); }; mGoldWidget = null; if (mShotCostTag != null){ if (mShotCostTag.parent != null){ mShotCostTag.parent.removeChild(mShotCostTag); }; }; mShotCostTag = null; autoZoomMgr.myKillFlag = true; autoZoomMgr = null; mTerrain = null; mDino = null; mPlayerInfo = null; Main.stageRef.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDown); Main.stageRef.removeEventListener(MouseEvent.MOUSE_UP, mouseUp); Main.stageRef.removeEventListener(KeyboardEvent.KEY_DOWN, keyDown); Main.stageRef.removeEventListener(KeyboardEvent.KEY_UP, keyUp); Main.stageRef.removeEventListener(MouseEvent.MOUSE_WHEEL, mouseWheel); chatBox.myKillFlag = true; chatBox = null; } public static function villageUpdate(_arg1:VillageZone):void{ mMinimap.updateVillage(_arg1); } public static function mouseUp(_arg1:MouseEvent):void{ } public static function notEnoughGold():void{ mGoldWidget.no_money.gotoAndPlay(2); } public static function removePrice():void{ if (mPriceTag != null){ if (mPriceTag.parent != null){ mPriceTag.parent.removeChild(mPriceTag); }; }; } public static function displayPrice(_arg1:Object):void{ var _local2:MovieClip = MovieClip(_arg1); mPriceTag = AssetLoader.getAssetMC("gameGui", "priceTicket"); mPriceTag.price.text = _local2.price; if (_local2.price > Main.GAME_MANAGER.mPlayerInfo.gold){ TextField(mPriceTag.price).textColor = 13373713; }; GameData.GUI_BASE.addChild(mPriceTag); var _local3:Point = _local2.parent.localToGlobal(new Point(_local2.x, _local2.y)); mPriceTag.x = (_local3.x + 30); mPriceTag.y = _local3.y; } public static function initialize():void{ Main.stageRef.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown); Main.stageRef.addEventListener(MouseEvent.MOUSE_UP, mouseUp); Main.stageRef.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheel); Main.stageRef.addEventListener(KeyboardEvent.KEY_DOWN, keyDown); Main.stageRef.addEventListener(KeyboardEvent.KEY_UP, keyUp); mMinimap = new Minimap(); mGoldWidget = AssetLoader.getAssetMC("gameGui", "hud_gold"); GameData.GUI_BASE.addChild(mGoldWidget); mGoldWidget.shot_bar_fg.gotoAndStop(1); mGoldWidget.shot_bar_bg.gotoAndStop(1); mGoldWidget.dinoHealth_bar.gotoAndStop(100); mShotCostTag = AssetLoader.getAssetMC("gameGui", "shotCostTag"); mShotCostTag.x = mGoldWidget.width; livEquip = AssetLoader.getAssetMC("gameGui", "livequip_bg"); GameData.GUI_BASE.addChild(livEquip); livEquip.x = 3; livEquip.y = 72; jetpackHeatThing = AssetLoader.getAssetMC("gameGui", "livequip_jetpack"); GameData.GUI_BASE.addChild(jetpackHeatThing); jetpackHeatThing.x = 3; jetpackHeatThing.y = (72 + 6); jetpackHeatThing.gotoAndStop(0); jetpackHeatThing.visible = false; vsDisplay = AssetLoader.getAssetMC("misc", "vsWidget"); vsDisplay.x = 350; if (!NetworkManager.myUsername.match("Guest")){ vsDisplay.me.text = NetworkManager.myUsername; } else { vsDisplay.me.text = "Guest-a-saurus"; }; if (!Main.opponentUsername.match("Guest")){ vsDisplay.him.text = Main.opponentUsername; } else { vsDisplay.him.text = "Guest-a-saurus"; }; GameData.GUI_BASE.addChild(vsDisplay); inMenu = false; justShotNoMenu = false; autoZoomMgr = new AutoZoomManager(); currentVillageMenu = null; side = "right"; chatBox = new ChatBox(GameData.GUI_BASE); } public static function keyDown(_arg1:KeyboardEvent):void{ if (GameData.console.State == "down"){ return; }; if (_arg1.keyCode == 77){ } else { if (_arg1.keyCode == 13){ chatBox.enterEvent(); } else { if (_arg1.keyCode == 80){ Main.GAME_MANAGER.displayProfilerData(); } else { if (_arg1.keyCode == 79){ Main.GAME_MANAGER.resetProfiler(); } else { if (_arg1.keyCode == 32){ if (!Main.GAME_MANAGER.mPlayerDino.inChat){ if (!Main.GAME_MANAGER.airStriking){ Main.GAME_MANAGER.switchWeapon(); }; }; } else { if (_arg1.keyCode == 70){ } else { if (_arg1.keyCode == 27){ Main.GAME_MANAGER.myQuikOptions.toggle(); } else { if ((((((_arg1.keyCode == 189)) || ((_arg1.keyCode == 83)))) || ((_arg1.keyCode == 40)))){ if (Main.GAME_MANAGER.mPlayerDino.inMenu){ return; }; if (TileManager.mZoomLevel < 7){ TileManager.mZoomLevel++; }; if (Main.GAME_MANAGER.tutorialScripter != null){ Main.GAME_MANAGER.tutorialScripter.signalEvent("zoomOut"); }; } else { if ((((((_arg1.keyCode == 187)) || ((_arg1.keyCode == 87)))) || ((_arg1.keyCode == 38)))){ if (Main.GAME_MANAGER.mPlayerDino.inMenu){ return; }; if (TileManager.mZoomLevel > 2){ TileManager.mZoomLevel--; }; if (Main.GAME_MANAGER.tutorialScripter != null){ Main.GAME_MANAGER.tutorialScripter.signalEvent("zoomIn"); }; }; }; }; }; }; }; }; }; }; } public static function finishProject(_arg1:uint):void{ mProductionWidget.mProgress.bar.gotoAndStop(100); } public static function setEquippedWeapons(_arg1:Array, _arg2:int):void{ var _local4:MovieClip; var _local3 = 2; while (_local3 < livEquip.numChildren) { livEquip.removeChild(livEquip.getChildAt(_local3)); _local3++; }; _local3 = 0; while (_local3 < 2) { if (_arg1[_local3] == "cannon"){ _local4 = AssetLoader.getAssetMC("gameGui", "cannon_button"); } else { if (_arg1[_local3] == "SAM"){ _local4 = AssetLoader.getAssetMC("gameGui", "missile_button"); } else { if (_arg1[_local3] == "castle"){ _local4 = AssetLoader.getAssetMC("gameGui", "castle_button"); } else { if (_arg1[_local3] == "clusterBomb"){ _local4 = AssetLoader.getAssetMC("gameGui", "cluster_button"); } else { if (_arg1[_local3] == "meteorGun"){ _local4 = AssetLoader.getAssetMC("gameGui", "meteor_button"); } else { if (_arg1[_local3] == "airStrike"){ _local4 = AssetLoader.getAssetMC("gameGui", "aircraft_carrier_button"); } else { if (_arg1[_local3] == "minelayer"){ _local4 = AssetLoader.getAssetMC("gameGui", "mine_button"); } else { if (_arg1[_local3] == "minigun"){ _local4 = AssetLoader.getAssetMC("gameGui", "minigun_button"); } else { if (_arg1[_local3] == "lawFirm"){ _local4 = AssetLoader.getAssetMC("gameGui", "lawfirm_button"); } else { if (_arg1[_local3] == "jetpack"){ _local4 = AssetLoader.getAssetMC("gameGui", "jetpack_button"); } else { if (_arg1[_local3] == "flamethrower"){ _local4 = AssetLoader.getAssetMC("gameGui", "flamethrower_button"); } else { _local4 = AssetLoader.getAssetMC("gameGui", "empty_button"); }; }; }; }; }; }; }; }; }; }; }; if (_local3 == _arg2){ _local4.gotoAndStop(2); } else { _local4.gotoAndStop(1); }; if (_local3 == 0){ _local4.x = 60; } else { _local4.x = 91; }; _local4.y = 18; livEquip.addChild(_local4); _local3++; }; } public static function mouseWheel(_arg1:MouseEvent):void{ _arg1.stopImmediatePropagation(); _arg1.stopPropagation(); autoZoomMgr.deactivate(); if (_arg1.delta < 0){ if (TileManager.mZoomLevel < 7){ TileManager.mZoomLevel++; }; if (Main.GAME_MANAGER.tutorialScripter != null){ Main.GAME_MANAGER.tutorialScripter.signalEvent("zoomOut"); }; } else { if (TileManager.mZoomLevel > 2){ TileManager.mZoomLevel--; }; if (Main.GAME_MANAGER.tutorialScripter != null){ Main.GAME_MANAGER.tutorialScripter.signalEvent("zoomIn"); }; }; } public static function updateSide(_arg1:String):void{ var _local2:uint; var _local3:String; if (_arg1 != side){ side = _arg1; _local2 = vsDisplay.him.textColor; _local3 = vsDisplay.him.text; vsDisplay.him.text = vsDisplay.me.text; vsDisplay.him.textColor = vsDisplay.me.textColor; vsDisplay.me.text = _local3; vsDisplay.me.textColor = _local2; }; } public static function keyUp(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 32){ }; } public static function setProjectValue(_arg1:Number):void{ if (mProductionWidget.mProgress != null){ mProductionWidget.mProgress.bar.gotoAndStop(Math.round(((1 - _arg1) * 100))); }; } public static function setGold(_arg1:Number):void{ goldUpdateTimer = goldUpdateTimerMAX; _arg1 = Math.round(_arg1); mGoldWidget.amount.text = ("$" + _arg1); var _local2:int = (_arg1 / 10); if (_local2 > 800){ _local2 = 800; }; mGoldWidget.gold_bar.gotoAndStop(_local2); } public static function mouseDown(_arg1:MouseEvent):void{ } public static function setShotCost(_arg1:int):void{ mGoldWidget.shot_bar_fg.gotoAndStop((Math.round((_arg1 / 10)) + 1)); mGoldWidget.shot_bar_bg.gotoAndStop((Math.round((_arg1 / 10)) + 1)); } } }//package dinowaurs.managers
Section 83
//ankylo_breathing_SK (dinowaurs.SkeletalAnim.ankylo_breathing_SK) package dinowaurs.SkeletalAnim { import flash.display.*; import flash.geom.*; import dinowaurs.*; public class ankylo_breathing_SK extends SkeletalAnimation { public function ankylo_breathing_SK(_arg1:Sprite){ super(_arg1); bones.push(new Bone(new Array(new Point(232.49, 41.8096), new Point(232.46, 41.8165), new Point(232.42, 41.8265), new Point(232.37, 41.8386), new Point(232.32, 41.8524), new Point(232.27, 41.867), new Point(232.21, 41.8818), new Point(232.16, 41.8961), new Point(232.11, 41.9093), new Point(232.07, 41.9206), new Point(232.04, 41.9296), new Point(232.02, 41.9353), new Point(232.01, 41.9374), new Point(232.03, 41.9383), new Point(232.05, 41.9388), new Point(232.08, 41.9388), new Point(232.11, 41.9385), new Point(232.14, 41.9377), new Point(232.18, 41.9366), new Point(232.21, 41.9352), new Point(232.26, 41.9333), new Point(232.3, 41.9311), new Point(232.34, 41.9286), new Point(232.39, 41.9258), new Point(232.43, 41.9227), new Point(232.48, 41.9192), new Point(232.52, 41.9156), new Point(232.57, 41.9117), new Point(232.62, 41.9075), new Point(232.66, 41.9032), new Point(232.7, 41.8988), new Point(232.75, 41.8942), new Point(232.79, 41.8895), new Point(232.83, 41.8847), new Point(232.86, 41.8798), new Point(232.9, 41.875), new Point(232.93, 41.8701), new Point(232.96, 41.8653), new Point(232.99, 41.8607), new Point(233.01, 41.8561), new Point(233.04, 41.8517), new Point(233.06, 41.8475), new Point(233.07, 41.8435), new Point(233.08, 41.8398), new Point(233.08, 41.8394), new Point(233.07, 41.8385), new Point(233.05, 41.837), new Point(233.03, 41.8349), new Point(233, 41.8323), new Point(232.96, 41.8292), new Point(232.93, 41.8257), new Point(232.89, 41.8218), new Point(232.85, 41.8175), new Point(232.8, 41.813), new Point(232.76, 41.8081), new Point(232.71, 41.8031), new Point(232.67, 41.7979), new Point(232.63, 41.7925), new Point(232.59, 41.7872), new Point(232.55, 41.782)), new Array(-102.99, -102.95, -102.91, -102.87, -102.84, -102.81, -102.78, -102.76, -102.74, -102.72, -102.71, -102.7, -102.7, -102.72, -102.74, -102.77, -102.81, -102.84, -102.88, -102.93, -102.97, -103.02, -103.06, -103.11, -103.16, -103.2, -103.24, -103.28, -103.32, -103.35, -103.38, -103.39, -103.4, -103.4, -103.41, -103.42, -103.42, -103.43, -103.43, -103.44, -103.44, -103.45, -103.45, -103.45, -103.43, -103.41, -103.39, -103.36, -103.32, -103.29, -103.26, -103.22, -103.19, -103.16, -103.13, -103.1, -103.08, -103.06, -103.04, -103.03), skeletonBase, 0)); bones.push(new Bone(new Array(new Point(221.79, 88.1983), new Point(221.79, 88.2128), new Point(221.78, 88.2299), new Point(221.77, 88.2488), new Point(221.74, 88.2687), new Point(221.71, 88.2889), new Point(221.68, 88.3087), new Point(221.65, 88.3273), new Point(221.61, 88.3441), new Point(221.59, 88.3584), new Point(221.56, 88.3695), new Point(221.55, 88.3766), new Point(221.54, 88.3791), new Point(221.54, 88.3767), new Point(221.55, 88.3728), new Point(221.55, 88.3675), new Point(221.55, 88.361), new Point(221.56, 88.3534), new Point(221.56, 88.3448), new Point(221.56, 88.3354), new Point(221.57, 88.3252), new Point(221.57, 88.3144), new Point(221.58, 88.3032), new Point(221.59, 88.2916), new Point(221.6, 88.2798), new Point(221.61, 88.268), new Point(221.62, 88.2563), new Point(221.63, 88.2449), new Point(221.65, 88.2338), new Point(221.67, 88.2233), new Point(221.69, 88.2135), new Point(221.72, 88.2071), new Point(221.76, 88.2007), new Point(221.79, 88.1944), new Point(221.82, 88.1882), new Point(221.85, 88.1821), new Point(221.88, 88.1761), new Point(221.91, 88.1703), new Point(221.93, 88.1647), new Point(221.95, 88.1593), new Point(221.97, 88.1541), new Point(221.98, 88.1491), new Point(222, 88.1444), new Point(222, 88.14), new Point(222.02, 88.1433), new Point(222.02, 88.1467), new Point(222.03, 88.1503), new Point(222.03, 88.1539), new Point(222.03, 88.1574), new Point(222.02, 88.1607), new Point(222.01, 88.1638), new Point(222, 88.1663), new Point(221.98, 88.1684), new Point(221.97, 88.17), new Point(221.95, 88.1708), new Point(221.92, 88.1709), new Point(221.9, 88.1702), new Point(221.87, 88.1686), new Point(221.84, 88.1661), new Point(221.81, 88.1626)), new Array(-66.97, -66.77, -66.59, -66.45, -66.33, -66.24, -66.16, -66.1, -66.06, -66.03, -66, -65.98, -65.97, -65.99, -66.02, -66.05, -66.1, -66.15, -66.2, -66.26, -66.32, -66.38, -66.45, -66.52, -66.59, -66.65, -66.72, -66.78, -66.84, -66.9, -66.95, -66.99, -67.03, -67.08, -67.12, -67.17, -67.22, -67.27, -67.31, -67.35, -67.39, -67.43, -67.45, -67.48, -67.46, -67.43, -67.4, -67.37, -67.34, -67.3, -67.26, -67.23, -67.19, -67.15, -67.12, -67.09, -67.06, -67.04, -67.02, -67.01), skeletonBase, 1)); bones.push(new Bone(new Array(new Point(227.65, 101.9792), new Point(227.7, 101.9728), new Point(227.73, 101.9721), new Point(227.75, 101.976), new Point(227.75, 101.9835), new Point(227.75, 101.9936), new Point(227.73, 102.0055), new Point(227.71, 102.0179), new Point(227.69, 102.0301), new Point(227.67, 102.0409), new Point(227.65, 102.0494), new Point(227.64, 102.0547), new Point(227.64, 102.0557), new Point(227.64, 102.0553), new Point(227.63, 102.0544), new Point(227.63, 102.053), new Point(227.62, 102.051), new Point(227.61, 102.0485), new Point(227.6, 102.0456), new Point(227.59, 102.0424), new Point(227.58, 102.0387), new Point(227.57, 102.0347), new Point(227.56, 102.0304), new Point(227.55, 102.0259), new Point(227.55, 102.0212), new Point(227.54, 102.0164), new Point(227.54, 102.0116), new Point(227.53, 102.0067), new Point(227.54, 102.0018), new Point(227.54, 101.9971), new Point(227.55, 101.9927), new Point(227.58, 101.9901), new Point(227.6, 101.9879), new Point(227.62, 101.9861), new Point(227.64, 101.9846), new Point(227.66, 101.9834), new Point(227.68, 101.9823), new Point(227.69, 101.9813), new Point(227.71, 101.9803), new Point(227.72, 101.9791), new Point(227.73, 101.9778), new Point(227.73, 101.9762), new Point(227.74, 101.9743), new Point(227.74, 101.972), new Point(227.76, 101.9734), new Point(227.77, 101.9744), new Point(227.78, 101.9752), new Point(227.79, 101.9756), new Point(227.8, 101.9756), new Point(227.8, 101.9753), new Point(227.8, 101.9745), new Point(227.79, 101.9733), new Point(227.79, 101.9717), new Point(227.78, 101.9696), new Point(227.77, 101.967), new Point(227.75, 101.964), new Point(227.73, 101.9606), new Point(227.71, 101.9568), new Point(227.69, 101.9526), new Point(227.66, 101.948)), new Array(-92.03, -91.96, -91.9, -91.85, -91.8, -91.76, -91.73, -91.7, -91.68, -91.66, -91.64, -91.62, -91.61, -91.62, -91.62, -91.63, -91.64, -91.65, -91.65, -91.66, -91.67, -91.68, -91.69, -91.7, -91.71, -91.72, -91.73, -91.74, -91.75, -91.76, -91.77, -91.76, -91.77, -91.77, -91.78, -91.79, -91.8, -91.81, -91.83, -91.84, -91.86, -91.88, -91.89, -91.91, -91.9, -91.9, -91.91, -91.91, -91.92, -91.94, -91.95, -91.96, -91.98, -92, -92.01, -92.03, -92.04, -92.05, -92.06, -92.07), skeletonBase, 2)); bones.push(new Bone(new Array(new Point(227.47, 106.9979), new Point(227.53, 106.9917), new Point(227.57, 106.9911), new Point(227.59, 106.9951), new Point(227.59, 107.0028), new Point(227.59, 107.013), new Point(227.58, 107.025), new Point(227.56, 107.0375), new Point(227.54, 107.0497), new Point(227.52, 107.0606), new Point(227.51, 107.0692), new Point(227.5, 107.0745), new Point(227.5, 107.0755), new Point(227.5, 107.0751), new Point(227.49, 107.0742), new Point(227.49, 107.0727), new Point(227.48, 107.0707), new Point(227.47, 107.0682), new Point(227.46, 107.0653), new Point(227.45, 107.0621), new Point(227.44, 107.0583), new Point(227.43, 107.0543), new Point(227.41, 107.05), new Point(227.4, 107.0455), new Point(227.4, 107.0408), new Point(227.39, 107.0359), new Point(227.38, 107.0311), new Point(227.38, 107.0262), new Point(227.38, 107.0213), new Point(227.39, 107.0166), new Point(227.39, 107.0121), new Point(227.42, 107.0095), new Point(227.44, 107.0073), new Point(227.47, 107.0055), new Point(227.49, 107.004), new Point(227.5, 107.0027), new Point(227.52, 107.0016), new Point(227.53, 107.0006), new Point(227.55, 106.9995), new Point(227.55, 106.9983), new Point(227.56, 106.997), new Point(227.57, 106.9953), new Point(227.57, 106.9934), new Point(227.57, 106.991), new Point(227.59, 106.9924), new Point(227.6, 106.9935), new Point(227.61, 106.9942), new Point(227.62, 106.9946), new Point(227.63, 106.9946), new Point(227.63, 106.9942), new Point(227.63, 106.9934), new Point(227.62, 106.9921), new Point(227.61, 106.9904), new Point(227.6, 106.9883), new Point(227.59, 106.9857), new Point(227.57, 106.9827), new Point(227.55, 106.9792), new Point(227.53, 106.9753), new Point(227.51, 106.9711), new Point(227.48, 106.9665)), new Array(-0.23, -0.16, -0.1, -0.04, 0, 0.04, 0.07, 0.1, 0.12, 0.14, 0.16, 0.18, 0.19, 0.18, 0.18, 0.17, 0.16, 0.15, 0.15, 0.14, 0.13, 0.12, 0.11, 0.1, 0.09, 0.08, 0.07, 0.06, 0.05, 0.04, 0.03, 0.04, 0.04, 0.03, 0.03, 0.02, 0, -0.01, -0.02, -0.04, -0.06, -0.07, -0.09, -0.11, -0.1, -0.1, -0.11, -0.11, -0.12, -0.13, -0.15, -0.16, -0.18, -0.2, -0.21, -0.23, -0.24, -0.25, -0.26, -0.27), skeletonBase, 3)); bones.push(new Bone(new Array(new Point(220.17, 104.3636), new Point(220.22, 104.3664), new Point(220.26, 104.3736), new Point(220.28, 104.3844), new Point(220.28, 104.3979), new Point(220.28, 104.4131), new Point(220.27, 104.4292), new Point(220.25, 104.4453), new Point(220.23, 104.4605), new Point(220.21, 104.474), new Point(220.19, 104.4848), new Point(220.18, 104.492), new Point(220.18, 104.4948), new Point(220.18, 104.4936), new Point(220.17, 104.4917), new Point(220.17, 104.4893), new Point(220.16, 104.4863), new Point(220.15, 104.4829), new Point(220.14, 104.4789), new Point(220.13, 104.4746), new Point(220.12, 104.4698), new Point(220.11, 104.4647), new Point(220.1, 104.4593), new Point(220.09, 104.4536), new Point(220.08, 104.4477), new Point(220.07, 104.4416), new Point(220.07, 104.4355), new Point(220.07, 104.4294), new Point(220.07, 104.4232), new Point(220.07, 104.4172), new Point(220.08, 104.4113), new Point(220.11, 104.4091), new Point(220.13, 104.4068), new Point(220.15, 104.4045), new Point(220.17, 104.4022), new Point(220.19, 104.3997), new Point(220.21, 104.3971), new Point(220.22, 104.3943), new Point(220.24, 104.3914), new Point(220.25, 104.3881), new Point(220.25, 104.3846), new Point(220.26, 104.3808), new Point(220.26, 104.3766), new Point(220.27, 104.372), new Point(220.28, 104.3741), new Point(220.3, 104.3753), new Point(220.31, 104.3756), new Point(220.32, 104.3752), new Point(220.32, 104.3739), new Point(220.32, 104.372), new Point(220.32, 104.3694), new Point(220.32, 104.3662), new Point(220.31, 104.3625), new Point(220.3, 104.3582), new Point(220.29, 104.3536), new Point(220.27, 104.3487), new Point(220.25, 104.3435), new Point(220.23, 104.3381), new Point(220.21, 104.3327), new Point(220.18, 104.3273)), new Array(-65.22, -65.14, -65.08, -65.03, -64.99, -64.95, -64.91, -64.88, -64.86, -64.84, -64.82, -64.81, -64.79, -64.8, -64.81, -64.82, -64.82, -64.83, -64.84, -64.85, -64.86, -64.86, -64.87, -64.88, -64.89, -64.9, -64.91, -64.92, -64.93, -64.94, -64.95, -64.95, -64.95, -64.95, -64.96, -64.97, -64.98, -65, -65.01, -65.03, -65.04, -65.06, -65.08, -65.1, -65.09, -65.09, -65.09, -65.1, -65.11, -65.12, -65.13, -65.15, -65.17, -65.18, -65.2, -65.21, -65.23, -65.24, -65.25, -65.25), skeletonBase, 4)); bones.push(new Bone(new Array(new Point(263.31, 41.4831), new Point(263.28, 41.4699), new Point(263.24, 41.464), new Point(263.19, 41.4641), new Point(263.14, 41.4692), new Point(263.09, 41.4777), new Point(263.03, 41.4889), new Point(262.98, 41.5014), new Point(262.93, 41.5142), new Point(262.89, 41.5261), new Point(262.86, 41.536), new Point(262.83, 41.5427), new Point(262.83, 41.5452), new Point(262.85, 41.5456), new Point(262.87, 41.5459), new Point(262.89, 41.5459), new Point(262.92, 41.5456), new Point(262.96, 41.545), new Point(262.99, 41.5444), new Point(263.03, 41.5437), new Point(263.07, 41.5425), new Point(263.12, 41.5411), new Point(263.16, 41.5398), new Point(263.2, 41.5382), new Point(263.25, 41.5363), new Point(263.3, 41.5342), new Point(263.34, 41.5321), new Point(263.39, 41.5298), new Point(263.43, 41.5273), new Point(263.48, 41.5247), new Point(263.52, 41.522), new Point(263.56, 41.5193), new Point(263.61, 41.5165), new Point(263.64, 41.5137), new Point(263.68, 41.5108), new Point(263.72, 41.5079), new Point(263.75, 41.5051), new Point(263.78, 41.5023), new Point(263.81, 41.4997), new Point(263.83, 41.4972), new Point(263.86, 41.4947), new Point(263.87, 41.4924), new Point(263.89, 41.4904), new Point(263.9, 41.4885), new Point(263.9, 41.4886), new Point(263.89, 41.489), new Point(263.87, 41.4894), new Point(263.84, 41.49), new Point(263.82, 41.4905), new Point(263.78, 41.4909), new Point(263.75, 41.4913), new Point(263.71, 41.4912), new Point(263.67, 41.491), new Point(263.62, 41.4905), new Point(263.58, 41.4895), new Point(263.53, 41.488), new Point(263.49, 41.486), new Point(263.45, 41.4835), new Point(263.41, 41.4804), new Point(263.37, 41.4766)), new Array(-103.77, -103.73, -103.69, -103.66, -103.62, -103.6, -103.57, -103.55, -103.53, -103.52, -103.51, -103.5, -103.5, -103.51, -103.53, -103.55, -103.56, -103.58, -103.61, -103.63, -103.66, -103.68, -103.71, -103.74, -103.77, -103.8, -103.83, -103.86, -103.89, -103.92, -103.95, -103.98, -104, -104.03, -104.06, -104.08, -104.11, -104.13, -104.15, -104.17, -104.19, -104.2, -104.21, -104.22, -104.22, -104.21, -104.19, -104.17, -104.15, -104.12, -104.1, -104.07, -104.04, -104.01, -103.98, -103.95, -103.93, -103.91, -103.9, -103.89), skeletonBase, 5)); bones.push(new Bone(new Array(new Point(251.92, 87.9608), new Point(251.92, 87.9556), new Point(251.91, 87.9571), new Point(251.89, 87.9639), new Point(251.87, 87.9751), new Point(251.84, 87.989), new Point(251.8, 88.0051), new Point(251.77, 88.0217), new Point(251.73, 88.0378), new Point(251.7, 88.0524), new Point(251.68, 88.0643), new Point(251.66, 88.0721), new Point(251.65, 88.075), new Point(251.66, 88.0731), new Point(251.67, 88.0706), new Point(251.69, 88.0673), new Point(251.7, 88.0634), new Point(251.72, 88.0588), new Point(251.74, 88.0538), new Point(251.76, 88.0484), new Point(251.78, 88.0422), new Point(251.8, 88.0357), new Point(251.82, 88.0288), new Point(251.84, 88.0216), new Point(251.86, 88.0139), new Point(251.88, 88.0059), new Point(251.91, 87.9979), new Point(251.93, 87.9896), new Point(251.95, 87.981), new Point(251.97, 87.9724), new Point(251.99, 87.9638), new Point(252.01, 87.9552), new Point(252.03, 87.9466), new Point(252.04, 87.9382), new Point(252.06, 87.93), new Point(252.07, 87.922), new Point(252.09, 87.9143), new Point(252.1, 87.907), new Point(252.11, 87.9001), new Point(252.12, 87.8937), new Point(252.13, 87.8879), new Point(252.14, 87.8827), new Point(252.14, 87.8782), new Point(252.14, 87.8744), new Point(252.14, 87.8752), new Point(252.14, 87.8775), new Point(252.13, 87.8811), new Point(252.13, 87.8856), new Point(252.12, 87.8909), new Point(252.11, 87.8967), new Point(252.09, 87.9028), new Point(252.08, 87.9088), new Point(252.06, 87.9146), new Point(252.04, 87.9201), new Point(252.02, 87.9247), new Point(251.99, 87.9285), new Point(251.97, 87.9312), new Point(251.94, 87.9325), new Point(251.91, 87.9324), new Point(251.88, 87.9305)), new Array(-62.81, -62.74, -62.68, -62.62, -62.57, -62.53, -62.5, -62.47, -62.45, -62.43, -62.42, -62.41, -62.41, -62.47, -62.53, -62.61, -62.69, -62.78, -62.88, -62.98, -63.09, -63.19, -63.31, -63.42, -63.53, -63.64, -63.74, -63.84, -63.94, -64.03, -64.11, -64.18, -64.25, -64.31, -64.37, -64.42, -64.46, -64.5, -64.53, -64.56, -64.58, -64.6, -64.61, -64.62, -64.57, -64.5, -64.4, -64.3, -64.17, -64.04, -63.9, -63.76, -63.62, -63.49, -63.36, -63.24, -63.13, -63.05, -62.98, -62.94), skeletonBase, 6)); bones.push(new Bone(new Array(new Point(259.02, 101.7727), new Point(259.04, 101.7587), new Point(259.04, 101.7525), new Point(259.03, 101.7525), new Point(259.02, 101.7578), new Point(259, 101.7666), new Point(258.97, 101.7784), new Point(258.94, 101.7915), new Point(258.91, 101.805), new Point(258.89, 101.8175), new Point(258.86, 101.8279), new Point(258.85, 101.8349), new Point(258.84, 101.8376), new Point(258.84, 101.8423), new Point(258.84, 101.848), new Point(258.83, 101.8541), new Point(258.83, 101.8605), new Point(258.82, 101.8672), new Point(258.81, 101.8742), new Point(258.81, 101.8814), new Point(258.8, 101.8883), new Point(258.8, 101.8951), new Point(258.79, 101.9018), new Point(258.79, 101.908), new Point(258.78, 101.9137), new Point(258.78, 101.9188), new Point(258.77, 101.9235), new Point(258.77, 101.9273), new Point(258.77, 101.9302), new Point(258.77, 101.9322), new Point(258.77, 101.9333), new Point(258.77, 101.9334), new Point(258.77, 101.9328), new Point(258.77, 101.9316), new Point(258.77, 101.9297), new Point(258.78, 101.9275), new Point(258.78, 101.9248), new Point(258.78, 101.9219), new Point(258.79, 101.9188), new Point(258.79, 101.9156), new Point(258.79, 101.9124), new Point(258.79, 101.9093), new Point(258.8, 101.9064), new Point(258.8, 101.9038), new Point(258.81, 101.8988), new Point(258.82, 101.8926), new Point(258.84, 101.8853), new Point(258.86, 101.877), new Point(258.88, 101.8679), new Point(258.9, 101.8581), new Point(258.92, 101.8478), new Point(258.94, 101.837), new Point(258.96, 101.826), new Point(258.97, 101.8149), new Point(258.98, 101.804), new Point(258.98, 101.7933), new Point(258.98, 101.7832), new Point(258.98, 101.7739), new Point(258.97, 101.7656), new Point(258.95, 101.7585)), new Array(-92.32, -92.24, -92.14, -92.04, -91.93, -91.82, -91.7, -91.59, -91.48, -91.37, -91.27, -91.18, -91.1, -91.09, -91.08, -91.07, -91.07, -91.08, -91.08, -91.1, -91.11, -91.13, -91.15, -91.16, -91.18, -91.2, -91.21, -91.22, -91.23, -91.24, -91.24, -91.23, -91.22, -91.21, -91.2, -91.19, -91.18, -91.16, -91.15, -91.14, -91.14, -91.13, -91.14, -91.14, -91.14, -91.16, -91.21, -91.27, -91.36, -91.46, -91.57, -91.68, -91.8, -91.92, -92.04, -92.14, -92.24, -92.32, -92.38, -92.42), skeletonBase, 7)); bones.push(new Bone(new Array(new Point(258.81, 106.7862), new Point(258.84, 106.7725), new Point(258.85, 106.7666), new Point(258.86, 106.7669), new Point(258.85, 106.7725), new Point(258.84, 106.7817), new Point(258.82, 106.7938), new Point(258.8, 106.8072), new Point(258.78, 106.8209), new Point(258.77, 106.8336), new Point(258.75, 106.8443), new Point(258.75, 106.8515), new Point(258.75, 106.8542), new Point(258.74, 106.859), new Point(258.74, 106.8647), new Point(258.74, 106.8708), new Point(258.73, 106.8772), new Point(258.73, 106.8839), new Point(258.72, 106.8909), new Point(258.71, 106.8981), new Point(258.71, 106.905), new Point(258.7, 106.9117), new Point(258.69, 106.9184), new Point(258.69, 106.9246), new Point(258.68, 106.9303), new Point(258.67, 106.9353), new Point(258.67, 106.94), new Point(258.66, 106.9438), new Point(258.66, 106.9466), new Point(258.66, 106.9486), new Point(258.66, 106.9497), new Point(258.66, 106.9499), new Point(258.66, 106.9493), new Point(258.67, 106.948), new Point(258.67, 106.9462), new Point(258.67, 106.944), new Point(258.68, 106.9413), new Point(258.68, 106.9384), new Point(258.69, 106.9354), new Point(258.69, 106.9322), new Point(258.69, 106.9291), new Point(258.7, 106.9259), new Point(258.7, 106.923), new Point(258.7, 106.9204), new Point(258.71, 106.9154), new Point(258.72, 106.9091), new Point(258.74, 106.9018), new Point(258.75, 106.8934), new Point(258.76, 106.8841), new Point(258.77, 106.8741), new Point(258.78, 106.8635), new Point(258.79, 106.8524), new Point(258.8, 106.8411), new Point(258.8, 106.8297), new Point(258.8, 106.8184), new Point(258.8, 106.8074), new Point(258.79, 106.797), new Point(258.78, 106.7874), new Point(258.76, 106.7789), new Point(258.74, 106.7716)), new Array(-1.39, -1.31, -1.21, -1.11, -1, -0.89, -0.77, -0.66, -0.55, -0.44, -0.34, -0.25, -0.17, -0.16, -0.15, -0.14, -0.14, -0.15, -0.16, -0.17, -0.18, -0.2, -0.22, -0.23, -0.25, -0.27, -0.28, -0.29, -0.3, -0.31, -0.31, -0.3, -0.29, -0.28, -0.27, -0.26, -0.25, -0.23, -0.22, -0.22, -0.21, -0.21, -0.21, -0.21, -0.21, -0.23, -0.28, -0.34, -0.43, -0.53, -0.64, -0.75, -0.87, -0.99, -1.11, -1.21, -1.31, -1.39, -1.45, -1.49), skeletonBase, 8)); bones.push(new Bone(new Array(new Point(250.25, 104.1229), new Point(250.27, 104.1214), new Point(250.28, 104.1293), new Point(250.28, 104.145), new Point(250.27, 104.1668), new Point(250.25, 104.1931), new Point(250.23, 104.2225), new Point(250.2, 104.2531), new Point(250.18, 104.2837), new Point(250.16, 104.3125), new Point(250.14, 104.338), new Point(250.13, 104.3586), new Point(250.13, 104.3729), new Point(250.12, 104.3804), new Point(250.12, 104.3877), new Point(250.12, 104.3945), new Point(250.11, 104.4009), new Point(250.1, 104.4068), new Point(250.1, 104.4125), new Point(250.09, 104.4178), new Point(250.09, 104.4224), new Point(250.08, 104.4267), new Point(250.07, 104.4307), new Point(250.07, 104.4342), new Point(250.06, 104.4373), new Point(250.06, 104.44), new Point(250.05, 104.4424), new Point(250.05, 104.4445), new Point(250.05, 104.4461), new Point(250.05, 104.4475), new Point(250.05, 104.4486), new Point(250.05, 104.4495), new Point(250.05, 104.4501), new Point(250.05, 104.4504), new Point(250.05, 104.4503), new Point(250.06, 104.4499), new Point(250.06, 104.4492), new Point(250.06, 104.4481), new Point(250.07, 104.4466), new Point(250.07, 104.4448), new Point(250.07, 104.4426), new Point(250.08, 104.4399), new Point(250.08, 104.437), new Point(250.08, 104.4335), new Point(250.09, 104.4293), new Point(250.1, 104.4196), new Point(250.12, 104.4051), new Point(250.14, 104.3865), new Point(250.15, 104.3644), new Point(250.17, 104.3394), new Point(250.18, 104.3125), new Point(250.2, 104.284), new Point(250.21, 104.2548), new Point(250.22, 104.2257), new Point(250.22, 104.1973), new Point(250.22, 104.1704), new Point(250.22, 104.1457), new Point(250.21, 104.1241), new Point(250.2, 104.1063), new Point(250.17, 104.0931)), new Array(-59.69, -59.61, -59.51, -59.41, -59.3, -59.19, -59.07, -58.96, -58.85, -58.74, -58.64, -58.55, -58.48, -58.46, -58.45, -58.44, -58.44, -58.45, -58.46, -58.47, -58.48, -58.5, -58.52, -58.54, -58.55, -58.57, -58.58, -58.6, -58.6, -58.61, -58.61, -58.6, -58.59, -58.58, -58.57, -58.56, -58.55, -58.54, -58.52, -58.52, -58.51, -58.51, -58.51, -58.51, -58.51, -58.53, -58.58, -58.65, -58.73, -58.83, -58.94, -59.06, -59.17, -59.29, -59.41, -59.51, -59.61, -59.69, -59.75, -59.79), skeletonBase, 9)); bones.push(new Bone(new Array(new Point(160.87, 41.4939), new Point(160.89, 41.4621), new Point(160.92, 41.4263), new Point(160.94, 41.3877), new Point(160.97, 41.3476), new Point(160.99, 41.3073), new Point(161.02, 41.2681), new Point(161.04, 41.2313), new Point(161.06, 41.1982), new Point(161.08, 41.1702), new Point(161.09, 41.1486), new Point(161.1, 41.1346), new Point(161.1, 41.1296), new Point(161.1, 41.1419), new Point(161.09, 41.1572), new Point(161.08, 41.1752), new Point(161.06, 41.1958), new Point(161.05, 41.2188), new Point(161.03, 41.2438), new Point(161.02, 41.2708), new Point(161, 41.2995), new Point(160.98, 41.3297), new Point(160.96, 41.3611), new Point(160.94, 41.3936), new Point(160.92, 41.427), new Point(160.89, 41.461), new Point(160.87, 41.4953), new Point(160.85, 41.53), new Point(160.83, 41.5646), new Point(160.8, 41.599), new Point(160.78, 41.6329), new Point(160.76, 41.6663), new Point(160.74, 41.6989), new Point(160.71, 41.7304), new Point(160.69, 41.7606), new Point(160.67, 41.7895), new Point(160.66, 41.8167), new Point(160.64, 41.8421), new Point(160.62, 41.8654), new Point(160.61, 41.8865), new Point(160.6, 41.9052), new Point(160.58, 41.9212), new Point(160.58, 41.9344), new Point(160.57, 41.9446), new Point(160.57, 41.9415), new Point(160.58, 41.9329), new Point(160.59, 41.9191), new Point(160.6, 41.9009), new Point(160.61, 41.8787), new Point(160.63, 41.8532), new Point(160.65, 41.825), new Point(160.67, 41.7945), new Point(160.69, 41.7624), new Point(160.72, 41.7292), new Point(160.74, 41.6956), new Point(160.76, 41.6621), new Point(160.78, 41.6294), new Point(160.8, 41.5979), new Point(160.82, 41.5684), new Point(160.84, 41.5413)), new Array(-83.38, -83.44, -83.52, -83.58, -83.63, -83.7, -83.78, -83.87, -83.96, -84.04, -84.1, -84.15, -84.16, -84.13, -84.09, -84.05, -84.01, -83.96, -83.92, -83.87, -83.82, -83.77, -83.71, -83.66, -83.61, -83.55, -83.5, -83.44, -83.38, -83.33, -83.27, -83.22, -83.16, -83.11, -83.05, -83, -82.95, -82.9, -82.85, -82.81, -82.77, -82.72, -82.68, -82.65, -82.66, -82.68, -82.71, -82.76, -82.81, -82.86, -82.92, -82.97, -83.02, -83.07, -83.11, -83.13, -83.18, -83.25, -83.33, -83.43), skeletonBase, 10)); bones.push(new Bone(new Array(new Point(165.88, 84.592), new Point(165.85, 84.5655), new Point(165.82, 84.5361), new Point(165.8, 84.5025), new Point(165.79, 84.4666), new Point(165.76, 84.432), new Point(165.72, 84.3996), new Point(165.68, 84.3701), new Point(165.64, 84.3441), new Point(165.59, 84.3225), new Point(165.56, 84.3061), new Point(165.53, 84.2956), new Point(165.52, 84.2919), new Point(165.54, 84.3014), new Point(165.56, 84.3138), new Point(165.58, 84.3286), new Point(165.6, 84.3459), new Point(165.62, 84.3653), new Point(165.64, 84.3866), new Point(165.65, 84.4097), new Point(165.67, 84.4343), new Point(165.69, 84.4603), new Point(165.71, 84.4874), new Point(165.73, 84.5154), new Point(165.75, 84.5442), new Point(165.77, 84.5735), new Point(165.79, 84.6031), new Point(165.81, 84.6329), new Point(165.83, 84.6626), new Point(165.85, 84.6921), new Point(165.87, 84.7212), new Point(165.89, 84.7496), new Point(165.91, 84.7772), new Point(165.93, 84.8038), new Point(165.95, 84.8292), new Point(165.97, 84.8533), new Point(165.98, 84.8758), new Point(166, 84.8966), new Point(166.02, 84.9155), new Point(166.04, 84.9323), new Point(166.06, 84.9468), new Point(166.08, 84.9588), new Point(166.1, 84.9682), new Point(166.13, 84.9748), new Point(166.12, 84.9726), new Point(166.11, 84.9661), new Point(166.09, 84.9556), new Point(166.07, 84.9415), new Point(166.05, 84.9241), new Point(166.03, 84.9037), new Point(166.01, 84.8807), new Point(165.99, 84.8553), new Point(165.97, 84.828), new Point(165.96, 84.7991), new Point(165.95, 84.7689), new Point(165.95, 84.7378), new Point(165.94, 84.7092), new Point(165.9, 84.6845), new Point(165.87, 84.6618), new Point(165.81, 84.6433)), new Array(-125.5, -125.54, -125.53, -125.48, -125.38, -125.28, -125.19, -125.1, -125.02, -124.96, -124.91, -124.88, -124.87, -124.89, -124.93, -124.97, -125.03, -125.09, -125.16, -125.24, -125.32, -125.41, -125.5, -125.6, -125.7, -125.8, -125.9, -126.01, -126.11, -126.21, -126.31, -126.41, -126.5, -126.59, -126.67, -126.75, -126.82, -126.88, -126.94, -126.98, -127.02, -127.04, -127.06, -127.06, -127.04, -127, -126.93, -126.84, -126.74, -126.61, -126.48, -126.34, -126.19, -126.03, -125.88, -125.73, -125.62, -125.56, -125.54, -125.57), skeletonBase, 11)); bones.push(new Bone(new Array(new Point(152.67, 103.12), new Point(152.63, 103.0861), new Point(152.6, 103.0572), new Point(152.6, 103.0369), new Point(152.62, 103.0234), new Point(152.62, 103.0111), new Point(152.62, 103), new Point(152.6, 102.9903), new Point(152.58, 102.982), new Point(152.56, 102.9752), new Point(152.54, 102.9702), new Point(152.53, 102.967), new Point(152.52, 102.9659), new Point(152.53, 102.9698), new Point(152.54, 102.974), new Point(152.54, 102.9785), new Point(152.54, 102.9833), new Point(152.54, 102.9883), new Point(152.54, 102.9935), new Point(152.53, 102.9988), new Point(152.52, 103.0043), new Point(152.52, 103.0099), new Point(152.5, 103.0156), new Point(152.49, 103.0213), new Point(152.48, 103.027), new Point(152.47, 103.0328), new Point(152.45, 103.0386), new Point(152.44, 103.0444), new Point(152.43, 103.0501), new Point(152.41, 103.0559), new Point(152.4, 103.0616), new Point(152.39, 103.0673), new Point(152.38, 103.073), new Point(152.37, 103.0787), new Point(152.36, 103.0844), new Point(152.36, 103.0901), new Point(152.35, 103.0958), new Point(152.35, 103.1016), new Point(152.36, 103.1074), new Point(152.36, 103.1134), new Point(152.37, 103.1194), new Point(152.38, 103.1256), new Point(152.4, 103.1319), new Point(152.42, 103.1383), new Point(152.42, 103.1396), new Point(152.42, 103.1433), new Point(152.43, 103.1488), new Point(152.44, 103.1558), new Point(152.45, 103.1639), new Point(152.46, 103.1725), new Point(152.48, 103.1813), new Point(152.51, 103.1898), new Point(152.54, 103.1977), new Point(152.58, 103.2046), new Point(152.62, 103.2101), new Point(152.67, 103.2138), new Point(152.7, 103.211), new Point(152.68, 103.1992), new Point(152.65, 103.182), new Point(152.58, 103.1559)), new Array(-46.83, -46.89, -46.97, -47.03, -47.08, -47.16, -47.25, -47.35, -47.44, -47.53, -47.6, -47.65, -47.67, -47.66, -47.66, -47.66, -47.66, -47.66, -47.66, -47.66, -47.65, -47.65, -47.65, -47.65, -47.65, -47.65, -47.65, -47.64, -47.64, -47.63, -47.63, -47.62, -47.61, -47.6, -47.58, -47.57, -47.55, -47.53, -47.51, -47.49, -47.46, -47.43, -47.4, -47.36, -47.36, -47.35, -47.32, -47.29, -47.26, -47.21, -47.16, -47.11, -47.04, -46.98, -46.91, -46.84, -46.8, -46.8, -46.82, -46.88), skeletonBase, 12)); bones.push(new Bone(new Array(new Point(157.25, 108.0075), new Point(157.21, 107.9785), new Point(157.17, 107.9559), new Point(157.16, 107.9407), new Point(157.18, 107.9315), new Point(157.18, 107.9253), new Point(157.16, 107.9214), new Point(157.14, 107.9193), new Point(157.11, 107.9186), new Point(157.08, 107.9187), new Point(157.06, 107.9193), new Point(157.04, 107.92), new Point(157.03, 107.9203), new Point(157.04, 107.9239), new Point(157.05, 107.9278), new Point(157.05, 107.9322), new Point(157.05, 107.9368), new Point(157.05, 107.9417), new Point(157.05, 107.9468), new Point(157.04, 107.9521), new Point(157.04, 107.9576), new Point(157.03, 107.9632), new Point(157.02, 107.9688), new Point(157, 107.9744), new Point(156.99, 107.9801), new Point(156.98, 107.9857), new Point(156.97, 107.9913), new Point(156.95, 107.9968), new Point(156.94, 108.0022), new Point(156.93, 108.0075), new Point(156.91, 108.0127), new Point(156.9, 108.0177), new Point(156.89, 108.0227), new Point(156.89, 108.0275), new Point(156.88, 108.0321), new Point(156.88, 108.0366), new Point(156.87, 108.041), new Point(156.88, 108.0453), new Point(156.88, 108.0494), new Point(156.89, 108.0535), new Point(156.9, 108.0574), new Point(156.91, 108.0613), new Point(156.93, 108.065), new Point(156.96, 108.0687), new Point(156.96, 108.0696), new Point(156.96, 108.0722), new Point(156.97, 108.076), new Point(156.98, 108.0806), new Point(156.99, 108.0856), new Point(157.01, 108.0908), new Point(157.04, 108.0955), new Point(157.07, 108.0996), new Point(157.1, 108.1027), new Point(157.15, 108.1044), new Point(157.2, 108.1044), new Point(157.25, 108.1024), new Point(157.28, 108.0962), new Point(157.26, 108.0846), new Point(157.23, 108.0691), new Point(157.16, 108.0479)), new Array(-0.11, -0.17, -0.25, -0.31, -0.36, -0.44, -0.53, -0.63, -0.72, -0.81, -0.88, -0.93, -0.95, -0.94, -0.94, -0.94, -0.94, -0.94, -0.94, -0.94, -0.94, -0.94, -0.93, -0.93, -0.93, -0.93, -0.93, -0.92, -0.92, -0.91, -0.91, -0.9, -0.89, -0.88, -0.87, -0.85, -0.83, -0.81, -0.79, -0.77, -0.74, -0.71, -0.68, -0.65, -0.64, -0.63, -0.6, -0.57, -0.54, -0.49, -0.44, -0.39, -0.33, -0.26, -0.19, -0.12, -0.08, -0.08, -0.1, -0.16), skeletonBase, 13)); bones.push(new Bone(new Array(new Point(128.83, 41.4065), new Point(128.85, 41.4302), new Point(128.88, 41.4568), new Point(128.9, 41.4854), new Point(128.93, 41.5151), new Point(128.95, 41.5447), new Point(128.98, 41.5735), new Point(129, 41.6004), new Point(129.03, 41.6245), new Point(129.04, 41.645), new Point(129.06, 41.6607), new Point(129.07, 41.6708), new Point(129.07, 41.6744), new Point(129.06, 41.6655), new Point(129.05, 41.6544), new Point(129.04, 41.6413), new Point(129.03, 41.6263), new Point(129.01, 41.6096), new Point(129, 41.5913), new Point(128.98, 41.5715), new Point(128.96, 41.5505), new Point(128.94, 41.5283), new Point(128.92, 41.5051), new Point(128.9, 41.481), new Point(128.88, 41.4563), new Point(128.85, 41.4311), new Point(128.83, 41.4054), new Point(128.81, 41.3795), new Point(128.79, 41.3536), new Point(128.76, 41.3277), new Point(128.74, 41.3021), new Point(128.72, 41.2769), new Point(128.7, 41.2522), new Point(128.68, 41.2282), new Point(128.66, 41.2051), new Point(128.64, 41.1831), new Point(128.62, 41.1622), new Point(128.61, 41.1428), new Point(128.59, 41.1248), new Point(128.58, 41.1085), new Point(128.57, 41.0941), new Point(128.56, 41.0817), new Point(128.55, 41.0715), new Point(128.54, 41.0637), new Point(128.54, 41.066), new Point(128.55, 41.0727), new Point(128.56, 41.0833), new Point(128.57, 41.0974), new Point(128.58, 41.1145), new Point(128.6, 41.1342), new Point(128.62, 41.1559), new Point(128.64, 41.1793), new Point(128.66, 41.2038), new Point(128.68, 41.2291), new Point(128.7, 41.2546), new Point(128.72, 41.28), new Point(128.74, 41.3048), new Point(128.76, 41.3285), new Point(128.78, 41.3507), new Point(128.8, 41.371)), new Array(-82.54, -82.51, -82.55, -82.57, -82.57, -82.59, -82.61, -82.64, -82.68, -82.71, -82.74, -82.77, -82.77, -82.78, -82.79, -82.8, -82.81, -82.82, -82.84, -82.85, -82.87, -82.89, -82.91, -82.93, -82.95, -82.97, -83, -83.02, -83.04, -83.06, -83.08, -83.09, -83.11, -83.12, -83.14, -83.15, -83.16, -83.16, -83.17, -83.17, -83.16, -83.16, -83.15, -83.13, -83.13, -83.11, -83.09, -83.06, -83.02, -82.97, -82.92, -82.86, -82.8, -82.74, -82.67, -82.6, -82.52, -82.45, -82.43, -82.54), skeletonBase, 14)); bones.push(new Bone(new Array(new Point(134.49, 84.6095), new Point(134.53, 84.63), new Point(134.53, 84.6601), new Point(134.54, 84.691), new Point(134.56, 84.7206), new Point(134.58, 84.7517), new Point(134.58, 84.783), new Point(134.58, 84.8131), new Point(134.58, 84.8407), new Point(134.57, 84.8645), new Point(134.56, 84.8831), new Point(134.55, 84.8952), new Point(134.55, 84.8996), new Point(134.54, 84.8911), new Point(134.52, 84.8808), new Point(134.51, 84.8686), new Point(134.48, 84.8547), new Point(134.46, 84.8393), new Point(134.43, 84.8224), new Point(134.4, 84.8043), new Point(134.37, 84.785), new Point(134.33, 84.7646), new Point(134.3, 84.7433), new Point(134.26, 84.7212), new Point(134.22, 84.6985), new Point(134.18, 84.6752), new Point(134.15, 84.6515), new Point(134.11, 84.6276), new Point(134.07, 84.6035), new Point(134.03, 84.5795), new Point(134, 84.5556), new Point(133.96, 84.532), new Point(133.93, 84.5088), new Point(133.9, 84.4862), new Point(133.87, 84.4642), new Point(133.84, 84.4432), new Point(133.82, 84.4231), new Point(133.79, 84.4042), new Point(133.78, 84.3865), new Point(133.76, 84.3703), new Point(133.75, 84.3556), new Point(133.75, 84.3427), new Point(133.75, 84.3316), new Point(133.75, 84.3225), new Point(133.76, 84.3244), new Point(133.77, 84.3298), new Point(133.8, 84.3382), new Point(133.84, 84.3494), new Point(133.88, 84.3629), new Point(133.93, 84.3782), new Point(133.99, 84.3951), new Point(134.05, 84.4131), new Point(134.12, 84.4317), new Point(134.19, 84.4507), new Point(134.26, 84.4696), new Point(134.34, 84.488), new Point(134.42, 84.5052), new Point(134.49, 84.5225), new Point(134.52, 84.5423), new Point(134.46, 84.5738)), new Array(-125.22, -125.2, -125.27, -125.34, -125.4, -125.48, -125.58, -125.69, -125.79, -125.89, -125.97, -126.02, -126.04, -125.98, -125.92, -125.84, -125.77, -125.68, -125.59, -125.5, -125.4, -125.3, -125.19, -125.09, -124.98, -124.87, -124.76, -124.65, -124.54, -124.43, -124.32, -124.22, -124.12, -124.02, -123.92, -123.83, -123.75, -123.67, -123.6, -123.53, -123.47, -123.42, -123.38, -123.35, -123.37, -123.42, -123.51, -123.62, -123.75, -123.89, -124.04, -124.2, -124.36, -124.5, -124.64, -124.76, -124.85, -124.93, -125.01, -125.19), skeletonBase, 15)); bones.push(new Bone(new Array(new Point(121.65, 102.7698), new Point(121.7, 102.7948), new Point(121.68, 102.8097), new Point(121.66, 102.8246), new Point(121.67, 102.8406), new Point(121.66, 102.8529), new Point(121.63, 102.8619), new Point(121.6, 102.8681), new Point(121.56, 102.8719), new Point(121.52, 102.8739), new Point(121.49, 102.8746), new Point(121.47, 102.8746), new Point(121.46, 102.8745), new Point(121.46, 102.8793), new Point(121.47, 102.8838), new Point(121.47, 102.8881), new Point(121.47, 102.8921), new Point(121.48, 102.8958), new Point(121.48, 102.8992), new Point(121.48, 102.9023), new Point(121.47, 102.9052), new Point(121.47, 102.9077), new Point(121.47, 102.9098), new Point(121.47, 102.9116), new Point(121.46, 102.9131), new Point(121.46, 102.9142), new Point(121.46, 102.915), new Point(121.45, 102.9155), new Point(121.45, 102.9156), new Point(121.45, 102.9155), new Point(121.45, 102.9151), new Point(121.44, 102.9144), new Point(121.44, 102.9134), new Point(121.44, 102.9122), new Point(121.45, 102.9108), new Point(121.45, 102.9091), new Point(121.45, 102.9074), new Point(121.46, 102.9054), new Point(121.46, 102.9034), new Point(121.47, 102.9013), new Point(121.48, 102.8992), new Point(121.49, 102.897), new Point(121.5, 102.8948), new Point(121.51, 102.8927), new Point(121.51, 102.8904), new Point(121.51, 102.884), new Point(121.51, 102.8743), new Point(121.51, 102.8618), new Point(121.51, 102.8474), new Point(121.52, 102.8316), new Point(121.53, 102.8153), new Point(121.54, 102.7991), new Point(121.56, 102.7838), new Point(121.58, 102.7702), new Point(121.61, 102.7591), new Point(121.65, 102.7513), new Point(121.7, 102.748), new Point(121.74, 102.7482), new Point(121.75, 102.7492), new Point(121.63, 102.7399)), new Array(-48.77, -48.72, -48.73, -48.7, -48.63, -48.57, -48.52, -48.48, -48.44, -48.41, -48.39, -48.37, -48.37, -48.35, -48.33, -48.32, -48.3, -48.29, -48.28, -48.27, -48.27, -48.26, -48.26, -48.26, -48.25, -48.25, -48.25, -48.26, -48.26, -48.26, -48.26, -48.27, -48.27, -48.28, -48.28, -48.28, -48.29, -48.29, -48.29, -48.29, -48.29, -48.29, -48.29, -48.29, -48.3, -48.31, -48.34, -48.37, -48.4, -48.44, -48.47, -48.51, -48.54, -48.57, -48.59, -48.6, -48.59, -48.59, -48.61, -48.76), skeletonBase, 16)); bones.push(new Bone(new Array(new Point(125.81, 107.4914), new Point(125.87, 107.5132), new Point(125.84, 107.5283), new Point(125.83, 107.541), new Point(125.84, 107.5523), new Point(125.84, 107.5603), new Point(125.82, 107.5655), new Point(125.79, 107.5684), new Point(125.75, 107.5695), new Point(125.72, 107.5693), new Point(125.68, 107.5685), new Point(125.66, 107.5676), new Point(125.65, 107.5671), new Point(125.66, 107.5704), new Point(125.67, 107.5736), new Point(125.67, 107.5767), new Point(125.68, 107.5797), new Point(125.68, 107.5826), new Point(125.68, 107.5853), new Point(125.68, 107.5878), new Point(125.68, 107.5901), new Point(125.68, 107.5923), new Point(125.67, 107.5941), new Point(125.67, 107.5958), new Point(125.67, 107.5971), new Point(125.67, 107.5983), new Point(125.66, 107.5991), new Point(125.66, 107.5997), new Point(125.66, 107.6), new Point(125.65, 107.6001), new Point(125.65, 107.5999), new Point(125.65, 107.5994), new Point(125.65, 107.5987), new Point(125.65, 107.5978), new Point(125.65, 107.5967), new Point(125.65, 107.5953), new Point(125.65, 107.5938), new Point(125.66, 107.5921), new Point(125.66, 107.5903), new Point(125.67, 107.5883), new Point(125.68, 107.5862), new Point(125.69, 107.5841), new Point(125.7, 107.5818), new Point(125.72, 107.5796), new Point(125.72, 107.5777), new Point(125.71, 107.5724), new Point(125.71, 107.5644), new Point(125.71, 107.5541), new Point(125.71, 107.5421), new Point(125.71, 107.529), new Point(125.72, 107.5154), new Point(125.73, 107.5018), new Point(125.74, 107.4888), new Point(125.76, 107.4772), new Point(125.79, 107.4675), new Point(125.83, 107.4605), new Point(125.88, 107.457), new Point(125.92, 107.4569), new Point(125.93, 107.4595), new Point(125.79, 107.4607)), new Array(-1.92, -1.88, -1.88, -1.85, -1.79, -1.73, -1.68, -1.63, -1.59, -1.56, -1.54, -1.53, -1.52, -1.5, -1.49, -1.47, -1.46, -1.45, -1.44, -1.43, -1.42, -1.42, -1.41, -1.41, -1.41, -1.41, -1.41, -1.41, -1.41, -1.42, -1.42, -1.42, -1.43, -1.43, -1.43, -1.44, -1.44, -1.44, -1.45, -1.45, -1.45, -1.45, -1.45, -1.45, -1.45, -1.47, -1.49, -1.52, -1.55, -1.59, -1.63, -1.66, -1.69, -1.72, -1.74, -1.75, -1.75, -1.74, -1.77, -1.91), skeletonBase, 17)); bones.push(new Bone(new Array(new Point(147.54, 105.0318), new Point(147.5, 104.9923), new Point(147.46, 104.9565), new Point(147.46, 104.9305), new Point(147.48, 104.912), new Point(147.48, 104.8929), new Point(147.47, 104.8737), new Point(147.46, 104.8553), new Point(147.43, 104.8384), new Point(147.41, 104.8238), new Point(147.38, 104.8123), new Point(147.37, 104.8048), new Point(147.36, 104.8021), new Point(147.37, 104.8063), new Point(147.38, 104.8108), new Point(147.38, 104.8155), new Point(147.39, 104.8204), new Point(147.38, 104.8255), new Point(147.38, 104.8307), new Point(147.38, 104.8361), new Point(147.37, 104.8416), new Point(147.36, 104.8473), new Point(147.35, 104.853), new Point(147.34, 104.8588), new Point(147.32, 104.8647), new Point(147.31, 104.8706), new Point(147.3, 104.8766), new Point(147.28, 104.8827), new Point(147.27, 104.8889), new Point(147.26, 104.8951), new Point(147.24, 104.9015), new Point(147.23, 104.9079), new Point(147.22, 104.9145), new Point(147.21, 104.9212), new Point(147.21, 104.928), new Point(147.2, 104.9351), new Point(147.2, 104.9424), new Point(147.2, 104.9499), new Point(147.2, 104.9577), new Point(147.21, 104.9658), new Point(147.22, 104.9742), new Point(147.23, 104.983), new Point(147.25, 104.9922), new Point(147.27, 105.0018), new Point(147.27, 105.0035), new Point(147.28, 105.0084), new Point(147.28, 105.0159), new Point(147.29, 105.0256), new Point(147.3, 105.0371), new Point(147.32, 105.0497), new Point(147.34, 105.063), new Point(147.37, 105.0765), new Point(147.4, 105.0898), new Point(147.44, 105.1026), new Point(147.49, 105.1142), new Point(147.54, 105.1244), new Point(147.57, 105.1253), new Point(147.55, 105.1133), new Point(147.52, 105.0943), new Point(147.45, 105.0626)), new Array(-52.71, -52.77, -52.85, -52.92, -52.97, -53.05, -53.14, -53.23, -53.33, -53.42, -53.49, -53.54, -53.55, -53.55, -53.55, -53.55, -53.54, -53.54, -53.54, -53.54, -53.54, -53.54, -53.54, -53.54, -53.54, -53.54, -53.53, -53.53, -53.53, -53.52, -53.51, -53.5, -53.5, -53.48, -53.47, -53.46, -53.44, -53.42, -53.4, -53.37, -53.35, -53.32, -53.29, -53.25, -53.25, -53.23, -53.21, -53.18, -53.14, -53.1, -53.05, -52.99, -52.93, -52.87, -52.8, -52.73, -52.68, -52.69, -52.71, -52.77), skeletonBase, 18)); bones.push(new Bone(new Array(new Point(116.93, 104.8497), new Point(116.98, 104.8783), new Point(116.96, 104.8931), new Point(116.94, 104.9103), new Point(116.95, 104.9317), new Point(116.94, 104.9489), new Point(116.92, 104.9622), new Point(116.89, 104.972), new Point(116.85, 104.9789), new Point(116.81, 104.9833), new Point(116.78, 104.9858), new Point(116.76, 104.9869), new Point(116.75, 104.9872), new Point(116.76, 104.9936), new Point(116.76, 104.9996), new Point(116.77, 105.0051), new Point(116.77, 105.0103), new Point(116.77, 105.015), new Point(116.77, 105.0192), new Point(116.77, 105.0229), new Point(116.77, 105.0263), new Point(116.77, 105.0292), new Point(116.77, 105.0316), new Point(116.76, 105.0336), new Point(116.76, 105.0352), new Point(116.76, 105.0364), new Point(116.75, 105.0371), new Point(116.75, 105.0375), new Point(116.75, 105.0374), new Point(116.75, 105.0371), new Point(116.74, 105.0364), new Point(116.74, 105.0354), new Point(116.74, 105.0341), new Point(116.74, 105.0326), new Point(116.74, 105.0309), new Point(116.74, 105.0289), new Point(116.75, 105.0269), new Point(116.75, 105.0247), new Point(116.76, 105.0225), new Point(116.76, 105.0203), new Point(116.77, 105.018), new Point(116.78, 105.0158), new Point(116.8, 105.0137), new Point(116.81, 105.0117), new Point(116.81, 105.009), new Point(116.81, 105.0013), new Point(116.81, 104.9897), new Point(116.81, 104.9748), new Point(116.81, 104.9576), new Point(116.81, 104.9389), new Point(116.82, 104.9195), new Point(116.83, 104.9005), new Point(116.85, 104.8826), new Point(116.87, 104.8667), new Point(116.9, 104.854), new Point(116.93, 104.8453), new Point(116.98, 104.8423), new Point(117.03, 104.8428), new Point(117.04, 104.8419), new Point(116.91, 104.8208)), new Array(-57.35, -57.31, -57.31, -57.28, -57.22, -57.16, -57.11, -57.06, -57.03, -57, -56.97, -56.96, -56.96, -56.94, -56.92, -56.9, -56.89, -56.88, -56.87, -56.86, -56.85, -56.85, -56.84, -56.84, -56.84, -56.84, -56.84, -56.84, -56.85, -56.85, -56.85, -56.85, -56.86, -56.86, -56.87, -56.87, -56.87, -56.88, -56.88, -56.88, -56.88, -56.88, -56.88, -56.88, -56.88, -56.9, -56.92, -56.95, -56.99, -57.02, -57.06, -57.09, -57.13, -57.15, -57.17, -57.18, -57.18, -57.18, -57.2, -57.34), skeletonBase, 19)); bones.push(new Bone(new Array(new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824), new Point(142.53, 29.4824)), new Array(11.94, 12.04, 12.15, 12.27, 12.4, 12.52, 12.64, 12.76, 12.86, 12.95, 13.01, 13.06, 13.07, 13.03, 12.99, 12.93, 12.87, 12.8, 12.72, 12.64, 12.55, 12.45, 12.36, 12.25, 12.15, 12.04, 11.94, 11.83, 11.72, 11.61, 11.51, 11.4, 11.3, 11.2, 11.1, 11.01, 10.93, 10.85, 10.77, 10.71, 10.65, 10.6, 10.55, 10.52, 10.53, 10.56, 10.6, 10.66, 10.73, 10.81, 10.9, 11, 11.1, 11.2, 11.31, 11.41, 11.52, 11.62, 11.71, 11.79), skeletonBase, 20)); bones.push(new Bone(new Array(new Point(188.62, 19.7308), new Point(188.6, 19.6511), new Point(188.58, 19.5614), new Point(188.56, 19.4648), new Point(188.54, 19.3646), new Point(188.51, 19.2642), new Point(188.49, 19.1666), new Point(188.47, 19.0752), new Point(188.45, 18.9932), new Point(188.44, 18.9238), new Point(188.43, 18.8702), new Point(188.42, 18.8357), new Point(188.41, 18.8235), new Point(188.42, 18.8538), new Point(188.43, 18.8915), new Point(188.44, 18.9362), new Point(188.45, 18.9872), new Point(188.47, 19.0441), new Point(188.48, 19.1063), new Point(188.49, 19.1734), new Point(188.51, 19.2448), new Point(188.53, 19.3199), new Point(188.54, 19.3984), new Point(188.56, 19.4796), new Point(188.58, 19.563), new Point(188.6, 19.6482), new Point(188.62, 19.7345), new Point(188.64, 19.8216), new Point(188.65, 19.9087), new Point(188.67, 19.9955), new Point(188.69, 20.0814), new Point(188.71, 20.1658), new Point(188.72, 20.2483), new Point(188.74, 20.3283), new Point(188.75, 20.4053), new Point(188.77, 20.4788), new Point(188.78, 20.5482), new Point(188.79, 20.613), new Point(188.81, 20.6726), new Point(188.82, 20.7266), new Point(188.82, 20.7744), new Point(188.83, 20.8155), new Point(188.84, 20.8493), new Point(188.84, 20.8754), new Point(188.84, 20.8677), new Point(188.84, 20.8454), new Point(188.83, 20.8102), new Point(188.82, 20.7635), new Point(188.81, 20.7067), new Point(188.8, 20.6415), new Point(188.79, 20.5692), new Point(188.77, 20.4915), new Point(188.75, 20.4097), new Point(188.74, 20.3254), new Point(188.72, 20.2401), new Point(188.7, 20.1553), new Point(188.69, 20.0724), new Point(188.67, 19.9929), new Point(188.66, 19.9184), new Point(188.64, 19.8502)), new Array(-4.13, -4.17, -4.21, -4.25, -4.29, -4.34, -4.38, -4.42, -4.45, -4.48, -4.5, -4.52, -4.52, -4.52, -4.52, -4.52, -4.52, -4.51, -4.51, -4.5, -4.49, -4.49, -4.48, -4.47, -4.45, -4.44, -4.43, -4.42, -4.4, -4.39, -4.38, -4.36, -4.35, -4.33, -4.32, -4.31, -4.29, -4.28, -4.27, -4.25, -4.24, -4.23, -4.22, -4.21, -4.21, -4.21, -4.2, -4.2, -4.19, -4.18, -4.17, -4.16, -4.15, -4.14, -4.13, -4.12, -4.11, -4.1, -4.09, -4.09), skeletonBase, 21)); bones.push(new Bone(new Array(new Point(216.92, 21.7803), new Point(216.9, 21.7188), new Point(216.88, 21.649), new Point(216.86, 21.5735), new Point(216.84, 21.4949), new Point(216.81, 21.4158), new Point(216.79, 21.3389), new Point(216.77, 21.2666), new Point(216.75, 21.2018), new Point(216.73, 21.1468), new Point(216.72, 21.1043), new Point(216.71, 21.0769), new Point(216.7, 21.0672), new Point(216.71, 21.0981), new Point(216.72, 21.1356), new Point(216.73, 21.1793), new Point(216.74, 21.2287), new Point(216.76, 21.2834), new Point(216.77, 21.3428), new Point(216.78, 21.4065), new Point(216.8, 21.474), new Point(216.82, 21.5448), new Point(216.84, 21.6185), new Point(216.85, 21.6946), new Point(216.87, 21.7725), new Point(216.89, 21.8517), new Point(216.91, 21.932), new Point(216.93, 22.0127), new Point(216.95, 22.0932), new Point(216.97, 22.1733), new Point(216.98, 22.2523), new Point(217, 22.3299), new Point(217.02, 22.4054), new Point(217.04, 22.4785), new Point(217.05, 22.5486), new Point(217.07, 22.6152), new Point(217.08, 22.6778), new Point(217.09, 22.736), new Point(217.1, 22.7893), new Point(217.12, 22.8372), new Point(217.12, 22.8791), new Point(217.13, 22.9146), new Point(217.14, 22.9433), new Point(217.14, 22.9645), new Point(217.14, 22.9563), new Point(217.14, 22.9328), new Point(217.13, 22.8954), new Point(217.12, 22.8459), new Point(217.11, 22.7858), new Point(217.1, 22.7167), new Point(217.09, 22.6402), new Point(217.07, 22.5577), new Point(217.06, 22.4711), new Point(217.04, 22.3818), new Point(217.03, 22.2913), new Point(217.01, 22.2014), new Point(216.99, 22.1135), new Point(216.98, 22.0292), new Point(216.96, 21.9501), new Point(216.95, 21.8778)), new Array(-18.49, -18.65, -18.84, -19.05, -19.28, -19.52, -19.75, -19.97, -20.17, -20.34, -20.47, -20.55, -20.59, -20.51, -20.41, -20.3, -20.17, -20.03, -19.88, -19.71, -19.54, -19.35, -19.16, -18.96, -18.76, -18.55, -18.34, -18.12, -17.91, -17.7, -17.49, -17.29, -17.09, -16.89, -16.71, -16.53, -16.36, -16.2, -16.06, -15.93, -15.82, -15.72, -15.64, -15.58, -15.6, -15.66, -15.75, -15.87, -16.01, -16.18, -16.36, -16.56, -16.77, -16.98, -17.2, -17.41, -17.62, -17.82, -18.01, -18.18), skeletonBase, 22)); bones.push(new Bone(new Array(new Point(239.6, 29.3668), new Point(239.56, 29.3691), new Point(239.51, 29.3755), new Point(239.46, 29.3849), new Point(239.4, 29.3967), new Point(239.35, 29.4098), new Point(239.29, 29.4238), new Point(239.24, 29.4377), new Point(239.19, 29.4508), new Point(239.15, 29.4623), new Point(239.12, 29.4714), new Point(239.1, 29.4774), new Point(239.09, 29.4796), new Point(239.11, 29.4803), new Point(239.13, 29.4808), new Point(239.16, 29.4808), new Point(239.19, 29.4805), new Point(239.22, 29.4797), new Point(239.26, 29.4788), new Point(239.29, 29.4775), new Point(239.34, 29.4758), new Point(239.38, 29.4737), new Point(239.42, 29.4715), new Point(239.47, 29.469), new Point(239.51, 29.4662), new Point(239.56, 29.463), new Point(239.61, 29.4598), new Point(239.65, 29.4562), new Point(239.7, 29.4524), new Point(239.75, 29.4485), new Point(239.79, 29.4445), new Point(239.83, 29.4403), new Point(239.87, 29.436), new Point(239.91, 29.4317), new Point(239.95, 29.4273), new Point(239.99, 29.4229), new Point(240.02, 29.4185), new Point(240.05, 29.4142), new Point(240.08, 29.41), new Point(240.11, 29.4059), new Point(240.13, 29.402), new Point(240.15, 29.3982), new Point(240.17, 29.3946), new Point(240.18, 29.3913), new Point(240.17, 29.3911), new Point(240.16, 29.3905), new Point(240.15, 29.3894), new Point(240.12, 29.3879), new Point(240.1, 29.386), new Point(240.07, 29.3838), new Point(240.03, 29.3812), new Point(239.99, 29.3781), new Point(239.95, 29.3748), new Point(239.91, 29.3712), new Point(239.87, 29.3672), new Point(239.82, 29.363), new Point(239.78, 29.3585), new Point(239.74, 29.3538), new Point(239.7, 29.349), new Point(239.66, 29.3441)), new Array(-36.97, -36.94, -36.91, -36.88, -36.87, -36.86, -36.85, -36.85, -36.85, -36.85, -36.85, -36.85, -36.85, -36.85, -36.85, -36.85, -36.85, -36.85, -36.85, -36.85, -36.85, -36.85, -36.86, -36.86, -36.86, -36.86, -36.87, -36.87, -36.87, -36.88, -36.88, -36.88, -36.89, -36.89, -36.89, -36.9, -36.9, -36.9, -36.91, -36.91, -36.92, -36.92, -36.92, -36.93, -36.93, -36.93, -36.93, -36.94, -36.94, -36.95, -36.96, -36.97, -36.97, -36.98, -36.99, -36.99, -37, -37.01, -37.01, -37.01), skeletonBase, 23)); bones.push(new Bone(new Array(new Point(260.34, 44.9864), new Point(260.31, 44.9751), new Point(260.27, 44.9708), new Point(260.22, 44.972), new Point(260.17, 44.978), new Point(260.12, 44.987), new Point(260.06, 44.9986), new Point(260.01, 45.0113), new Point(259.96, 45.0242), new Point(259.92, 45.036), new Point(259.89, 45.0458), new Point(259.87, 45.0524), new Point(259.86, 45.0549), new Point(259.88, 45.0553), new Point(259.9, 45.0556), new Point(259.93, 45.0556), new Point(259.96, 45.0553), new Point(259.99, 45.0547), new Point(260.03, 45.0541), new Point(260.07, 45.0533), new Point(260.11, 45.052), new Point(260.15, 45.0506), new Point(260.19, 45.0491), new Point(260.24, 45.0474), new Point(260.28, 45.0454), new Point(260.33, 45.0431), new Point(260.37, 45.0409), new Point(260.42, 45.0385), new Point(260.46, 45.0358), new Point(260.51, 45.033), new Point(260.55, 45.0302), new Point(260.6, 45.0273), new Point(260.64, 45.0243), new Point(260.68, 45.0213), new Point(260.71, 45.0182), new Point(260.75, 45.0152), new Point(260.78, 45.0121), new Point(260.81, 45.0092), new Point(260.84, 45.0063), new Point(260.86, 45.0036), new Point(260.88, 45.001), new Point(260.9, 44.9985), new Point(260.92, 44.9963), new Point(260.93, 44.9942), new Point(260.92, 44.9943), new Point(260.91, 44.9945), new Point(260.9, 44.9948), new Point(260.87, 44.995), new Point(260.84, 44.9953), new Point(260.81, 44.9954), new Point(260.77, 44.9953), new Point(260.73, 44.9949), new Point(260.69, 44.9943), new Point(260.65, 44.9934), new Point(260.6, 44.992), new Point(260.56, 44.9902), new Point(260.51, 44.9879), new Point(260.47, 44.9851), new Point(260.43, 44.9818), new Point(260.39, 44.9778)), new Array(-28.27, -28.24, -28.21, -28.19, -28.17, -28.16, -28.15, -28.15, -28.15, -28.15, -28.15, -28.15, -28.15, -28.15, -28.15, -28.15, -28.15, -28.15, -28.15, -28.15, -28.16, -28.16, -28.16, -28.16, -28.16, -28.17, -28.17, -28.17, -28.17, -28.18, -28.18, -28.18, -28.19, -28.19, -28.2, -28.2, -28.2, -28.21, -28.21, -28.21, -28.22, -28.22, -28.23, -28.23, -28.23, -28.23, -28.24, -28.24, -28.25, -28.25, -28.26, -28.27, -28.27, -28.28, -28.29, -28.3, -28.3, -28.31, -28.31, -28.31), skeletonBase, 24)); bones.push(new Bone(new Array(new Point(281.85, 56.5564), new Point(281.83, 56.5311), new Point(281.8, 56.5158), new Point(281.76, 56.5085), new Point(281.71, 56.5084), new Point(281.66, 56.5132), new Point(281.61, 56.5223), new Point(281.55, 56.5337), new Point(281.51, 56.5463), new Point(281.46, 56.5585), new Point(281.43, 56.5691), new Point(281.41, 56.5763), new Point(281.4, 56.579), new Point(281.42, 56.579), new Point(281.44, 56.5793), new Point(281.47, 56.5792), new Point(281.5, 56.579), new Point(281.53, 56.5785), new Point(281.57, 56.5783), new Point(281.61, 56.5779), new Point(281.65, 56.5772), new Point(281.69, 56.5763), new Point(281.73, 56.5756), new Point(281.78, 56.5747), new Point(281.82, 56.5736), new Point(281.87, 56.5723), new Point(281.91, 56.5712), new Point(281.96, 56.5699), new Point(282, 56.5683), new Point(282.05, 56.5667), new Point(282.09, 56.5651), new Point(282.13, 56.5636), new Point(282.17, 56.5619), new Point(282.21, 56.5602), new Point(282.25, 56.5585), new Point(282.28, 56.5569), new Point(282.31, 56.5553), new Point(282.34, 56.5537), new Point(282.37, 56.5523), new Point(282.39, 56.551), new Point(282.41, 56.5498), new Point(282.43, 56.5486), new Point(282.44, 56.5477), new Point(282.45, 56.547), new Point(282.45, 56.5474), new Point(282.44, 56.5485), new Point(282.42, 56.5501), new Point(282.4, 56.5522), new Point(282.37, 56.5546), new Point(282.33, 56.5572), new Point(282.29, 56.5598), new Point(282.25, 56.5622), new Point(282.21, 56.5644), new Point(282.16, 56.5662), new Point(282.11, 56.5675), new Point(282.07, 56.5682), new Point(282.02, 56.5682), new Point(281.98, 56.5673), new Point(281.94, 56.5656), new Point(281.9, 56.5626)), new Array(-7.52, -7.49, -7.48, -7.48, -7.51, -7.54, -7.59, -7.65, -7.72, -7.79, -7.87, -7.95, -8.02, -8.09, -8.17, -8.23, -8.3, -8.35, -8.4, -8.44, -8.48, -8.5, -8.51, -8.48, -8.42, -8.32, -8.21, -8.07, -7.93, -7.78, -7.64, -7.52, -7.41, -7.33, -7.28, -7.29, -7.29, -7.3, -7.31, -7.32, -7.33, -7.34, -7.35, -7.36, -7.37, -7.38, -7.39, -7.4, -7.42, -7.43, -7.45, -7.47, -7.48, -7.5, -7.51, -7.52, -7.53, -7.54, -7.55, -7.55), skeletonBase, 25)); bones.push(new Bone(new Array(new Point(296.42, 58.4718), new Point(296.4, 58.4386), new Point(296.37, 58.4207), new Point(296.33, 58.4155), new Point(296.28, 58.4214), new Point(296.23, 58.4358), new Point(296.18, 58.4575), new Point(296.12, 58.4841), new Point(296.07, 58.5137), new Point(296.03, 58.5443), new Point(295.99, 58.5741), new Point(295.97, 58.6008), new Point(295.96, 58.6228), new Point(295.97, 58.6414), new Point(295.99, 58.6596), new Point(296.02, 58.6768), new Point(296.04, 58.6925), new Point(296.07, 58.7064), new Point(296.11, 58.7188), new Point(296.15, 58.7291), new Point(296.18, 58.7363), new Point(296.23, 58.7406), new Point(296.27, 58.7421), new Point(296.31, 58.7351), new Point(296.36, 58.7181), new Point(296.41, 58.6929), new Point(296.46, 58.6619), new Point(296.51, 58.6265), new Point(296.56, 58.5884), new Point(296.61, 58.5499), new Point(296.66, 58.5126), new Point(296.7, 58.4787), new Point(296.75, 58.4498), new Point(296.79, 58.4277), new Point(296.82, 58.4146), new Point(296.86, 58.414), new Point(296.89, 58.4139), new Point(296.92, 58.414), new Point(296.95, 58.4146), new Point(296.97, 58.4155), new Point(296.99, 58.4168), new Point(297.01, 58.4182), new Point(297.02, 58.4201), new Point(297.03, 58.4223), new Point(297.03, 58.425), new Point(297.02, 58.4288), new Point(297, 58.4337), new Point(296.97, 58.4393), new Point(296.94, 58.4454), new Point(296.91, 58.4518), new Point(296.87, 58.4585), new Point(296.82, 58.4648), new Point(296.78, 58.4709), new Point(296.73, 58.4765), new Point(296.69, 58.4813), new Point(296.64, 58.4852), new Point(296.59, 58.488), new Point(296.55, 58.4895), new Point(296.51, 58.4896), new Point(296.47, 58.4878)), new Array(-7.88, -7.86, -7.88, -7.95, -8.04, -8.17, -8.32, -8.5, -8.69, -8.89, -9.1, -9.31, -9.52, -9.73, -9.93, -10.12, -10.3, -10.46, -10.6, -10.71, -10.8, -10.85, -10.88, -10.8, -10.62, -10.35, -10.02, -9.63, -9.22, -8.8, -8.4, -8.04, -7.73, -7.5, -7.36, -7.37, -7.38, -7.39, -7.41, -7.42, -7.45, -7.47, -7.49, -7.52, -7.54, -7.57, -7.6, -7.63, -7.66, -7.69, -7.72, -7.75, -7.78, -7.81, -7.83, -7.86, -7.88, -7.89, -7.91, -7.92), skeletonBase, 26)); bones.push(new Bone(new Array(new Point(139.85, 30.5687), new Point(139.85, 30.5733), new Point(139.85, 30.5786), new Point(139.85, 30.5842), new Point(139.86, 30.59), new Point(139.86, 30.5958), new Point(139.86, 30.6015), new Point(139.86, 30.6068), new Point(139.87, 30.6115), new Point(139.87, 30.6156), new Point(139.87, 30.6187), new Point(139.87, 30.6207), new Point(139.87, 30.6214), new Point(139.87, 30.6196), new Point(139.87, 30.6174), new Point(139.87, 30.6148), new Point(139.87, 30.6119), new Point(139.86, 30.6086), new Point(139.86, 30.605), new Point(139.86, 30.6011), new Point(139.86, 30.5969), new Point(139.86, 30.5926), new Point(139.86, 30.588), new Point(139.85, 30.5833), new Point(139.85, 30.5785), new Point(139.85, 30.5735), new Point(139.85, 30.5685), new Point(139.85, 30.5634), new Point(139.84, 30.5584), new Point(139.84, 30.5533), new Point(139.84, 30.5483), new Point(139.84, 30.5434), new Point(139.84, 30.5386), new Point(139.83, 30.5339), new Point(139.83, 30.5295), new Point(139.83, 30.5252), new Point(139.83, 30.5211), new Point(139.83, 30.5173), new Point(139.83, 30.5139), new Point(139.82, 30.5107), new Point(139.82, 30.5079), new Point(139.82, 30.5055), new Point(139.82, 30.5035), new Point(139.82, 30.502), new Point(139.82, 30.5025), new Point(139.82, 30.5038), new Point(139.82, 30.5058), new Point(139.82, 30.5086), new Point(139.83, 30.5119), new Point(139.83, 30.5157), new Point(139.83, 30.5199), new Point(139.83, 30.5244), new Point(139.83, 30.5292), new Point(139.83, 30.5341), new Point(139.84, 30.5391), new Point(139.84, 30.544), new Point(139.84, 30.5488), new Point(139.84, 30.5535), new Point(139.84, 30.5578), new Point(139.84, 30.5618)), new Array(-154.4, -154.3, -154.19, -154.07, -153.95, -153.82, -153.7, -153.59, -153.48, -153.4, -153.33, -153.29, -153.27, -153.31, -153.36, -153.41, -153.48, -153.55, -153.62, -153.71, -153.8, -153.89, -153.99, -154.09, -154.19, -154.3, -154.41, -154.51, -154.62, -154.73, -154.84, -154.94, -155.04, -155.14, -155.24, -155.33, -155.42, -155.5, -155.57, -155.64, -155.7, -155.75, -155.79, -155.82, -155.81, -155.78, -155.74, -155.68, -155.61, -155.53, -155.44, -155.35, -155.24, -155.14, -155.03, -154.93, -154.83, -154.73, -154.63, -154.55), skeletonBase, 27)); bones.push(new Bone(new Array(new Point(117.03, 41.495), new Point(117.05, 41.5391), new Point(117.07, 41.5887), new Point(117.1, 41.6421), new Point(117.13, 41.6974), new Point(117.15, 41.7528), new Point(117.18, 41.8066), new Point(117.2, 41.857), new Point(117.23, 41.9022), new Point(117.24, 41.9405), new Point(117.26, 41.97), new Point(117.27, 41.989), new Point(117.27, 41.9957), new Point(117.26, 41.979), new Point(117.25, 41.9582), new Point(117.24, 41.9336), new Point(117.23, 41.9055), new Point(117.21, 41.8742), new Point(117.2, 41.8399), new Point(117.18, 41.8029), new Point(117.16, 41.7635), new Point(117.14, 41.7221), new Point(117.12, 41.6787), new Point(117.1, 41.6339), new Point(117.07, 41.5878), new Point(117.05, 41.5407), new Point(117.03, 41.493), new Point(117.01, 41.4448), new Point(116.98, 41.3965), new Point(116.96, 41.3485), new Point(116.94, 41.3009), new Point(116.92, 41.2541), new Point(116.9, 41.2083), new Point(116.88, 41.1639), new Point(116.86, 41.1211), new Point(116.84, 41.0804), new Point(116.82, 41.0418), new Point(116.81, 41.0058), new Point(116.79, 40.9726), new Point(116.78, 40.9426), new Point(116.77, 40.916), new Point(116.75, 40.8931), new Point(116.75, 40.8743), new Point(116.74, 40.8598), new Point(116.74, 40.8641), new Point(116.75, 40.8765), new Point(116.76, 40.8961), new Point(116.77, 40.9221), new Point(116.78, 40.9536), new Point(116.8, 40.9899), new Point(116.82, 41.0301), new Point(116.84, 41.0733), new Point(116.86, 41.1187), new Point(116.88, 41.1655), new Point(116.9, 41.2128), new Point(116.92, 41.2599), new Point(116.94, 41.3059), new Point(116.96, 41.3499), new Point(116.98, 41.3912), new Point(117, 41.4289)), new Array(-151.13, -151.04, -150.92, -150.8, -150.68, -150.55, -150.43, -150.32, -150.22, -150.13, -150.06, -150.02, -150, -150.04, -150.09, -150.14, -150.21, -150.28, -150.36, -150.44, -150.53, -150.62, -150.72, -150.82, -150.93, -151.03, -151.14, -151.25, -151.36, -151.46, -151.57, -151.67, -151.78, -151.88, -151.97, -152.06, -152.15, -152.23, -152.3, -152.37, -152.43, -152.48, -152.52, -152.55, -152.54, -152.52, -152.47, -152.41, -152.34, -152.26, -152.17, -152.08, -151.98, -151.87, -151.77, -151.66, -151.56, -151.46, -151.37, -151.28), skeletonBase, 28)); bones.push(new Bone(new Array(new Point(96.6, 52.7598), new Point(96.64, 52.8391), new Point(96.68, 52.9285), new Point(96.73, 53.0246), new Point(96.78, 53.1242), new Point(96.84, 53.2241), new Point(96.89, 53.321), new Point(96.93, 53.4117), new Point(96.98, 53.4931), new Point(97.01, 53.5619), new Point(97.04, 53.615), new Point(97.06, 53.6492), new Point(97.07, 53.6613), new Point(97.05, 53.6312), new Point(97.03, 53.5938), new Point(97.01, 53.5496), new Point(96.98, 53.499), new Point(96.95, 53.4426), new Point(96.92, 53.3808), new Point(96.88, 53.3142), new Point(96.85, 53.2433), new Point(96.81, 53.1687), new Point(96.77, 53.0907), new Point(96.73, 53.0099), new Point(96.68, 52.9269), new Point(96.64, 52.8421), new Point(96.6, 52.756), new Point(96.55, 52.6693), new Point(96.51, 52.5823), new Point(96.46, 52.4957), new Point(96.42, 52.41), new Point(96.38, 52.3256), new Point(96.34, 52.2432), new Point(96.3, 52.1631), new Point(96.26, 52.0861), new Point(96.23, 52.0126), new Point(96.19, 51.9431), new Point(96.16, 51.8782), new Point(96.13, 51.8184), new Point(96.11, 51.7642), new Point(96.08, 51.7163), new Point(96.06, 51.6751), new Point(96.05, 51.6411), new Point(96.04, 51.6149), new Point(96.04, 51.6227), new Point(96.05, 51.645), new Point(96.07, 51.6804), new Point(96.09, 51.7273), new Point(96.12, 51.7842), new Point(96.15, 51.8496), new Point(96.18, 51.922), new Point(96.22, 51.9998), new Point(96.26, 52.0817), new Point(96.3, 52.166), new Point(96.34, 52.2513), new Point(96.39, 52.3362), new Point(96.43, 52.419), new Point(96.47, 52.4983), new Point(96.5, 52.5727), new Point(96.54, 52.6407)), new Array(-159.04, -158.94, -158.83, -158.71, -158.58, -158.46, -158.33, -158.22, -158.12, -158.03, -157.96, -157.92, -157.91, -157.94, -157.99, -158.05, -158.11, -158.18, -158.26, -158.34, -158.43, -158.53, -158.62, -158.72, -158.83, -158.93, -159.04, -159.15, -159.26, -159.37, -159.47, -159.58, -159.68, -159.78, -159.87, -159.96, -160.05, -160.13, -160.21, -160.27, -160.33, -160.38, -160.42, -160.46, -160.45, -160.42, -160.38, -160.32, -160.25, -160.17, -160.08, -159.98, -159.88, -159.77, -159.67, -159.56, -159.46, -159.36, -159.27, -159.19), skeletonBase, 29)); bones.push(new Bone(new Array(new Point(77.86, 59.9339), new Point(77.92, 60.0457), new Point(77.98, 60.1714), new Point(78.04, 60.3068), new Point(78.11, 60.4471), new Point(78.18, 60.5877), new Point(78.24, 60.7241), new Point(78.31, 60.852), new Point(78.36, 60.9666), new Point(78.41, 61.0636), new Point(78.45, 61.1383), new Point(78.47, 61.1865), new Point(78.48, 61.2036), new Point(78.46, 61.1612), new Point(78.43, 61.1085), new Point(78.4, 61.0462), new Point(78.37, 60.975), new Point(78.33, 60.8955), new Point(78.28, 60.8085), new Point(78.24, 60.7147), new Point(78.19, 60.6148), new Point(78.14, 60.5096), new Point(78.09, 60.3998), new Point(78.03, 60.2861), new Point(77.98, 60.1692), new Point(77.92, 60.0498), new Point(77.86, 59.9286), new Point(77.8, 59.8065), new Point(77.75, 59.6841), new Point(77.69, 59.5622), new Point(77.64, 59.4415), new Point(77.58, 59.3228), new Point(77.53, 59.2067), new Point(77.48, 59.0942), new Point(77.43, 58.9857), new Point(77.38, 58.8823), new Point(77.34, 58.7845), new Point(77.29, 58.6932), new Point(77.26, 58.609), new Point(77.22, 58.5329), new Point(77.19, 58.4654), new Point(77.17, 58.4074), new Point(77.15, 58.3596), new Point(77.13, 58.3228), new Point(77.14, 58.3338), new Point(77.15, 58.3652), new Point(77.17, 58.4149), new Point(77.2, 58.4809), new Point(77.24, 58.5609), new Point(77.28, 58.653), new Point(77.32, 58.7548), new Point(77.37, 58.8643), new Point(77.42, 58.9796), new Point(77.48, 59.0982), new Point(77.53, 59.2183), new Point(77.59, 59.3376), new Point(77.64, 59.4542), new Point(77.69, 59.5659), new Point(77.74, 59.6706), new Point(77.79, 59.7663)), new Array(-172.86, -172.86, -172.85, -172.82, -172.79, -172.74, -172.69, -172.65, -172.6, -172.56, -172.52, -172.5, -172.49, -172.5, -172.52, -172.53, -172.55, -172.58, -172.6, -172.63, -172.65, -172.68, -172.71, -172.75, -172.78, -172.81, -172.84, -172.88, -172.91, -172.95, -172.98, -173.01, -173.04, -173.08, -173.11, -173.14, -173.16, -173.19, -173.21, -173.23, -173.25, -173.27, -173.28, -173.3, -173.29, -173.28, -173.27, -173.26, -173.24, -173.21, -173.19, -173.16, -173.14, -173.11, -173.08, -173.05, -173.02, -172.99, -172.97, -172.94), skeletonBase, 30)); bones.push(new Bone(new Array(new Point(60.13, 62.152), new Point(60.18, 62.2625), new Point(60.24, 62.3922), new Point(60.3, 62.5357), new Point(60.37, 62.6873), new Point(60.44, 62.8416), new Point(60.51, 62.9928), new Point(60.57, 63.1359), new Point(60.63, 63.2652), new Point(60.68, 63.3752), new Point(60.72, 63.4604), new Point(60.74, 63.5157), new Point(60.75, 63.5353), new Point(60.73, 63.4893), new Point(60.7, 63.4321), new Point(60.67, 63.3645), new Point(60.64, 63.2871), new Point(60.6, 63.2008), new Point(60.55, 63.1063), new Point(60.51, 63.0045), new Point(60.46, 62.896), new Point(60.41, 62.7818), new Point(60.35, 62.6626), new Point(60.3, 62.5391), new Point(60.24, 62.4122), new Point(60.18, 62.2826), new Point(60.12, 62.151), new Point(60.06, 62.0183), new Point(60.01, 61.8854), new Point(59.95, 61.753), new Point(59.89, 61.622), new Point(59.83, 61.493), new Point(59.78, 61.367), new Point(59.73, 61.2447), new Point(59.68, 61.1269), new Point(59.63, 61.0145), new Point(59.58, 60.9082), new Point(59.54, 60.809), new Point(59.5, 60.7174), new Point(59.47, 60.6346), new Point(59.44, 60.5611), new Point(59.41, 60.4979), new Point(59.39, 60.4458), new Point(59.37, 60.4056), new Point(59.38, 60.4173), new Point(59.39, 60.4511), new Point(59.42, 60.5046), new Point(59.45, 60.5756), new Point(59.48, 60.6616), new Point(59.52, 60.7605), new Point(59.57, 60.87), new Point(59.62, 60.9879), new Point(59.67, 61.1118), new Point(59.73, 61.2395), new Point(59.78, 61.3686), new Point(59.84, 61.497), new Point(59.9, 61.6224), new Point(59.95, 61.7426), new Point(60, 61.8552), new Point(60.04, 61.9583)), new Array(178.13, 177.97, 177.77, 177.54, 177.29, 177.03, 176.77, 176.53, 176.3, 176.1, 175.95, 175.85, 175.82, 175.89, 175.98, 176.09, 176.21, 176.35, 176.51, 176.67, 176.85, 177.04, 177.23, 177.43, 177.64, 177.85, 178.06, 178.27, 178.49, 178.7, 178.92, 179.12, 179.33, 179.52, 179.71, 179.89, -179.94, -179.78, -179.63, -179.5, -179.39, -179.29, -179.21, -179.15, -179.17, -179.23, -179.32, -179.44, -179.59, -179.76, -179.94, 179.86, 179.64, 179.43, 179.21, 178.99, 178.77, 178.57, 178.38, 178.2), skeletonBase, 31)); bones.push(new Bone(new Array(new Point(44.42, 61.6386), new Point(44.48, 61.7064), new Point(44.54, 61.7819), new Point(44.61, 61.8626), new Point(44.68, 61.9457), new Point(44.75, 62.0288), new Point(44.83, 62.1089), new Point(44.89, 62.1839), new Point(44.96, 62.2509), new Point(45.01, 62.3075), new Point(45.05, 62.351), new Point(45.08, 62.3791), new Point(45.09, 62.389), new Point(45.06, 62.363), new Point(45.03, 62.3309), new Point(45, 62.2931), new Point(44.96, 62.2501), new Point(44.92, 62.2021), new Point(44.87, 62.1496), new Point(44.83, 62.093), new Point(44.77, 62.0328), new Point(44.72, 61.9695), new Point(44.66, 61.9033), new Point(44.6, 61.8347), new Point(44.54, 61.7643), new Point(44.48, 61.6924), new Point(44.42, 61.6192), new Point(44.36, 61.5454), new Point(44.3, 61.4715), new Point(44.24, 61.3978), new Point(44.18, 61.3248), new Point(44.13, 61.2528), new Point(44.07, 61.1824), new Point(44.02, 61.114), new Point(43.97, 61.0481), new Point(43.92, 60.985), new Point(43.88, 60.9253), new Point(43.83, 60.8694), new Point(43.8, 60.8177), new Point(43.76, 60.7708), new Point(43.73, 60.729), new Point(43.7, 60.6929), new Point(43.68, 60.6628), new Point(43.67, 60.6393), new Point(43.67, 60.6455), new Point(43.69, 60.6634), new Point(43.71, 60.6918), new Point(43.74, 60.7295), new Point(43.77, 60.7751), new Point(43.82, 60.8276), new Point(43.86, 60.8857), new Point(43.91, 60.9483), new Point(43.97, 61.0142), new Point(44.02, 61.082), new Point(44.08, 61.1507), new Point(44.13, 61.2191), new Point(44.19, 61.2859), new Point(44.24, 61.3502), new Point(44.3, 61.4105), new Point(44.34, 61.466)), new Array(179.2, 179.04, 178.84, 178.62, 178.37, 178.11, 177.85, 177.6, 177.37, 177.17, 177.02, 176.92, 176.89, 176.96, 177.05, 177.16, 177.29, 177.43, 177.58, 177.74, 177.92, 178.11, 178.3, 178.5, 178.71, 178.92, 179.13, 179.35, 179.56, 179.78, 179.99, -179.8, -179.6, -179.41, -179.22, -179.04, -178.87, -178.71, -178.56, -178.43, -178.32, -178.22, -178.14, -178.08, -178.1, -178.15, -178.25, -178.37, -178.51, -178.68, -178.87, -179.07, -179.28, -179.5, -179.72, -179.94, 179.84, 179.64, 179.45, 179.28), skeletonBase, 32)); } } }//package dinowaurs.SkeletalAnim
Section 84
//ankylo_walk_SK (dinowaurs.SkeletalAnim.ankylo_walk_SK) package dinowaurs.SkeletalAnim { import flash.display.*; import flash.geom.*; import dinowaurs.*; public class ankylo_walk_SK extends SkeletalAnimation { public function ankylo_walk_SK(_arg1:Sprite){ super(_arg1); bones.push(new Bone(new Array(new Point(228.15, 42.0726), new Point(229.1, 41.8534), new Point(230.37, 41.9727), new Point(231.79, 41.9446), new Point(233.21, 41.334), new Point(234.51, 39.7829), new Point(235.58, 37.7937), new Point(236.36, 35.9504), new Point(236.79, 34.8168), new Point(236.82, 34.9343), new Point(236.44, 37.2195), new Point(235.64, 40.4827), new Point(234.53, 43.995), new Point(233.23, 47.0425), new Point(231.89, 48.9411), new Point(230.76, 48.7835), new Point(229.86, 47.598), new Point(229.14, 45.8665), new Point(228.61, 44.0612), new Point(228.27, 42.6449)), new Array(-87.64, -93.31, -102.85, -108.12, -108.49, -100.4, -92.35, -84.67, -77.71, -71.78, -67.25, -64.08, -61.98, -60.69, -59.93, -64.64, -67.31, -71.59, -76.82, -81.94), skeletonBase, 0)); bones.push(new Bone(new Array(new Point(230.11, 89.639), new Point(226.35, 89.3809), new Point(219.78, 88.387), new Point(216.98, 87.1909), new Point(218.11, 86.4817), new Point(225.91, 86.6075), new Point(233.63, 85.3605), new Point(240.78, 83.3517), new Point(246.92, 81.3322), new Point(251.7, 80.1549), new Point(254.84, 81.1241), new Point(256.46, 83.2996), new Point(256.9, 86.0212), new Point(256.54, 88.5541), new Point(255.74, 90.1413), new Point(251.15, 91.8034), new Point(248.22, 91.5205), new Point(244.17, 91.0383), new Point(239.46, 90.4148), new Point(234.94, 89.7814)), new Array(-59.86, -59.21, -62.3, -72.87, -84.66, -55.8, -26.67, -11.13, -0.82, 5.8, 5.72, 0.33, -8.05, -24.49, -36.09, -40.8, -42.77, -44.73, -48.02, -54.76), skeletonBase, 1)); bones.push(new Bone(new Array(new Point(237.63, 102.5888), new Point(234.02, 102.244), new Point(226.75, 101.6449), new Point(221.39, 101.5007), new Point(219.5, 101.391), new Point(234.33, 98.9919), new Point(247.01, 92.0827), new Point(255.47, 86.243), new Point(261.89, 81.5463), new Point(266.6, 78.6402), new Point(269.74, 79.6317), new Point(271.43, 83.2129), new Point(271.72, 88.1169), new Point(270.16, 94.7611), new Point(267.84, 98.9624), new Point(262.49, 101.5884), new Point(259.21, 101.6896), new Point(254.81, 101.5771), new Point(249.48, 101.5465), new Point(243.58, 102.0108)), new Array(-94.27, -90.83, -88.57, -91.86, -114.1, -91.62, -69.16, -59.6, -53.59, -48.61, -44.07, -39.82, -37.9, -47.69, -73.64, -90.3, -92.93, -91.3, -89.69, -91.44), skeletonBase, 2)); bones.push(new Bone(new Array(new Point(237.25, 107.5966), new Point(233.95, 107.2653), new Point(226.87, 106.6652), new Point(221.23, 106.5198), new Point(217.45, 105.9748), new Point(234.19, 104.0117), new Point(248.8, 96.7762), new Point(258.01, 90.5745), new Point(264.88, 85.5879), new Point(269.92, 82.4082), new Point(273.35, 83.1245), new Point(275.29, 86.4291), new Point(275.69, 91.2018), new Point(273.54, 98.4753), new Point(269.26, 103.781), new Point(262.46, 106.6102), new Point(258.96, 106.7048), new Point(254.7, 106.5976), new Point(249.5, 106.5682), new Point(243.46, 107.031)), new Array(-0.78, -0.94, -1.92, -1.33, -3.27, 18.71, 39.77, 47.28, 50.78, 53, 54.76, 56.4, 56.12, 44.72, 24.9, 14.12, 1.68, 2.66, 3.94, 2.06), skeletonBase, 3)); bones.push(new Bone(new Array(new Point(230.06, 104.6791), new Point(226.59, 104.7844), new Point(219.42, 104.4765), new Point(213.92, 103.9067), new Point(211.68, 100.7899), new Point(226.87, 101.4298), new Point(241.05, 97.186), new Point(250.44, 92.2666), new Point(257.52, 88.0638), new Point(262.81, 85.5124), new Point(266.51, 86.7831), new Point(268.73, 90.5842), new Point(269.28, 95.5748), new Point(266.48, 101.6933), new Point(261.5, 103.5842), new Point(255.09, 104.1981), new Point(251.7, 103.9556), new Point(247.36, 104.0565), new Point(242.1, 104.2347), new Point(236.13, 104.4718)), new Array(-67.45, -64.02, -61.75, -65.05, -87.29, -64.8, -42.35, -32.78, -26.77, -21.8, -17.25, -13.01, -11.08, -20.88, -46.83, -63.48, -66.12, -64.49, -62.87, -64.63), skeletonBase, 4)); bones.push(new Bone(new Array(new Point(258.23, 46.6071), new Point(259.43, 44.5301), new Point(260.85, 42.3146), new Point(262.23, 39.7268), new Point(263.42, 36.5961), new Point(264.37, 32.9917), new Point(265.12, 29.4707), new Point(265.67, 26.6351), new Point(266.01, 25.0709), new Point(266.11, 25.3495), new Point(265.96, 28.4505), new Point(265.53, 33.1793), new Point(264.78, 38.6037), new Point(263.73, 43.7933), new Point(262.46, 46.3303), new Point(261.42, 48.2533), new Point(260.46, 49.0813), new Point(259.61, 48.8888), new Point(258.86, 47.9523), new Point(258.39, 47.0253)), new Array(-121.23, -124.55, -118.26, -110.92, -103.31, -96.34, -90.23, -85.33, -81.96, -80.45, -83.6, -88.96, -94.73, -100.66, -106.25, -111.16, -115.27, -118.54, -120.92, -121.42), skeletonBase, 5)); bones.push(new Bone(new Array(new Point(233.42, 87.5262), new Point(232.29, 83.9447), new Point(238.2, 84.4644), new Point(245.15, 84.4248), new Point(252.4, 83.1635), new Point(259.09, 80.5519), new Point(264.93, 77.3227), new Point(269.57, 74.3285), new Point(272.7, 72.4527), new Point(274.05, 72.5393), new Point(271.3, 76.0046), new Point(266.4, 81.0238), new Point(260.83, 86.2933), new Point(254.88, 90.8206), new Point(249.07, 92.271), new Point(244.14, 92.8805), new Point(240.03, 92.3538), new Point(236.74, 90.9251), new Point(234.28, 89.0062), new Point(233.45, 87.86)), new Array(-86.73, -95.39, -51.45, -23.46, -6.48, -5.37, -9.24, -16.63, -26.13, -36.3, -49.7, -59.8, -52.67, -43.89, -35.81, -37.09, -40.02, -47, -59.39, -71.35), skeletonBase, 6)); bones.push(new Bone(new Array(new Point(234.31, 103.0283), new Point(230.83, 99.4034), new Point(247.87, 96.6088), new Point(259.39, 90.6078), new Point(267.83, 84.9159), new Point(274.55, 82.0075), new Point(280.25, 79.8164), new Point(284.44, 78.7741), new Point(286.64, 79.2923), new Point(286.56, 81.7327), new Point(281.34, 87.8478), new Point(274.21, 94.4444), new Point(270.25, 98.6412), new Point(266.07, 101.5854), new Point(261.66, 101.3574), new Point(256.53, 102.2449), new Point(251.92, 102.3397), new Point(247.33, 102.2827), new Point(242.18, 102.37), new Point(238.41, 102.5724)), new Array(-129.03, -124.92, -96.27, -81.03, -61.2, -54.62, -51.32, -50.8, -52.58, -56.16, -64.19, -71.78, -88.68, -91.04, -92.96, -93.38, -93.21, -90.6, -97.79, -108.06), skeletonBase, 7)); bones.push(new Bone(new Array(new Point(231.15, 106.9259), new Point(227.96, 103.5174), new Point(247.32, 101.5964), new Point(260.17, 95.564), new Point(270.25, 89.3129), new Point(277.45, 86.0987), new Point(283.39, 83.7333), new Point(287.61, 82.6623), new Point(289.69, 83.277), new Point(289.35, 85.9005), new Point(283.52, 92.365), new Point(275.78, 99.2103), new Point(270.36, 103.6575), new Point(265.98, 106.6022), new Point(261.4, 106.3684), new Point(256.23, 107.2538), new Point(251.64, 107.3494), new Point(247.28, 107.3), new Point(241.51, 107.3413), new Point(236.86, 107.3427)), new Array(-2.34, -23.92, -11.19, -6.33, 13.67, 21.42, 39.81, 53.7, 51.92, 48.32, 40.26, 32.61, 15.6, -3.76, -1.36, -0.44, -1.5, 0.94, 0.27, 0.82), skeletonBase, 8)); bones.push(new Bone(new Array(new Point(225.88, 99.6702), new Point(222.18, 96.6581), new Point(238.96, 98.3486), new Point(251.25, 94.6293), new Point(261.54, 91.4594), new Point(269.05, 89.2286), new Point(275.18, 87.3426), new Point(279.44, 86.346), new Point(281.4, 86.7053), new Point(280.87, 88.8033), new Point(274.71, 94.0535), new Point(266.82, 99.7219), new Point(261.65, 101.543), new Point(257.36, 104.1303), new Point(252.87, 103.6094), new Point(247.72, 104.4314), new Point(243.12, 104.5529), new Point(238.64, 104.894), new Point(233.23, 103.8739), new Point(229.33, 102.4551)), new Array(-96.4, -92.3, -63.64, -48.4, -28.57, -21.99, -18.69, -18.17, -19.95, -23.54, -31.57, -39.15, -56.05, -58.41, -60.33, -60.76, -60.58, -57.98, -65.16, -75.43), skeletonBase, 9)); bones.push(new Bone(new Array(new Point(161.39, 38.754), new Point(161.62, 40.0604), new Point(161.83, 41.9901), new Point(161.98, 43.7376), new Point(162.04, 44.4989), new Point(161.94, 43.4071), new Point(161.76, 41.4195), new Point(161.51, 38.949), new Point(161.25, 36.8303), new Point(161.02, 35.7643), new Point(160.82, 36.507), new Point(160.59, 37.8824), new Point(160.39, 39.4718), new Point(160.24, 40.8586), new Point(160.18, 41.627), new Point(160.31, 41.3738), new Point(160.55, 40.8361), new Point(160.83, 40.1561), new Point(161.11, 39.4805), new Point(161.31, 38.9614)), new Array(-70.14, -69.84, -70.99, -72.99, -77.97, -84.63, -94.83, -94.94, -97.01, -97.56, -101.66, -106.62, -111.43, -115.06, -116.5, -111.33, -102.26, -91.45, -81.05, -73.23), skeletonBase, 10)); bones.push(new Bone(new Array(new Point(176.13, 79.5603), new Point(176.58, 80.7886), new Point(175.97, 83.0093), new Point(174.68, 85.2253), new Point(171.08, 86.9328), new Point(166.01, 86.6039), new Point(158.11, 84.6532), new Point(157.78, 82.1762), new Point(155.96, 79.8939), new Point(155.32, 78.7757), new Point(152.05, 79.0003), new Point(148.19, 79.4581), new Point(144.54, 79.8617), new Point(141.87, 80.1639), new Point(140.83, 80.4593), new Point(144.53, 81.7905), new Point(151.34, 83.2346), new Point(159.74, 83.5299), new Point(167.86, 82.3395), new Point(173.83, 80.5026)), new Array(-104.29, -111.57, -118.23, -128.57, -135.17, -133.26, -126.95, -127.05, -129.13, -137.72, -145.65, -153.76, -161.61, -168.75, -174.73, -178.09, -179.36, -173.57, -148.95, -118.93), skeletonBase, 11)); bones.push(new Bone(new Array(new Point(170.52, 101.612), new Point(168.22, 101.9518), new Point(165.22, 103.0611), new Point(160.5, 103.0208), new Point(154.95, 102.9808), new Point(150.42, 103.181), new Point(144.43, 102.8412), new Point(144.08, 100.34), new Point(141.6, 97.549), new Point(138.49, 94.0889), new Point(133.27, 91.846), new Point(127.78, 89.5243), new Point(122.95, 87.0461), new Point(119.55, 84.6098), new Point(118.17, 82.5579), new Point(121.79, 82.5574), new Point(128.58, 83.498), new Point(137.13, 86.0853), new Point(148.37, 94.0812), new Point(162.83, 100.4217)), new Array(-7.27, -33.99, -47.18, -45.44, -47.41, -45.69, -46.97, -79.46, -94.19, -100.99, -105.13, -97.96, -116.94, -139.68, -153.56, -148.12, -134.45, -111.04, -69.56, -26.88), skeletonBase, 12)); bones.push(new Bone(new Array(new Point(177.16, 102.4615), new Point(173.77, 105.6986), new Point(169.77, 107.9766), new Point(165.2, 107.7962), new Point(159.49, 107.9149), new Point(155.1, 107.9771), new Point(149, 107.7401), new Point(145.3, 106.9273), new Point(141.11, 104.2309), new Point(137.21, 100.6657), new Point(131.52, 98.3131), new Point(126.85, 96.1595), new Point(119.92, 93.0182), new Point(114.44, 88.9436), new Point(112.17, 85.5395), new Point(116.1, 86.0943), new Point(123.89, 88.2795), new Point(134.72, 92.338), new Point(150.71, 100.36), new Point(168.81, 103.453)), new Array(39.45, 24.34, -0.99, -1.43, -0.45, 0.55, -1.44, -7.23, -22.68, -44.28, -50.51, -61.8, -70.55, -78.1, -83.53, -79.82, -70.47, -52.67, -16.8, 21.56), skeletonBase, 13)); bones.push(new Bone(new Array(new Point(129.37, 40.0848), new Point(129.65, 42.0827), new Point(129.9, 44.6449), new Point(130.09, 46.8537), new Point(130.17, 47.7935), new Point(130.05, 46.4079), new Point(129.81, 43.7057), new Point(129.52, 41.0274), new Point(129.23, 37.6629), new Point(128.99, 35.9881), new Point(128.79, 36.1877), new Point(128.57, 36.996), new Point(128.39, 38.0795), new Point(128.26, 39.1064), new Point(128.2, 39.7457), new Point(128.31, 39.8023), new Point(128.52, 39.8794), new Point(128.8, 39.9585), new Point(129.07, 40.0248), new Point(129.29, 40.0688)), new Array(-53.92, -47.44, -45.33, -45.49, -47.17, -50.79, -57.07, -63.58, -66.49, -70.38, -73.12, -76.12, -88.73, -97.46, -94.1, -87.54, -79.09, -70.14, -62.04, -56.18), skeletonBase, 14)); bones.push(new Bone(new Array(new Point(155.03, 75.2985), new Point(159.12, 74.176), new Point(160.54, 75.6298), new Point(160.64, 77.9253), new Point(159.79, 79.7493), new Point(157.59, 80.169), new Point(153.5, 80.276), new Point(148.91, 80.0462), new Point(146.61, 77.6162), new Point(143.62, 77.0306), new Point(141.44, 77.8817), new Point(139.03, 79.2948), new Point(129.36, 81.6402), new Point(122.6, 82.3091), new Point(125.09, 83.2056), new Point(130.18, 83.3335), new Point(136.77, 82.6634), new Point(143.6, 80.9373), new Point(149.5, 78.5105), new Point(153.54, 76.2666)), new Array(-119.64, -101.63, -83.27, -78.17, -91.2, -92.08, -91.75, -96.25, -99.16, -103.06, -107.04, -117.53, -152.46, 179.86, -176.16, -168, -157.35, -145.96, -134.17, -123.99), skeletonBase, 15)); bones.push(new Bone(new Array(new Point(144.02, 94.6201), new Point(154.62, 95.9556), new Point(163.13, 97.7167), new Point(165.19, 99.6941), new Point(159.31, 101.9829), new Point(156.77, 102.3927), new Point(152.81, 102.5041), new Point(146.48, 102.1514), new Point(143.06, 99.5691), new Point(138.58, 98.6912), new Point(134.91, 99.1407), new Point(128.74, 99.0101), new Point(109.63, 91.9111), new Point(100.36, 82.2435), new Point(102.9, 84.6814), new Point(108.43, 87.9444), new Point(116.24, 91.2149), new Point(125.17, 93.3738), new Point(134, 94.4518), new Point(141.1, 94.6995)), new Array(-27.28, -10.89, 3.91, 3.08, -18.66, -50.85, -47.53, -49.04, -62.05, -73.03, -69.96, -71.55, -96.97, -115.76, -104.78, -91.13, -75.49, -59.84, -44.73, -32.39), skeletonBase, 16)); bones.push(new Bone(new Array(new Point(149.63, 97.4886), new Point(160.81, 97.1259), new Point(169.41, 97.2686), new Point(171.47, 99.3371), new Point(165.28, 103.979), new Point(160.76, 107.2626), new Point(157.07, 107.1343), new Point(150.62, 106.8927), new Point(146.03, 105.1211), new Point(140.44, 104.7067), new Point(137.09, 105.0481), new Point(130.75, 104.9755), new Point(108.89, 98.1621), new Point(97.64, 87.9212), new Point(101.31, 90.7733), new Point(108.32, 94.2387), new Point(117.84, 97.3045), new Point(128.35, 98.8072), new Point(138.48, 98.8686), new Point(146.42, 98.0554)), new Array(19.56, 36.73, 53.26, 54.26, 33.57, -2.16, 0.74, -0.84, -8.54, -11.85, -13.85, -11.49, -38.09, -58.49, -49.38, -37.72, -24.05, -10.19, 3.46, 14.82), skeletonBase, 17)); bones.push(new Bone(new Array(new Point(167.78, 106.3531), new Point(163.64, 104.9559), new Point(160.07, 104.9415), new Point(155.42, 105.0558), new Point(149.8, 104.8401), new Point(145.33, 105.1937), new Point(139.3, 104.7402), new Point(138.73, 99.1834), new Point(136.72, 95.0696), new Point(133.94, 91.0493), new Point(128.95, 88.4852), new Point(123.07, 86.7295), new Point(119.41, 82.8721), new Point(117.9, 79.3908), new Point(117.82, 77.0945), new Point(120.92, 77.1522), new Point(126.46, 78.4514), new Point(133.18, 82.2977), new Point(142.9, 93.8621), new Point(158.66, 103.9687)), new Array(-13.15, -39.87, -53.06, -51.33, -53.3, -51.58, -52.85, -85.35, -100.08, -106.87, -111.02, -103.85, -122.83, -145.57, -159.45, -154.01, -140.34, -116.92, -75.44, -32.77), skeletonBase, 18)); bones.push(new Bone(new Array(new Point(140.39, 98.2847), new Point(152.17, 100.496), new Point(161.92, 102.7321), new Point(163.9, 104.6914), new Point(156.27, 106.1504), new Point(151.98, 104.2995), new Point(148.13, 104.6859), new Point(141.74, 104.2089), new Point(137.99, 100.5087), new Point(133.43, 98.6475), new Point(129.76, 99.3736), new Point(123.58, 99.0999), new Point(104.93, 89.7777), new Point(96.6, 78.7105), new Point(98.54, 81.9298), new Point(103.54, 86.3003), new Point(111.09, 90.9495), new Point(120.13, 94.5083), new Point(129.43, 96.8588), new Point(137.15, 98.0263)), new Array(-35.87, -19.48, -4.68, -5.51, -27.25, -59.44, -56.11, -57.63, -70.64, -81.62, -78.54, -80.13, -105.56, -124.35, -113.36, -99.71, -84.08, -68.43, -53.32, -40.98), skeletonBase, 19)); bones.push(new Bone(new Array(new Point(142.53, 27.5662), new Point(142.53, 29.2827), new Point(142.53, 31.5925), new Point(142.53, 33.6202), new Point(142.53, 34.4906), new Point(142.53, 33.2194), new Point(142.53, 30.7442), new Point(142.53, 27.8434), new Point(142.53, 25.2957), new Point(142.53, 23.8796), new Point(142.53, 24.3151), new Point(142.53, 25.3743), new Point(142.53, 26.686), new Point(142.53, 27.8792), new Point(142.53, 28.5828), new Point(142.53, 28.5075), new Point(142.53, 28.3192), new Point(142.53, 28.0745), new Point(142.53, 27.8298), new Point(142.53, 27.6415)), new Array(14.48, 15.72, 16.85, 17.68, 18, 17.47, 16.44, 15.14, 13.82, 12.72, 11.73, 10.69, 9.76, 9.09, 8.83, 9.36, 10.44, 11.77, 13.08, 14.08), skeletonBase, 20)); bones.push(new Bone(new Array(new Point(188.14, 15.7842), new Point(187.87, 16.5178), new Point(187.61, 17.9326), new Point(187.41, 19.31), new Point(187.33, 19.9293), new Point(187.46, 19.0715), new Point(187.71, 17.408), new Point(188, 15.5329), new Point(188.27, 14.0366), new Point(188.48, 13.5047), new Point(188.65, 14.7368), new Point(188.82, 16.6329), new Point(188.95, 18.6979), new Point(189.04, 20.4352), new Point(189.08, 21.3481), new Point(189.01, 20.8428), new Point(188.86, 19.782), new Point(188.64, 18.4579), new Point(188.41, 17.1605), new Point(188.22, 16.1752)), new Array(-6.48, -4.91, -3.13, -1.43, -0.11, 0.39, 0.33, -0.16, -0.93, -1.83, -2.97, -4.41, -5.96, -7.38, -8.49, -8.83, -8.59, -8.01, -7.31, -6.73), skeletonBase, 21)); bones.push(new Bone(new Array(new Point(216.34, 18.9924), new Point(216.15, 18.9522), new Point(215.95, 19.4861), new Point(215.78, 20.0226), new Point(215.71, 19.9888), new Point(215.84, 18.8823), new Point(216.09, 17.2513), new Point(216.38, 15.6182), new Point(216.65, 14.5013), new Point(216.84, 14.4146), new Point(216.99, 16.2112), new Point(217.11, 18.8226), new Point(217.18, 21.6486), new Point(217.19, 24.0883), new Point(217.14, 25.5413), new Point(217.05, 25.2038), new Point(216.92, 24.0284), new Point(216.74, 22.4196), new Point(216.56, 20.779), new Point(216.4, 19.5048)), new Array(-26.13, -24.32, -21.98, -19.52, -17.31, -15.88, -15.07, -14.83, -15.09, -15.8, -17.07, -18.88, -20.97, -23.07, -24.91, -26.03, -26.54, -26.63, -26.47, -26.25), skeletonBase, 22)); bones.push(new Bone(new Array(new Point(237.8, 29.53), new Point(237.94, 28.8032), new Point(238.12, 28.4417), new Point(238.32, 28.0168), new Point(238.54, 27.1085), new Point(238.84, 25.4309), new Point(239.18, 23.4747), new Point(239.49, 21.7424), new Point(239.73, 20.7307), new Point(239.85, 20.9299), new Point(239.85, 23.2361), new Point(239.74, 26.5661), new Point(239.51, 30.2101), new Point(239.19, 33.4613), new Point(238.83, 35.619), new Point(238.54, 35.7016), new Point(238.31, 34.7183), new Point(238.12, 33.1427), new Point(237.96, 31.4435), new Point(237.85, 30.0853)), new Array(-49.8, -46.11, -41.31, -36, -30.78, -26.4, -22.92, -20.49, -19.29, -19.46, -21.2, -24.29, -28.28, -32.74, -37.22, -41.05, -44.19, -46.64, -48.39, -49.45), skeletonBase, 23)); bones.push(new Bone(new Array(new Point(254.56, 49.3628), new Point(255.93, 47.5167), new Point(257.62, 45.5832), new Point(259.32, 43.2803), new Point(260.84, 40.3998), new Point(262.09, 36.9813), new Point(263.09, 33.5914), new Point(263.81, 30.8383), new Point(264.24, 29.3123), new Point(264.33, 29.5856), new Point(264.05, 32.6305), new Point(263.4, 37.2504), new Point(262.37, 42.5163), new Point(261.02, 47.5068), new Point(259.5, 51.3263), new Point(258.11, 52.7563), new Point(256.92, 52.8205), new Point(255.94, 52.0232), new Point(255.2, 50.8599), new Point(254.72, 49.815)), new Array(-26.1, -24.62, -23.21, -22.08, -21.44, -21.68, -22.44, -23.53, -24.71, -25.76, -26.8, -27.97, -29.11, -30.02, -30.56, -30.31, -29.51, -28.42, -27.31, -26.45), skeletonBase, 24)); bones.push(new Bone(new Array(new Point(276.5, 60.1074), new Point(278.14, 57.6927), new Point(280.07, 55.2077), new Point(281.96, 52.459), new Point(283.58, 49.3286), new Point(284.79, 46.0019), new Point(285.67, 42.9159), new Point(286.21, 40.5886), new Point(286.43, 39.5218), new Point(286.33, 40.2015), new Point(285.86, 43.6442), new Point(284.98, 48.7076), new Point(283.71, 54.3971), new Point(282.17, 59.7282), new Point(280.54, 63.7441), new Point(279.2, 65.0842), new Point(278.18, 64.8521), new Point(277.43, 63.648), new Point(276.91, 62.0658), new Point(276.6, 60.6925)), new Array(-4.51, -3.36, -2.36, -1.71, -1.59, -2.32, -3.54, -5, -6.42, -7.57, -8.53, -9.49, -10.29, -10.81, -10.9, -10.19, -8.94, -7.45, -6.02, -4.94), skeletonBase, 25)); bones.push(new Bone(new Array(new Point(291.15, 61.2565), new Point(292.82, 58.5458), new Point(294.76, 55.8058), new Point(296.65, 52.8905), new Point(298.27, 49.729), new Point(299.48, 46.5899), new Point(300.34, 43.8168), new Point(300.85, 41.8614), new Point(301.04, 41.1592), new Point(300.9, 42.1304), new Point(300.4, 45.8173), new Point(299.47, 51.1225), new Point(298.18, 57.0161), new Point(296.61, 62.4778), new Point(294.97, 66.5158), new Point(293.67, 67.6777), new Point(292.7, 67.13), new Point(292, 65.5474), new Point(291.52, 63.5997), new Point(291.24, 61.9506)), new Array(-3.37, -2.79, -2.56, -2.79, -3.59, -5.23, -7.28, -9.4, -11.28, -12.59, -13.41, -13.97, -14.19, -13.98, -13.26, -11.71, -9.65, -7.44, -5.41, -3.94), skeletonBase, 26)); bones.push(new Bone(new Array(new Point(139.9, 28.77), new Point(139.93, 30.5431), new Point(139.95, 32.9041), new Point(139.97, 34.9689), new Point(139.98, 35.8536), new Point(139.96, 34.5589), new Point(139.94, 32.0373), new Point(139.91, 29.0777), new Point(139.88, 26.4694), new Point(139.86, 25.0021), new Point(139.84, 25.3913), new Point(139.82, 26.4017), new Point(139.81, 27.6694), new Point(139.8, 28.8307), new Point(139.79, 29.522), new Point(139.8, 29.472), new Point(139.82, 29.3348), new Point(139.84, 29.153), new Point(139.87, 28.9693), new Point(139.89, 28.8271)), new Array(-146.86, -145.63, -144.49, -143.66, -143.34, -143.87, -144.9, -146.2, -147.52, -148.63, -149.62, -150.65, -151.59, -152.26, -152.51, -151.98, -150.91, -149.57, -148.26, -147.26), skeletonBase, 27)); bones.push(new Bone(new Array(new Point(118.71, 42.5948), new Point(119.04, 44.8225), new Point(119.35, 47.594), new Point(119.59, 49.9551), new Point(119.68, 50.9537), new Point(119.53, 49.4713), new Point(119.24, 46.5791), new Point(118.89, 43.1474), new Point(118.54, 40.0507), new Point(118.26, 38.1693), new Point(118.02, 38.1828), new Point(117.77, 38.7958), new Point(117.55, 39.7035), new Point(117.4, 40.6034), new Point(117.35, 41.1939), new Point(117.46, 41.3508), new Point(117.71, 41.6315), new Point(118.03, 41.9625), new Point(118.35, 42.2747), new Point(118.61, 42.5051)), new Array(-139.09, -139.16, -139.63, -140.62, -142.26, -144.81, -147.84, -151.05, -154.1, -156.68, -158.81, -160.63, -162.06, -162.98, -163.31, -160.41, -155.61, -150, -144.66, -140.66), skeletonBase, 28)); bones.push(new Bone(new Array(new Point(101.08, 57.8749), new Point(101.39, 60.0816), new Point(101.58, 62.7082), new Point(101.55, 64.7591), new Point(101.23, 65.2359), new Point(100.46, 62.9191), new Point(99.49, 58.9986), new Point(98.47, 54.4437), new Point(97.55, 50.2438), new Point(96.83, 47.4057), new Point(96.26, 46.6183), new Point(95.76, 46.5347), new Point(95.36, 46.8931), new Point(95.09, 47.4333), new Point(95, 47.895), new Point(95.48, 49.1758), new Point(96.46, 51.267), new Point(97.82, 53.6288), new Point(99.32, 55.7716), new Point(100.56, 57.2957)), new Array(-152.72, -152.71, -152.97, -153.65, -154.92, -157.08, -159.75, -162.64, -165.48, -167.98, -170.92, -174.27, -177.46, -179.88, 179.04, -177.76, -172.22, -165.64, -159.33, -154.59), skeletonBase, 29)); bones.push(new Bone(new Array(new Point(83.25, 67.0653), new Point(83.56, 69.2756), new Point(83.71, 71.8231), new Point(83.58, 73.6608), new Point(83.06, 73.7369), new Point(81.98, 70.729), new Point(80.67, 65.9403), new Point(79.33, 60.4269), new Point(78.13, 55.2715), new Point(77.21, 51.5802), new Point(76.45, 49.7824), new Point(75.8, 48.5345), new Point(75.32, 47.7809), new Point(75.03, 47.4718), new Point(74.94, 47.555), new Point(75.44, 49.9568), new Point(76.59, 53.9796), new Point(78.39, 58.5998), new Point(80.55, 62.8484), new Point(82.44, 65.8995)), new Array(-171.76, -170.73, -169.6, -168.64, -168.1, -168.39, -169.22, -170.41, -171.78, -173.15, -176.1, -179.49, 177.21, 174.55, 173.1, 174.46, 177.32, -179.08, -175.54, -172.84), skeletonBase, 30)); bones.push(new Bone(new Array(new Point(65.55, 69.6223), new Point(65.92, 72.1506), new Point(66.12, 75.0446), new Point(66.05, 77.1772), new Point(65.57, 77.4174), new Point(64.47, 74.3212), new Point(63.1, 69.2783), new Point(61.7, 63.3993), new Point(60.44, 57.8215), new Point(59.46, 53.7068), new Point(58.62, 50.9952), new Point(57.92, 48.6882), new Point(57.46, 46.905), new Point(57.24, 45.7702), new Point(57.19, 45.4022), new Point(57.65, 48.2248), new Point(58.73, 53.1405), new Point(60.51, 58.8829), new Point(62.73, 64.235), new Point(64.7, 68.1242)), new Array(165.29, 167.29, 170.86, 175.1, 179.07, -176.93, -172.78, -170.28, -172.12, -173.96, -176.57, -179.41, 177.59, 173.11, 169.05, 167.41, 167.25, 167.19, 166.49, 165.68), skeletonBase, 31)); bones.push(new Bone(new Array(new Point(50.36, 65.6337), new Point(50.59, 68.6931), new Point(50.62, 72.5498), new Point(50.4, 75.8347), new Point(49.86, 77.1628), new Point(48.79, 75.1635), new Point(47.52, 71.2517), new Point(46.21, 66.052), new Point(44.88, 59.9752), new Point(43.84, 55.3597), new Point(42.94, 51.9347), new Point(42.21, 48.8512), new Point(41.77, 46.2449), new Point(41.64, 43.8845), new Point(41.77, 42.4178), new Point(42.32, 44.7994), new Point(43.41, 49.6729), new Point(45.2, 55.401), new Point(47.45, 60.5661), new Point(49.48, 64.2391)), new Array(151.36, 153.36, 156.93, 161.17, 165.14, 173.18, -174.18, -164.09, -161.45, -161.28, -164.26, -168.48, -174.38, 175.56, 164.2, 156.19, 153.32, 153.27, 152.56, 151.75), skeletonBase, 32)); } } }//package dinowaurs.SkeletalAnim
Section 85
//bronto_breathing_SK (dinowaurs.SkeletalAnim.bronto_breathing_SK) package dinowaurs.SkeletalAnim { import flash.display.*; import flash.geom.*; import dinowaurs.*; public class bronto_breathing_SK extends SkeletalAnimation { public function bronto_breathing_SK(_arg1:Sprite){ super(_arg1); bones.push(new Bone(new Array(new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458), new Point(184.82, 46.2458)), new Array(19.65, 19.65, 19.68, 19.72, 19.77, 19.83, 19.9, 19.99, 20.08, 20.18, 20.29, 20.4, 20.52, 20.64, 20.77, 20.89, 21.01, 21.14, 21.26, 21.38, 21.49, 21.6, 21.7, 21.79, 21.88, 21.95, 22.01, 22.07, 22.1, 22.13, 22.14, 22.13, 22.1, 22.07, 22.01, 21.95, 21.88, 21.79, 21.7, 21.6, 21.49, 21.38, 21.26, 21.14, 21.01, 20.89, 20.77, 20.64, 20.52, 20.4, 20.29, 20.18, 20.08, 19.99, 19.9, 19.83, 19.77, 19.72, 19.68, 19.65), skeletonBase, 0)); bones.push(new Bone(new Array(new Point(227.62, 30.9587), new Point(227.64, 30.9289), new Point(227.66, 30.886), new Point(227.67, 30.8309), new Point(227.68, 30.7648), new Point(227.69, 30.6884), new Point(227.7, 30.6029), new Point(227.71, 30.5092), new Point(227.71, 30.4082), new Point(227.71, 30.3011), new Point(227.71, 30.1887), new Point(227.71, 30.072), new Point(227.7, 29.9521), new Point(227.7, 29.83), new Point(227.69, 29.7066), new Point(227.68, 29.5829), new Point(227.67, 29.46), new Point(227.66, 29.3388), new Point(227.65, 29.2203), new Point(227.64, 29.1056), new Point(227.63, 28.9956), new Point(227.62, 28.8914), new Point(227.61, 28.7939), new Point(227.6, 28.7041), new Point(227.59, 28.6231), new Point(227.58, 28.5518), new Point(227.57, 28.4912), new Point(227.56, 28.4424), new Point(227.56, 28.4063), new Point(227.56, 28.3839), new Point(227.56, 28.3762), new Point(227.56, 28.3846), new Point(227.56, 28.4092), new Point(227.56, 28.4488), new Point(227.56, 28.5022), new Point(227.56, 28.5683), new Point(227.57, 28.6459), new Point(227.57, 28.7339), new Point(227.58, 28.831), new Point(227.58, 28.9361), new Point(227.58, 29.0482), new Point(227.59, 29.1659), new Point(227.59, 29.2881), new Point(227.6, 29.4138), new Point(227.6, 29.5417), new Point(227.6, 29.6707), new Point(227.61, 29.7996), new Point(227.61, 29.9273), new Point(227.61, 30.0526), new Point(227.61, 30.1745), new Point(227.61, 30.2917), new Point(227.62, 30.4031), new Point(227.62, 30.5076), new Point(227.62, 30.6041), new Point(227.62, 30.6914), new Point(227.62, 30.7683), new Point(227.62, 30.8338), new Point(227.62, 30.8867), new Point(227.62, 30.926), new Point(227.62, 30.9503)), new Array(-8.83, -8.83, -8.84, -8.86, -8.88, -8.9, -8.93, -8.97, -9.01, -9.05, -9.09, -9.14, -9.18, -9.23, -9.28, -9.33, -9.38, -9.43, -9.48, -9.53, -9.58, -9.62, -9.66, -9.7, -9.73, -9.76, -9.79, -9.81, -9.82, -9.83, -9.84, -9.83, -9.82, -9.81, -9.79, -9.76, -9.73, -9.7, -9.66, -9.62, -9.58, -9.53, -9.48, -9.43, -9.38, -9.33, -9.28, -9.23, -9.18, -9.14, -9.09, -9.05, -9.01, -8.97, -8.93, -8.9, -8.88, -8.86, -8.84, -8.83), skeletonBase, 1)); bones.push(new Bone(new Array(new Point(273.47, 38.0918), new Point(273.49, 38.0646), new Point(273.51, 38.0293), new Point(273.52, 37.9866), new Point(273.53, 37.937), new Point(273.54, 37.8813), new Point(273.54, 37.8198), new Point(273.54, 37.7535), new Point(273.54, 37.6827), new Point(273.54, 37.6082), new Point(273.53, 37.5307), new Point(273.52, 37.4507), new Point(273.51, 37.3688), new Point(273.5, 37.2859), new Point(273.49, 37.2023), new Point(273.47, 37.1188), new Point(273.46, 37.036), new Point(273.44, 36.9547), new Point(273.43, 36.8754), new Point(273.41, 36.7987), new Point(273.39, 36.7253), new Point(273.37, 36.6558), new Point(273.36, 36.591), new Point(273.34, 36.5314), new Point(273.33, 36.4776), new Point(273.31, 36.4304), new Point(273.3, 36.3903), new Point(273.29, 36.358), new Point(273.28, 36.3342), new Point(273.28, 36.3194), new Point(273.28, 36.3143), new Point(273.28, 36.3202), new Point(273.28, 36.3371), new Point(273.29, 36.3644), new Point(273.29, 36.4013), new Point(273.3, 36.4469), new Point(273.31, 36.5004), new Point(273.31, 36.5611), new Point(273.32, 36.628), new Point(273.33, 36.7006), new Point(273.34, 36.7778), new Point(273.35, 36.8589), new Point(273.36, 36.9431), new Point(273.37, 37.0297), new Point(273.38, 37.1178), new Point(273.39, 37.2066), new Point(273.4, 37.2953), new Point(273.41, 37.3832), new Point(273.42, 37.4694), new Point(273.43, 37.5532), new Point(273.44, 37.6337), new Point(273.44, 37.7103), new Point(273.45, 37.7821), new Point(273.45, 37.8484), new Point(273.46, 37.9083), new Point(273.46, 37.9611), new Point(273.47, 38.0061), new Point(273.47, 38.0424), new Point(273.47, 38.0693), new Point(273.47, 38.0861)), new Array(-20.09, -20.1, -20.12, -20.16, -20.22, -20.28, -20.36, -20.45, -20.55, -20.66, -20.77, -20.89, -21.01, -21.14, -21.27, -21.4, -21.53, -21.66, -21.78, -21.91, -22.03, -22.14, -22.25, -22.34, -22.43, -22.51, -22.58, -22.63, -22.67, -22.7, -22.71, -22.7, -22.67, -22.63, -22.58, -22.51, -22.43, -22.34, -22.25, -22.14, -22.03, -21.91, -21.78, -21.66, -21.53, -21.4, -21.27, -21.14, -21.01, -20.89, -20.77, -20.66, -20.55, -20.45, -20.36, -20.28, -20.22, -20.16, -20.12, -20.1), skeletonBase, 2)); bones.push(new Bone(new Array(new Point(315.25, 53.3769), new Point(315.27, 53.356), new Point(315.28, 53.3387), new Point(315.28, 53.3251), new Point(315.28, 53.3147), new Point(315.27, 53.3075), new Point(315.25, 53.303), new Point(315.23, 53.3013), new Point(315.2, 53.3016), new Point(315.17, 53.3044), new Point(315.13, 53.3091), new Point(315.09, 53.3153), new Point(315.04, 53.323), new Point(315, 53.3321), new Point(314.95, 53.3423), new Point(314.89, 53.3531), new Point(314.84, 53.3647), new Point(314.79, 53.3768), new Point(314.73, 53.3891), new Point(314.68, 53.4015), new Point(314.63, 53.4137), new Point(314.58, 53.4257), new Point(314.53, 53.4371), new Point(314.49, 53.4479), new Point(314.45, 53.4578), new Point(314.41, 53.4668), new Point(314.38, 53.4744), new Point(314.35, 53.4807), new Point(314.33, 53.4855), new Point(314.32, 53.4885), new Point(314.32, 53.4895), new Point(314.32, 53.4893), new Point(314.33, 53.4884), new Point(314.35, 53.4872), new Point(314.37, 53.4853), new Point(314.39, 53.4833), new Point(314.43, 53.4806), new Point(314.46, 53.4777), new Point(314.5, 53.4741), new Point(314.54, 53.4704), new Point(314.58, 53.4663), new Point(314.63, 53.4617), new Point(314.67, 53.4568), new Point(314.72, 53.4518), new Point(314.77, 53.4465), new Point(314.81, 53.4409), new Point(314.86, 53.4352), new Point(314.91, 53.4294), new Point(314.95, 53.4236), new Point(314.99, 53.4178), new Point(315.03, 53.4121), new Point(315.07, 53.4064), new Point(315.11, 53.4011), new Point(315.14, 53.3961), new Point(315.17, 53.3915), new Point(315.19, 53.3873), new Point(315.21, 53.3838), new Point(315.23, 53.3809), new Point(315.24, 53.3787), new Point(315.25, 53.3774)), new Array(-12.94, -12.78, -12.63, -12.48, -12.32, -12.17, -12.02, -11.87, -11.73, -11.58, -11.44, -11.3, -11.17, -11.03, -10.91, -10.78, -10.67, -10.56, -10.45, -10.35, -10.26, -10.17, -10.09, -10.02, -9.96, -9.9, -9.86, -9.82, -9.8, -9.78, -9.78, -9.79, -9.82, -9.86, -9.93, -10.01, -10.1, -10.21, -10.33, -10.46, -10.59, -10.74, -10.89, -11.04, -11.2, -11.36, -11.51, -11.67, -11.82, -11.97, -12.12, -12.25, -12.38, -12.5, -12.61, -12.7, -12.78, -12.85, -12.9, -12.93), skeletonBase, 3)); bones.push(new Bone(new Array(new Point(357.07, 62.9766), new Point(357.11, 62.8445), new Point(357.15, 62.7153), new Point(357.18, 62.5901), new Point(357.2, 62.468), new Point(357.21, 62.3499), new Point(357.22, 62.2351), new Point(357.22, 62.1243), new Point(357.21, 62.0168), new Point(357.2, 61.9135), new Point(357.18, 61.814), new Point(357.16, 61.7183), new Point(357.14, 61.6265), new Point(357.11, 61.5392), new Point(357.08, 61.456), new Point(357.04, 61.3767), new Point(357.01, 61.3018), new Point(356.97, 61.2316), new Point(356.93, 61.1659), new Point(356.89, 61.1048), new Point(356.85, 61.0484), new Point(356.81, 60.9968), new Point(356.78, 60.9502), new Point(356.74, 60.9088), new Point(356.71, 60.8724), new Point(356.68, 60.8414), new Point(356.65, 60.8158), new Point(356.63, 60.7956), new Point(356.61, 60.7812), new Point(356.61, 60.7724), new Point(356.6, 60.7694), new Point(356.6, 60.7769), new Point(356.61, 60.798), new Point(356.62, 60.8324), new Point(356.63, 60.8785), new Point(356.65, 60.936), new Point(356.67, 61.0029), new Point(356.69, 61.079), new Point(356.71, 61.1627), new Point(356.73, 61.2535), new Point(356.76, 61.3501), new Point(356.78, 61.4512), new Point(356.81, 61.5562), new Point(356.83, 61.6641), new Point(356.86, 61.7737), new Point(356.88, 61.8839), new Point(356.91, 61.994), new Point(356.93, 62.103), new Point(356.95, 62.2098), new Point(356.97, 62.3134), new Point(356.99, 62.413), new Point(357, 62.5073), new Point(357.02, 62.5959), new Point(357.03, 62.6775), new Point(357.04, 62.7512), new Point(357.05, 62.8162), new Point(357.06, 62.8714), new Point(357.06, 62.9161), new Point(357.07, 62.9491), new Point(357.07, 62.9697)), new Array(18.06, 17.97, 17.85, 17.7, 17.52, 17.33, 17.11, 16.88, 16.63, 16.37, 16.1, 15.82, 15.53, 15.24, 14.95, 14.66, 14.37, 14.09, 13.81, 13.54, 13.28, 13.04, 12.82, 12.61, 12.42, 12.25, 12.11, 12, 11.92, 11.87, 11.85, 11.87, 11.93, 12.02, 12.15, 12.31, 12.5, 12.71, 12.94, 13.19, 13.46, 13.74, 14.04, 14.34, 14.65, 14.96, 15.27, 15.57, 15.88, 16.17, 16.45, 16.72, 16.97, 17.21, 17.42, 17.6, 17.76, 17.89, 17.98, 18.04), skeletonBase, 4)); bones.push(new Bone(new Array(new Point(390.53, 52.0546), new Point(390.59, 51.9774), new Point(390.65, 51.92), new Point(390.7, 51.8822), new Point(390.76, 51.8615), new Point(390.81, 51.8579), new Point(390.85, 51.8693), new Point(390.89, 51.8951), new Point(390.93, 51.9333), new Point(390.97, 51.9836), new Point(391, 52.0444), new Point(391.02, 52.1141), new Point(391.05, 52.1917), new Point(391.07, 52.2764), new Point(391.08, 52.3666), new Point(391.09, 52.4606), new Point(391.1, 52.5577), new Point(391.11, 52.6569), new Point(391.11, 52.7566), new Point(391.11, 52.8553), new Point(391.1, 52.9521), new Point(391.1, 53.0457), new Point(391.09, 53.1347), new Point(391.09, 53.218), new Point(391.08, 53.2942), new Point(391.07, 53.3622), new Point(391.06, 53.4207), new Point(391.06, 53.4682), new Point(391.05, 53.5039), new Point(391.05, 53.5261), new Point(391.05, 53.5338), new Point(391.05, 53.5291), new Point(391.04, 53.5148), new Point(391.04, 53.4923), new Point(391.04, 53.4614), new Point(391.03, 53.4239), new Point(391.03, 53.3792), new Point(391.02, 53.3289), new Point(391.01, 53.273), new Point(391, 53.2129), new Point(390.99, 53.1489), new Point(390.97, 53.0811), new Point(390.95, 53.011), new Point(390.93, 52.9391), new Point(390.91, 52.8658), new Point(390.88, 52.7917), new Point(390.86, 52.7178), new Point(390.83, 52.6447), new Point(390.8, 52.573), new Point(390.77, 52.5032), new Point(390.74, 52.4361), new Point(390.71, 52.3721), new Point(390.68, 52.3124), new Point(390.65, 52.2572), new Point(390.62, 52.2073), new Point(390.59, 52.1633), new Point(390.57, 52.1259), new Point(390.56, 52.0957), new Point(390.54, 52.0732), new Point(390.53, 52.0594)), new Array(48.68, 48.59, 48.47, 48.33, 48.16, 47.97, 47.76, 47.54, 47.3, 47.05, 46.79, 46.53, 46.25, 45.97, 45.7, 45.42, 45.14, 44.87, 44.61, 44.35, 44.11, 43.88, 43.66, 43.46, 43.29, 43.13, 43, 42.89, 42.81, 42.76, 42.74, 42.76, 42.82, 42.91, 43.03, 43.18, 43.36, 43.56, 43.79, 44.03, 44.28, 44.55, 44.84, 45.12, 45.42, 45.71, 46.01, 46.3, 46.59, 46.87, 47.14, 47.4, 47.64, 47.86, 48.07, 48.24, 48.4, 48.52, 48.61, 48.66), skeletonBase, 5)); bones.push(new Bone(new Array(new Point(410.99, 28.7716), new Point(411.08, 28.7279), new Point(411.19, 28.7134), new Point(411.31, 28.7277), new Point(411.43, 28.7674), new Point(411.55, 28.8319), new Point(411.68, 28.9183), new Point(411.81, 29.0255), new Point(411.94, 29.1505), new Point(412.08, 29.2926), new Point(412.21, 29.4493), new Point(412.34, 29.6183), new Point(412.47, 29.7978), new Point(412.6, 29.9865), new Point(412.72, 30.1817), new Point(412.84, 30.381), new Point(412.96, 30.583), new Point(413.06, 30.7856), new Point(413.17, 30.9867), new Point(413.26, 31.1839), new Point(413.35, 31.3752), new Point(413.43, 31.5584), new Point(413.51, 31.7316), new Point(413.57, 31.8925), new Point(413.63, 32.0388), new Point(413.68, 32.1686), new Point(413.72, 32.2796), new Point(413.76, 32.3695), new Point(413.78, 32.4366), new Point(413.8, 32.4783), new Point(413.8, 32.4925), new Point(413.79, 32.4803), new Point(413.77, 32.4435), new Point(413.74, 32.3851), new Point(413.69, 32.3058), new Point(413.63, 32.2086), new Point(413.56, 32.0938), new Point(413.47, 31.9646), new Point(413.38, 31.8215), new Point(413.28, 31.6675), new Point(413.17, 31.5038), new Point(413.05, 31.3317), new Point(412.92, 31.1536), new Point(412.79, 30.9713), new Point(412.66, 30.7862), new Point(412.52, 30.5998), new Point(412.38, 30.4142), new Point(412.23, 30.231), new Point(412.09, 30.0518), new Point(411.95, 29.8779), new Point(411.81, 29.7113), new Point(411.68, 29.5529), new Point(411.55, 29.4053), new Point(411.43, 29.2691), new Point(411.32, 29.1462), new Point(411.23, 29.0381), new Point(411.15, 28.9463), new Point(411.08, 28.8722), new Point(411.03, 28.8173), new Point(411, 28.7834)), new Array(33.5, 33.55, 33.61, 33.69, 33.78, 33.88, 34, 34.12, 34.26, 34.4, 34.54, 34.7, 34.85, 35.01, 35.17, 35.33, 35.49, 35.65, 35.8, 35.95, 36.09, 36.22, 36.35, 36.46, 36.56, 36.66, 36.73, 36.8, 36.84, 36.87, 36.88, 36.87, 36.84, 36.79, 36.72, 36.63, 36.53, 36.41, 36.29, 36.15, 36, 35.85, 35.69, 35.53, 35.36, 35.19, 35.02, 34.85, 34.69, 34.53, 34.38, 34.23, 34.09, 33.97, 33.85, 33.75, 33.66, 33.59, 33.54, 33.51), skeletonBase, 6)); bones.push(new Bone(new Array(new Point(436.68, 11.7716), new Point(436.76, 11.7071), new Point(436.85, 11.6646), new Point(436.94, 11.6442), new Point(437.03, 11.643), new Point(437.13, 11.6612), new Point(437.22, 11.6962), new Point(437.32, 11.7478), new Point(437.41, 11.8132), new Point(437.5, 11.8926), new Point(437.59, 11.984), new Point(437.67, 12.0854), new Point(437.76, 12.1958), new Point(437.83, 12.3146), new Point(437.91, 12.4395), new Point(437.98, 12.5685), new Point(438.04, 12.7008), new Point(438.1, 12.8352), new Point(438.16, 12.9698), new Point(438.21, 13.1027), new Point(438.25, 13.2326), new Point(438.29, 13.3578), new Point(438.32, 13.4768), new Point(438.35, 13.588), new Point(438.38, 13.6894), new Point(438.4, 13.78), new Point(438.42, 13.8576), new Point(438.43, 13.9206), new Point(438.44, 13.9679), new Point(438.44, 13.9973), new Point(438.45, 14.0074), new Point(438.44, 13.9999), new Point(438.43, 13.9769), new Point(438.41, 13.9407), new Point(438.39, 13.8913), new Point(438.35, 13.8313), new Point(438.31, 13.7602), new Point(438.27, 13.6805), new Point(438.21, 13.5922), new Point(438.16, 13.4979), new Point(438.09, 13.3977), new Point(438.02, 13.2925), new Point(437.95, 13.184), new Point(437.87, 13.0737), new Point(437.79, 12.9619), new Point(437.7, 12.8495), new Point(437.61, 12.7381), new Point(437.52, 12.6286), new Point(437.42, 12.522), new Point(437.33, 12.4188), new Point(437.24, 12.3203), new Point(437.15, 12.2269), new Point(437.07, 12.1403), new Point(436.99, 12.0606), new Point(436.91, 11.9889), new Point(436.85, 11.926), new Point(436.79, 11.8726), new Point(436.74, 11.8298), new Point(436.71, 11.798), new Point(436.68, 11.7784)), new Array(2.8, 2.92, 3.05, 3.19, 3.35, 3.52, 3.7, 3.88, 4.08, 4.28, 4.48, 4.69, 4.9, 5.11, 5.32, 5.53, 5.73, 5.93, 6.12, 6.31, 6.48, 6.65, 6.8, 6.94, 7.07, 7.18, 7.27, 7.35, 7.4, 7.44, 7.45, 7.43, 7.39, 7.32, 7.22, 7.1, 6.97, 6.81, 6.63, 6.45, 6.24, 6.03, 5.81, 5.59, 5.36, 5.13, 4.89, 4.67, 4.44, 4.22, 4.01, 3.81, 3.62, 3.45, 3.29, 3.15, 3.03, 2.93, 2.86, 2.82), skeletonBase, 7)); bones.push(new Bone(new Array(new Point(456.91, 10.9351), new Point(456.99, 10.8302), new Point(457.08, 10.7417), new Point(457.16, 10.6705), new Point(457.25, 10.6138), new Point(457.34, 10.5727), new Point(457.43, 10.5448), new Point(457.52, 10.5306), new Point(457.61, 10.5274), new Point(457.7, 10.5363), new Point(457.78, 10.5557), new Point(457.86, 10.5839), new Point(457.94, 10.6204), new Point(458.01, 10.6652), new Point(458.08, 10.7163), new Point(458.14, 10.7724), new Point(458.2, 10.8331), new Point(458.25, 10.8976), new Point(458.3, 10.9646), new Point(458.34, 11.0325), new Point(458.38, 11.1007), new Point(458.42, 11.1677), new Point(458.44, 11.2327), new Point(458.47, 11.2944), new Point(458.49, 11.3515), new Point(458.51, 11.4032), new Point(458.52, 11.448), new Point(458.53, 11.4847), new Point(458.53, 11.5125), new Point(458.54, 11.53), new Point(458.54, 11.5359), new Point(458.54, 11.5338), new Point(458.53, 11.5261), new Point(458.51, 11.5149), new Point(458.49, 11.4989), new Point(458.46, 11.4806), new Point(458.43, 11.4582), new Point(458.39, 11.4339), new Point(458.34, 11.4066), new Point(458.29, 11.3786), new Point(458.23, 11.3491), new Point(458.17, 11.3181), new Point(458.1, 11.2868), new Point(458.03, 11.2559), new Point(457.96, 11.225), new Point(457.88, 11.1941), new Point(457.79, 11.1644), new Point(457.71, 11.1359), new Point(457.62, 11.1089), new Point(457.53, 11.0831), new Point(457.45, 11.0591), new Point(457.36, 11.0365), new Point(457.28, 11.0164), new Point(457.2, 10.9981), new Point(457.13, 10.982), new Point(457.07, 10.9682), new Point(457.01, 10.9565), new Point(456.97, 10.9475), new Point(456.93, 10.9406), new Point(456.91, 10.9367)), new Array(-36.8, -36.56, -36.3, -36.04, -35.76, -35.48, -35.18, -34.89, -34.58, -34.27, -33.97, -33.66, -33.35, -33.05, -32.75, -32.46, -32.17, -31.9, -31.63, -31.38, -31.14, -30.92, -30.71, -30.52, -30.35, -30.21, -30.08, -29.99, -29.91, -29.87, -29.85, -29.88, -29.94, -30.05, -30.19, -30.37, -30.58, -30.81, -31.07, -31.35, -31.65, -31.97, -32.3, -32.64, -32.98, -33.33, -33.67, -34.02, -34.35, -34.68, -35, -35.3, -35.58, -35.84, -36.07, -36.28, -36.46, -36.6, -36.71, -36.77), skeletonBase, 8)); bones.push(new Bone(new Array(new Point(184.76, 46.2764), new Point(184.76, 46.2764), new Point(184.76, 46.2764), new Point(184.76, 46.2765), new Point(184.76, 46.2765), new Point(184.76, 46.2766), new Point(184.76, 46.2767), new Point(184.76, 46.2767), new Point(184.76, 46.2769), new Point(184.76, 46.277), new Point(184.76, 46.2771), new Point(184.76, 46.2772), new Point(184.76, 46.2773), new Point(184.76, 46.2775), new Point(184.76, 46.2776), new Point(184.76, 46.2777), new Point(184.76, 46.2778), new Point(184.76, 46.278), new Point(184.76, 46.2781), new Point(184.76, 46.2782), new Point(184.76, 46.2783), new Point(184.76, 46.2785), new Point(184.76, 46.2786), new Point(184.76, 46.2787), new Point(184.76, 46.2788), new Point(184.76, 46.2788), new Point(184.76, 46.2789), new Point(184.76, 46.2789), new Point(184.76, 46.279), new Point(184.76, 46.279), new Point(184.76, 46.279), new Point(184.76, 46.279), new Point(184.76, 46.279), new Point(184.76, 46.2789), new Point(184.76, 46.2789), new Point(184.76, 46.2788), new Point(184.76, 46.2788), new Point(184.76, 46.2787), new Point(184.76, 46.2786), new Point(184.76, 46.2785), new Point(184.76, 46.2783), new Point(184.76, 46.2782), new Point(184.76, 46.2781), new Point(184.76, 46.278), new Point(184.76, 46.2778), new Point(184.76, 46.2777), new Point(184.76, 46.2776), new Point(184.76, 46.2775), new Point(184.76, 46.2773), new Point(184.76, 46.2772), new Point(184.76, 46.2771), new Point(184.76, 46.277), new Point(184.76, 46.2769), new Point(184.76, 46.2767), new Point(184.76, 46.2767), new Point(184.76, 46.2766), new Point(184.76, 46.2765), new Point(184.76, 46.2765), new Point(184.76, 46.2764), new Point(184.76, 46.2764)), new Array(-150.34, -150.34, -150.31, -150.27, -150.22, -150.16, -150.09, -150, -149.91, -149.81, -149.7, -149.59, -149.47, -149.35, -149.22, -149.1, -148.98, -148.85, -148.73, -148.61, -148.5, -148.39, -148.29, -148.2, -148.11, -148.04, -147.98, -147.92, -147.89, -147.86, -147.85, -147.86, -147.89, -147.92, -147.98, -148.04, -148.11, -148.2, -148.29, -148.39, -148.5, -148.61, -148.73, -148.85, -148.98, -149.1, -149.22, -149.35, -149.47, -149.59, -149.7, -149.81, -149.91, -150, -150.09, -150.16, -150.22, -150.27, -150.31, -150.34), skeletonBase, 9)); bones.push(new Bone(new Array(new Point(145.64, 68.5451), new Point(145.64, 68.5506), new Point(145.65, 68.5667), new Point(145.67, 68.5927), new Point(145.69, 68.6277), new Point(145.71, 68.671), new Point(145.74, 68.7219), new Point(145.77, 68.7795), new Point(145.81, 68.843), new Point(145.85, 68.9118), new Point(145.89, 68.985), new Point(145.94, 69.0619), new Point(145.99, 69.1417), new Point(146.03, 69.2236), new Point(146.08, 69.3069), new Point(146.13, 69.3909), new Point(146.18, 69.4748), new Point(146.23, 69.5578), new Point(146.28, 69.6392), new Point(146.33, 69.7183), new Point(146.38, 69.7943), new Point(146.42, 69.8665), new Point(146.46, 69.9342), new Point(146.5, 69.9967), new Point(146.54, 70.0531), new Point(146.57, 70.1029), new Point(146.6, 70.1452), new Point(146.62, 70.1794), new Point(146.63, 70.2047), new Point(146.64, 70.2205), new Point(146.65, 70.2259), new Point(146.64, 70.2205), new Point(146.63, 70.2048), new Point(146.62, 70.1794), new Point(146.6, 70.1452), new Point(146.57, 70.1029), new Point(146.54, 70.0531), new Point(146.5, 69.9967), new Point(146.46, 69.9342), new Point(146.42, 69.8666), new Point(146.38, 69.7943), new Point(146.33, 69.7183), new Point(146.28, 69.6392), new Point(146.23, 69.5578), new Point(146.18, 69.4748), new Point(146.13, 69.3909), new Point(146.08, 69.3069), new Point(146.03, 69.2236), new Point(145.99, 69.1417), new Point(145.94, 69.0619), new Point(145.89, 68.985), new Point(145.85, 68.9118), new Point(145.81, 68.843), new Point(145.77, 68.7795), new Point(145.74, 68.7219), new Point(145.71, 68.671), new Point(145.69, 68.6277), new Point(145.67, 68.5927), new Point(145.65, 68.5667), new Point(145.64, 68.5506)), new Array(-130.17, -130.16, -130.14, -130.1, -130.05, -129.98, -129.91, -129.82, -129.73, -129.63, -129.52, -129.41, -129.29, -129.17, -129.05, -128.92, -128.8, -128.68, -128.55, -128.44, -128.32, -128.22, -128.11, -128.02, -127.94, -127.86, -127.8, -127.75, -127.71, -127.69, -127.68, -127.69, -127.71, -127.75, -127.8, -127.86, -127.94, -128.02, -128.11, -128.22, -128.32, -128.44, -128.55, -128.68, -128.8, -128.92, -129.05, -129.17, -129.29, -129.41, -129.52, -129.63, -129.73, -129.82, -129.91, -129.98, -130.05, -130.1, -130.14, -130.16), skeletonBase, 10)); bones.push(new Bone(new Array(new Point(126.18, 91.8048), new Point(126.19, 91.8131), new Point(126.21, 91.8372), new Point(126.24, 91.8761), new Point(126.28, 91.9285), new Point(126.33, 91.9933), new Point(126.39, 92.0693), new Point(126.46, 92.1554), new Point(126.53, 92.2504), new Point(126.61, 92.3532), new Point(126.7, 92.4625), new Point(126.79, 92.5773), new Point(126.89, 92.6963), new Point(126.98, 92.8185), new Point(127.08, 92.9428), new Point(127.19, 93.0679), new Point(127.29, 93.1929), new Point(127.39, 93.3165), new Point(127.49, 93.4376), new Point(127.58, 93.5552), new Point(127.68, 93.6682), new Point(127.77, 93.7756), new Point(127.85, 93.8761), new Point(127.93, 93.9689), new Point(128, 94.0527), new Point(128.06, 94.1265), new Point(128.11, 94.1893), new Point(128.16, 94.24), new Point(128.19, 94.2776), new Point(128.21, 94.3009), new Point(128.22, 94.309), new Point(128.21, 94.3009), new Point(128.19, 94.2776), new Point(128.16, 94.2401), new Point(128.11, 94.1894), new Point(128.06, 94.1265), new Point(128, 94.0527), new Point(127.93, 93.9689), new Point(127.85, 93.8761), new Point(127.77, 93.7756), new Point(127.68, 93.6683), new Point(127.58, 93.5552), new Point(127.49, 93.4376), new Point(127.39, 93.3164), new Point(127.29, 93.1928), new Point(127.19, 93.0679), new Point(127.08, 92.9428), new Point(126.98, 92.8186), new Point(126.89, 92.6963), new Point(126.79, 92.5773), new Point(126.7, 92.4625), new Point(126.61, 92.3532), new Point(126.53, 92.2504), new Point(126.46, 92.1554), new Point(126.39, 92.0693), new Point(126.33, 91.9933), new Point(126.28, 91.9285), new Point(126.24, 91.8761), new Point(126.21, 91.8373), new Point(126.19, 91.8131)), new Array(-135.94, -135.95, -136, -136.08, -136.19, -136.32, -136.48, -136.65, -136.85, -137.06, -137.28, -137.52, -137.76, -138.01, -138.27, -138.53, -138.79, -139.04, -139.3, -139.54, -139.78, -140, -140.21, -140.41, -140.58, -140.74, -140.87, -140.98, -141.06, -141.11, -141.12, -141.11, -141.06, -140.98, -140.87, -140.74, -140.58, -140.41, -140.21, -140, -139.78, -139.54, -139.3, -139.05, -138.79, -138.53, -138.27, -138.01, -137.76, -137.52, -137.28, -137.06, -136.85, -136.65, -136.48, -136.32, -136.19, -136.08, -136, -135.95), skeletonBase, 11)); bones.push(new Bone(new Array(new Point(104.62, 112.6738), new Point(104.62, 112.6758), new Point(104.62, 112.6813), new Point(104.62, 112.6904), new Point(104.62, 112.7025), new Point(104.62, 112.7172), new Point(104.63, 112.7344), new Point(104.63, 112.7536), new Point(104.64, 112.7744), new Point(104.64, 112.7965), new Point(104.65, 112.8196), new Point(104.66, 112.8435), new Point(104.67, 112.8677), new Point(104.68, 112.8919), new Point(104.69, 112.916), new Point(104.7, 112.9398), new Point(104.71, 112.9629), new Point(104.72, 112.9852), new Point(104.74, 113.0064), new Point(104.75, 113.0265), new Point(104.76, 113.0454), new Point(104.78, 113.0628), new Point(104.79, 113.0788), new Point(104.8, 113.0931), new Point(104.82, 113.1058), new Point(104.83, 113.1168), new Point(104.84, 113.1259), new Point(104.84, 113.1332), new Point(104.85, 113.1385), new Point(104.85, 113.1418), new Point(104.85, 113.143), new Point(104.85, 113.1418), new Point(104.85, 113.1386), new Point(104.84, 113.1332), new Point(104.84, 113.126), new Point(104.83, 113.1168), new Point(104.82, 113.1058), new Point(104.8, 113.0931), new Point(104.79, 113.0788), new Point(104.78, 113.0628), new Point(104.76, 113.0453), new Point(104.75, 113.0265), new Point(104.74, 113.0064), new Point(104.72, 112.9851), new Point(104.71, 112.9629), new Point(104.7, 112.9398), new Point(104.69, 112.9161), new Point(104.68, 112.892), new Point(104.67, 112.8677), new Point(104.66, 112.8435), new Point(104.65, 112.8196), new Point(104.64, 112.7965), new Point(104.64, 112.7744), new Point(104.63, 112.7536), new Point(104.63, 112.7344), new Point(104.62, 112.7172), new Point(104.62, 112.7024), new Point(104.62, 112.6904), new Point(104.62, 112.6814), new Point(104.62, 112.6757)), new Array(-149.91, -149.93, -149.98, -150.06, -150.16, -150.3, -150.45, -150.63, -150.82, -151.03, -151.26, -151.49, -151.74, -151.99, -152.25, -152.5, -152.76, -153.02, -153.27, -153.52, -153.75, -153.98, -154.19, -154.38, -154.56, -154.71, -154.85, -154.95, -155.03, -155.08, -155.1, -155.08, -155.03, -154.95, -154.85, -154.71, -154.56, -154.38, -154.19, -153.98, -153.75, -153.52, -153.27, -153.02, -152.76, -152.5, -152.25, -151.99, -151.74, -151.49, -151.26, -151.03, -150.82, -150.63, -150.45, -150.3, -150.16, -150.06, -149.98, -149.93), skeletonBase, 12)); bones.push(new Bone(new Array(new Point(78.64, 127.7234), new Point(78.63, 127.7177), new Point(78.62, 127.7009), new Point(78.6, 127.674), new Point(78.57, 127.6377), new Point(78.54, 127.5923), new Point(78.51, 127.5387), new Point(78.47, 127.4776), new Point(78.42, 127.4096), new Point(78.37, 127.3353), new Point(78.32, 127.2553), new Point(78.27, 127.1707), new Point(78.22, 127.0819), new Point(78.17, 126.9896), new Point(78.11, 126.8948), new Point(78.06, 126.7983), new Point(78.01, 126.701), new Point(77.96, 126.6035), new Point(77.92, 126.5068), new Point(77.87, 126.4121), new Point(77.83, 126.3202), new Point(77.79, 126.232), new Point(77.76, 126.1487), new Point(77.73, 126.0713), new Point(77.7, 126.0008), new Point(77.68, 125.9383), new Point(77.66, 125.8847), new Point(77.64, 125.8413), new Point(77.63, 125.809), new Point(77.62, 125.7889), new Point(77.62, 125.7821), new Point(77.62, 125.7889), new Point(77.63, 125.8091), new Point(77.64, 125.8413), new Point(77.66, 125.8849), new Point(77.68, 125.9382), new Point(77.7, 126.0008), new Point(77.73, 126.0713), new Point(77.76, 126.1488), new Point(77.79, 126.2321), new Point(77.83, 126.3201), new Point(77.87, 126.4121), new Point(77.92, 126.5069), new Point(77.96, 126.6034), new Point(78.01, 126.7009), new Point(78.06, 126.7983), new Point(78.11, 126.8949), new Point(78.17, 126.9897), new Point(78.22, 127.0819), new Point(78.27, 127.1707), new Point(78.32, 127.2553), new Point(78.37, 127.3352), new Point(78.42, 127.4095), new Point(78.47, 127.4776), new Point(78.51, 127.5387), new Point(78.54, 127.5922), new Point(78.57, 127.6376), new Point(78.6, 127.6741), new Point(78.62, 127.7009), new Point(78.63, 127.7176)), new Array(-162.05, -162.06, -162.11, -162.19, -162.3, -162.43, -162.59, -162.76, -162.96, -163.17, -163.39, -163.63, -163.87, -164.13, -164.38, -164.64, -164.9, -165.16, -165.41, -165.65, -165.89, -166.11, -166.32, -166.52, -166.69, -166.85, -166.98, -167.09, -167.17, -167.22, -167.23, -167.22, -167.17, -167.09, -166.98, -166.85, -166.69, -166.52, -166.32, -166.11, -165.89, -165.65, -165.41, -165.16, -164.9, -164.64, -164.38, -164.13, -163.87, -163.63, -163.39, -163.17, -162.96, -162.76, -162.59, -162.43, -162.3, -162.19, -162.11, -162.06), skeletonBase, 13)); bones.push(new Bone(new Array(new Point(56.77, 134.8054), new Point(56.76, 134.7932), new Point(56.74, 134.7576), new Point(56.71, 134.7005), new Point(56.67, 134.6234), new Point(56.63, 134.5274), new Point(56.57, 134.4144), new Point(56.51, 134.2859), new Point(56.44, 134.1434), new Point(56.37, 133.9883), new Point(56.29, 133.822), new Point(56.21, 133.6467), new Point(56.13, 133.4635), new Point(56.05, 133.2739), new Point(55.97, 133.08), new Point(55.89, 132.8834), new Point(55.82, 132.6859), new Point(55.74, 132.4889), new Point(55.67, 132.2943), new Point(55.6, 132.1044), new Point(55.54, 131.9207), new Point(55.48, 131.7451), new Point(55.42, 131.5799), new Point(55.37, 131.4267), new Point(55.33, 131.2875), new Point(55.29, 131.1644), new Point(55.26, 131.0591), new Point(55.23, 130.9739), new Point(55.21, 130.9105), new Point(55.2, 130.8712), new Point(55.2, 130.8579), new Point(55.2, 130.8713), new Point(55.21, 130.9108), new Point(55.23, 130.9739), new Point(55.26, 131.0592), new Point(55.29, 131.1642), new Point(55.33, 131.2874), new Point(55.37, 131.4266), new Point(55.42, 131.5799), new Point(55.48, 131.7453), new Point(55.54, 131.9207), new Point(55.6, 132.1044), new Point(55.67, 132.2945), new Point(55.74, 132.4887), new Point(55.82, 132.6857), new Point(55.89, 132.8834), new Point(55.97, 133.0801), new Point(56.05, 133.2741), new Point(56.13, 133.4634), new Point(56.21, 133.6467), new Point(56.29, 133.822), new Point(56.37, 133.9882), new Point(56.44, 134.1433), new Point(56.51, 134.286), new Point(56.57, 134.4144), new Point(56.63, 134.5273), new Point(56.67, 134.6232), new Point(56.71, 134.7006), new Point(56.74, 134.7576), new Point(56.76, 134.7931)), new Array(-170.28, -170.29, -170.34, -170.42, -170.53, -170.66, -170.82, -170.99, -171.19, -171.4, -171.62, -171.86, -172.1, -172.35, -172.61, -172.87, -173.13, -173.38, -173.64, -173.88, -174.12, -174.34, -174.55, -174.75, -174.92, -175.08, -175.21, -175.32, -175.4, -175.45, -175.46, -175.45, -175.4, -175.32, -175.21, -175.08, -174.92, -174.75, -174.55, -174.34, -174.12, -173.88, -173.64, -173.39, -173.13, -172.87, -172.61, -172.35, -172.1, -171.86, -171.62, -171.4, -171.19, -170.99, -170.82, -170.66, -170.53, -170.42, -170.34, -170.29), skeletonBase, 14)); bones.push(new Bone(new Array(new Point(38.63, 137.9093), new Point(38.62, 137.8918), new Point(38.6, 137.8405), new Point(38.56, 137.7584), new Point(38.52, 137.6475), new Point(38.46, 137.5096), new Point(38.4, 137.3474), new Point(38.33, 137.1632), new Point(38.25, 136.959), new Point(38.17, 136.7369), new Point(38.08, 136.4994), new Point(38, 136.2491), new Point(37.9, 135.988), new Point(37.81, 135.718), new Point(37.72, 135.4424), new Point(37.63, 135.1633), new Point(37.54, 134.8833), new Point(37.46, 134.6045), new Point(37.38, 134.3294), new Point(37.3, 134.0611), new Point(37.23, 133.8021), new Point(37.16, 133.5548), new Point(37.1, 133.3223), new Point(37.04, 133.1069), new Point(37, 132.9115), new Point(36.95, 132.7387), new Point(36.92, 132.5911), new Point(36.89, 132.4717), new Point(36.87, 132.3829), new Point(36.85, 132.3279), new Point(36.85, 132.3092), new Point(36.85, 132.328), new Point(36.87, 132.3833), new Point(36.89, 132.4717), new Point(36.92, 132.5912), new Point(36.95, 132.7385), new Point(37, 132.9113), new Point(37.04, 133.1068), new Point(37.1, 133.3223), new Point(37.16, 133.555), new Point(37.23, 133.8021), new Point(37.3, 134.0612), new Point(37.38, 134.3296), new Point(37.46, 134.6042), new Point(37.54, 134.883), new Point(37.63, 135.1634), new Point(37.72, 135.4426), new Point(37.81, 135.7183), new Point(37.9, 135.9879), new Point(38, 136.2491), new Point(38.08, 136.4994), new Point(38.17, 136.7369), new Point(38.25, 136.9588), new Point(38.33, 137.1633), new Point(38.4, 137.3474), new Point(38.46, 137.5095), new Point(38.52, 137.6474), new Point(38.56, 137.7586), new Point(38.6, 137.8406), new Point(38.62, 137.8917)), new Array(-177.97, -177.99, -178.04, -178.12, -178.22, -178.36, -178.51, -178.69, -178.88, -179.09, -179.32, -179.55, -179.8, 179.95, 179.69, 179.43, 179.18, 178.92, 178.67, 178.42, 178.19, 177.96, 177.75, 177.56, 177.38, 177.22, 177.09, 176.99, 176.91, 176.86, 176.84, 176.86, 176.91, 176.99, 177.09, 177.22, 177.38, 177.56, 177.75, 177.96, 178.19, 178.42, 178.67, 178.92, 179.17, 179.43, 179.69, 179.95, -179.8, -179.55, -179.32, -179.09, -178.88, -178.69, -178.51, -178.36, -178.22, -178.12, -178.04, -177.99), skeletonBase, 15)); bones.push(new Bone(new Array(new Point(459.87, 18.9502), new Point(459.99, 18.8328), new Point(460.11, 18.7309), new Point(460.23, 18.6456), new Point(460.36, 18.574), new Point(460.49, 18.5174), new Point(460.62, 18.4732), new Point(460.76, 18.4422), new Point(460.89, 18.4219), new Point(461.01, 18.4132), new Point(461.14, 18.4146), new Point(461.26, 18.4245), new Point(461.38, 18.4427), new Point(461.49, 18.4692), new Point(461.6, 18.5021), new Point(461.71, 18.54), new Point(461.8, 18.5829), new Point(461.89, 18.63), new Point(461.98, 18.6801), new Point(462.05, 18.7317), new Point(462.12, 18.7844), new Point(462.19, 18.8368), new Point(462.24, 18.8881), new Point(462.29, 18.9374), new Point(462.33, 18.9832), new Point(462.37, 19.0251), new Point(462.4, 19.0615), new Point(462.42, 19.0916), new Point(462.44, 19.1145), new Point(462.45, 19.1289), new Point(462.45, 19.1338), new Point(462.45, 19.1332), new Point(462.43, 19.13), new Point(462.4, 19.126), new Point(462.36, 19.1197), new Point(462.3, 19.1133), new Point(462.24, 19.1047), new Point(462.17, 19.0961), new Point(462.09, 19.0859), new Point(462, 19.0762), new Point(461.91, 19.0661), new Point(461.8, 19.0552), new Point(461.69, 19.0445), new Point(461.57, 19.0346), new Point(461.45, 19.0248), new Point(461.32, 19.0149), new Point(461.19, 19.0059), new Point(461.06, 18.9977), new Point(460.92, 18.9902), new Point(460.79, 18.9832), new Point(460.66, 18.977), new Point(460.54, 18.9711), new Point(460.42, 18.9666), new Point(460.3, 18.9624), new Point(460.2, 18.959), new Point(460.11, 18.9563), new Point(460.03, 18.954), new Point(459.96, 18.9524), new Point(459.91, 18.9511), new Point(459.88, 18.9505)), new Array(-161.63, -161.4, -161.17, -160.94, -160.71, -160.49, -160.27, -160.06, -159.86, -159.66, -159.47, -159.3, -159.13, -158.98, -158.84, -158.72, -158.61, -158.51, -158.44, -158.38, -158.34, -158.32, -158.33, -158.35, -158.4, -158.48, -158.58, -158.7, -158.86, -159.04, -159.25, -159.51, -159.8, -160.13, -160.5, -160.9, -161.33, -161.78, -162.26, -162.75, -163.26, -163.77, -164.29, -164.82, -165.35, -165.87, -166.38, -166.88, -167.37, -167.84, -168.29, -168.71, -169.11, -169.47, -169.79, -170.07, -170.31, -170.51, -170.65, -170.74), skeletonBase, 16)); bones.push(new Bone(new Array(new Point(457.83, -0.4461), new Point(457.87, -0.5548), new Point(457.9, -0.6471), new Point(457.94, -0.722), new Point(457.97, -0.7823), new Point(458.01, -0.8268), new Point(458.04, -0.858), new Point(458.07, -0.8752), new Point(458.1, -0.8811), new Point(458.12, -0.8745), new Point(458.14, -0.8573), new Point(458.16, -0.8309), new Point(458.18, -0.7958), new Point(458.19, -0.7521), new Point(458.2, -0.7018), new Point(458.2, -0.6462), new Point(458.2, -0.5856), new Point(458.2, -0.521), new Point(458.2, -0.4536), new Point(458.19, -0.3852), new Point(458.18, -0.3163), new Point(458.17, -0.2484), new Point(458.16, -0.1824), new Point(458.14, -0.1197), new Point(458.13, -0.0616), new Point(458.12, -0.009), new Point(458.11, 0.0367), new Point(458.1, 0.0741), new Point(458.09, 0.1025), new Point(458.08, 0.1203), new Point(458.08, 0.1263), new Point(458.08, 0.124), new Point(458.09, 0.1159), new Point(458.09, 0.1038), new Point(458.1, 0.0869), new Point(458.11, 0.0674), new Point(458.11, 0.0437), new Point(458.12, 0.0183), new Point(458.13, -0.0101), new Point(458.13, -0.0391), new Point(458.14, -0.0692), new Point(458.14, -0.1006), new Point(458.13, -0.1319), new Point(458.13, -0.1625), new Point(458.12, -0.1926), new Point(458.11, -0.2222), new Point(458.1, -0.2503), new Point(458.08, -0.2768), new Point(458.06, -0.3014), new Point(458.04, -0.3245), new Point(458.01, -0.3456), new Point(457.99, -0.3651), new Point(457.96, -0.3819), new Point(457.94, -0.397), new Point(457.91, -0.41), new Point(457.89, -0.4209), new Point(457.87, -0.4299), new Point(457.85, -0.4368), new Point(457.84, -0.442), new Point(457.83, -0.4449)), new Array(-178.91, -178.66, -178.38, -178.06, -177.72, -177.36, -176.97, -176.56, -176.12, -175.68, -175.21, -174.74, -174.25, -173.75, -173.25, -172.74, -172.24, -171.73, -171.22, -170.72, -170.23, -169.74, -169.27, -168.81, -168.36, -167.93, -167.53, -167.14, -166.78, -166.44, -166.14, -165.87, -165.64, -165.46, -165.32, -165.21, -165.13, -165.09, -165.08, -165.09, -165.13, -165.19, -165.27, -165.37, -165.48, -165.6, -165.74, -165.88, -166.02, -166.17, -166.32, -166.46, -166.6, -166.73, -166.86, -166.97, -167.06, -167.14, -167.2, -167.24), skeletonBase, 17)); bones.push(new Bone(new Array(new Point(284.29, 80.983), new Point(284.34, 81.002), new Point(284.38, 81.0188), new Point(284.41, 81.0336), new Point(284.42, 81.0464), new Point(284.43, 81.0575), new Point(284.42, 81.0668), new Point(284.41, 81.0745), new Point(284.38, 81.0806), new Point(284.35, 81.0854), new Point(284.31, 81.0889), new Point(284.26, 81.091), new Point(284.21, 81.0919), new Point(284.15, 81.092), new Point(284.09, 81.091), new Point(284.02, 81.0891), new Point(283.95, 81.0866), new Point(283.88, 81.0834), new Point(283.81, 81.0797), new Point(283.74, 81.0756), new Point(283.67, 81.0712), new Point(283.6, 81.0666), new Point(283.54, 81.062), new Point(283.48, 81.0574), new Point(283.42, 81.0531), new Point(283.37, 81.0491), new Point(283.33, 81.0455), new Point(283.29, 81.0425), new Point(283.27, 81.0402), new Point(283.25, 81.0387), new Point(283.24, 81.0382), new Point(283.25, 81.0381), new Point(283.26, 81.0376), new Point(283.28, 81.0368), new Point(283.3, 81.0358), new Point(283.33, 81.0346), new Point(283.37, 81.0331), new Point(283.4, 81.0315), new Point(283.45, 81.0295), new Point(283.49, 81.0275), new Point(283.54, 81.0253), new Point(283.59, 81.0229), new Point(283.65, 81.0204), new Point(283.7, 81.0178), new Point(283.75, 81.0152), new Point(283.8, 81.0124), new Point(283.85, 81.0096), new Point(283.91, 81.0069), new Point(283.95, 81.0041), new Point(284, 81.0014), new Point(284.05, 80.9987), new Point(284.09, 80.9961), new Point(284.13, 80.9937), new Point(284.16, 80.9915), new Point(284.19, 80.9894), new Point(284.22, 80.9876), new Point(284.24, 80.986), new Point(284.26, 80.9847), new Point(284.28, 80.9838), new Point(284.28, 80.9832)), new Array(-100.13, -100.13, -100.12, -100.11, -100.09, -100.07, -100.04, -100.01, -99.97, -99.93, -99.89, -99.85, -99.8, -99.76, -99.71, -99.67, -99.62, -99.57, -99.53, -99.48, -99.44, -99.4, -99.36, -99.33, -99.3, -99.27, -99.24, -99.22, -99.21, -99.2, -99.2, -99.2, -99.21, -99.22, -99.24, -99.27, -99.3, -99.33, -99.36, -99.4, -99.44, -99.48, -99.53, -99.57, -99.62, -99.67, -99.71, -99.76, -99.81, -99.85, -99.89, -99.93, -99.97, -100.01, -100.04, -100.07, -100.09, -100.11, -100.12, -100.13), skeletonBase, 18)); bones.push(new Bone(new Array(new Point(275.95, 127.6425), new Point(276, 127.6619), new Point(276.05, 127.68), new Point(276.09, 127.6969), new Point(276.12, 127.7125), new Point(276.14, 127.727), new Point(276.16, 127.7404), new Point(276.17, 127.7527), new Point(276.18, 127.7638), new Point(276.17, 127.774), new Point(276.17, 127.7832), new Point(276.15, 127.7914), new Point(276.14, 127.7986), new Point(276.12, 127.805), new Point(276.09, 127.8106), new Point(276.06, 127.8152), new Point(276.03, 127.8191), new Point(276, 127.8223), new Point(275.97, 127.8249), new Point(275.93, 127.8268), new Point(275.9, 127.8282), new Point(275.86, 127.8291), new Point(275.83, 127.8295), new Point(275.8, 127.8297), new Point(275.77, 127.8297), new Point(275.74, 127.8294), new Point(275.71, 127.829), new Point(275.69, 127.8285), new Point(275.68, 127.8281), new Point(275.67, 127.8278), new Point(275.67, 127.8277), new Point(275.67, 127.8271), new Point(275.67, 127.8255), new Point(275.68, 127.8229), new Point(275.69, 127.8193), new Point(275.7, 127.8149), new Point(275.71, 127.8097), new Point(275.72, 127.8038), new Point(275.74, 127.7971), new Point(275.75, 127.79), new Point(275.77, 127.7823), new Point(275.78, 127.7741), new Point(275.8, 127.7656), new Point(275.82, 127.7568), new Point(275.83, 127.7477), new Point(275.85, 127.7384), new Point(275.86, 127.7292), new Point(275.87, 127.7199), new Point(275.88, 127.7107), new Point(275.89, 127.7018), new Point(275.9, 127.6931), new Point(275.91, 127.6847), new Point(275.92, 127.6769), new Point(275.93, 127.6696), new Point(275.93, 127.663), new Point(275.94, 127.6571), new Point(275.94, 127.6521), new Point(275.94, 127.648), new Point(275.95, 127.645), new Point(275.95, 127.6431)), new Array(-91.75, -91.75, -91.74, -91.73, -91.71, -91.68, -91.65, -91.62, -91.59, -91.55, -91.51, -91.47, -91.42, -91.38, -91.33, -91.28, -91.24, -91.19, -91.14, -91.1, -91.06, -91.02, -90.98, -90.94, -90.91, -90.88, -90.86, -90.84, -90.83, -90.82, -90.82, -90.82, -90.83, -90.84, -90.86, -90.88, -90.91, -90.94, -90.98, -91.02, -91.06, -91.1, -91.14, -91.19, -91.24, -91.28, -91.33, -91.38, -91.42, -91.47, -91.51, -91.55, -91.59, -91.62, -91.65, -91.68, -91.71, -91.73, -91.74, -91.75), skeletonBase, 19)); bones.push(new Bone(new Array(new Point(275.49, 142.7882), new Point(275.54, 142.8077), new Point(275.59, 142.8258), new Point(275.63, 142.8428), new Point(275.67, 142.8586), new Point(275.7, 142.8733), new Point(275.72, 142.8869), new Point(275.74, 142.8994), new Point(275.76, 142.9108), new Point(275.76, 142.9213), new Point(275.77, 142.9308), new Point(275.77, 142.9392), new Point(275.76, 142.9468), new Point(275.75, 142.9535), new Point(275.74, 142.9593), new Point(275.73, 142.9642), new Point(275.71, 142.9684), new Point(275.69, 142.9718), new Point(275.66, 142.9747), new Point(275.64, 142.9768), new Point(275.62, 142.9784), new Point(275.59, 142.9795), new Point(275.57, 142.9801), new Point(275.55, 142.9805), new Point(275.52, 142.9805), new Point(275.5, 142.9804), new Point(275.49, 142.9801), new Point(275.47, 142.9797), new Point(275.46, 142.9793), new Point(275.45, 142.9791), new Point(275.45, 142.979), new Point(275.45, 142.9784), new Point(275.45, 142.9767), new Point(275.46, 142.9741), new Point(275.46, 142.9704), new Point(275.46, 142.9659), new Point(275.47, 142.9606), new Point(275.47, 142.9545), new Point(275.48, 142.9477), new Point(275.48, 142.9404), new Point(275.49, 142.9325), new Point(275.49, 142.9241), new Point(275.5, 142.9154), new Point(275.5, 142.9063), new Point(275.5, 142.897), new Point(275.51, 142.8875), new Point(275.51, 142.8779), new Point(275.51, 142.8684), new Point(275.51, 142.8589), new Point(275.51, 142.8496), new Point(275.51, 142.8406), new Point(275.5, 142.832), new Point(275.5, 142.8239), new Point(275.5, 142.8164), new Point(275.5, 142.8095), new Point(275.49, 142.8034), new Point(275.49, 142.7982), new Point(275.49, 142.794), new Point(275.49, 142.7909), new Point(275.49, 142.7889)), new Array(-32.99, -32.98, -32.97, -32.96, -32.94, -32.92, -32.89, -32.86, -32.82, -32.78, -32.74, -32.7, -32.66, -32.61, -32.56, -32.52, -32.47, -32.42, -32.38, -32.33, -32.29, -32.25, -32.21, -32.18, -32.15, -32.12, -32.09, -32.08, -32.06, -32.05, -32.05, -32.05, -32.06, -32.08, -32.09, -32.12, -32.15, -32.18, -32.21, -32.25, -32.29, -32.33, -32.38, -32.42, -32.47, -32.52, -32.56, -32.61, -32.66, -32.7, -32.74, -32.78, -32.82, -32.86, -32.89, -32.92, -32.94, -32.96, -32.97, -32.98), skeletonBase, 20)); bones.push(new Bone(new Array(new Point(281.23, 146.5198), new Point(281.29, 146.539), new Point(281.34, 146.5562), new Point(281.38, 146.5718), new Point(281.42, 146.5856), new Point(281.45, 146.5979), new Point(281.48, 146.6087), new Point(281.5, 146.618), new Point(281.51, 146.6259), new Point(281.53, 146.6326), new Point(281.53, 146.638), new Point(281.53, 146.6422), new Point(281.53, 146.6452), new Point(281.52, 146.6473), new Point(281.52, 146.6485), new Point(281.5, 146.6487), new Point(281.49, 146.6481), new Point(281.47, 146.6469), new Point(281.45, 146.6452), new Point(281.43, 146.6429), new Point(281.41, 146.6401), new Point(281.39, 146.6371), new Point(281.37, 146.6339), new Point(281.35, 146.6307), new Point(281.33, 146.6276), new Point(281.31, 146.6246), new Point(281.29, 146.6218), new Point(281.28, 146.6195), new Point(281.27, 146.6177), new Point(281.26, 146.6166), new Point(281.26, 146.6161), new Point(281.26, 146.6159), new Point(281.26, 146.6151), new Point(281.26, 146.6139), new Point(281.27, 146.6122), new Point(281.27, 146.6101), new Point(281.27, 146.6076), new Point(281.27, 146.6048), new Point(281.28, 146.6015), new Point(281.28, 146.598), new Point(281.28, 146.5943), new Point(281.28, 146.5902), new Point(281.29, 146.5859), new Point(281.29, 146.5814), new Point(281.28, 146.5768), new Point(281.28, 146.5719), new Point(281.28, 146.5671), new Point(281.28, 146.5622), new Point(281.28, 146.5573), new Point(281.27, 146.5525), new Point(281.27, 146.5478), new Point(281.26, 146.5433), new Point(281.26, 146.539), new Point(281.25, 146.535), new Point(281.25, 146.5313), new Point(281.25, 146.528), new Point(281.24, 146.5252), new Point(281.24, 146.5229), new Point(281.24, 146.5212), new Point(281.23, 146.5202)), new Array(-0.69, -0.69, -0.68, -0.67, -0.65, -0.62, -0.6, -0.57, -0.53, -0.49, -0.45, -0.41, -0.36, -0.32, -0.27, -0.23, -0.18, -0.13, -0.09, -0.04, 0, 0.04, 0.08, 0.11, 0.14, 0.17, 0.2, 0.22, 0.23, 0.24, 0.24, 0.24, 0.23, 0.22, 0.2, 0.17, 0.14, 0.11, 0.08, 0.04, 0, -0.04, -0.09, -0.13, -0.18, -0.23, -0.27, -0.32, -0.36, -0.41, -0.45, -0.49, -0.53, -0.57, -0.6, -0.62, -0.65, -0.67, -0.68, -0.69), skeletonBase, 21)); bones.push(new Bone(new Array(new Point(271.35, 144.5731), new Point(271.41, 144.5927), new Point(271.46, 144.6115), new Point(271.5, 144.6296), new Point(271.54, 144.6467), new Point(271.57, 144.6631), new Point(271.6, 144.6787), new Point(271.61, 144.6936), new Point(271.63, 144.7075), new Point(271.64, 144.7207), new Point(271.64, 144.7331), new Point(271.64, 144.7446), new Point(271.64, 144.7554), new Point(271.63, 144.7653), new Point(271.62, 144.7745), new Point(271.61, 144.7827), new Point(271.59, 144.7903), new Point(271.57, 144.7971), new Point(271.55, 144.8031), new Point(271.53, 144.8085), new Point(271.51, 144.8131), new Point(271.48, 144.8171), new Point(271.46, 144.8205), new Point(271.44, 144.8233), new Point(271.42, 144.8257), new Point(271.4, 144.8275), new Point(271.38, 144.8289), new Point(271.37, 144.8299), new Point(271.36, 144.8306), new Point(271.35, 144.831), new Point(271.35, 144.8311), new Point(271.35, 144.8303), new Point(271.35, 144.828), new Point(271.35, 144.8243), new Point(271.36, 144.8193), new Point(271.36, 144.8131), new Point(271.36, 144.8057), new Point(271.37, 144.7974), new Point(271.37, 144.7881), new Point(271.38, 144.778), new Point(271.38, 144.7672), new Point(271.38, 144.7558), new Point(271.39, 144.7439), new Point(271.39, 144.7315), new Point(271.39, 144.7189), new Point(271.39, 144.706), new Point(271.39, 144.6931), new Point(271.39, 144.6802), new Point(271.39, 144.6674), new Point(271.38, 144.655), new Point(271.38, 144.643), new Point(271.38, 144.6314), new Point(271.37, 144.6206), new Point(271.37, 144.6105), new Point(271.37, 144.6013), new Point(271.36, 144.5932), new Point(271.36, 144.5863), new Point(271.36, 144.5807), new Point(271.36, 144.5766), new Point(271.35, 144.5739)), new Array(-41.23, -41.23, -41.22, -41.21, -41.19, -41.16, -41.13, -41.1, -41.07, -41.03, -40.99, -40.95, -40.9, -40.86, -40.81, -40.76, -40.72, -40.67, -40.62, -40.58, -40.54, -40.5, -40.46, -40.42, -40.39, -40.36, -40.34, -40.32, -40.31, -40.3, -40.3, -40.3, -40.31, -40.32, -40.34, -40.36, -40.39, -40.42, -40.46, -40.5, -40.54, -40.58, -40.62, -40.67, -40.72, -40.76, -40.81, -40.86, -40.9, -40.95, -40.99, -41.03, -41.07, -41.1, -41.13, -41.16, -41.19, -41.21, -41.22, -41.23), skeletonBase, 22)); bones.push(new Bone(new Array(new Point(315.91, 80.9115), new Point(315.93, 80.8732), new Point(315.95, 80.84), new Point(315.96, 80.8123), new Point(315.96, 80.7891), new Point(315.95, 80.7707), new Point(315.94, 80.7564), new Point(315.93, 80.7463), new Point(315.9, 80.7396), new Point(315.88, 80.7365), new Point(315.85, 80.7366), new Point(315.81, 80.7394), new Point(315.77, 80.7447), new Point(315.73, 80.7525), new Point(315.69, 80.7623), new Point(315.64, 80.7735), new Point(315.59, 80.7863), new Point(315.54, 80.8002), new Point(315.49, 80.8151), new Point(315.44, 80.8304), new Point(315.4, 80.8459), new Point(315.35, 80.8614), new Point(315.3, 80.8766), new Point(315.26, 80.8911), new Point(315.22, 80.9046), new Point(315.19, 80.917), new Point(315.16, 80.9277), new Point(315.14, 80.9366), new Point(315.12, 80.9433), new Point(315.11, 80.9476), new Point(315.1, 80.949), new Point(315.11, 80.949), new Point(315.11, 80.9485), new Point(315.13, 80.9479), new Point(315.15, 80.9469), new Point(315.17, 80.946), new Point(315.2, 80.9447), new Point(315.23, 80.9434), new Point(315.26, 80.9418), new Point(315.3, 80.9403), new Point(315.33, 80.9387), new Point(315.37, 80.9368), new Point(315.41, 80.9349), new Point(315.45, 80.9331), new Point(315.49, 80.9313), new Point(315.53, 80.9293), new Point(315.57, 80.9275), new Point(315.61, 80.9257), new Point(315.65, 80.924), new Point(315.69, 80.9222), new Point(315.72, 80.9206), new Point(315.75, 80.919), new Point(315.78, 80.9176), new Point(315.81, 80.9163), new Point(315.83, 80.9151), new Point(315.85, 80.914), new Point(315.87, 80.9132), new Point(315.89, 80.9125), new Point(315.9, 80.9119), new Point(315.9, 80.9117)), new Array(-102.83, -102.83, -102.82, -102.81, -102.8, -102.78, -102.76, -102.74, -102.72, -102.69, -102.66, -102.63, -102.6, -102.57, -102.53, -102.5, -102.47, -102.44, -102.4, -102.37, -102.34, -102.31, -102.29, -102.26, -102.24, -102.22, -102.2, -102.19, -102.18, -102.17, -102.17, -102.17, -102.18, -102.19, -102.2, -102.22, -102.24, -102.26, -102.29, -102.31, -102.34, -102.37, -102.4, -102.44, -102.47, -102.5, -102.53, -102.57, -102.6, -102.63, -102.66, -102.69, -102.72, -102.74, -102.76, -102.78, -102.8, -102.81, -102.82, -102.83), skeletonBase, 23)); bones.push(new Bone(new Array(new Point(305.28, 127.5691), new Point(305.31, 127.5311), new Point(305.33, 127.4992), new Point(305.34, 127.4733), new Point(305.36, 127.4527), new Point(305.37, 127.4373), new Point(305.37, 127.4267), new Point(305.37, 127.4207), new Point(305.37, 127.4186), new Point(305.37, 127.4204), new Point(305.36, 127.4256), new Point(305.35, 127.4339), new Point(305.34, 127.445), new Point(305.32, 127.4585), new Point(305.3, 127.4742), new Point(305.28, 127.4914), new Point(305.26, 127.5101), new Point(305.24, 127.53), new Point(305.22, 127.5506), new Point(305.19, 127.5715), new Point(305.17, 127.5924), new Point(305.14, 127.6129), new Point(305.12, 127.6329), new Point(305.1, 127.6518), new Point(305.08, 127.6693), new Point(305.06, 127.6851), new Point(305.04, 127.6988), new Point(305.03, 127.71), new Point(305.02, 127.7186), new Point(305.02, 127.7239), new Point(305.01, 127.7258), new Point(305.01, 127.7253), new Point(305.02, 127.7237), new Point(305.02, 127.7214), new Point(305.03, 127.718), new Point(305.04, 127.7142), new Point(305.05, 127.7094), new Point(305.06, 127.7041), new Point(305.08, 127.6981), new Point(305.09, 127.6918), new Point(305.1, 127.6851), new Point(305.12, 127.6779), new Point(305.13, 127.6704), new Point(305.15, 127.6629), new Point(305.16, 127.6552), new Point(305.18, 127.6473), new Point(305.19, 127.6395), new Point(305.2, 127.6318), new Point(305.21, 127.6242), new Point(305.22, 127.6168), new Point(305.23, 127.6097), new Point(305.24, 127.6029), new Point(305.25, 127.5965), new Point(305.26, 127.5907), new Point(305.26, 127.5854), new Point(305.27, 127.5807), new Point(305.27, 127.5767), new Point(305.28, 127.5735), new Point(305.28, 127.5711), new Point(305.28, 127.5696)), new Array(-90.09, -90.09, -90.09, -90.08, -90.06, -90.05, -90.03, -90, -89.98, -89.95, -89.92, -89.89, -89.86, -89.83, -89.8, -89.77, -89.73, -89.7, -89.67, -89.64, -89.61, -89.58, -89.55, -89.53, -89.5, -89.48, -89.47, -89.45, -89.44, -89.44, -89.44, -89.44, -89.44, -89.45, -89.47, -89.48, -89.5, -89.53, -89.55, -89.58, -89.61, -89.64, -89.67, -89.7, -89.73, -89.77, -89.8, -89.83, -89.86, -89.89, -89.92, -89.95, -89.98, -90, -90.03, -90.05, -90.06, -90.08, -90.09, -90.09), skeletonBase, 24)); bones.push(new Bone(new Array(new Point(305.26, 142.5295), new Point(305.28, 142.4915), new Point(305.3, 142.4596), new Point(305.32, 142.4337), new Point(305.34, 142.4131), new Point(305.35, 142.3977), new Point(305.37, 142.3871), new Point(305.37, 142.3811), new Point(305.38, 142.379), new Point(305.38, 142.3808), new Point(305.38, 142.386), new Point(305.38, 142.3943), new Point(305.37, 142.4053), new Point(305.36, 142.4189), new Point(305.35, 142.4345), new Point(305.34, 142.4517), new Point(305.33, 142.4704), new Point(305.32, 142.4902), new Point(305.3, 142.5107), new Point(305.29, 142.5316), new Point(305.27, 142.5524), new Point(305.25, 142.5729), new Point(305.24, 142.5928), new Point(305.22, 142.6117), new Point(305.21, 142.6291), new Point(305.2, 142.6449), new Point(305.18, 142.6586), new Point(305.17, 142.6698), new Point(305.17, 142.6783), new Point(305.16, 142.6836), new Point(305.16, 142.6854), new Point(305.16, 142.685), new Point(305.16, 142.6834), new Point(305.17, 142.6811), new Point(305.17, 142.6778), new Point(305.18, 142.674), new Point(305.18, 142.6692), new Point(305.19, 142.664), new Point(305.19, 142.658), new Point(305.2, 142.6518), new Point(305.21, 142.6451), new Point(305.21, 142.638), new Point(305.22, 142.6306), new Point(305.23, 142.6231), new Point(305.23, 142.6154), new Point(305.24, 142.6076), new Point(305.24, 142.5998), new Point(305.25, 142.5921), new Point(305.25, 142.5845), new Point(305.25, 142.5772), new Point(305.25, 142.5701), new Point(305.25, 142.5632), new Point(305.26, 142.5569), new Point(305.26, 142.5511), new Point(305.26, 142.5458), new Point(305.26, 142.5411), new Point(305.26, 142.5371), new Point(305.26, 142.5339), new Point(305.26, 142.5315), new Point(305.26, 142.53)), new Array(-31.47, -31.46, -31.46, -31.45, -31.43, -31.42, -31.4, -31.38, -31.35, -31.32, -31.3, -31.27, -31.23, -31.2, -31.17, -31.14, -31.1, -31.07, -31.04, -31.01, -30.98, -30.95, -30.92, -30.9, -30.88, -30.86, -30.84, -30.83, -30.82, -30.81, -30.81, -30.81, -30.82, -30.83, -30.84, -30.86, -30.88, -30.9, -30.92, -30.95, -30.98, -31.01, -31.04, -31.07, -31.1, -31.14, -31.17, -31.2, -31.23, -31.27, -31.3, -31.32, -31.35, -31.38, -31.4, -31.42, -31.43, -31.45, -31.46, -31.46), skeletonBase, 25)); bones.push(new Bone(new Array(new Point(312.18, 146.7621), new Point(312.2, 146.7239), new Point(312.23, 146.6912), new Point(312.25, 146.6641), new Point(312.27, 146.6418), new Point(312.28, 146.6245), new Point(312.29, 146.6115), new Point(312.3, 146.6027), new Point(312.31, 146.5976), new Point(312.31, 146.5962), new Point(312.31, 146.598), new Point(312.31, 146.6026), new Point(312.31, 146.6099), new Point(312.31, 146.6196), new Point(312.3, 146.6313), new Point(312.29, 146.6445), new Point(312.28, 146.6591), new Point(312.27, 146.675), new Point(312.26, 146.6916), new Point(312.24, 146.7087), new Point(312.23, 146.7259), new Point(312.21, 146.743), new Point(312.2, 146.7596), new Point(312.19, 146.7754), new Point(312.17, 146.7902), new Point(312.16, 146.8036), new Point(312.15, 146.8152), new Point(312.14, 146.8247), new Point(312.14, 146.832), new Point(312.13, 146.8366), new Point(312.13, 146.8381), new Point(312.13, 146.838), new Point(312.13, 146.8372), new Point(312.14, 146.8361), new Point(312.14, 146.8344), new Point(312.14, 146.8326), new Point(312.15, 146.8303), new Point(312.15, 146.8278), new Point(312.16, 146.8248), new Point(312.16, 146.8218), new Point(312.17, 146.8186), new Point(312.17, 146.8151), new Point(312.17, 146.8115), new Point(312.18, 146.8079), new Point(312.18, 146.8042), new Point(312.18, 146.8003), new Point(312.19, 146.7965), new Point(312.19, 146.7928), new Point(312.19, 146.7891), new Point(312.19, 146.7855), new Point(312.19, 146.7821), new Point(312.19, 146.7787), new Point(312.19, 146.7756), new Point(312.19, 146.7727), new Point(312.18, 146.7701), new Point(312.18, 146.7678), new Point(312.18, 146.7659), new Point(312.18, 146.7643), new Point(312.18, 146.7631), new Point(312.18, 146.7624)), new Array(-2.47, -2.47, -2.46, -2.45, -2.44, -2.42, -2.4, -2.38, -2.35, -2.33, -2.3, -2.27, -2.24, -2.21, -2.17, -2.14, -2.11, -2.07, -2.04, -2.01, -1.98, -1.95, -1.93, -1.9, -1.88, -1.86, -1.84, -1.83, -1.82, -1.81, -1.81, -1.81, -1.82, -1.83, -1.84, -1.86, -1.88, -1.9, -1.93, -1.95, -1.98, -2.01, -2.04, -2.07, -2.11, -2.14, -2.17, -2.21, -2.24, -2.27, -2.3, -2.33, -2.35, -2.38, -2.4, -2.42, -2.44, -2.45, -2.46, -2.47), skeletonBase, 26)); bones.push(new Bone(new Array(new Point(303.06, 144.2861), new Point(303.09, 144.2482), new Point(303.11, 144.2165), new Point(303.13, 144.191), new Point(303.15, 144.1709), new Point(303.16, 144.1562), new Point(303.17, 144.1464), new Point(303.18, 144.1412), new Point(303.19, 144.14), new Point(303.19, 144.1428), new Point(303.19, 144.1492), new Point(303.19, 144.1586), new Point(303.18, 144.1708), new Point(303.18, 144.1856), new Point(303.17, 144.2025), new Point(303.16, 144.2209), new Point(303.15, 144.2409), new Point(303.13, 144.2619), new Point(303.12, 144.2837), new Point(303.11, 144.3057), new Point(303.09, 144.3277), new Point(303.08, 144.3493), new Point(303.06, 144.3702), new Point(303.05, 144.39), new Point(303.03, 144.4083), new Point(303.02, 144.4248), new Point(303.01, 144.4391), new Point(303, 144.4508), new Point(302.99, 144.4597), new Point(302.99, 144.4653), new Point(302.99, 144.4672), new Point(302.99, 144.4667), new Point(302.99, 144.4649), new Point(302.99, 144.4622), new Point(303, 144.4583), new Point(303, 144.4539), new Point(303, 144.4484), new Point(303.01, 144.4423), new Point(303.02, 144.4354), new Point(303.02, 144.4281), new Point(303.03, 144.4204), new Point(303.03, 144.4121), new Point(303.04, 144.4035), new Point(303.04, 144.3948), new Point(303.05, 144.3859), new Point(303.05, 144.3768), new Point(303.06, 144.3677), new Point(303.06, 144.3588), new Point(303.06, 144.3501), new Point(303.06, 144.3415), new Point(303.06, 144.3333), new Point(303.06, 144.3253), new Point(303.06, 144.318), new Point(303.06, 144.3112), new Point(303.06, 144.305), new Point(303.06, 144.2996), new Point(303.06, 144.295), new Point(303.06, 144.2912), new Point(303.06, 144.2884), new Point(303.06, 144.2867)), new Array(-46.03, -46.03, -46.02, -46.01, -46, -45.98, -45.96, -45.94, -45.91, -45.89, -45.86, -45.83, -45.8, -45.77, -45.73, -45.7, -45.67, -45.63, -45.6, -45.57, -45.54, -45.51, -45.49, -45.46, -45.44, -45.42, -45.4, -45.39, -45.38, -45.37, -45.37, -45.37, -45.38, -45.39, -45.4, -45.42, -45.44, -45.46, -45.49, -45.51, -45.54, -45.57, -45.6, -45.63, -45.67, -45.7, -45.73, -45.76, -45.8, -45.83, -45.86, -45.89, -45.91, -45.94, -45.96, -45.98, -46, -46.01, -46.02, -46.03), skeletonBase, 27)); bones.push(new Bone(new Array(new Point(201.11, 81.1073), new Point(201.11, 81.1071), new Point(201.1, 81.1065), new Point(201.1, 81.1056), new Point(201.09, 81.1045), new Point(201.08, 81.1031), new Point(201.07, 81.1016), new Point(201.06, 81.1), new Point(201.04, 81.0983), new Point(201.03, 81.0966), new Point(201.01, 81.0951), new Point(200.99, 81.0936), new Point(200.97, 81.0923), new Point(200.96, 81.0912), new Point(200.94, 81.0903), new Point(200.92, 81.0897), new Point(200.9, 81.0893), new Point(200.88, 81.0891), new Point(200.86, 81.0892), new Point(200.85, 81.0895), new Point(200.83, 81.09), new Point(200.82, 81.0906), new Point(200.8, 81.0914), new Point(200.79, 81.0923), new Point(200.78, 81.0931), new Point(200.76, 81.094), new Point(200.76, 81.0948), new Point(200.75, 81.0956), new Point(200.74, 81.0961), new Point(200.74, 81.0965), new Point(200.74, 81.0966), new Point(200.74, 81.0965), new Point(200.74, 81.0961), new Point(200.75, 81.0956), new Point(200.76, 81.0949), new Point(200.76, 81.094), new Point(200.78, 81.0931), new Point(200.79, 81.0922), new Point(200.8, 81.0914), new Point(200.82, 81.0906), new Point(200.83, 81.09), new Point(200.85, 81.0895), new Point(200.86, 81.0892), new Point(200.88, 81.0891), new Point(200.9, 81.0893), new Point(200.92, 81.0897), new Point(200.94, 81.0903), new Point(200.96, 81.0912), new Point(200.97, 81.0923), new Point(200.99, 81.0936), new Point(201.01, 81.0951), new Point(201.03, 81.0967), new Point(201.04, 81.0983), new Point(201.06, 81.1), new Point(201.07, 81.1016), new Point(201.08, 81.1031), new Point(201.09, 81.1045), new Point(201.1, 81.1056), new Point(201.1, 81.1065), new Point(201.11, 81.1071)), new Array(-83.44, -83.44, -83.44, -83.43, -83.42, -83.41, -83.4, -83.38, -83.36, -83.35, -83.33, -83.31, -83.28, -83.26, -83.24, -83.22, -83.2, -83.17, -83.15, -83.13, -83.11, -83.09, -83.07, -83.06, -83.04, -83.03, -83.02, -83.01, -83, -83, -82.99, -83, -83, -83.01, -83.02, -83.03, -83.04, -83.06, -83.07, -83.09, -83.11, -83.13, -83.15, -83.17, -83.2, -83.22, -83.24, -83.26, -83.28, -83.31, -83.33, -83.35, -83.36, -83.38, -83.4, -83.41, -83.42, -83.43, -83.44, -83.44), skeletonBase, 28)); bones.push(new Bone(new Array(new Point(206.07, 124.2104), new Point(206.07, 124.2101), new Point(206.07, 124.2092), new Point(206.07, 124.2077), new Point(206.07, 124.2058), new Point(206.07, 124.2034), new Point(206.06, 124.2007), new Point(206.06, 124.1978), new Point(206.06, 124.1946), new Point(206.06, 124.1914), new Point(206.06, 124.1881), new Point(206.06, 124.1848), new Point(206.05, 124.1817), new Point(206.05, 124.1786), new Point(206.05, 124.1758), new Point(206.05, 124.1731), new Point(206.05, 124.1707), new Point(206.04, 124.1686), new Point(206.04, 124.1667), new Point(206.04, 124.1651), new Point(206.04, 124.1637), new Point(206.04, 124.1626), new Point(206.04, 124.1617), new Point(206.04, 124.161), new Point(206.04, 124.1605), new Point(206.04, 124.1602), new Point(206.04, 124.16), new Point(206.04, 124.1598), new Point(206.03, 124.1597), new Point(206.03, 124.1597), new Point(206.03, 124.1597), new Point(206.03, 124.1597), new Point(206.03, 124.1597), new Point(206.04, 124.1598), new Point(206.04, 124.16), new Point(206.04, 124.1602), new Point(206.04, 124.1605), new Point(206.04, 124.161), new Point(206.04, 124.1617), new Point(206.04, 124.1626), new Point(206.04, 124.1637), new Point(206.04, 124.1651), new Point(206.04, 124.1667), new Point(206.04, 124.1686), new Point(206.05, 124.1707), new Point(206.05, 124.1731), new Point(206.05, 124.1758), new Point(206.05, 124.1786), new Point(206.05, 124.1817), new Point(206.06, 124.1848), new Point(206.06, 124.1881), new Point(206.06, 124.1914), new Point(206.06, 124.1946), new Point(206.06, 124.1978), new Point(206.06, 124.2007), new Point(206.07, 124.2034), new Point(206.07, 124.2057), new Point(206.07, 124.2077), new Point(206.07, 124.2092), new Point(206.07, 124.2101)), new Array(-125.56, -125.56, -125.56, -125.55, -125.54, -125.53, -125.52, -125.5, -125.48, -125.47, -125.45, -125.43, -125.4, -125.38, -125.36, -125.34, -125.32, -125.29, -125.27, -125.25, -125.23, -125.21, -125.19, -125.18, -125.16, -125.15, -125.14, -125.13, -125.12, -125.12, -125.11, -125.12, -125.12, -125.13, -125.14, -125.15, -125.16, -125.18, -125.19, -125.21, -125.23, -125.25, -125.27, -125.29, -125.32, -125.34, -125.36, -125.38, -125.4, -125.43, -125.45, -125.47, -125.48, -125.5, -125.52, -125.53, -125.54, -125.55, -125.56, -125.56), skeletonBase, 29)); bones.push(new Bone(new Array(new Point(192.84, 142.7251), new Point(192.84, 142.7251), new Point(192.84, 142.7252), new Point(192.84, 142.7253), new Point(192.85, 142.7255), new Point(192.85, 142.7257), new Point(192.85, 142.7261), new Point(192.85, 142.7267), new Point(192.86, 142.7274), new Point(192.86, 142.7284), new Point(192.87, 142.7295), new Point(192.87, 142.731), new Point(192.88, 142.7327), new Point(192.88, 142.7346), new Point(192.89, 142.7368), new Point(192.89, 142.7393), new Point(192.9, 142.7421), new Point(192.9, 142.745), new Point(192.91, 142.7481), new Point(192.92, 142.7513), new Point(192.92, 142.7546), new Point(192.93, 142.7579), new Point(192.93, 142.7612), new Point(192.94, 142.7644), new Point(192.94, 142.7673), new Point(192.94, 142.7701), new Point(192.95, 142.7724), new Point(192.95, 142.7744), new Point(192.95, 142.7759), new Point(192.95, 142.7768), new Point(192.95, 142.7771), new Point(192.95, 142.7768), new Point(192.95, 142.7759), new Point(192.95, 142.7744), new Point(192.95, 142.7724), new Point(192.94, 142.77), new Point(192.94, 142.7673), new Point(192.94, 142.7644), new Point(192.93, 142.7612), new Point(192.93, 142.7579), new Point(192.92, 142.7546), new Point(192.92, 142.7513), new Point(192.91, 142.7481), new Point(192.9, 142.745), new Point(192.9, 142.7421), new Point(192.89, 142.7393), new Point(192.89, 142.7369), new Point(192.88, 142.7346), new Point(192.88, 142.7327), new Point(192.87, 142.731), new Point(192.87, 142.7295), new Point(192.86, 142.7284), new Point(192.86, 142.7274), new Point(192.85, 142.7267), new Point(192.85, 142.7261), new Point(192.85, 142.7257), new Point(192.85, 142.7254), new Point(192.84, 142.7253), new Point(192.84, 142.7252), new Point(192.84, 142.7251)), new Array(-46.88, -46.88, -46.88, -46.87, -46.86, -46.85, -46.84, -46.82, -46.8, -46.79, -46.77, -46.75, -46.73, -46.7, -46.68, -46.66, -46.64, -46.61, -46.59, -46.57, -46.55, -46.53, -46.51, -46.5, -46.48, -46.47, -46.46, -46.45, -46.44, -46.44, -46.44, -46.44, -46.44, -46.45, -46.46, -46.47, -46.48, -46.5, -46.51, -46.53, -46.55, -46.57, -46.59, -46.61, -46.64, -46.66, -46.68, -46.7, -46.73, -46.75, -46.77, -46.79, -46.8, -46.82, -46.84, -46.85, -46.86, -46.87, -46.88, -46.88), skeletonBase, 30)); bones.push(new Bone(new Array(new Point(197.42, 147.6172), new Point(197.42, 147.6171), new Point(197.42, 147.6168), new Point(197.42, 147.6164), new Point(197.43, 147.6158), new Point(197.43, 147.6152), new Point(197.43, 147.6145), new Point(197.44, 147.6139), new Point(197.44, 147.6132), new Point(197.45, 147.6127), new Point(197.46, 147.6124), new Point(197.46, 147.6122), new Point(197.47, 147.6122), new Point(197.48, 147.6124), new Point(197.48, 147.6128), new Point(197.49, 147.6135), new Point(197.5, 147.6145), new Point(197.5, 147.6156), new Point(197.51, 147.6169), new Point(197.52, 147.6185), new Point(197.53, 147.6201), new Point(197.53, 147.6219), new Point(197.54, 147.6237), new Point(197.55, 147.6255), new Point(197.55, 147.6273), new Point(197.56, 147.6289), new Point(197.56, 147.6304), new Point(197.56, 147.6316), new Point(197.57, 147.6325), new Point(197.57, 147.6331), new Point(197.57, 147.6333), new Point(197.57, 147.6331), new Point(197.57, 147.6325), new Point(197.56, 147.6316), new Point(197.56, 147.6304), new Point(197.56, 147.6289), new Point(197.55, 147.6273), new Point(197.55, 147.6255), new Point(197.54, 147.6237), new Point(197.53, 147.6219), new Point(197.53, 147.6201), new Point(197.52, 147.6185), new Point(197.51, 147.6169), new Point(197.5, 147.6156), new Point(197.5, 147.6144), new Point(197.49, 147.6135), new Point(197.48, 147.6128), new Point(197.48, 147.6124), new Point(197.47, 147.6122), new Point(197.46, 147.6122), new Point(197.46, 147.6124), new Point(197.45, 147.6127), new Point(197.44, 147.6132), new Point(197.44, 147.6138), new Point(197.43, 147.6145), new Point(197.43, 147.6152), new Point(197.43, 147.6158), new Point(197.42, 147.6164), new Point(197.42, 147.6168), new Point(197.42, 147.6171)), new Array(-0.16, -0.16, -0.16, -0.15, -0.14, -0.13, -0.12, -0.1, -0.09, -0.07, -0.05, -0.03, -0.01, 0.02, 0.04, 0.06, 0.08, 0.1, 0.13, 0.15, 0.17, 0.19, 0.21, 0.22, 0.24, 0.25, 0.26, 0.27, 0.28, 0.28, 0.28, 0.28, 0.28, 0.27, 0.26, 0.25, 0.24, 0.22, 0.21, 0.19, 0.17, 0.15, 0.13, 0.1, 0.08, 0.06, 0.04, 0.02, -0.01, -0.03, -0.05, -0.07, -0.09, -0.1, -0.12, -0.13, -0.14, -0.15, -0.16, -0.16), skeletonBase, 31)); bones.push(new Bone(new Array(new Point(170.47, 80.9483), new Point(170.47, 80.9479), new Point(170.47, 80.9469), new Point(170.47, 80.9452), new Point(170.46, 80.943), new Point(170.46, 80.9403), new Point(170.46, 80.9372), new Point(170.45, 80.9338), new Point(170.45, 80.9301), new Point(170.45, 80.9262), new Point(170.44, 80.9222), new Point(170.44, 80.9181), new Point(170.43, 80.9141), new Point(170.43, 80.9101), new Point(170.42, 80.9062), new Point(170.41, 80.9025), new Point(170.41, 80.8989), new Point(170.4, 80.8956), new Point(170.4, 80.8925), new Point(170.39, 80.8897), new Point(170.39, 80.8871), new Point(170.38, 80.8848), new Point(170.37, 80.8828), new Point(170.37, 80.8811), new Point(170.37, 80.8796), new Point(170.36, 80.8783), new Point(170.36, 80.8773), new Point(170.36, 80.8765), new Point(170.35, 80.876), new Point(170.35, 80.8757), new Point(170.35, 80.8755), new Point(170.35, 80.8757), new Point(170.35, 80.876), new Point(170.36, 80.8765), new Point(170.36, 80.8773), new Point(170.36, 80.8783), new Point(170.37, 80.8796), new Point(170.37, 80.8811), new Point(170.37, 80.8828), new Point(170.38, 80.8848), new Point(170.39, 80.8871), new Point(170.39, 80.8897), new Point(170.4, 80.8925), new Point(170.4, 80.8956), new Point(170.41, 80.8989), new Point(170.41, 80.9025), new Point(170.42, 80.9062), new Point(170.43, 80.9101), new Point(170.43, 80.9141), new Point(170.44, 80.9181), new Point(170.44, 80.9222), new Point(170.45, 80.9262), new Point(170.45, 80.9301), new Point(170.45, 80.9338), new Point(170.46, 80.9372), new Point(170.46, 80.9403), new Point(170.46, 80.943), new Point(170.47, 80.9452), new Point(170.47, 80.9469), new Point(170.47, 80.9479)), new Array(-83.01, -83.01, -83.01, -83.01, -83.01, -83, -83, -83, -82.99, -82.99, -82.98, -82.98, -82.97, -82.97, -82.96, -82.96, -82.95, -82.95, -82.94, -82.94, -82.93, -82.93, -82.92, -82.92, -82.91, -82.91, -82.91, -82.9, -82.9, -82.9, -82.9, -82.9, -82.9, -82.9, -82.91, -82.91, -82.91, -82.92, -82.92, -82.93, -82.93, -82.94, -82.94, -82.95, -82.95, -82.96, -82.96, -82.97, -82.97, -82.98, -82.98, -82.99, -82.99, -83, -83, -83, -83.01, -83.01, -83.01, -83.01), skeletonBase, 32)); bones.push(new Bone(new Array(new Point(175.76, 124.2375), new Point(175.76, 124.2371), new Point(175.76, 124.236), new Point(175.76, 124.2341), new Point(175.76, 124.2317), new Point(175.76, 124.2288), new Point(175.76, 124.2254), new Point(175.76, 124.2216), new Point(175.76, 124.2175), new Point(175.76, 124.2132), new Point(175.76, 124.2087), new Point(175.76, 124.2042), new Point(175.75, 124.1997), new Point(175.75, 124.1952), new Point(175.75, 124.1908), new Point(175.75, 124.1865), new Point(175.75, 124.1825), new Point(175.75, 124.1786), new Point(175.74, 124.175), new Point(175.74, 124.1717), new Point(175.74, 124.1687), new Point(175.74, 124.1659), new Point(175.74, 124.1635), new Point(175.74, 124.1614), new Point(175.73, 124.1596), new Point(175.73, 124.158), new Point(175.73, 124.1567), new Point(175.73, 124.1557), new Point(175.73, 124.155), new Point(175.73, 124.1546), new Point(175.73, 124.1544), new Point(175.73, 124.1546), new Point(175.73, 124.155), new Point(175.73, 124.1557), new Point(175.73, 124.1567), new Point(175.73, 124.1579), new Point(175.73, 124.1595), new Point(175.74, 124.1614), new Point(175.74, 124.1635), new Point(175.74, 124.166), new Point(175.74, 124.1687), new Point(175.74, 124.1717), new Point(175.74, 124.175), new Point(175.75, 124.1786), new Point(175.75, 124.1824), new Point(175.75, 124.1865), new Point(175.75, 124.1908), new Point(175.75, 124.1952), new Point(175.75, 124.1996), new Point(175.76, 124.2042), new Point(175.76, 124.2087), new Point(175.76, 124.2132), new Point(175.76, 124.2175), new Point(175.76, 124.2216), new Point(175.76, 124.2254), new Point(175.76, 124.2288), new Point(175.76, 124.2317), new Point(175.76, 124.2342), new Point(175.76, 124.236), new Point(175.76, 124.2371)), new Array(-125.28, -125.28, -125.28, -125.28, -125.27, -125.27, -125.27, -125.26, -125.26, -125.25, -125.25, -125.24, -125.24, -125.23, -125.23, -125.22, -125.22, -125.21, -125.21, -125.2, -125.2, -125.19, -125.19, -125.18, -125.18, -125.18, -125.17, -125.17, -125.17, -125.17, -125.17, -125.17, -125.17, -125.17, -125.17, -125.18, -125.18, -125.18, -125.19, -125.19, -125.2, -125.2, -125.21, -125.21, -125.22, -125.22, -125.23, -125.23, -125.24, -125.24, -125.25, -125.25, -125.26, -125.26, -125.27, -125.27, -125.27, -125.28, -125.28, -125.28), skeletonBase, 33)); bones.push(new Bone(new Array(new Point(162.91, 142.3849), new Point(162.91, 142.3846), new Point(162.91, 142.3837), new Point(162.91, 142.3822), new Point(162.91, 142.3804), new Point(162.91, 142.378), new Point(162.91, 142.3754), new Point(162.91, 142.3724), new Point(162.91, 142.3693), new Point(162.91, 142.366), new Point(162.91, 142.3626), new Point(162.91, 142.3592), new Point(162.91, 142.3558), new Point(162.91, 142.3525), new Point(162.91, 142.3493), new Point(162.91, 142.3463), new Point(162.91, 142.3436), new Point(162.91, 142.3409), new Point(162.91, 142.3386), new Point(162.91, 142.3364), new Point(162.91, 142.3345), new Point(162.91, 142.3328), new Point(162.91, 142.3314), new Point(162.91, 142.3302), new Point(162.91, 142.3292), new Point(162.91, 142.3284), new Point(162.91, 142.3277), new Point(162.91, 142.3273), new Point(162.91, 142.3269), new Point(162.91, 142.3268), new Point(162.91, 142.3267), new Point(162.91, 142.3267), new Point(162.91, 142.3269), new Point(162.91, 142.3273), new Point(162.91, 142.3278), new Point(162.91, 142.3284), new Point(162.91, 142.3292), new Point(162.91, 142.3302), new Point(162.91, 142.3314), new Point(162.91, 142.3329), new Point(162.91, 142.3345), new Point(162.91, 142.3364), new Point(162.91, 142.3385), new Point(162.91, 142.3409), new Point(162.91, 142.3435), new Point(162.91, 142.3463), new Point(162.91, 142.3494), new Point(162.91, 142.3526), new Point(162.91, 142.3558), new Point(162.91, 142.3592), new Point(162.91, 142.3626), new Point(162.91, 142.366), new Point(162.91, 142.3692), new Point(162.91, 142.3724), new Point(162.91, 142.3753), new Point(162.91, 142.378), new Point(162.91, 142.3803), new Point(162.91, 142.3823), new Point(162.91, 142.3837), new Point(162.91, 142.3846)), new Array(-48.83, -48.82, -48.82, -48.82, -48.82, -48.82, -48.81, -48.81, -48.81, -48.8, -48.8, -48.79, -48.79, -48.78, -48.78, -48.77, -48.76, -48.76, -48.75, -48.75, -48.74, -48.74, -48.73, -48.73, -48.73, -48.72, -48.72, -48.72, -48.72, -48.71, -48.71, -48.71, -48.72, -48.72, -48.72, -48.72, -48.73, -48.73, -48.73, -48.74, -48.74, -48.75, -48.75, -48.76, -48.76, -48.77, -48.78, -48.78, -48.79, -48.79, -48.8, -48.8, -48.81, -48.81, -48.81, -48.82, -48.82, -48.82, -48.82, -48.82), skeletonBase, 34)); bones.push(new Bone(new Array(new Point(167.07, 147.1107), new Point(167.07, 147.1103), new Point(167.07, 147.1093), new Point(167.07, 147.1078), new Point(167.07, 147.1057), new Point(167.07, 147.1032), new Point(167.07, 147.1003), new Point(167.07, 147.0971), new Point(167.07, 147.0936), new Point(167.07, 147.09), new Point(167.07, 147.0863), new Point(167.07, 147.0825), new Point(167.07, 147.0788), new Point(167.07, 147.0751), new Point(167.08, 147.0715), new Point(167.08, 147.0681), new Point(167.08, 147.0649), new Point(167.08, 147.0619), new Point(167.08, 147.0591), new Point(167.08, 147.0566), new Point(167.08, 147.0543), new Point(167.08, 147.0523), new Point(167.08, 147.0506), new Point(167.08, 147.049), new Point(167.08, 147.0478), new Point(167.08, 147.0467), new Point(167.08, 147.0458), new Point(167.08, 147.0452), new Point(167.08, 147.0447), new Point(167.08, 147.0445), new Point(167.08, 147.0444), new Point(167.08, 147.0445), new Point(167.08, 147.0448), new Point(167.08, 147.0452), new Point(167.08, 147.0459), new Point(167.08, 147.0467), new Point(167.08, 147.0477), new Point(167.08, 147.049), new Point(167.08, 147.0506), new Point(167.08, 147.0523), new Point(167.08, 147.0543), new Point(167.08, 147.0566), new Point(167.08, 147.0591), new Point(167.08, 147.0619), new Point(167.08, 147.0649), new Point(167.08, 147.0681), new Point(167.08, 147.0715), new Point(167.07, 147.0751), new Point(167.07, 147.0787), new Point(167.07, 147.0825), new Point(167.07, 147.0863), new Point(167.07, 147.09), new Point(167.07, 147.0936), new Point(167.07, 147.0971), new Point(167.07, 147.1003), new Point(167.07, 147.1032), new Point(167.07, 147.1057), new Point(167.07, 147.1078), new Point(167.07, 147.1093), new Point(167.07, 147.1103)), new Array(1.03, 1.03, 1.03, 1.04, 1.04, 1.04, 1.04, 1.05, 1.05, 1.06, 1.06, 1.07, 1.07, 1.08, 1.08, 1.09, 1.09, 1.1, 1.1, 1.11, 1.11, 1.12, 1.12, 1.13, 1.13, 1.14, 1.14, 1.14, 1.14, 1.14, 1.14, 1.14, 1.14, 1.14, 1.14, 1.14, 1.13, 1.13, 1.12, 1.12, 1.11, 1.11, 1.1, 1.1, 1.09, 1.09, 1.08, 1.08, 1.07, 1.07, 1.06, 1.06, 1.05, 1.05, 1.04, 1.04, 1.04, 1.04, 1.03, 1.03), skeletonBase, 35)); bones.push(new Bone(new Array(new Point(188.68, 144.4368), new Point(188.68, 144.4369), new Point(188.68, 144.4373), new Point(188.69, 144.4379), new Point(188.69, 144.4387), new Point(188.69, 144.4398), new Point(188.7, 144.4412), new Point(188.7, 144.4429), new Point(188.7, 144.4448), new Point(188.71, 144.4471), new Point(188.71, 144.4496), new Point(188.72, 144.4525), new Point(188.72, 144.4558), new Point(188.73, 144.4593), new Point(188.74, 144.4631), new Point(188.74, 144.4672), new Point(188.75, 144.4716), new Point(188.75, 144.4761), new Point(188.76, 144.4808), new Point(188.77, 144.4855), new Point(188.77, 144.4903), new Point(188.78, 144.495), new Point(188.78, 144.4996), new Point(188.79, 144.504), new Point(188.79, 144.5081), new Point(188.8, 144.5117), new Point(188.8, 144.5149), new Point(188.8, 144.5176), new Point(188.81, 144.5195), new Point(188.81, 144.5208), new Point(188.81, 144.5212), new Point(188.81, 144.5208), new Point(188.81, 144.5196), new Point(188.8, 144.5176), new Point(188.8, 144.515), new Point(188.8, 144.5117), new Point(188.79, 144.5081), new Point(188.79, 144.504), new Point(188.78, 144.4996), new Point(188.78, 144.4951), new Point(188.77, 144.4903), new Point(188.77, 144.4855), new Point(188.76, 144.4808), new Point(188.75, 144.4761), new Point(188.75, 144.4716), new Point(188.74, 144.4672), new Point(188.74, 144.4632), new Point(188.73, 144.4593), new Point(188.72, 144.4558), new Point(188.72, 144.4525), new Point(188.71, 144.4496), new Point(188.71, 144.4471), new Point(188.7, 144.4448), new Point(188.7, 144.4429), new Point(188.7, 144.4412), new Point(188.69, 144.4398), new Point(188.69, 144.4387), new Point(188.69, 144.4379), new Point(188.68, 144.4373), new Point(188.68, 144.4369)), new Array(-52.77, -52.77, -52.76, -52.76, -52.75, -52.74, -52.72, -52.71, -52.69, -52.67, -52.65, -52.63, -52.61, -52.59, -52.57, -52.55, -52.52, -52.5, -52.48, -52.46, -52.44, -52.42, -52.4, -52.38, -52.37, -52.36, -52.34, -52.33, -52.33, -52.32, -52.32, -52.32, -52.33, -52.33, -52.34, -52.36, -52.37, -52.38, -52.4, -52.42, -52.44, -52.46, -52.48, -52.5, -52.52, -52.55, -52.57, -52.59, -52.61, -52.63, -52.65, -52.67, -52.69, -52.71, -52.72, -52.74, -52.75, -52.76, -52.76, -52.77), skeletonBase, 36)); bones.push(new Bone(new Array(new Point(158.7, 143.8105), new Point(158.7, 143.8102), new Point(158.7, 143.8094), new Point(158.7, 143.808), new Point(158.7, 143.8064), new Point(158.71, 143.8042), new Point(158.71, 143.8018), new Point(158.71, 143.7991), new Point(158.71, 143.7963), new Point(158.71, 143.7933), new Point(158.71, 143.7903), new Point(158.71, 143.7873), new Point(158.71, 143.7843), new Point(158.71, 143.7814), new Point(158.71, 143.7786), new Point(158.71, 143.776), new Point(158.71, 143.7737), new Point(158.71, 143.7714), new Point(158.71, 143.7694), new Point(158.71, 143.7677), new Point(158.71, 143.7661), new Point(158.71, 143.7648), new Point(158.71, 143.7637), new Point(158.71, 143.7628), new Point(158.71, 143.7621), new Point(158.71, 143.7616), new Point(158.71, 143.7611), new Point(158.71, 143.7608), new Point(158.71, 143.7606), new Point(158.71, 143.7605), new Point(158.71, 143.7604), new Point(158.71, 143.7605), new Point(158.71, 143.7606), new Point(158.71, 143.7608), new Point(158.71, 143.7611), new Point(158.71, 143.7615), new Point(158.71, 143.7621), new Point(158.71, 143.7628), new Point(158.71, 143.7637), new Point(158.71, 143.7648), new Point(158.71, 143.7661), new Point(158.71, 143.7677), new Point(158.71, 143.7694), new Point(158.71, 143.7714), new Point(158.71, 143.7736), new Point(158.71, 143.776), new Point(158.71, 143.7786), new Point(158.71, 143.7814), new Point(158.71, 143.7843), new Point(158.71, 143.7873), new Point(158.71, 143.7903), new Point(158.71, 143.7933), new Point(158.71, 143.7963), new Point(158.71, 143.7991), new Point(158.71, 143.8018), new Point(158.71, 143.8042), new Point(158.7, 143.8063), new Point(158.7, 143.8081), new Point(158.7, 143.8094), new Point(158.7, 143.8102)), new Array(-57.76, -57.76, -57.76, -57.76, -57.75, -57.75, -57.75, -57.74, -57.74, -57.74, -57.73, -57.73, -57.72, -57.72, -57.71, -57.7, -57.7, -57.69, -57.69, -57.68, -57.68, -57.67, -57.67, -57.66, -57.66, -57.66, -57.65, -57.65, -57.65, -57.65, -57.65, -57.65, -57.65, -57.65, -57.65, -57.66, -57.66, -57.66, -57.67, -57.67, -57.68, -57.68, -57.69, -57.69, -57.7, -57.7, -57.71, -57.72, -57.72, -57.73, -57.73, -57.74, -57.74, -57.74, -57.75, -57.75, -57.75, -57.76, -57.76, -57.76), skeletonBase, 37)); } } }//package dinowaurs.SkeletalAnim
Section 86
//bronto_walk_SK (dinowaurs.SkeletalAnim.bronto_walk_SK) package dinowaurs.SkeletalAnim { import flash.display.*; import flash.geom.*; import dinowaurs.*; public class bronto_walk_SK extends SkeletalAnimation { public function bronto_walk_SK(_arg1:Sprite){ super(_arg1); bones.push(new Bone(new Array(new Point(184.82, 43.1974), new Point(184.82, 43.3436), new Point(184.82, 43.7321), new Point(184.82, 44.2878), new Point(184.82, 44.8016), new Point(184.82, 45.3111), new Point(184.82, 46.1113), new Point(184.82, 47.497), new Point(184.82, 50.2161), new Point(184.82, 53.8882), new Point(184.82, 57.1161), new Point(184.82, 58.5026), new Point(184.82, 57.7164), new Point(184.82, 56.1709), new Point(184.82, 54.0936), new Point(184.82, 51.7119), new Point(184.82, 49.2532), new Point(184.82, 46.9449), new Point(184.82, 45.0146), new Point(184.82, 43.6896)), new Array(17.29, 15.4, 13.63, 12.41, 11.91, 11.65, 11.55, 11.54, 11.94, 12.59, 13.45, 14.46, 15.9, 17.68, 19.28, 20.14, 19.85, 19.14, 18.29, 17.58), skeletonBase, 0)); bones.push(new Bone(new Array(new Point(228.21, 29.687), new Point(228.63, 31.2696), new Point(228.98, 33.0134), new Point(229.2, 34.5179), new Point(229.29, 35.4194), new Point(229.33, 36.1282), new Point(229.34, 37.0019), new Point(229.34, 38.3981), new Point(229.28, 40.8067), new Point(229.17, 43.973), new Point(229.02, 46.5385), new Point(228.82, 47.1449), new Point(228.52, 45.2613), new Point(228.12, 42.3587), new Point(227.71, 39.0802), new Point(227.48, 36.0547), new Point(227.56, 33.8176), new Point(227.75, 32.0393), new Point(227.97, 30.7445), new Point(228.14, 29.9543)), new Array(-4.69, -6.93, -9.36, -10.94, -11.43, -11.64, -11.68, -11.61, -11.12, -10.36, -9.39, -8.26, -6.7, -4.8, -3.09, -2.12, -2.32, -2.95, -3.74, -4.41), skeletonBase, 1)); bones.push(new Bone(new Array(new Point(274.46, 33.4915), new Point(274.7, 36.8808), new Point(274.77, 40.5683), new Point(274.76, 43.3347), new Point(274.77, 44.6225), new Point(274.78, 45.5044), new Point(274.79, 46.4051), new Point(274.8, 47.7495), new Point(274.81, 49.766), new Point(274.82, 52.3288), new Point(274.8, 54.1193), new Point(274.75, 53.8194), new Point(274.61, 50.6877), new Point(274.36, 46.249), new Point(274.05, 41.5881), new Point(273.86, 37.7795), new Point(273.93, 35.7069), new Point(274.1, 34.4383), new Point(274.27, 33.7786), new Point(274.41, 33.5298)), new Array(-9.39, -12.36, -16.27, -19.01, -20.01, -20.54, -20.72, -20.7, -19.96, -18.88, -17.53, -15.97, -13.96, -11.6, -9.43, -8.03, -7.84, -8.14, -8.66, -9.16), skeletonBase, 2)); bones.push(new Bone(new Array(new Point(318.35, 40.7511), new Point(318.15, 46.4107), new Point(317.47, 53.0391), new Point(316.82, 57.8299), new Point(316.57, 59.8479), new Point(316.44, 61.1141), new Point(316.39, 62.1508), new Point(316.41, 63.4775), new Point(316.63, 64.9576), new Point(316.91, 66.7301), new Point(317.22, 67.5227), new Point(317.52, 66.0643), new Point(317.79, 61.4272), new Point(317.94, 55.1945), new Point(317.94, 48.8795), new Point(317.91, 43.9963), new Point(318, 41.7787), new Point(318.13, 40.7375), new Point(318.25, 40.4817), new Point(318.33, 40.6179)), new Array(-19.73, -24.19, -28.54, -31.72, -33.67, -35.26, -36.3, -36.63, -35.68, -34.26, -32.46, -30.38, -27.79, -24.81, -22.04, -20.05, -19.32, -19.16, -19.32, -19.59), skeletonBase, 3)); bones.push(new Bone(new Array(new Point(358.74, 55.2294), new Point(357.29, 63.9905), new Point(355.17, 73.5344), new Point(353.33, 80.3843), new Point(352.28, 83.6319), new Point(351.48, 85.8778), new Point(350.98, 87.55), new Point(350.85, 89.0755), new Point(351.48, 89.9814), new Point(352.38, 90.8809), new Point(353.43, 90.5474), new Point(354.54, 87.7567), new Point(355.75, 81.4267), new Point(356.89, 73.1957), new Point(357.71, 64.9729), new Point(358.22, 58.7014), new Point(358.49, 55.9725), new Point(358.67, 54.8136), new Point(358.75, 54.6739), new Point(358.75, 54.9979)), new Array(-6.85, -11.69, -16.29, -19.65, -21.71, -23.35, -24.41, -24.75, -23.64, -21.87, -19.53, -16.67, -12.76, -8.01, -3.69, -1.04, -1.01, -2.37, -4.33, -6.09), skeletonBase, 4)); bones.push(new Bone(new Array(new Point(393.69, 59.4214), new Point(391.76, 71.1108), new Point(388.96, 83.4006), new Point(386.48, 92.2104), new Point(384.99, 96.6405), new Point(383.79, 99.8177), new Point(383.03, 102.0889), new Point(382.82, 103.8003), new Point(383.73, 104.0846), new Point(385.04, 103.9849), new Point(386.6, 102.3033), new Point(388.26, 97.8456), new Point(390.08, 89.1889), new Point(391.74, 78.0916), new Point(392.84, 67.2282), new Point(393.41, 59.3313), new Point(393.69, 56.5853), new Point(393.83, 56.2632), new Point(393.84, 57.3245), new Point(393.75, 58.7243)), new Array(23.48, 14.01, 4.47, -1.19, -1.52, 0.65, 3.78, 6.31, 8.95, 12.07, 15.59, 19.42, 24.11, 29.41, 34.08, 36.84, 36.05, 32.81, 28.63, 25.02), skeletonBase, 5)); bones.push(new Bone(new Array(new Point(422.11, 47.0663), new Point(421.83, 63.6), new Point(419.85, 80.9797), new Point(417.46, 92.8449), new Point(415.97, 97.456), new Point(414.78, 99.4559), new Point(413.95, 100.0353), new Point(413.62, 100.3855), new Point(414.34, 99.2537), new Point(415.35, 97.4956), new Point(416.45, 93.9683), new Point(417.48, 87.5351), new Point(418.36, 76.5236), new Point(418.73, 62.8643), new Point(418.5, 49.8558), new Point(418.21, 40.7412), new Point(418.74, 38.3401), new Point(419.88, 39.4629), new Point(421.04, 42.467), new Point(421.83, 45.6102)), new Array(14.99, 7.87, 0.87, -2.98, -2.86, -0.62, 2.57, 5.55, 10.77, 17.59, 24.43, 29.7, 31.75, 31.96, 31.2, 30.3, 28.56, 24.74, 20.27, 16.54), skeletonBase, 6)); bones.push(new Bone(new Array(new Point(451.87, 39.1024), new Point(452.35, 59.3881), new Point(450.66, 80.515), new Point(448.23, 94.4515), new Point(446.74, 98.9989), new Point(445.59, 99.7943), new Point(444.73, 98.6562), new Point(444.28, 97.4084), new Point(444.61, 93.501), new Point(444.71, 88.1892), new Point(444.5, 81.2308), new Point(444.24, 72.2738), new Point(444.56, 60.3178), new Point(444.87, 46.5588), new Point(444.86, 33.9005), new Point(444.81, 25.2033), new Point(445.8, 23.6176), new Point(447.86, 26.5736), new Point(449.94, 31.8002), new Point(451.37, 36.8418)), new Array(-6.58, -10.81, -16.29, -19.24, -18.79, -16.39, -13.13, -10.14, -6.3, -1.54, 3.11, 6.64, 7.43, 6.6, 5.12, 3.96, 2.82, 0.2, -2.9, -5.49), skeletonBase, 7)); bones.push(new Bone(new Array(new Point(471.97, 41.5751), new Point(472.2, 63.3373), new Point(470.05, 86.3407), new Point(467.29, 101.2689), new Point(465.85, 105.6677), new Point(464.97, 105.6535), new Point(464.41, 103.4049), new Point(464.19, 101.1245), new Point(464.71, 95.877), new Point(464.95, 88.8893), new Point(464.73, 80.2861), new Point(464.37, 70.0848), new Point(464.66, 57.8545), new Point(465, 44.3858), new Point(465.03, 32.247), new Point(465.01, 23.961), new Point(466.03, 22.7771), new Point(468.1, 26.6578), new Point(470.15, 32.9797), new Point(471.5, 38.9337)), new Array(-29.58, -28.56, -31.27, -32.59, -31.55, -28.84, -25.47, -22.46, -21.13, -20.13, -19.44, -19.07, -20.59, -23.31, -26.09, -27.73, -27.77, -28.21, -28.82, -29.35), skeletonBase, 8)); bones.push(new Bone(new Array(new Point(184.76, 43.2254), new Point(184.76, 43.3696), new Point(184.75, 43.7561), new Point(184.75, 44.3104), new Point(184.75, 44.8236), new Point(184.75, 45.3328), new Point(184.75, 46.1329), new Point(184.75, 47.5186), new Point(184.75, 50.2382), new Point(184.75, 53.9111), new Point(184.75, 57.1399), new Point(184.76, 58.5275), new Point(184.76, 57.7429), new Point(184.76, 56.1994), new Point(184.76, 54.1238), new Point(184.76, 51.743), new Point(184.76, 49.284), new Point(184.76, 46.975), new Point(184.76, 45.0437), new Point(184.76, 43.718)), new Array(-156.67, -161.23, -165.35, -167.58, -167.63, -167.19, -166.4, -165.39, -163.86, -162.03, -160, -157.85, -155.37, -152.68, -150.36, -149.01, -149.81, -151.71, -153.97, -155.87), skeletonBase, 9)); bones.push(new Bone(new Array(new Point(143.42, 61.0486), new Point(142.14, 57.8482), new Point(141.21, 55.1393), new Point(140.79, 53.9855), new Point(140.79, 54.4641), new Point(140.86, 55.3082), new Point(141, 56.7126), new Point(141.2, 58.8721), new Point(141.52, 62.7476), new Point(141.94, 67.7941), new Point(142.46, 72.5357), new Point(143.07, 75.498), new Point(143.84, 76.4995), new Point(144.77, 76.8574), new Point(145.63, 76.3813), new Point(146.17, 74.9155), new Point(145.85, 71.9178), new Point(145.12, 68.3069), new Point(144.31, 64.7912), new Point(143.68, 62.114)), new Array(-148.4, -154.98, -159.83, -162.17, -161.15, -159.26, -156.77, -153.93, -150.58, -147.06, -143.6, -140.41, -138.13, -135.98, -134.45, -134.06, -136.2, -139.84, -143.84, -147.07), skeletonBase, 10)); bones.push(new Bone(new Array(new Point(117.66, 77.0521), new Point(114.71, 70.7971), new Point(112.79, 65.7204), new Point(111.97, 63.3961), new Point(112.13, 64.3878), new Point(112.55, 66.17), new Point(113.19, 68.7962), new Point(114.02, 72.3207), new Point(115.17, 77.7613), new Point(116.56, 84.3964), new Point(118.13, 90.6405), new Point(119.78, 94.9256), new Point(121.34, 96.8382), new Point(123.05, 98.0285), new Point(124.49, 98.1235), new Point(125.18, 96.8006), new Point(124.05, 93.0026), new Point(122.03, 87.9661), new Point(119.9, 82.7916), new Point(118.29, 78.7104)), new Array(-156.4, -160.88, -162.91, -163.83, -162.9, -161.26, -159.15, -156.81, -154.03, -151.15, -148.36, -145.85, -144.22, -142.66, -141.67, -141.71, -144.03, -147.77, -151.82, -155.07), skeletonBase, 11)); bones.push(new Bone(new Array(new Point(90.16, 89.0624), new Point(86.36, 80.624), new Point(84.1, 74.5352), new Point(83.14, 71.7519), new Point(83.45, 73.2118), new Point(84.13, 75.8092), new Point(85.14, 79.474), new Point(86.43, 84.1384), new Point(88.19, 90.8985), new Point(90.27, 98.8736), new Point(92.58, 106.3824), new Point(94.94, 111.7714), new Point(97, 114.3831), new Point(99.19, 116.2269), new Point(100.95, 116.734), new Point(101.62, 115.3934), new Point(99.77, 110.6288), new Point(96.65, 103.9696), new Point(93.45, 96.9603), new Point(91.08, 91.3564)), new Array(-156.64, -157.52, -157.95, -158.49, -158.3, -157.7, -156.86, -155.93, -154.69, -153.37, -152.12, -151.07, -150.76, -150.32, -150.17, -150.72, -152.13, -153.69, -155.15, -156.22), skeletonBase, 12)); bones.push(new Bone(new Array(new Point(62.6, 100.9648), new Point(58.61, 92.0992), new Point(56.27, 85.8059), new Point(55.21, 82.7587), new Point(55.55, 84.3082), new Point(56.35, 87.1972), new Point(57.53, 91.2713), new Point(59.02, 96.3792), new Point(61.04, 103.7318), new Point(63.43, 112.3268), new Point(66.04, 120.4182), new Point(68.66, 126.2904), new Point(70.8, 129.045), new Point(73.1, 131.0907), new Point(74.9, 131.6674), new Point(75.43, 130.0732), new Point(73.22, 124.6634), new Point(69.73, 117.2739), new Point(66.2, 109.5764), new Point(63.6, 103.4599)), new Array(-156.87, -153.75, -151.75, -151.48, -152.71, -153.98, -155.37, -156.93, -158.32, -159.69, -161.05, -162.46, -164.33, -165.7, -166.88, -168.19, -167.8, -165.09, -161.44, -158.24), skeletonBase, 13)); bones.push(new Bone(new Array(new Point(41.46, 109.9924), new Point(37.99, 102.264), new Point(36.02, 96.6844), new Point(35.01, 93.7329), new Point(35.12, 94.846), new Point(35.69, 97.2773), new Point(36.63, 100.8484), new Point(37.86, 105.3828), new Point(39.68, 112.2196), new Point(41.87, 120.304), new Point(44.29, 127.8784), new Point(46.74, 133.215), new Point(48.66, 135.2494), new Point(50.83, 136.7644), new Point(52.51, 136.8809), new Point(52.93, 134.7741), new Point(50.75, 129.5177), new Point(47.51, 123.1852), new Point(44.41, 116.8886), new Point(42.25, 111.9778)), new Array(-153.44, -149.36, -147.01, -146.69, -149.17, -151.99, -155.14, -158.59, -161.94, -165.25, -168.49, -171.6, -174.95, -177.48, -179.45, 178.91, -179, -172.24, -163.76, -156.51), skeletonBase, 14)); bones.push(new Bone(new Array(new Point(24.99, 118.2167), new Point(22.16, 111.6384), new Point(20.58, 106.7015), new Point(19.63, 103.8365), new Point(19.31, 104.2726), new Point(19.44, 105.9149), new Point(19.93, 108.5821), new Point(20.73, 112.0954), new Point(22.18, 117.9199), new Point(24.07, 124.9838), new Point(26.26, 131.5471), new Point(28.54, 135.8992), new Point(30.33, 136.866), new Point(32.44, 137.568), new Point(34.11, 137.0527), new Point(34.53, 134.419), new Point(32.35, 129.8335), new Point(29.28, 125.6644), new Point(26.74, 122.0295), new Point(25.37, 119.3079)), new Array(-158.51, -148.88, -140.63, -137.56, -141.04, -145.39, -150.5, -156.25, -162.13, -168.08, -173.97, -179.65, 174.64, 170.04, 166.43, 163.66, 166.81, 176.09, -172.42, -162.64), skeletonBase, 15)); bones.push(new Bone(new Array(new Point(475.91, 49.1545), new Point(476.29, 70.8451), new Point(473.77, 94.0332), new Point(470.83, 109.0452), new Point(469.54, 113.3783), new Point(469.01, 113.1809), new Point(468.89, 110.6815), new Point(469.04, 108.1562), new Point(469.73, 102.7941), new Point(470.09, 95.7172), new Point(469.95, 87.0519), new Point(469.63, 76.817), new Point(469.74, 64.7232), new Point(469.75, 51.4887), new Point(469.44, 39.5713), new Point(469.21, 31.4087), new Point(470.21, 30.2281), new Point(472.23, 34.1406), new Point(474.2, 40.5058), new Point(475.48, 46.4972)), new Array(-164.08, -163.05, -165.76, -167.06, -166, -163.25, -159.85, -156.81, -155.45, -154.4, -153.68, -153.27, -154.74, -157.43, -160.17, -161.78, -161.8, -162.22, -162.8, -163.33), skeletonBase, 16)); bones.push(new Bone(new Array(new Point(471.45, 30.1679), new Point(471.49, 51.941), new Point(469.87, 74.9233), new Point(467.38, 89.8505), new Point(465.73, 94.2496), new Point(464.31, 94.2539), new Point(463.08, 92.0638), new Point(462.26, 89.8686), new Point(462.53, 84.6687), new Point(462.57, 77.7211), new Point(462.21, 69.1472), new Point(461.79, 58.9623), new Point(462.37, 46.6676), new Point(463.25, 33.1027), new Point(463.83, 20.8922), new Point(464.13, 12.5762), new Point(465.16, 11.3917), new Point(467.32, 15.266), new Point(469.49, 21.5803), new Point(470.95, 27.5286)), new Array(-174.18, -173.05, -175.47, -176.33, -174.68, -171.22, -167.01, -163.08, -160.75, -158.71, -156.97, -155.54, -156.02, -157.75, -159.6, -160.4, -159.7, -159.53, -159.67, -159.91), skeletonBase, 17)); bones.push(new Bone(new Array(new Point(293.05, 73.626), new Point(291.18, 77.9269), new Point(288.42, 82.6428), new Point(286.38, 86.0125), new Point(285.64, 87.0811), new Point(285.24, 87.0724), new Point(285.11, 86.8295), new Point(285.16, 87.1884), new Point(285.73, 88.257), new Point(286.52, 89.8018), new Point(287.43, 90.6875), new Point(288.39, 89.7833), new Point(289.6, 87.3423), new Point(291.08, 84.2886), new Point(292.49, 80.8848), new Point(293.4, 77.4619), new Point(293.6, 75.3248), new Point(293.56, 74.1571), new Point(293.37, 73.6744), new Point(293.16, 73.5914)), new Array(-68.66, -63.81, -62.53, -63.39, -65.93, -70.15, -75.6, -81.82, -89.26, -98.25, -106.71, -112.56, -114.97, -115.18, -114.22, -113.12, -105.51, -94.11, -82.07, -72.54), skeletonBase, 18)); bones.push(new Bone(new Array(new Point(310.3, 117.7742), new Point(312.1, 120.4597), new Point(310.28, 124.6973), new Point(307.62, 128.3891), new Point(304.97, 130.3565), new Point(301.33, 131.6552), new Point(296.89, 132.7396), new Point(291.91, 134.1045), new Point(286.34, 135.6518), new Point(279.72, 136.7099), new Point(273.81, 136.0851), new Point(270.2, 133.5549), new Point(269.59, 130.3096), new Point(270.91, 127.1829), new Point(273.05, 124.1122), new Point(274.79, 121.0555), new Point(280.93, 120.998), new Point(290.16, 121.4341), new Point(299.91, 120.6198), new Point(307.38, 118.8051)), new Array(-14.25, -14.71, -24.46, -34.74, -41.36, -46.59, -46.12, -44.05, -43.2, -43.06, -44.14, -46.95, -60.22, -79.6, -97.19, -105.09, -92.66, -69.76, -43.99, -22.95), skeletonBase, 19)); bones.push(new Bone(new Array(new Point(324.99, 121.5031), new Point(326.76, 124.3065), new Point(324.07, 130.9709), new Point(320.07, 137.0228), new Point(316.34, 140.3692), new Point(311.74, 142.6627), new Point(307.4, 143.6613), new Point(302.8, 144.6391), new Point(297.39, 146.0246), new Point(290.79, 147.0551), new Point(284.68, 146.6368), new Point(280.55, 144.6282), new Point(277.12, 143.4612), new Point(273.65, 142.0867), new Point(271.15, 139.1458), new Point(270.84, 135.686), new Point(280.23, 136.1346), new Point(295.41, 135.6507), new Point(310.82, 131.1428), new Point(321.34, 124.713)), new Array(15.4, 19.22, 17.77, 13.05, 3.94, -7.39, -18.95, -25.28, -24.44, -24.29, -25.37, -28.19, -39.91, -55.78, -69.56, -75.01, -62.62, -39.83, -14.18, 6.74), skeletonBase, 20)); bones.push(new Bone(new Array(new Point(331.6, 119.6841), new Point(333.23, 122.0519), new Point(330.6, 128.8802), new Point(326.75, 135.4769), new Point(323.18, 139.8989), new Point(318.54, 143.545), new Point(313.88, 145.8875), new Point(308.99, 147.5664), new Point(303.62, 148.8602), new Point(297.04, 149.8752), new Point(290.87, 149.5739), new Point(286.58, 147.866), new Point(282.37, 147.8588), new Point(277.5, 147.7538), new Point(273.54, 145.5672), new Point(272.62, 142.3056), new Point(283.38, 142.22), new Point(300.67, 140.0404), new Point(317.46, 132.823), new Point(328.14, 123.9092)), new Array(47.69, 51.15, 48.77, 42.75, 32.19, 19.44, 6.73, -0.29, 0.6, 1.07, 0.89, -0.18, -6.42, -14.52, -21.23, -23.34, -12.97, 5.02, 24.93, 41.05), skeletonBase, 21)); bones.push(new Bone(new Array(new Point(323.58, 125.7778), new Point(325.63, 128.6655), new Point(322.84, 135.3003), new Point(318.49, 141.236), new Point(314.11, 144.2787), new Point(308.79, 146.0576), new Point(303.82, 146.395), new Point(298.94, 146.9618), new Point(293.56, 148.4039), new Point(286.98, 149.444), new Point(280.82, 148.9534), new Point(276.58, 146.7524), new Point(272.8, 144.7346), new Point(269.15, 142.1311), new Point(266.77, 138.117), new Point(266.58, 134.2458), new Point(275.75, 135.6426), new Point(291.09, 136.9306), new Point(307.48, 134.1641), new Point(319.3, 128.7268)), new Array(7.16, 10.97, 9.53, 4.8, -4.3, -15.63, -27.2, -33.53, -32.68, -32.54, -33.62, -36.43, -48.16, -64.03, -77.8, -83.25, -70.87, -48.07, -22.43, -1.5), skeletonBase, 22)); bones.push(new Bone(new Array(new Point(324.11, 67.6832), new Point(322.5, 73.6056), new Point(319.96, 80.4673), new Point(318, 85.3455), new Point(317.27, 87.3797), new Point(316.88, 88.6512), new Point(316.74, 89.6891), new Point(316.78, 91.0157), new Point(317.34, 92.4889), new Point(318.15, 94.243), new Point(319.1, 94.9988), new Point(320.15, 93.4789), new Point(321.37, 88.7329), new Point(322.65, 82.3285), new Point(323.68, 75.8158), new Point(324.3, 70.7843), new Point(324.48, 68.5456), new Point(324.48, 67.5375), new Point(324.35, 67.3388), new Point(324.19, 67.5274)), new Array(-70.9, -79.07, -93.06, -104.63, -111.21, -116.46, -121, -125.46, -130.26, -135.25, -138.79, -139.24, -134.39, -125.97, -116.21, -107.33, -98.82, -89.19, -80.18, -73.51), skeletonBase, 23)); bones.push(new Bone(new Array(new Point(339.77, 112.9013), new Point(331.57, 120.5904), new Point(317.41, 128.2517), new Point(305.91, 131.6473), new Point(299.96, 131.9917), new Point(295.56, 131.492), new Point(292.1, 130.7069), new Point(289.02, 129.9948), new Point(286.42, 129.0065), new Point(284.16, 127.9319), new Point(283.11, 126.5248), new Point(283.9, 124.7199), new Point(287.9, 122.9263), new Point(294.55, 121.0564), new Point(302.54, 118.7497), new Point(310.05, 116.465), new Point(317.15, 115.8324), new Point(325.15, 115.3851), new Point(332.51, 114.4903), new Point(337.77, 113.4112)), new Array(-58.66, -53.57, -51.98, -52.2, -53.45, -55.96, -59.5, -63.81, -74.5, -89.17, -102.4, -108.78, -103.37, -93.27, -80.75, -68.05, -49.82, -32.65, -37.53, -50.98), skeletonBase, 24)); bones.push(new Bone(new Array(new Point(347.55, 125.6782), new Point(340.46, 132.6271), new Point(326.63, 140.0369), new Point(315.08, 143.4681), new Point(308.87, 144.0096), new Point(303.93, 143.8889), new Point(299.69, 143.5965), new Point(295.62, 143.4189), new Point(290.42, 143.423), new Point(284.38, 142.8907), new Point(279.89, 141.1364), new Point(279.08, 138.884), new Point(284.44, 137.4815), new Point(293.69, 135.9924), new Point(304.95, 133.5153), new Point(315.64, 130.3403), new Point(326.8, 127.2622), new Point(337.75, 123.4566), new Point(344.38, 123.6032), new Point(347.19, 125.0343)), new Array(4.38, -4.44, -19.82, -30.99, -31.45, -32.02, -33.1, -35.11, -43.83, -56.49, -67.56, -71.49, -63.1, -49.53, -33.26, -16.75, 5.09, 25.47, 23.18, 11.44), skeletonBase, 25)); bones.push(new Bone(new Array(new Point(355.64, 125.0547), new Point(348.55, 133.2522), new Point(334.26, 142.7852), new Point(322.04, 147.6431), new Point(315.79, 148.24), new Point(310.81, 148.1877), new Point(306.49, 148.025), new Point(302.26, 148.0834), new Point(296.27, 149.0398), new Point(288.86, 149.6543), new Point(282.99, 148.6345), new Point(281.66, 146.577), new Point(288.11, 144.7163), new Point(298.96, 142.1631), new Point(311.74, 137.962), new Point(323.41, 132.6761), new Point(334.88, 126.5386), new Point(345.07, 119.9638), new Point(351.83, 120.4069), new Point(355.15, 123.4222)), new Array(33.39, 24.89, 9.7, -1.3, -1.49, -1.59, -1.89, -2.68, -3.88, -4.6, -4.61, -3.67, 3.17, 13.06, 24.14, 34.55, 50.02, 64.36, 56.99, 41.74), skeletonBase, 26)); bones.push(new Bone(new Array(new Point(346.56, 129.3953), new Point(338.91, 136.1295), new Point(324.23, 142.9796), new Point(312.19, 145.8633), new Point(305.99, 146.3491), new Point(301.08, 146.1627), new Point(296.85, 145.7757), new Point(292.76, 145.4558), new Point(287.34, 144.9682), new Point(281.11, 143.7039), new Point(276.6, 141.3009), new Point(275.86, 138.8218), new Point(281.31, 137.8785), new Point(290.81, 137.0854), new Point(302.54, 135.3322), new Point(313.88, 132.7196), new Point(326.06, 130.0775), new Point(338.03, 126.312), new Point(344.54, 126.4365), new Point(346.78, 127.8223)), new Array(-10.18, -19.01, -34.38, -45.55, -46.01, -46.58, -47.67, -49.68, -58.39, -71.05, -82.12, -86.05, -77.67, -64.09, -47.82, -31.32, -9.47, 10.91, 8.61, -3.13), skeletonBase, 27)); bones.push(new Bone(new Array(new Point(199.66, 78.6999), new Point(198.48, 79.3156), new Point(197.37, 80.108), new Point(196.59, 80.9242), new Point(196.27, 81.5392), new Point(196.1, 82.0997), new Point(196.04, 82.9184), new Point(196.03, 84.3068), new Point(196.29, 86.9468), new Point(196.71, 90.4859), new Point(197.25, 93.5318), new Point(197.89, 94.6927), new Point(198.8, 93.5681), new Point(199.91, 91.5692), new Point(200.89, 89.0577), new Point(201.41, 86.4302), new Point(201.23, 84.0571), new Point(200.8, 81.9493), new Point(200.28, 80.2511), new Point(199.84, 79.1147)), new Array(-108.03, -108.36, -92.52, -77.01, -68.1, -60.64, -54.85, -50.95, -50.61, -50.37, -50.65, -51.84, -57.94, -66.64, -75.96, -83.93, -90.1, -95.13, -99.63, -104.19), skeletonBase, 28)); bones.push(new Bone(new Array(new Point(186.24, 119.9593), new Point(184.82, 120.4952), new Point(195.47, 123.4539), new Point(206.34, 123.2005), new Point(212.45, 121.7941), new Point(217.38, 119.9124), new Point(221.02, 118.3917), new Point(223.37, 117.9968), new Point(223.83, 120.4738), new Point(224.38, 123.8998), new Point(224.77, 127.0792), new Point(224.7, 128.8069), new Point(221.83, 130.3342), new Point(217.12, 131.3977), new Point(211.41, 131.1488), new Point(206.01, 129.5739), new Point(201.16, 127.4447), new Point(196.93, 125.1636), new Point(193.03, 123.0283), new Point(189.21, 121.1791)), new Array(-140.49, -146.76, -156.69, -159.13, -144.24, -123.63, -104.69, -94.81, -100.08, -112.37, -125.67, -133.96, -137.6, -140.34, -142.32, -143.69, -143.48, -141.31, -139.05, -138.61), skeletonBase, 29)); bones.push(new Bone(new Array(new Point(168.69, 134.442), new Point(165.79, 132.9736), new Point(174.57, 132.4659), new Point(185.08, 131.3135), new Point(193.99, 135.0967), new Point(204.78, 138.8617), new Point(215.26, 140.4037), new Point(221.47, 140.6714), new Point(219.85, 142.8783), new Point(215.73, 144.9444), new Point(211.5, 145.568), new Point(208.91, 145.1901), new Point(205.04, 145.6843), new Point(199.6, 145.9274), new Point(193.41, 145.0633), new Point(187.68, 143.0552), new Point(182.88, 140.9908), new Point(179.17, 139.3945), new Point(175.85, 137.947), new Point(172.14, 136.2291)), new Array(-81.28, -89.91, -80.74, -66.45, -49.97, -28.54, -9.29, 0.63, -7.97, -24.29, -38.65, -47.1, -48.57, -48.27, -47.54, -47.73, -53.31, -60.5, -68.38, -76.07), skeletonBase, 30)); bones.push(new Bone(new Array(new Point(169.7, 141.0649), new Point(165.8, 139.6736), new Point(175.65, 139.079), new Point(187.76, 137.4564), new Point(198.3, 140.228), new Point(210.66, 142.0642), new Point(221.87, 141.4877), new Point(228.17, 140.5997), new Point(226.49, 143.8096), new Point(221.83, 147.7026), new Point(216.73, 149.7545), new Point(213.47, 150.0991), new Point(209.47, 150.7089), new Point(204.06, 150.9285), new Point(197.93, 150.0072), new Point(192.18, 148.0143), new Point(186.88, 146.3649), new Point(182.47, 145.2267), new Point(178.31, 144.1765), new Point(173.75, 142.7326)), new Array(-29.86, -36.7, -25.81, -9.92, 8.04, 30.78, 51.14, 61.97, 52.68, 34.21, 15.1, 2.46, -0.26, -0.6, -0.1, -0.33, -5.37, -11.53, -18.28, -25.04), skeletonBase, 31)); bones.push(new Bone(new Array(new Point(169.05, 77.2797), new Point(167.94, 76.8882), new Point(166.91, 76.7408), new Point(166.21, 76.9052), new Point(165.93, 77.2553), new Point(165.78, 77.6799), new Point(165.73, 78.4486), new Point(165.72, 79.8298), new Point(165.95, 82.6814), new Point(166.32, 86.5664), new Point(166.81, 90.0675), new Point(167.39, 91.7674), new Point(168.23, 91.4067), new Point(169.29, 90.3622), new Point(170.25, 88.7043), new Point(170.77, 86.538), new Point(170.59, 84.0059), new Point(170.16, 81.519), new Point(169.65, 79.3685), new Point(169.23, 77.8532)), new Array(-75.7, -77.3, -82.48, -86.18, -79.76, -70.36, -60.53, -52.83, -47.36, -43.03, -39.86, -37.87, -40.23, -44.75, -48.08, -52.24, -58.18, -64.2, -69.01, -73.02), skeletonBase, 32)); bones.push(new Bone(new Array(new Point(179.81, 119.543), new Point(177.51, 119.4361), new Point(172.61, 119.9785), new Point(169.1, 120.4207), new Point(173.67, 120.1746), new Point(180.43, 118.7583), new Point(187.17, 116.4237), new Point(192.06, 114.5899), new Point(195.48, 114.7712), new Point(198.19, 116.3352), new Point(200.28, 118.0288), new Point(201.81, 118.5483), new Point(201.52, 119.5853), new Point(200.25, 121.0752), new Point(199.38, 121.1611), new Point(197.47, 121.0244), new Point(193.57, 121.0697), new Point(189.13, 120.7876), new Point(185.26, 120.0907), new Point(181.95, 119.567)), new Array(-107.97, -113.31, -128.84, -144.37, -152.5, -152.63, -135.89, -117.12, -101.96, -87.14, -75.57, -70.13, -72.5, -77.02, -85.39, -94.61, -95.5, -96.46, -101.28, -105.28), skeletonBase, 33)); bones.push(new Bone(new Array(new Point(172.94, 140.6936), new Point(168.7, 139.8546), new Point(158.65, 137.2916), new Point(151.02, 133.3664), new Point(153.93, 130.4327), new Point(160.67, 128.9726), new Point(171.19, 131.8929), new Point(181.91, 134.3772), new Point(190.86, 136.5246), new Point(199.28, 138.547), new Point(205.81, 139.569), new Point(209.36, 139.4681), new Point(208.19, 140.7986), new Point(205.24, 142.7484), new Point(201.15, 143.329), new Point(195.67, 143.1904), new Point(191.43, 143.2051), new Point(186.62, 142.8837), new Point(180.9, 141.8977), new Point(176.08, 141.0159)), new Array(-60.71, -68.52, -69.81, -72.19, -75.41, -72.71, -54.68, -35.6, -23.72, -14.52, -10.26, -13.17, -30.68, -47.39, -48.52, -48.5, -49.64, -50.86, -55.13, -58.4), skeletonBase, 34)); bones.push(new Bone(new Array(new Point(176.04, 146.1744), new Point(171.02, 145.7055), new Point(160.84, 143.1934), new Point(152.97, 139.3539), new Point(155.54, 136.5202), new Point(162.56, 134.9777), new Point(174.85, 137.0185), new Point(187.04, 138.0264), new Point(196.63, 139.0397), new Point(205.38, 140.1071), new Point(212, 140.6708), new Point(215.49, 140.8833), new Point(213.62, 143.9946), new Point(209.51, 147.3685), new Point(205.34, 148.0328), new Point(199.85, 147.8927), new Point(195.52, 147.9898), new Point(190.61, 147.7542), new Point(184.52, 147.0514), new Point(179.39, 146.3678)), new Array(-3.33, -5.6, -6.68, -8.91, -12.05, -9.31, 8.74, 27.82, 38.46, 45.88, 48.04, 42.9, 23.23, 4.68, 2.26, 1.81, 1.31, 1.09, -1.93, -3.83), skeletonBase, 35)); bones.push(new Bone(new Array(new Point(164.29, 133.5054), new Point(161.58, 131.3876), new Point(170.17, 131.5707), new Point(180.59, 131.5337), new Point(189.75, 136.5823), new Point(201.37, 141.7951), new Point(213.01, 144.2963), new Point(219.92, 144.8937), new Point(217.69, 146.8218), new Point(212.55, 148.1219), new Point(207.63, 147.8572), new Point(204.75, 146.8864), new Point(200.83, 147.2731), new Point(195.41, 147.5383), new Point(189.23, 146.7274), new Point(183.49, 144.7053), new Point(178.56, 142.226), new Point(174.73, 140.0794), new Point(171.35, 138.0158), new Point(167.68, 135.6956)), new Array(-87.17, -95.8, -86.63, -72.34, -55.85, -34.42, -15.18, -5.26, -13.86, -30.18, -44.54, -52.98, -54.45, -54.15, -53.42, -53.61, -59.2, -66.38, -74.27, -81.96), skeletonBase, 36)); bones.push(new Bone(new Array(new Point(168.53, 141.2232), new Point(164.26, 139.7802), new Point(154.22, 137.1173), new Point(146.6, 133.0084), new Point(149.54, 129.8261), new Point(156.25, 128.5738), new Point(166.87, 132.882), new Point(178.14, 136.7265), new Point(187.66, 139.5989), new Point(196.62, 142.0935), new Point(203.41, 143.3044), new Point(206.77, 143.0769), new Point(204.64, 143.4622), new Point(201.07, 144.2789), new Point(196.96, 144.7767), new Point(191.47, 144.6396), new Point(187.21, 144.5705), new Point(182.37, 144.159), new Point(176.57, 142.8534), new Point(171.7, 141.7221)), new Array(-69.64, -77.45, -78.75, -81.12, -84.35, -81.65, -63.62, -44.54, -32.66, -23.46, -19.19, -22.1, -39.62, -56.32, -57.46, -57.44, -58.58, -59.8, -64.06, -67.34), skeletonBase, 37)); } } }//package dinowaurs.SkeletalAnim
Section 87
//SkeletalAnimation (dinowaurs.SkeletalAnim.SkeletalAnimation) package dinowaurs.SkeletalAnim { import flash.display.*; import dinowaurs.*; public class SkeletalAnimation { public var skeletonBase:Sprite; public var bones:Array; public function SkeletalAnimation(_arg1:Sprite){ bones = new Array(); skeletonBase = _arg1; } public function setFrame(_arg1:int):void{ var _local2:Bone; for each (_local2 in bones) { _local2.setFrame(_arg1); }; } public function kill():void{ var _local1:Bone; for each (_local1 in bones) { _local1.kill(); }; bones = null; skeletonBase = null; } } }//package dinowaurs.SkeletalAnim
Section 88
//stego_breathing_SK (dinowaurs.SkeletalAnim.stego_breathing_SK) package dinowaurs.SkeletalAnim { import flash.display.*; import flash.geom.*; import dinowaurs.*; public class stego_breathing_SK extends SkeletalAnimation { public function stego_breathing_SK(_arg1:Sprite){ super(_arg1); bones.push(new Bone(new Array(new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796), new Point(144.91, 85.1796)), new Array(3.98, 4.04, 4.12, 4.2, 4.29, 4.39, 4.49, 4.6, 4.72, 4.84, 4.96, 5.09, 5.22, 5.35, 5.48, 5.62, 5.75, 5.87, 6, 6.12, 6.24, 6.35, 6.46, 6.56, 6.66, 6.74, 6.82, 6.89, 6.94, 6.99, 7.02, 7.04, 7.03, 6.98, 6.91, 6.82, 6.7, 6.57, 6.42, 6.27, 6.1, 5.92, 5.75, 5.57, 5.4, 5.23, 5.07, 4.92, 4.79, 4.68, 4.57, 4.47, 4.38, 4.3, 4.22, 4.15, 4.09, 4.04, 4.01, 3.99), skeletonBase, 0)); bones.push(new Bone(new Array(new Point(211.11, 80.5718), new Point(211.11, 80.499), new Point(211.1, 80.4146), new Point(211.09, 80.3196), new Point(211.09, 80.215), new Point(211.08, 80.1016), new Point(211.07, 79.9803), new Point(211.06, 79.852), new Point(211.05, 79.7177), new Point(211.04, 79.5783), new Point(211.02, 79.4346), new Point(211.01, 79.2877), new Point(211, 79.1382), new Point(210.98, 78.9873), new Point(210.97, 78.8358), new Point(210.95, 78.6846), new Point(210.94, 78.5345), new Point(210.92, 78.3866), new Point(210.91, 78.2417), new Point(210.89, 78.1007), new Point(210.88, 77.9645), new Point(210.86, 77.834), new Point(210.85, 77.7102), new Point(210.84, 77.5938), new Point(210.83, 77.4858), new Point(210.81, 77.3872), new Point(210.8, 77.2987), new Point(210.79, 77.2214), new Point(210.79, 77.156), new Point(210.78, 77.1035), new Point(210.77, 77.0649), new Point(210.77, 77.0409), new Point(210.77, 77.0588), new Point(210.78, 77.1102), new Point(210.79, 77.1918), new Point(210.8, 77.3002), new Point(210.82, 77.4322), new Point(210.84, 77.5844), new Point(210.86, 77.7534), new Point(210.88, 77.936), new Point(210.9, 78.1287), new Point(210.92, 78.3282), new Point(210.94, 78.5312), new Point(210.96, 78.7343), new Point(210.98, 78.9342), new Point(211, 79.1274), new Point(211.01, 79.3107), new Point(211.03, 79.4806), new Point(211.04, 79.6338), new Point(211.05, 79.7669), new Point(211.06, 79.8864), new Point(211.07, 80.0003), new Point(211.08, 80.1073), new Point(211.09, 80.2063), new Point(211.09, 80.296), new Point(211.1, 80.3753), new Point(211.1, 80.4428), new Point(211.11, 80.4974), new Point(211.11, 80.5379), new Point(211.11, 80.5631)), new Array(-19.88, -19.81, -19.75, -19.68, -19.61, -19.53, -19.45, -19.37, -19.28, -19.2, -19.11, -19.02, -18.93, -18.85, -18.76, -18.67, -18.58, -18.5, -18.42, -18.34, -18.26, -18.19, -18.12, -18.06, -18, -17.94, -17.9, -17.85, -17.82, -17.79, -17.77, -17.75, -17.76, -17.79, -17.84, -17.91, -17.99, -18.08, -18.18, -18.29, -18.41, -18.53, -18.65, -18.77, -18.89, -19.01, -19.12, -19.22, -19.31, -19.39, -19.46, -19.53, -19.6, -19.66, -19.71, -19.76, -19.8, -19.83, -19.85, -19.87), skeletonBase, 1)); bones.push(new Bone(new Array(new Point(259.39, 98.0258), new Point(259.41, 97.9021), new Point(259.42, 97.7629), new Point(259.44, 97.6095), new Point(259.45, 97.443), new Point(259.46, 97.2649), new Point(259.48, 97.0764), new Point(259.49, 96.8787), new Point(259.51, 96.6731), new Point(259.52, 96.4608), new Point(259.53, 96.2433), new Point(259.55, 96.0217), new Point(259.56, 95.7973), new Point(259.57, 95.5713), new Point(259.58, 95.3452), new Point(259.59, 95.12), new Point(259.6, 94.8971), new Point(259.61, 94.6777), new Point(259.62, 94.4633), new Point(259.63, 94.255), new Point(259.63, 94.054), new Point(259.64, 93.8617), new Point(259.64, 93.6793), new Point(259.65, 93.5081), new Point(259.65, 93.3494), new Point(259.66, 93.2044), new Point(259.66, 93.0744), new Point(259.66, 92.9608), new Point(259.66, 92.8646), new Point(259.67, 92.7873), new Point(259.67, 92.7301), new Point(259.67, 92.6942), new Point(259.67, 92.7213), new Point(259.66, 92.7992), new Point(259.66, 92.9228), new Point(259.66, 93.087), new Point(259.65, 93.2868), new Point(259.64, 93.5171), new Point(259.63, 93.7728), new Point(259.62, 94.0488), new Point(259.61, 94.3402), new Point(259.6, 94.6418), new Point(259.58, 94.9485), new Point(259.57, 95.2553), new Point(259.55, 95.557), new Point(259.54, 95.8487), new Point(259.52, 96.1252), new Point(259.51, 96.3815), new Point(259.49, 96.6125), new Point(259.48, 96.8132), new Point(259.47, 96.9934), new Point(259.46, 97.165), new Point(259.44, 97.3263), new Point(259.43, 97.4754), new Point(259.42, 97.6105), new Point(259.42, 97.7298), new Point(259.41, 97.8316), new Point(259.4, 97.9138), new Point(259.4, 97.9748), new Point(259.4, 98.0128)), new Array(-32.07, -32.02, -31.97, -31.93, -31.9, -31.88, -31.86, -31.85, -31.84, -31.84, -31.84, -31.85, -31.86, -31.87, -31.89, -31.91, -31.93, -31.95, -31.98, -32, -32.03, -32.05, -32.08, -32.1, -32.12, -32.15, -32.16, -32.18, -32.2, -32.21, -32.21, -32.22, -32.22, -32.21, -32.21, -32.21, -32.2, -32.19, -32.19, -32.18, -32.17, -32.16, -32.16, -32.15, -32.14, -32.13, -32.12, -32.12, -32.11, -32.1, -32.1, -32.1, -32.09, -32.09, -32.08, -32.08, -32.08, -32.08, -32.07, -32.07), skeletonBase, 2)); bones.push(new Bone(new Array(new Point(307.79, 126.1342), new Point(307.88, 125.8685), new Point(307.97, 125.5964), new Point(308.05, 125.3185), new Point(308.13, 125.0358), new Point(308.2, 124.7494), new Point(308.26, 124.4605), new Point(308.32, 124.1698), new Point(308.38, 123.8782), new Point(308.43, 123.5868), new Point(308.48, 123.2969), new Point(308.53, 123.009), new Point(308.57, 122.7242), new Point(308.61, 122.4434), new Point(308.64, 122.168), new Point(308.67, 121.8984), new Point(308.7, 121.6357), new Point(308.72, 121.3811), new Point(308.74, 121.1353), new Point(308.76, 120.8995), new Point(308.78, 120.6744), new Point(308.79, 120.4611), new Point(308.8, 120.2605), new Point(308.81, 120.0736), new Point(308.82, 119.9014), new Point(308.83, 119.7446), new Point(308.83, 119.6045), new Point(308.84, 119.4818), new Point(308.84, 119.3775), new Point(308.85, 119.2925), new Point(308.85, 119.228), new Point(308.86, 119.1846), new Point(308.85, 119.2201), new Point(308.84, 119.322), new Point(308.82, 119.4836), new Point(308.79, 119.6983), new Point(308.76, 119.9596), new Point(308.72, 120.2607), new Point(308.67, 120.5948), new Point(308.62, 120.9553), new Point(308.57, 121.3359), new Point(308.51, 121.7294), new Point(308.45, 122.1296), new Point(308.39, 122.5296), new Point(308.33, 122.9229), new Point(308.27, 123.3028), new Point(308.21, 123.663), new Point(308.16, 123.9966), new Point(308.11, 124.2973), new Point(308.07, 124.5583), new Point(308.03, 124.7926), new Point(307.99, 125.0157), new Point(307.95, 125.2254), new Point(307.92, 125.4192), new Point(307.89, 125.5949), new Point(307.86, 125.7498), new Point(307.84, 125.8819), new Point(307.82, 125.9887), new Point(307.8, 126.0679), new Point(307.8, 126.1172)), new Array(-7.57, -7.11, -6.67, -6.25, -5.86, -5.48, -5.13, -4.8, -4.48, -4.18, -3.91, -3.64, -3.4, -3.17, -2.96, -2.76, -2.58, -2.41, -2.25, -2.11, -1.98, -1.86, -1.76, -1.66, -1.57, -1.49, -1.43, -1.37, -1.31, -1.27, -1.23, -1.2, -1.23, -1.32, -1.47, -1.67, -1.91, -2.18, -2.49, -2.82, -3.16, -3.52, -3.89, -4.26, -4.62, -4.96, -5.3, -5.6, -5.88, -6.12, -6.33, -6.54, -6.73, -6.91, -7.07, -7.21, -7.33, -7.43, -7.51, -7.55), skeletonBase, 3)); bones.push(new Bone(new Array(new Point(329.59, 129.03), new Point(329.68, 128.5861), new Point(329.74, 128.143), new Point(329.77, 127.7016), new Point(329.79, 127.2629), new Point(329.78, 126.8283), new Point(329.76, 126.399), new Point(329.72, 125.9758), new Point(329.66, 125.5593), new Point(329.59, 125.1508), new Point(329.5, 124.7513), new Point(329.4, 124.3613), new Point(329.3, 123.9815), new Point(329.18, 123.6127), new Point(329.06, 123.256), new Point(328.93, 122.9116), new Point(328.8, 122.5803), new Point(328.66, 122.263), new Point(328.52, 121.9602), new Point(328.39, 121.6726), new Point(328.25, 121.4008), new Point(328.12, 121.1454), new Point(327.99, 120.9072), new Point(327.87, 120.6868), new Point(327.76, 120.4849), new Point(327.65, 120.302), new Point(327.56, 120.1389), new Point(327.47, 119.9963), new Point(327.4, 119.8749), new Point(327.35, 119.7752), new Point(327.31, 119.6982), new Point(327.29, 119.6444), new Point(327.3, 119.6903), new Point(327.34, 119.8222), new Point(327.4, 120.0319), new Point(327.48, 120.3111), new Point(327.58, 120.6518), new Point(327.69, 121.046), new Point(327.81, 121.4849), new Point(327.94, 121.9607), new Point(328.07, 122.4653), new Point(328.21, 122.9896), new Point(328.34, 123.5253), new Point(328.48, 124.0634), new Point(328.61, 124.595), new Point(328.73, 125.111), new Point(328.85, 125.6023), new Point(328.96, 126.0593), new Point(329.05, 126.4727), new Point(329.13, 126.8329), new Point(329.2, 127.1571), new Point(329.27, 127.4666), new Point(329.33, 127.7581), new Point(329.39, 128.0284), new Point(329.44, 128.2738), new Point(329.49, 128.4906), new Point(329.52, 128.676), new Point(329.56, 128.8259), new Point(329.58, 128.9372), new Point(329.59, 129.0066)), new Array(7.19, 6.87, 6.42, 5.88, 5.24, 4.54, 3.77, 2.94, 2.09, 1.21, 0.32, -0.57, -1.44, -2.29, -3.09, -3.84, -4.52, -5.12, -5.62, -6.02, -5.85, -5.61, -5.32, -4.97, -4.58, -4.16, -3.71, -3.23, -2.74, -2.24, -1.74, -1.25, -0.81, -0.39, 0.02, 0.4, 0.77, 1.12, 1.47, 1.8, 2.13, 2.45, 2.76, 3.08, 3.39, 3.71, 4.03, 4.36, 4.7, 5.05, 5.39, 5.71, 6, 6.26, 6.5, 6.7, 6.88, 7.01, 7.11, 7.17), skeletonBase, 4)); bones.push(new Bone(new Array(new Point(352.41, 126.1494), new Point(352.51, 125.8365), new Point(352.59, 125.5702), new Point(352.65, 125.3462), new Point(352.69, 125.1605), new Point(352.71, 125.0091), new Point(352.71, 124.8886), new Point(352.69, 124.7942), new Point(352.64, 124.7213), new Point(352.58, 124.666), new Point(352.5, 124.6241), new Point(352.4, 124.5905), new Point(352.29, 124.5609), new Point(352.16, 124.5306), new Point(352.02, 124.4957), new Point(351.88, 124.4509), new Point(351.72, 124.3918), new Point(351.57, 124.3143), new Point(351.41, 124.2136), new Point(351.26, 124.0855), new Point(351.13, 123.7452), new Point(351.01, 123.3953), new Point(350.89, 123.0394), new Point(350.78, 122.681), new Point(350.68, 122.3235), new Point(350.59, 121.9703), new Point(350.51, 121.6253), new Point(350.44, 121.2921), new Point(350.38, 120.9739), new Point(350.33, 120.6745), new Point(350.3, 120.3977), new Point(350.28, 120.1469), new Point(350.3, 120.0147), new Point(350.34, 119.9772), new Point(350.4, 120.0255), new Point(350.48, 120.1503), new Point(350.58, 120.343), new Point(350.68, 120.5948), new Point(350.8, 120.8959), new Point(350.93, 121.2379), new Point(351.06, 121.6117), new Point(351.19, 122.0076), new Point(351.32, 122.4164), new Point(351.45, 122.8283), new Point(351.57, 123.2336), new Point(351.69, 123.6224), new Point(351.79, 123.9847), new Point(351.89, 124.3102), new Point(351.97, 124.5889), new Point(352.04, 124.8101), new Point(352.1, 124.9976), new Point(352.16, 125.18), new Point(352.21, 125.3547), new Point(352.25, 125.5191), new Point(352.29, 125.6705), new Point(352.33, 125.8056), new Point(352.36, 125.9226), new Point(352.38, 126.018), new Point(352.4, 126.0895), new Point(352.41, 126.1344)), new Array(-28.65, -29.37, -30.17, -31.02, -31.93, -32.88, -33.87, -34.87, -35.87, -36.88, -37.88, -38.85, -39.78, -40.68, -41.51, -42.29, -42.98, -43.59, -44.1, -44.49, -44.32, -44.07, -43.75, -43.38, -42.95, -42.48, -41.97, -41.44, -40.89, -40.32, -39.75, -39.18, -38.66, -38.15, -37.66, -37.18, -36.72, -36.27, -35.83, -35.4, -34.98, -34.57, -34.15, -33.75, -33.34, -32.93, -32.52, -32.11, -31.69, -31.26, -30.85, -30.46, -30.11, -29.78, -29.5, -29.25, -29.04, -28.87, -28.75, -28.67), skeletonBase, 5)); bones.push(new Bone(new Array(new Point(143.91, 85.1584), new Point(143.91, 85.1595), new Point(143.91, 85.1608), new Point(143.91, 85.1622), new Point(143.91, 85.1638), new Point(143.91, 85.1655), new Point(143.91, 85.1674), new Point(143.91, 85.1693), new Point(143.91, 85.1714), new Point(143.91, 85.1735), new Point(143.91, 85.1756), new Point(143.91, 85.1779), new Point(143.91, 85.1801), new Point(143.91, 85.1824), new Point(143.91, 85.1847), new Point(143.91, 85.187), new Point(143.91, 85.1893), new Point(143.91, 85.1915), new Point(143.91, 85.1937), new Point(143.91, 85.1959), new Point(143.91, 85.1979), new Point(143.91, 85.1999), new Point(143.91, 85.2018), new Point(143.91, 85.2036), new Point(143.91, 85.2052), new Point(143.91, 85.2067), new Point(143.91, 85.208), new Point(143.91, 85.2092), new Point(143.91, 85.2102), new Point(143.91, 85.211), new Point(143.91, 85.2116), new Point(143.91, 85.212), new Point(143.91, 85.2117), new Point(143.91, 85.2109), new Point(143.91, 85.2097), new Point(143.91, 85.208), new Point(143.91, 85.206), new Point(143.91, 85.2037), new Point(143.91, 85.2011), new Point(143.91, 85.1984), new Point(143.91, 85.1954), new Point(143.91, 85.1924), new Point(143.91, 85.1893), new Point(143.91, 85.1863), new Point(143.91, 85.1832), new Point(143.91, 85.1803), new Point(143.91, 85.1775), new Point(143.91, 85.1749), new Point(143.91, 85.1726), new Point(143.91, 85.1706), new Point(143.91, 85.1688), new Point(143.91, 85.1671), new Point(143.91, 85.1655), new Point(143.91, 85.1639), new Point(143.91, 85.1626), new Point(143.91, 85.1614), new Point(143.91, 85.1604), new Point(143.91, 85.1596), new Point(143.91, 85.1589), new Point(143.91, 85.1586)), new Array(-153.79, -153.73, -153.65, -153.57, -153.48, -153.38, -153.28, -153.17, -153.05, -152.93, -152.81, -152.68, -152.55, -152.42, -152.29, -152.16, -152.03, -151.9, -151.77, -151.65, -151.53, -151.42, -151.31, -151.21, -151.11, -151.03, -150.95, -150.88, -150.83, -150.78, -150.75, -150.73, -150.74, -150.79, -150.86, -150.95, -151.07, -151.2, -151.35, -151.51, -151.67, -151.85, -152.02, -152.2, -152.37, -152.54, -152.7, -152.85, -152.98, -153.09, -153.2, -153.3, -153.39, -153.47, -153.55, -153.62, -153.68, -153.73, -153.76, -153.78), skeletonBase, 6)); bones.push(new Bone(new Array(new Point(116.58, 98.6017), new Point(116.6, 98.6329), new Point(116.62, 98.6689), new Point(116.64, 98.7095), new Point(116.66, 98.7542), new Point(116.68, 98.8026), new Point(116.71, 98.8543), new Point(116.73, 98.909), new Point(116.76, 98.9662), new Point(116.79, 99.0255), new Point(116.82, 99.0866), new Point(116.85, 99.149), new Point(116.88, 99.2124), new Point(116.91, 99.2764), new Point(116.95, 99.3406), new Point(116.98, 99.4046), new Point(117.01, 99.468), new Point(117.04, 99.5305), new Point(117.07, 99.5916), new Point(117.11, 99.6511), new Point(117.14, 99.7085), new Point(117.16, 99.7634), new Point(117.19, 99.8155), new Point(117.22, 99.8644), new Point(117.24, 99.9097), new Point(117.26, 99.9511), new Point(117.28, 99.9882), new Point(117.3, 100.0206), new Point(117.32, 100.048), new Point(117.33, 100.07), new Point(117.34, 100.0862), new Point(117.34, 100.0962), new Point(117.34, 100.0887), new Point(117.33, 100.0672), new Point(117.31, 100.033), new Point(117.28, 99.9876), new Point(117.25, 99.9322), new Point(117.22, 99.8683), new Point(117.18, 99.7973), new Point(117.14, 99.7205), new Point(117.1, 99.6393), new Point(117.06, 99.5551), new Point(117.01, 99.4694), new Point(116.97, 99.3835), new Point(116.92, 99.2989), new Point(116.88, 99.217), new Point(116.85, 99.1392), new Point(116.81, 99.067), new Point(116.78, 99.0019), new Point(116.75, 98.9453), new Point(116.72, 98.8943), new Point(116.7, 98.8458), new Point(116.68, 98.8002), new Point(116.66, 98.7579), new Point(116.64, 98.7196), new Point(116.62, 98.6857), new Point(116.61, 98.6569), new Point(116.6, 98.6335), new Point(116.59, 98.6162), new Point(116.59, 98.6054)), new Array(-150.89, -150.82, -150.72, -150.59, -150.44, -150.27, -150.08, -149.87, -149.65, -149.41, -149.16, -148.9, -148.63, -148.36, -148.08, -147.8, -147.52, -147.25, -146.97, -146.7, -146.44, -146.19, -145.95, -145.73, -145.52, -145.33, -145.16, -145.01, -144.88, -144.78, -144.7, -144.66, -144.69, -144.78, -144.93, -145.12, -145.35, -145.62, -145.92, -146.24, -146.58, -146.94, -147.29, -147.65, -148, -148.35, -148.67, -148.97, -149.24, -149.47, -149.68, -149.88, -150.07, -150.25, -150.41, -150.55, -150.66, -150.76, -150.83, -150.88), skeletonBase, 7)); bones.push(new Bone(new Array(new Point(89.73, 113.5572), new Point(89.76, 113.6223), new Point(89.8, 113.7051), new Point(89.86, 113.8044), new Point(89.92, 113.9187), new Point(89.98, 114.0469), new Point(90.06, 114.1873), new Point(90.14, 114.3388), new Point(90.23, 114.5), new Point(90.33, 114.6693), new Point(90.42, 114.8457), new Point(90.53, 115.0277), new Point(90.63, 115.2139), new Point(90.74, 115.4031), new Point(90.85, 115.5939), new Point(90.97, 115.7851), new Point(91.08, 115.9754), new Point(91.19, 116.1634), new Point(91.3, 116.348), new Point(91.41, 116.5278), new Point(91.52, 116.7017), new Point(91.62, 116.8685), new Point(91.72, 117.0268), new Point(91.81, 117.1757), new Point(91.9, 117.3137), new Point(91.98, 117.4398), new Point(92.05, 117.5527), new Point(92.12, 117.6513), new Point(92.17, 117.7344), new Point(92.21, 117.8008), new Point(92.25, 117.8493), new Point(92.27, 117.8788), new Point(92.25, 117.8574), new Point(92.21, 117.796), new Point(92.15, 117.6985), new Point(92.07, 117.5687), new Point(91.96, 117.4104), new Point(91.85, 117.2276), new Point(91.72, 117.024), new Point(91.58, 116.8035), new Point(91.44, 116.5702), new Point(91.29, 116.3279), new Point(91.14, 116.0807), new Point(91, 115.8326), new Point(90.85, 115.5879), new Point(90.72, 115.3505), new Point(90.59, 115.1249), new Point(90.47, 114.9152), new Point(90.36, 114.7257), new Point(90.27, 114.5608), new Point(90.19, 114.4124), new Point(90.11, 114.2709), new Point(90.04, 114.1376), new Point(89.97, 114.0142), new Point(89.91, 113.9022), new Point(89.86, 113.8033), new Point(89.81, 113.7188), new Point(89.78, 113.6504), new Point(89.75, 113.5996), new Point(89.73, 113.5681)), new Array(-146.52, -146.44, -146.31, -146.14, -145.93, -145.68, -145.4, -145.09, -144.75, -144.39, -144.01, -143.61, -143.19, -142.77, -142.33, -141.9, -141.46, -141.02, -140.59, -140.17, -139.76, -139.37, -138.99, -138.63, -138.3, -138, -137.72, -137.49, -137.29, -137.13, -137.01, -136.94, -136.99, -137.13, -137.35, -137.65, -138, -138.42, -138.88, -139.37, -139.9, -140.44, -140.99, -141.54, -142.08, -142.61, -143.1, -143.57, -143.98, -144.34, -144.67, -144.97, -145.26, -145.53, -145.77, -145.99, -146.17, -146.32, -146.43, -146.5), skeletonBase, 8)); bones.push(new Bone(new Array(new Point(69.91, 126.6638), new Point(69.96, 126.7572), new Point(70.03, 126.8843), new Point(70.13, 127.0427), new Point(70.23, 127.2297), new Point(70.36, 127.4428), new Point(70.5, 127.6794), new Point(70.66, 127.937), new Point(70.83, 128.2129), new Point(71.01, 128.5046), new Point(71.2, 128.8096), new Point(71.4, 129.1254), new Point(71.61, 129.4495), new Point(71.82, 129.7793), new Point(72.04, 130.1124), new Point(72.27, 130.4466), new Point(72.49, 130.7793), new Point(72.72, 131.1082), new Point(72.94, 131.4312), new Point(73.16, 131.7459), new Point(73.38, 132.0502), new Point(73.59, 132.3417), new Point(73.79, 132.6185), new Point(73.98, 132.8784), new Point(74.16, 133.1194), new Point(74.33, 133.3392), new Point(74.47, 133.5359), new Point(74.6, 133.7075), new Point(74.71, 133.8519), new Point(74.8, 133.9671), new Point(74.87, 134.0509), new Point(74.91, 134.1013), new Point(74.88, 134.0652), new Point(74.8, 133.9613), new Point(74.67, 133.7962), new Point(74.51, 133.5762), new Point(74.31, 133.3076), new Point(74.08, 132.9968), new Point(73.82, 132.6502), new Point(73.55, 132.2742), new Point(73.27, 131.8755), new Point(72.98, 131.4606), new Point(72.68, 131.0365), new Point(72.39, 130.6102), new Point(72.11, 130.1887), new Point(71.84, 129.7792), new Point(71.59, 129.3893), new Point(71.35, 129.0264), new Point(71.14, 128.698), new Point(70.96, 128.4118), new Point(70.8, 128.1541), new Point(70.65, 127.908), new Point(70.51, 127.6761), new Point(70.38, 127.4612), new Point(70.26, 127.266), new Point(70.16, 127.0934), new Point(70.07, 126.946), new Point(70, 126.8266), new Point(69.95, 126.7379), new Point(69.92, 126.6828)), new Array(-142.79, -143.04, -143.22, -143.36, -143.43, -143.46, -143.44, -143.37, -143.27, -143.13, -142.95, -142.75, -142.52, -142.28, -142.01, -141.73, -141.44, -141.14, -140.84, -140.54, -140.25, -139.96, -139.69, -139.43, -139.19, -138.97, -138.78, -138.62, -138.49, -138.4, -138.35, -138.35, -138.35, -138.37, -138.4, -138.44, -138.51, -138.61, -138.73, -138.9, -139.1, -139.35, -139.49, -139.63, -140, -140.42, -140.79, -141.12, -141.4, -141.64, -141.84, -142.04, -142.22, -142.37, -142.5, -142.59, -142.67, -142.72, -142.76, -142.78), skeletonBase, 9)); bones.push(new Bone(new Array(new Point(38.19, 146.7731), new Point(38.01, 146.4533), new Point(37.88, 146.1995), new Point(37.8, 146.0087), new Point(37.76, 145.8776), new Point(37.76, 145.8029), new Point(37.8, 145.7811), new Point(37.87, 145.8087), new Point(37.97, 145.882), new Point(38.1, 145.9974), new Point(38.26, 146.1512), new Point(38.44, 146.3396), new Point(38.63, 146.5591), new Point(38.85, 146.8057), new Point(39.08, 147.0758), new Point(39.32, 147.3657), new Point(39.57, 147.6718), new Point(39.83, 147.9903), new Point(40.1, 148.3178), new Point(40.36, 148.6507), new Point(40.62, 148.9854), new Point(40.88, 149.3184), new Point(41.14, 149.6464), new Point(41.38, 149.9659), new Point(41.61, 150.2737), new Point(41.83, 150.5662), new Point(42.02, 150.8402), new Point(42.2, 151.0923), new Point(42.36, 151.3678), new Point(42.53, 151.6946), new Point(42.69, 152.0548), new Point(42.83, 152.4306), new Point(42.94, 152.7759), new Point(43.02, 153.094), new Point(43.07, 153.3749), new Point(43.1, 153.6094), new Point(43.1, 153.7882), new Point(43.07, 153.9029), new Point(43.02, 153.9458), new Point(42.92, 153.9098), new Point(42.79, 153.7888), new Point(42.61, 153.5771), new Point(42.29, 153.1298), new Point(41.98, 152.6791), new Point(41.88, 152.5784), new Point(41.89, 152.6014), new Point(41.91, 152.5993), new Point(41.78, 152.3715), new Point(41.34, 151.7479), new Point(40.81, 150.9915), new Point(40.3, 150.227), new Point(39.88, 149.584), new Point(39.56, 149.0722), new Point(39.26, 148.5932), new Point(38.99, 148.1541), new Point(38.76, 147.7626), new Point(38.56, 147.4257), new Point(38.4, 147.151), new Point(38.29, 146.9458), new Point(38.21, 146.8175)), new Array(-165.46, -166.6, -167.65, -168.62, -169.51, -170.32, -171.05, -171.7, -172.29, -172.79, -173.23, -173.61, -173.91, -174.15, -174.33, -174.45, -174.51, -174.51, -174.46, -174.36, -174.21, -174.01, -173.76, -173.46, -173.13, -172.75, -172.34, -171.88, -171.25, -170.34, -169.2, -167.86, -166.34, -164.68, -162.92, -161.1, -159.27, -157.47, -155.75, -154.15, -152.72, -151.49, -149.33, -147.32, -146.41, -145.69, -145.29, -145.48, -146.68, -148.26, -150, -151.7, -153.44, -155.38, -157.41, -159.42, -161.31, -162.96, -164.28, -165.15), skeletonBase, 10)); bones.push(new Bone(new Array(new Point(167.5, 108.107), new Point(167.52, 108.0822), new Point(167.55, 108.0533), new Point(167.58, 108.0208), new Point(167.62, 107.9849), new Point(167.66, 107.946), new Point(167.7, 107.9043), new Point(167.75, 107.86), new Point(167.79, 107.8136), new Point(167.84, 107.7653), new Point(167.89, 107.7155), new Point(167.94, 107.6643), new Point(167.99, 107.6122), new Point(168.04, 107.5594), new Point(168.09, 107.5063), new Point(168.14, 107.4532), new Point(168.19, 107.4004), new Point(168.24, 107.3481), new Point(168.29, 107.2969), new Point(168.34, 107.2468), new Point(168.38, 107.1984), new Point(168.43, 107.152), new Point(168.47, 107.1078), new Point(168.51, 107.0661), new Point(168.54, 107.0275), new Point(168.58, 106.9921), new Point(168.61, 106.9603), new Point(168.63, 106.9325), new Point(168.65, 106.9089), new Point(168.67, 106.89), new Point(168.68, 106.876), new Point(168.69, 106.8674), new Point(168.68, 106.8738), new Point(168.67, 106.8924), new Point(168.64, 106.9218), new Point(168.6, 106.9608), new Point(168.56, 107.0082), new Point(168.51, 107.0628), new Point(168.45, 107.1232), new Point(168.39, 107.1883), new Point(168.33, 107.2568), new Point(168.26, 107.3275), new Point(168.19, 107.3992), new Point(168.13, 107.4707), new Point(168.06, 107.5408), new Point(167.99, 107.6084), new Point(167.93, 107.6723), new Point(167.87, 107.7314), new Point(167.82, 107.7846), new Point(167.77, 107.8306), new Point(167.73, 107.8719), new Point(167.69, 107.9111), new Point(167.66, 107.948), new Point(167.62, 107.982), new Point(167.59, 108.0127), new Point(167.57, 108.0399), new Point(167.54, 108.063), new Point(167.52, 108.0816), new Point(167.51, 108.0955), new Point(167.5, 108.1041)), new Array(-83.04, -82.99, -82.95, -82.93, -82.92, -82.92, -82.93, -82.96, -82.99, -83.03, -83.08, -83.13, -83.19, -83.26, -83.33, -83.4, -83.47, -83.55, -83.63, -83.71, -83.78, -83.86, -83.93, -84, -84.06, -84.12, -84.18, -84.22, -84.26, -84.29, -84.31, -84.33, -84.32, -84.3, -84.27, -84.23, -84.18, -84.13, -84.07, -84, -83.93, -83.86, -83.78, -83.71, -83.64, -83.57, -83.5, -83.44, -83.38, -83.33, -83.29, -83.25, -83.21, -83.17, -83.14, -83.11, -83.09, -83.07, -83.05, -83.04), skeletonBase, 11)); bones.push(new Bone(new Array(new Point(174.95, 169.1737), new Point(175.03, 169.1423), new Point(175.1, 169.1087), new Point(175.16, 169.0732), new Point(175.2, 169.0359), new Point(175.24, 168.9972), new Point(175.27, 168.9571), new Point(175.29, 168.9159), new Point(175.3, 168.8736), new Point(175.31, 168.8306), new Point(175.3, 168.7869), new Point(175.3, 168.7428), new Point(175.28, 168.6983), new Point(175.26, 168.6538), new Point(175.24, 168.6094), new Point(175.22, 168.5653), new Point(175.19, 168.5217), new Point(175.15, 168.4788), new Point(175.12, 168.4368), new Point(175.08, 168.396), new Point(175.05, 168.3566), new Point(175.01, 168.3187), new Point(174.97, 168.2828), new Point(174.94, 168.2489), new Point(174.91, 168.2175), new Point(174.88, 168.1887), new Point(174.85, 168.1628), new Point(174.82, 168.14), new Point(174.8, 168.1207), new Point(174.79, 168.1051), new Point(174.78, 168.0934), new Point(174.77, 168.086), new Point(174.77, 168.0917), new Point(174.78, 168.1083), new Point(174.78, 168.1345), new Point(174.79, 168.1693), new Point(174.8, 168.2115), new Point(174.81, 168.26), new Point(174.81, 168.3136), new Point(174.83, 168.3712), new Point(174.84, 168.4318), new Point(174.85, 168.4942), new Point(174.86, 168.5573), new Point(174.87, 168.6202), new Point(174.88, 168.6817), new Point(174.89, 168.7409), new Point(174.9, 168.7967), new Point(174.9, 168.8483), new Point(174.91, 168.8945), new Point(174.92, 168.9346), new Point(174.92, 168.9704), new Point(174.93, 169.0045), new Point(174.93, 169.0364), new Point(174.94, 169.0658), new Point(174.94, 169.0923), new Point(174.94, 169.1158), new Point(174.95, 169.1357), new Point(174.95, 169.1518), new Point(174.95, 169.1638), new Point(174.95, 169.1712)), new Array(-157.02, -156.96, -156.89, -156.82, -156.74, -156.66, -156.57, -156.48, -156.39, -156.3, -156.2, -156.1, -156, -155.9, -155.81, -155.71, -155.61, -155.52, -155.42, -155.33, -155.25, -155.16, -155.08, -155.01, -154.94, -154.88, -154.83, -154.78, -154.74, -154.7, -154.68, -154.66, -154.67, -154.71, -154.76, -154.84, -154.92, -155.03, -155.14, -155.26, -155.39, -155.52, -155.66, -155.79, -155.93, -156.06, -156.18, -156.29, -156.39, -156.48, -156.56, -156.64, -156.71, -156.78, -156.84, -156.89, -156.93, -156.97, -157, -157.01), skeletonBase, 12)); bones.push(new Bone(new Array(new Point(154.95, 177.6351), new Point(155.04, 177.625), new Point(155.11, 177.6147), new Point(155.18, 177.6046), new Point(155.24, 177.5944), new Point(155.29, 177.5842), new Point(155.33, 177.5741), new Point(155.36, 177.5639), new Point(155.39, 177.5538), new Point(155.41, 177.5436), new Point(155.42, 177.5334), new Point(155.43, 177.5233), new Point(155.43, 177.5131), new Point(155.43, 177.503), new Point(155.42, 177.4927), new Point(155.41, 177.4825), new Point(155.4, 177.4724), new Point(155.38, 177.4624), new Point(155.36, 177.4524), new Point(155.34, 177.4426), new Point(155.31, 177.433), new Point(155.29, 177.4237), new Point(155.27, 177.4148), new Point(155.24, 177.4063), new Point(155.22, 177.3982), new Point(155.2, 177.3908), new Point(155.18, 177.384), new Point(155.17, 177.378), new Point(155.15, 177.3728), new Point(155.14, 177.3686), new Point(155.14, 177.3654), new Point(155.13, 177.3633), new Point(155.13, 177.365), new Point(155.13, 177.3697), new Point(155.13, 177.3772), new Point(155.12, 177.3871), new Point(155.12, 177.3989), new Point(155.11, 177.4124), new Point(155.1, 177.4271), new Point(155.09, 177.4427), new Point(155.08, 177.4589), new Point(155.07, 177.4753), new Point(155.06, 177.4916), new Point(155.05, 177.5075), new Point(155.04, 177.5229), new Point(155.03, 177.5374), new Point(155.02, 177.5508), new Point(155.01, 177.563), new Point(155, 177.5737), new Point(154.99, 177.5829), new Point(154.99, 177.591), new Point(154.98, 177.5987), new Point(154.97, 177.6057), new Point(154.97, 177.6121), new Point(154.96, 177.6178), new Point(154.96, 177.6229), new Point(154.96, 177.6271), new Point(154.95, 177.6305), new Point(154.95, 177.633), new Point(154.95, 177.6346)), new Array(-35.15, -35.09, -35.06, -35.03, -35.01, -35, -35.01, -35.02, -35.04, -35.07, -35.1, -35.14, -35.18, -35.23, -35.29, -35.34, -35.4, -35.46, -35.52, -35.58, -35.64, -35.7, -35.76, -35.81, -35.87, -35.91, -35.96, -35.99, -36.03, -36.05, -36.07, -36.08, -36.07, -36.06, -36.04, -36.01, -35.97, -35.93, -35.89, -35.84, -35.79, -35.74, -35.68, -35.63, -35.58, -35.53, -35.48, -35.43, -35.39, -35.36, -35.33, -35.3, -35.27, -35.24, -35.22, -35.2, -35.18, -35.17, -35.15, -35.15), skeletonBase, 13)); bones.push(new Bone(new Array(new Point(161.94, 182.5349), new Point(162.04, 182.5184), new Point(162.12, 182.5035), new Point(162.19, 182.4899), new Point(162.25, 182.4776), new Point(162.3, 182.4667), new Point(162.34, 182.4569), new Point(162.37, 182.4482), new Point(162.39, 182.4404), new Point(162.41, 182.4336), new Point(162.42, 182.4275), new Point(162.43, 182.4222), new Point(162.42, 182.4175), new Point(162.42, 182.4133), new Point(162.4, 182.4095), new Point(162.39, 182.4062), new Point(162.37, 182.4031), new Point(162.35, 182.4004), new Point(162.32, 182.3978), new Point(162.29, 182.3955), new Point(162.27, 182.3933), new Point(162.24, 182.3912), new Point(162.21, 182.3892), new Point(162.18, 182.3873), new Point(162.15, 182.3856), new Point(162.13, 182.3839), new Point(162.11, 182.3823), new Point(162.09, 182.3809), new Point(162.07, 182.3795), new Point(162.06, 182.3782), new Point(162.05, 182.3771), new Point(162.05, 182.376), new Point(162.05, 182.3771), new Point(162.05, 182.3802), new Point(162.04, 182.3851), new Point(162.04, 182.3915), new Point(162.04, 182.3992), new Point(162.03, 182.4078), new Point(162.03, 182.4171), new Point(162.02, 182.4269), new Point(162.02, 182.4369), new Point(162.01, 182.4469), new Point(162.01, 182.4567), new Point(162, 182.4662), new Point(162, 182.4751), new Point(161.99, 182.4834), new Point(161.98, 182.491), new Point(161.98, 182.4977), new Point(161.97, 182.5036), new Point(161.97, 182.5085), new Point(161.97, 182.5128), new Point(161.96, 182.5168), new Point(161.96, 182.5204), new Point(161.96, 182.5236), new Point(161.95, 182.5265), new Point(161.95, 182.529), new Point(161.95, 182.5311), new Point(161.95, 182.5327), new Point(161.94, 182.5339), new Point(161.94, 182.5347)), new Array(-1.85, -1.8, -1.75, -1.71, -1.67, -1.64, -1.62, -1.6, -1.59, -1.57, -1.57, -1.57, -1.57, -1.57, -1.58, -1.59, -1.6, -1.61, -1.62, -1.64, -1.65, -1.67, -1.69, -1.7, -1.72, -1.73, -1.74, -1.76, -1.77, -1.77, -1.78, -1.78, -1.78, -1.78, -1.78, -1.78, -1.79, -1.79, -1.79, -1.8, -1.8, -1.8, -1.81, -1.81, -1.82, -1.82, -1.83, -1.83, -1.83, -1.83, -1.84, -1.84, -1.84, -1.84, -1.85, -1.85, -1.85, -1.85, -1.85, -1.85), skeletonBase, 14)); bones.push(new Bone(new Array(new Point(133.52, 107.2303), new Point(133.54, 107.2429), new Point(133.57, 107.2573), new Point(133.6, 107.2736), new Point(133.64, 107.2914), new Point(133.67, 107.3107), new Point(133.71, 107.3313), new Point(133.76, 107.353), new Point(133.8, 107.3756), new Point(133.85, 107.3989), new Point(133.9, 107.4229), new Point(133.95, 107.4474), new Point(134, 107.4721), new Point(134.05, 107.497), new Point(134.1, 107.5218), new Point(134.15, 107.5465), new Point(134.2, 107.5709), new Point(134.25, 107.5949), new Point(134.3, 107.6182), new Point(134.35, 107.6408), new Point(134.39, 107.6626), new Point(134.44, 107.6834), new Point(134.48, 107.703), new Point(134.52, 107.7214), new Point(134.56, 107.7383), new Point(134.59, 107.7538), new Point(134.62, 107.7677), new Point(134.65, 107.7797), new Point(134.67, 107.7899), new Point(134.69, 107.798), new Point(134.7, 107.804), new Point(134.71, 107.8078), new Point(134.7, 107.805), new Point(134.69, 107.797), new Point(134.66, 107.7843), new Point(134.62, 107.7674), new Point(134.58, 107.7468), new Point(134.52, 107.7228), new Point(134.47, 107.6961), new Point(134.4, 107.6671), new Point(134.34, 107.6364), new Point(134.27, 107.6043), new Point(134.2, 107.5715), new Point(134.13, 107.5384), new Point(134.07, 107.5057), new Point(134, 107.4739), new Point(133.94, 107.4436), new Point(133.88, 107.4153), new Point(133.83, 107.3897), new Point(133.79, 107.3673), new Point(133.75, 107.3472), new Point(133.71, 107.3279), new Point(133.67, 107.3098), new Point(133.64, 107.2929), new Point(133.61, 107.2776), new Point(133.58, 107.2641), new Point(133.56, 107.2525), new Point(133.54, 107.2431), new Point(133.53, 107.2362), new Point(133.52, 107.2318)), new Array(-83.03, -82.98, -82.94, -82.92, -82.9, -82.89, -82.9, -82.91, -82.93, -82.96, -82.99, -83.03, -83.08, -83.13, -83.18, -83.24, -83.3, -83.36, -83.42, -83.49, -83.55, -83.61, -83.67, -83.73, -83.78, -83.83, -83.87, -83.91, -83.94, -83.97, -83.98, -83.99, -83.99, -83.97, -83.95, -83.92, -83.89, -83.84, -83.8, -83.75, -83.7, -83.64, -83.59, -83.53, -83.48, -83.42, -83.37, -83.33, -83.29, -83.25, -83.22, -83.19, -83.16, -83.13, -83.11, -83.09, -83.07, -83.05, -83.04, -83.03), skeletonBase, 15)); bones.push(new Bone(new Array(new Point(140.98, 168.296), new Point(141.06, 168.3018), new Point(141.13, 168.3112), new Point(141.19, 168.3238), new Point(141.24, 168.3395), new Point(141.28, 168.3581), new Point(141.32, 168.3791), new Point(141.35, 168.4025), new Point(141.37, 168.4278), new Point(141.39, 168.4548), new Point(141.4, 168.4834), new Point(141.41, 168.5132), new Point(141.41, 168.5439), new Point(141.41, 168.5753), new Point(141.4, 168.6071), new Point(141.39, 168.639), new Point(141.38, 168.6709), new Point(141.36, 168.7025), new Point(141.34, 168.7336), new Point(141.33, 168.7639), new Point(141.31, 168.7931), new Point(141.29, 168.8212), new Point(141.27, 168.8478), new Point(141.25, 168.8728), new Point(141.23, 168.896), new Point(141.21, 168.9171), new Point(141.19, 168.936), new Point(141.18, 168.9524), new Point(141.16, 168.9662), new Point(141.16, 168.9772), new Point(141.15, 168.9852), new Point(141.15, 168.9899), new Point(141.15, 168.9866), new Point(141.15, 168.977), new Point(141.14, 168.9618), new Point(141.14, 168.9415), new Point(141.13, 168.9168), new Point(141.12, 168.8881), new Point(141.11, 168.8561), new Point(141.1, 168.8213), new Point(141.09, 168.7844), new Point(141.08, 168.7459), new Point(141.07, 168.7065), new Point(141.06, 168.6668), new Point(141.05, 168.6274), new Point(141.05, 168.5892), new Point(141.04, 168.5527), new Point(141.03, 168.5187), new Point(141.02, 168.4879), new Point(141.02, 168.461), new Point(141.01, 168.4367), new Point(141, 168.4136), new Point(141, 168.3917), new Point(141, 168.3714), new Point(140.99, 168.353), new Point(140.99, 168.3367), new Point(140.98, 168.3227), new Point(140.98, 168.3114), new Point(140.98, 168.303), new Point(140.98, 168.2978)), new Array(-155.13, -155.16, -155.2, -155.24, -155.29, -155.34, -155.4, -155.47, -155.53, -155.6, -155.68, -155.75, -155.83, -155.91, -155.99, -156.07, -156.15, -156.23, -156.31, -156.38, -156.46, -156.53, -156.59, -156.66, -156.72, -156.77, -156.82, -156.86, -156.9, -156.92, -156.94, -156.96, -156.95, -156.92, -156.88, -156.82, -156.75, -156.68, -156.59, -156.49, -156.39, -156.29, -156.18, -156.08, -155.98, -155.88, -155.78, -155.69, -155.61, -155.55, -155.48, -155.42, -155.37, -155.32, -155.27, -155.23, -155.2, -155.17, -155.15, -155.13), skeletonBase, 16)); bones.push(new Bone(new Array(new Point(121.27, 177.4309), new Point(121.35, 177.4264), new Point(121.41, 177.4231), new Point(121.46, 177.4209), new Point(121.51, 177.4196), new Point(121.54, 177.4194), new Point(121.57, 177.4199), new Point(121.59, 177.4212), new Point(121.6, 177.4232), new Point(121.61, 177.4258), new Point(121.61, 177.4288), new Point(121.6, 177.4323), new Point(121.59, 177.4361), new Point(121.58, 177.4401), new Point(121.56, 177.4442), new Point(121.54, 177.4485), new Point(121.51, 177.4527), new Point(121.48, 177.457), new Point(121.46, 177.4611), new Point(121.42, 177.4651), new Point(121.39, 177.4689), new Point(121.36, 177.4724), new Point(121.33, 177.4758), new Point(121.3, 177.4789), new Point(121.27, 177.4816), new Point(121.25, 177.4841), new Point(121.22, 177.4862), new Point(121.2, 177.488), new Point(121.19, 177.4895), new Point(121.17, 177.4905), new Point(121.17, 177.4912), new Point(121.16, 177.4915), new Point(121.16, 177.4914), new Point(121.16, 177.4912), new Point(121.17, 177.4908), new Point(121.17, 177.4901), new Point(121.17, 177.4892), new Point(121.18, 177.488), new Point(121.18, 177.4865), new Point(121.19, 177.4847), new Point(121.19, 177.4824), new Point(121.2, 177.4798), new Point(121.2, 177.4769), new Point(121.21, 177.4736), new Point(121.22, 177.4701), new Point(121.22, 177.4665), new Point(121.23, 177.4628), new Point(121.23, 177.4592), new Point(121.24, 177.4557), new Point(121.24, 177.4526), new Point(121.25, 177.4496), new Point(121.25, 177.4468), new Point(121.26, 177.444), new Point(121.26, 177.4413), new Point(121.26, 177.4388), new Point(121.27, 177.4366), new Point(121.27, 177.4346), new Point(121.27, 177.4331), new Point(121.27, 177.4319), new Point(121.27, 177.4311)), new Array(-38.05, -37.84, -37.65, -37.48, -37.33, -37.21, -37.1, -37.01, -36.94, -36.88, -36.84, -36.81, -36.8, -36.79, -36.79, -36.81, -36.83, -36.85, -36.88, -36.92, -36.96, -37, -37.05, -37.09, -37.13, -37.17, -37.2, -37.23, -37.26, -37.28, -37.29, -37.29, -37.29, -37.3, -37.32, -37.35, -37.37, -37.41, -37.44, -37.48, -37.52, -37.57, -37.61, -37.65, -37.7, -37.74, -37.78, -37.81, -37.85, -37.88, -37.9, -37.92, -37.95, -37.97, -37.99, -38.01, -38.02, -38.03, -38.04, -38.05), skeletonBase, 17)); bones.push(new Bone(new Array(new Point(128, 182.6942), new Point(128.09, 182.6648), new Point(128.17, 182.6392), new Point(128.24, 182.6173), new Point(128.3, 182.5989), new Point(128.35, 182.5837), new Point(128.38, 182.5716), new Point(128.41, 182.5623), new Point(128.43, 182.5557), new Point(128.44, 182.5515), new Point(128.44, 182.5494), new Point(128.44, 182.5494), new Point(128.43, 182.5511), new Point(128.42, 182.5544), new Point(128.4, 182.559), new Point(128.37, 182.5647), new Point(128.35, 182.5714), new Point(128.32, 182.5788), new Point(128.29, 182.5868), new Point(128.25, 182.5951), new Point(128.22, 182.6037), new Point(128.18, 182.6122), new Point(128.15, 182.6207), new Point(128.12, 182.6288), new Point(128.08, 182.6365), new Point(128.05, 182.6436), new Point(128.03, 182.6499), new Point(128, 182.6554), new Point(127.98, 182.6599), new Point(127.97, 182.6631), new Point(127.96, 182.665), new Point(127.96, 182.6655), new Point(127.96, 182.6658), new Point(127.96, 182.6669), new Point(127.96, 182.6686), new Point(127.96, 182.6707), new Point(127.96, 182.6732), new Point(127.96, 182.6758), new Point(127.96, 182.6786), new Point(127.96, 182.6814), new Point(127.96, 182.684), new Point(127.97, 182.6865), new Point(127.97, 182.6887), new Point(127.97, 182.6906), new Point(127.97, 182.6922), new Point(127.98, 182.6934), new Point(127.98, 182.6944), new Point(127.98, 182.695), new Point(127.98, 182.6954), new Point(127.98, 182.6956), new Point(127.99, 182.6957), new Point(127.99, 182.6957), new Point(127.99, 182.6956), new Point(127.99, 182.6954), new Point(127.99, 182.6951), new Point(127.99, 182.6949), new Point(128, 182.6947), new Point(128, 182.6945), new Point(128, 182.6943), new Point(128, 182.6942)), new Array(-1.26, -1.05, -0.86, -0.7, -0.55, -0.43, -0.32, -0.23, -0.16, -0.1, -0.06, -0.03, -0.01, -0.01, -0.01, -0.02, -0.04, -0.07, -0.1, -0.14, -0.18, -0.22, -0.26, -0.3, -0.35, -0.38, -0.42, -0.45, -0.48, -0.49, -0.51, -0.51, -0.51, -0.52, -0.54, -0.56, -0.59, -0.62, -0.66, -0.7, -0.74, -0.78, -0.83, -0.87, -0.91, -0.95, -0.99, -1.03, -1.06, -1.09, -1.12, -1.14, -1.16, -1.19, -1.21, -1.22, -1.24, -1.25, -1.26, -1.26), skeletonBase, 18)); bones.push(new Bone(new Array(new Point(265.22, 103.3793), new Point(265.2, 103.3333), new Point(265.19, 103.2963), new Point(265.19, 103.2677), new Point(265.19, 103.2469), new Point(265.2, 103.2333), new Point(265.21, 103.2266), new Point(265.22, 103.226), new Point(265.24, 103.231), new Point(265.27, 103.2411), new Point(265.3, 103.256), new Point(265.33, 103.275), new Point(265.36, 103.2976), new Point(265.4, 103.3234), new Point(265.44, 103.352), new Point(265.48, 103.3827), new Point(265.52, 103.4153), new Point(265.56, 103.4491), new Point(265.6, 103.4838), new Point(265.64, 103.5189), new Point(265.68, 103.5539), new Point(265.72, 103.5885), new Point(265.76, 103.622), new Point(265.79, 103.6542), new Point(265.83, 103.6845), new Point(265.86, 103.7124), new Point(265.88, 103.7376), new Point(265.91, 103.7596), new Point(265.93, 103.7778), new Point(265.95, 103.7919), new Point(265.96, 103.8014), new Point(265.96, 103.8058), new Point(265.96, 103.804), new Point(265.95, 103.7985), new Point(265.92, 103.7898), new Point(265.89, 103.7781), new Point(265.86, 103.7638), new Point(265.82, 103.7471), new Point(265.78, 103.7282), new Point(265.73, 103.7075), new Point(265.69, 103.6854), new Point(265.64, 103.6622), new Point(265.6, 103.6382), new Point(265.55, 103.6138), new Point(265.51, 103.5895), new Point(265.47, 103.5656), new Point(265.44, 103.5427), new Point(265.4, 103.5213), new Point(265.38, 103.5019), new Point(265.35, 103.4848), new Point(265.33, 103.4694), new Point(265.31, 103.4546), new Point(265.29, 103.4407), new Point(265.28, 103.4277), new Point(265.26, 103.4159), new Point(265.25, 103.4054), new Point(265.24, 103.3965), new Point(265.23, 103.3892), new Point(265.23, 103.3837), new Point(265.22, 103.3804)), new Array(-102.91, -102.87, -102.84, -102.82, -102.82, -102.83, -102.86, -102.89, -102.94, -103, -103.06, -103.1, -103.16, -103.23, -103.31, -103.42, -103.53, -103.64, -103.77, -103.9, -104.03, -104.15, -104.28, -104.4, -104.51, -104.61, -104.7, -104.78, -104.84, -104.88, -104.9, -104.89, -104.86, -104.81, -104.75, -104.68, -104.6, -104.51, -104.42, -104.32, -104.22, -104.11, -104.01, -103.9, -103.8, -103.7, -103.6, -103.51, -103.43, -103.36, -103.29, -103.23, -103.17, -103.11, -103.06, -103.02, -102.98, -102.95, -102.93, -102.91), skeletonBase, 19)); bones.push(new Bone(new Array(new Point(251.48, 163.345), new Point(251.51, 163.3088), new Point(251.52, 163.2785), new Point(251.53, 163.2533), new Point(251.54, 163.2328), new Point(251.53, 163.2167), new Point(251.52, 163.2044), new Point(251.5, 163.1954), new Point(251.47, 163.1892), new Point(251.43, 163.1854), new Point(251.39, 163.1837), new Point(251.38, 163.194), new Point(251.36, 163.2032), new Point(251.32, 163.2112), new Point(251.27, 163.2182), new Point(251.2, 163.2242), new Point(251.13, 163.2291), new Point(251.05, 163.233), new Point(250.96, 163.2361), new Point(250.87, 163.2383), new Point(250.77, 163.2398), new Point(250.68, 163.2408), new Point(250.58, 163.2413), new Point(250.49, 163.2416), new Point(250.41, 163.2418), new Point(250.34, 163.2422), new Point(250.27, 163.2429), new Point(250.22, 163.2443), new Point(250.17, 163.2464), new Point(250.15, 163.2496), new Point(250.14, 163.2541), new Point(250.16, 163.2599), new Point(250.19, 163.2674), new Point(250.22, 163.2749), new Point(250.26, 163.2825), new Point(250.3, 163.2899), new Point(250.35, 163.2971), new Point(250.4, 163.304), new Point(250.46, 163.3102), new Point(250.52, 163.3159), new Point(250.58, 163.3209), new Point(250.64, 163.3252), new Point(250.71, 163.3288), new Point(250.77, 163.3316), new Point(250.84, 163.3339), new Point(250.9, 163.3356), new Point(250.97, 163.337), new Point(251.03, 163.3382), new Point(251.09, 163.3392), new Point(251.14, 163.3404), new Point(251.19, 163.3416), new Point(251.23, 163.3425), new Point(251.28, 163.3433), new Point(251.32, 163.3438), new Point(251.36, 163.3443), new Point(251.39, 163.3446), new Point(251.42, 163.3448), new Point(251.45, 163.3448), new Point(251.46, 163.3449), new Point(251.47, 163.3449)), new Array(-79.83, -79.65, -79.53, -79.47, -79.46, -79.46, -79.48, -79.5, -79.51, -79.48, -79.4, -79.23, -79.04, -78.84, -78.63, -78.42, -78.2, -77.98, -77.76, -77.54, -77.32, -77.11, -76.91, -76.72, -76.53, -76.36, -76.21, -76.07, -75.95, -75.85, -75.78, -75.73, -75.73, -75.77, -75.85, -75.97, -76.11, -76.29, -76.49, -76.7, -76.93, -77.17, -77.42, -77.66, -77.9, -78.14, -78.36, -78.56, -78.74, -78.9, -79.04, -79.17, -79.29, -79.41, -79.51, -79.6, -79.68, -79.74, -79.79, -79.82), skeletonBase, 20)); bones.push(new Bone(new Array(new Point(255.01, 183.0307), new Point(255.1, 182.9832), new Point(255.16, 182.9456), new Point(255.19, 182.9167), new Point(255.2, 182.8951), new Point(255.19, 182.8795), new Point(255.17, 182.8685), new Point(255.14, 182.8607), new Point(255.11, 182.8546), new Point(255.09, 182.8491), new Point(255.07, 182.8426), new Point(255.12, 182.8414), new Point(255.16, 182.8381), new Point(255.19, 182.8328), new Point(255.21, 182.8257), new Point(255.22, 182.8168), new Point(255.22, 182.8062), new Point(255.21, 182.7943), new Point(255.2, 182.7812), new Point(255.18, 182.7671), new Point(255.16, 182.7523), new Point(255.14, 182.737), new Point(255.11, 182.7216), new Point(255.09, 182.7064), new Point(255.07, 182.692), new Point(255.05, 182.6784), new Point(255.04, 182.6664), new Point(255.03, 182.6563), new Point(255.03, 182.6484), new Point(255.04, 182.6432), new Point(255.06, 182.6412), new Point(255.09, 182.6427), new Point(255.12, 182.6498), new Point(255.14, 182.661), new Point(255.15, 182.6755), new Point(255.15, 182.6929), new Point(255.15, 182.7126), new Point(255.14, 182.7341), new Point(255.13, 182.7566), new Point(255.12, 182.7798), new Point(255.1, 182.8031), new Point(255.08, 182.8261), new Point(255.06, 182.8484), new Point(255.05, 182.8698), new Point(255.03, 182.8898), new Point(255.02, 182.9084), new Point(0xFF, 182.9254), new Point(0xFF, 182.9408), new Point(254.99, 182.9543), new Point(254.99, 182.966), new Point(254.99, 182.9765), new Point(254.99, 182.9861), new Point(0xFF, 182.995), new Point(0xFF, 183.0029), new Point(0xFF, 183.01), new Point(0xFF, 183.0161), new Point(255.01, 183.0212), new Point(255.01, 183.0253), new Point(255.01, 183.0282), new Point(255.01, 183.0301)), new Array(-10.05, -10.11, -10.17, -10.21, -10.25, -10.29, -10.33, -10.38, -10.44, -10.52, -10.61, -10.65, -10.71, -10.79, -10.88, -10.97, -11.08, -11.19, -11.31, -11.43, -11.55, -11.67, -11.79, -11.89, -11.99, -12.08, -12.16, -12.23, -12.27, -12.3, -12.31, -12.3, -12.26, -12.21, -12.14, -12.07, -11.98, -11.88, -11.77, -11.66, -11.54, -11.42, -11.3, -11.18, -11.06, -10.95, -10.84, -10.74, -10.64, -10.56, -10.48, -10.41, -10.34, -10.28, -10.22, -10.17, -10.13, -10.09, -10.07, -10.05), skeletonBase, 21)); bones.push(new Bone(new Array(new Point(261.9, 184.2519), new Point(261.99, 184.2123), new Point(262.05, 184.1812), new Point(262.08, 184.1577), new Point(262.09, 184.1409), new Point(262.08, 184.13), new Point(262.05, 184.1242), new Point(262.03, 184.1223), new Point(262, 184.1234), new Point(261.97, 184.1268), new Point(261.95, 184.1315), new Point(262, 184.1354), new Point(262.04, 184.1393), new Point(262.07, 184.143), new Point(262.09, 184.1464), new Point(262.09, 184.1493), new Point(262.09, 184.1516), new Point(262.08, 184.1532), new Point(262.06, 184.1542), new Point(262.04, 184.1545), new Point(262.02, 184.1541), new Point(261.99, 184.153), new Point(261.97, 184.1513), new Point(261.94, 184.1491), new Point(261.92, 184.1467), new Point(261.9, 184.1439), new Point(261.88, 184.1413), new Point(261.87, 184.1387), new Point(261.87, 184.1364), new Point(261.88, 184.1347), new Point(261.9, 184.1336), new Point(261.93, 184.1334), new Point(261.96, 184.1364), new Point(261.98, 184.1414), new Point(261.99, 184.1481), new Point(262, 184.1562), new Point(262, 184.1652), new Point(261.99, 184.1749), new Point(261.99, 184.1847), new Point(261.97, 184.1943), new Point(261.96, 184.2037), new Point(261.94, 184.2123), new Point(261.93, 184.2202), new Point(261.91, 184.227), new Point(261.9, 184.2329), new Point(261.89, 184.2377), new Point(261.88, 184.2416), new Point(261.87, 184.2447), new Point(261.87, 184.247), new Point(261.87, 184.2487), new Point(261.87, 184.25), new Point(261.88, 184.251), new Point(261.88, 184.2517), new Point(261.89, 184.2521), new Point(261.89, 184.2523), new Point(261.89, 184.2523), new Point(261.9, 184.2523), new Point(261.9, 184.2521), new Point(261.9, 184.252), new Point(261.9, 184.2519)), new Array(-2.13, -2.2, -2.24, -2.26, -2.27, -2.27, -2.27, -2.26, -2.27, -2.28, -2.31, -2.28, -2.27, -2.27, -2.28, -2.3, -2.33, -2.36, -2.4, -2.44, -2.49, -2.54, -2.58, -2.63, -2.66, -2.7, -2.73, -2.75, -2.76, -2.76, -2.74, -2.72, -2.69, -2.66, -2.64, -2.61, -2.58, -2.56, -2.53, -2.5, -2.48, -2.45, -2.43, -2.4, -2.38, -2.35, -2.33, -2.31, -2.29, -2.27, -2.25, -2.23, -2.21, -2.19, -2.18, -2.17, -2.16, -2.15, -2.14, -2.14), skeletonBase, 22)); bones.push(new Bone(new Array(new Point(294.02, 102.773), new Point(293.98, 102.7283), new Point(293.94, 102.689), new Point(293.92, 102.6547), new Point(293.9, 102.6249), new Point(293.89, 102.5994), new Point(293.89, 102.578), new Point(293.89, 102.5602), new Point(293.9, 102.5457), new Point(293.91, 102.5342), new Point(293.93, 102.5258), new Point(293.96, 102.5198), new Point(293.98, 102.5161), new Point(294.02, 102.5144), new Point(294.05, 102.5148), new Point(294.08, 102.5166), new Point(294.12, 102.5198), new Point(294.16, 102.5242), new Point(294.2, 102.5296), new Point(294.24, 102.5359), new Point(294.28, 102.5426), new Point(294.32, 102.5498), new Point(294.35, 102.5571), new Point(294.39, 102.5644), new Point(294.42, 102.5716), new Point(294.45, 102.5782), new Point(294.48, 102.5842), new Point(294.5, 102.5895), new Point(294.52, 102.5937), new Point(294.54, 102.5966), new Point(294.55, 102.5982), new Point(294.56, 102.5981), new Point(294.55, 102.5992), new Point(294.54, 102.6024), new Point(294.52, 102.6074), new Point(294.5, 102.6139), new Point(294.47, 102.6217), new Point(294.44, 102.6308), new Point(294.41, 102.6403), new Point(294.37, 102.6503), new Point(294.34, 102.6609), new Point(294.3, 102.6714), new Point(294.27, 102.6818), new Point(294.24, 102.692), new Point(294.21, 102.7017), new Point(294.18, 102.7107), new Point(294.15, 102.7193), new Point(294.13, 102.7269), new Point(294.11, 102.7337), new Point(294.1, 102.7395), new Point(294.08, 102.7447), new Point(294.07, 102.7495), new Point(294.06, 102.754), new Point(294.05, 102.7581), new Point(294.04, 102.7619), new Point(294.04, 102.7651), new Point(294.03, 102.7679), new Point(294.02, 102.77), new Point(294.02, 102.7716), new Point(294.02, 102.7727)), new Array(-101.83, -101.77, -101.72, -101.69, -101.67, -101.66, -101.67, -101.68, -101.71, -101.75, -101.8, -101.81, -101.83, -101.87, -101.93, -101.99, -102.07, -102.15, -102.24, -102.33, -102.42, -102.51, -102.6, -102.69, -102.77, -102.85, -102.91, -102.97, -103.01, -103.04, -103.05, -103.04, -103.01, -102.98, -102.93, -102.89, -102.84, -102.78, -102.73, -102.67, -102.61, -102.55, -102.49, -102.42, -102.36, -102.31, -102.25, -102.2, -102.15, -102.11, -102.06, -102.03, -101.99, -101.95, -101.92, -101.9, -101.87, -101.86, -101.84, -101.83), skeletonBase, 23)); bones.push(new Bone(new Array(new Point(281.41, 162.9864), new Point(281.43, 162.9548), new Point(281.44, 162.9258), new Point(281.45, 162.8987), new Point(281.46, 162.8734), new Point(281.46, 162.8496), new Point(281.45, 162.8273), new Point(281.43, 162.8061), new Point(281.41, 162.7856), new Point(281.39, 162.7657), new Point(281.36, 162.7463), new Point(281.37, 162.7383), new Point(281.37, 162.7289), new Point(281.36, 162.7182), new Point(281.33, 162.7066), new Point(281.3, 162.694), new Point(281.26, 162.6805), new Point(281.21, 162.6665), new Point(281.16, 162.6522), new Point(281.11, 162.6376), new Point(281.05, 162.623), new Point(280.99, 162.6086), new Point(280.93, 162.5945), new Point(280.87, 162.5813), new Point(280.82, 162.5689), new Point(280.77, 162.5577), new Point(280.73, 162.5481), new Point(280.7, 162.5402), new Point(280.67, 162.5343), new Point(280.66, 162.5307), new Point(280.66, 162.5297), new Point(280.67, 162.5315), new Point(280.7, 162.5398), new Point(280.73, 162.5516), new Point(280.75, 162.5666), new Point(280.78, 162.5841), new Point(280.8, 162.604), new Point(280.83, 162.6258), new Point(280.86, 162.6488), new Point(280.88, 162.6728), new Point(280.91, 162.6975), new Point(280.94, 162.7223), new Point(280.97, 162.7471), new Point(281, 162.7713), new Point(281.03, 162.7948), new Point(281.07, 162.8172), new Point(281.1, 162.8384), new Point(281.13, 162.858), new Point(281.17, 162.8758), new Point(281.2, 162.8916), new Point(281.23, 162.906), new Point(281.26, 162.9195), new Point(281.28, 162.9322), new Point(281.31, 162.9438), new Point(281.33, 162.9544), new Point(281.35, 162.9635), new Point(281.37, 162.9715), new Point(281.39, 162.9777), new Point(281.4, 162.9824), new Point(281.4, 162.9854)), new Array(-79.64, -79.58, -79.54, -79.51, -79.5, -79.5, -79.51, -79.54, -79.57, -79.61, -79.66, -79.56, -79.46, -79.36, -79.25, -79.15, -79.04, -78.93, -78.83, -78.73, -78.62, -78.52, -78.43, -78.34, -78.25, -78.16, -78.09, -78.02, -77.95, -77.89, -77.84, -77.8, -77.79, -77.8, -77.83, -77.87, -77.94, -78.01, -78.1, -78.2, -78.31, -78.42, -78.53, -78.65, -78.76, -78.87, -78.97, -79.06, -79.15, -79.22, -79.28, -79.34, -79.4, -79.45, -79.49, -79.53, -79.57, -79.6, -79.62, -79.63), skeletonBase, 24)); bones.push(new Bone(new Array(new Point(285, 182.6601), new Point(285.05, 182.6248), new Point(285.08, 182.5931), new Point(285.09, 182.5644), new Point(285.1, 182.5383), new Point(285.1, 182.5146), new Point(285.09, 182.4931), new Point(285.07, 182.4734), new Point(285.04, 182.4551), new Point(284.99, 182.4379), new Point(284.94, 182.4218), new Point(284.99, 182.4075), new Point(285.03, 182.3917), new Point(285.05, 182.3742), new Point(285.06, 182.3559), new Point(285.07, 182.3363), new Point(285.06, 182.3158), new Point(285.05, 182.2947), new Point(285.04, 182.2732), new Point(285.02, 182.2517), new Point(284.99, 182.23), new Point(284.97, 182.2087), new Point(284.94, 182.188), new Point(284.91, 182.1682), new Point(284.89, 182.1497), new Point(284.87, 182.1326), new Point(284.86, 182.1173), new Point(284.85, 182.1043), new Point(284.85, 182.0937), new Point(284.85, 182.0859), new Point(284.87, 182.0812), new Point(284.9, 182.08), new Point(284.93, 182.0872), new Point(284.96, 182.0997), new Point(284.97, 182.1168), new Point(284.98, 182.1378), new Point(284.98, 182.1624), new Point(284.98, 182.1898), new Point(284.98, 182.2192), new Point(284.97, 182.2503), new Point(284.96, 182.2825), new Point(284.95, 182.3152), new Point(284.95, 182.3479), new Point(284.94, 182.38), new Point(284.93, 182.4111), new Point(284.93, 182.4409), new Point(284.93, 182.469), new Point(284.93, 182.4948), new Point(284.93, 182.5181), new Point(284.94, 182.5385), new Point(284.95, 182.5569), new Point(284.95, 182.5743), new Point(284.96, 182.5906), new Point(284.97, 182.6055), new Point(284.98, 182.619), new Point(284.99, 182.6308), new Point(284.99, 182.641), new Point(285, 182.649), new Point(285, 182.655), new Point(285, 182.6588)), new Array(-15.51, -15.76, -15.94, -16.07, -16.16, -16.23, -16.29, -16.35, -16.44, -16.55, -16.72, -16.77, -16.83, -16.9, -16.98, -17.07, -17.16, -17.26, -17.36, -17.45, -17.55, -17.64, -17.73, -17.81, -17.89, -17.95, -18.01, -18.05, -18.07, -18.08, -18.08, -18.05, -18.01, -17.95, -17.88, -17.79, -17.69, -17.57, -17.45, -17.33, -17.2, -17.06, -16.92, -16.79, -16.65, -16.52, -16.4, -16.29, -16.18, -16.09, -16, -15.92, -15.84, -15.77, -15.71, -15.65, -15.6, -15.56, -15.53, -15.51), skeletonBase, 25)); bones.push(new Bone(new Array(new Point(291.75, 184.5316), new Point(291.78, 184.5257), new Point(291.81, 184.5155), new Point(291.82, 184.5021), new Point(291.83, 184.4868), new Point(291.82, 184.471), new Point(291.81, 184.4565), new Point(291.78, 184.4443), new Point(291.75, 184.4357), new Point(291.7, 184.4324), new Point(291.65, 184.4358), new Point(291.69, 184.4274), new Point(291.73, 184.4187), new Point(291.75, 184.4096), new Point(291.76, 184.4006), new Point(291.76, 184.3912), new Point(291.75, 184.3814), new Point(291.74, 184.3715), new Point(291.72, 184.3614), new Point(291.69, 184.3512), new Point(291.67, 184.3407), new Point(291.64, 184.3303), new Point(291.61, 184.32), new Point(291.58, 184.3098), new Point(291.55, 184.2999), new Point(291.53, 184.2903), new Point(291.51, 184.2813), new Point(291.5, 184.273), new Point(291.5, 184.2655), new Point(291.51, 184.2588), new Point(291.53, 184.2533), new Point(291.56, 184.2489), new Point(291.59, 184.2515), new Point(291.61, 184.2571), new Point(291.63, 184.2655), new Point(291.65, 184.2762), new Point(291.65, 184.289), new Point(291.66, 184.3035), new Point(291.66, 184.3189), new Point(291.65, 184.3351), new Point(291.65, 184.3519), new Point(291.65, 184.3688), new Point(291.64, 184.3855), new Point(291.64, 184.4017), new Point(291.64, 184.4173), new Point(291.64, 184.4319), new Point(291.64, 184.4455), new Point(291.65, 184.4578), new Point(291.65, 184.4687), new Point(291.66, 184.478), new Point(291.68, 184.4864), new Point(291.69, 184.4941), new Point(291.7, 184.5013), new Point(291.71, 184.5079), new Point(291.72, 184.5138), new Point(291.73, 184.5189), new Point(291.73, 184.5234), new Point(291.74, 184.5268), new Point(291.75, 184.5293), new Point(291.75, 184.531)), new Array(-1.74, -2, -2.18, -2.32, -2.42, -2.5, -2.57, -2.65, -2.75, -2.89, -3.07, -3.14, -3.22, -3.32, -3.42, -3.53, -3.64, -3.76, -3.88, -4, -4.11, -4.23, -4.33, -4.43, -4.53, -4.61, -4.67, -4.73, -4.76, -4.78, -4.78, -4.76, -4.71, -4.65, -4.56, -4.46, -4.34, -4.21, -4.07, -3.91, -3.76, -3.59, -3.43, -3.27, -3.11, -2.95, -2.81, -2.67, -2.54, -2.43, -2.33, -2.23, -2.14, -2.06, -1.98, -1.91, -1.85, -1.81, -1.77, -1.75), skeletonBase, 26)); bones.push(new Bone(new Array(new Point(283.12, 112.8935), new Point(283.15, 112.7475), new Point(283.17, 112.5894), new Point(283.2, 112.4201), new Point(283.22, 112.2406), new Point(283.24, 112.0522), new Point(283.26, 111.8561), new Point(283.28, 111.6533), new Point(283.29, 111.4446), new Point(283.31, 111.2315), new Point(283.32, 111.015), new Point(283.33, 110.7962), new Point(283.34, 110.5761), new Point(283.35, 110.3557), new Point(283.36, 110.1365), new Point(283.36, 109.9193), new Point(283.37, 109.7052), new Point(283.37, 109.4954), new Point(283.37, 109.2909), new Point(283.37, 109.093), new Point(283.37, 108.9026), new Point(283.37, 108.7208), new Point(283.37, 108.5488), new Point(283.37, 108.3877), new Point(283.37, 108.2386), new Point(283.36, 108.1024), new Point(283.36, 107.9805), new Point(283.36, 107.8738), new Point(283.36, 107.7835), new Point(283.36, 107.7106), new Point(283.36, 107.6563), new Point(283.36, 107.6216), new Point(283.36, 107.6484), new Point(283.35, 107.7254), new Point(283.35, 107.8476), new Point(283.35, 108.0099), new Point(283.34, 108.2075), new Point(283.34, 108.4353), new Point(283.33, 108.6881), new Point(283.32, 108.961), new Point(283.31, 109.2492), new Point(283.3, 109.5473), new Point(283.29, 109.8506), new Point(283.28, 110.154), new Point(283.26, 110.4523), new Point(283.25, 110.7407), new Point(283.23, 111.0142), new Point(283.22, 111.2676), new Point(283.21, 111.496), new Point(283.2, 111.6945), new Point(283.19, 111.8726), new Point(283.18, 112.0423), new Point(283.17, 112.2018), new Point(283.16, 112.3492), new Point(283.15, 112.4829), new Point(283.14, 112.6008), new Point(283.13, 112.7014), new Point(283.13, 112.7828), new Point(283.12, 112.843), new Point(283.12, 112.8806)), new Array(-28.22, -27.94, -27.68, -27.43, -27.19, -26.97, -26.75, -26.55, -26.36, -26.18, -26.02, -25.86, -25.71, -25.58, -25.45, -25.33, -25.22, -25.12, -25.02, -24.94, -24.86, -24.79, -24.73, -24.67, -24.62, -24.57, -24.53, -24.49, -24.46, -24.43, -24.41, -24.39, -24.41, -24.47, -24.56, -24.67, -24.82, -24.98, -25.17, -25.36, -25.57, -25.79, -26.01, -26.23, -26.45, -26.66, -26.86, -27.04, -27.21, -27.35, -27.48, -27.6, -27.72, -27.83, -27.92, -28.01, -28.08, -28.14, -28.18, -28.21), skeletonBase, 27)); bones.push(new Bone(new Array(new Point(24.64, 150.2883), new Point(24.39, 149.6984), new Point(24.21, 149.1936), new Point(24.08, 148.7709), new Point(24, 148.4266), new Point(23.96, 148.1574), new Point(23.97, 147.9593), new Point(24.02, 147.8287), new Point(24.1, 147.7614), new Point(24.21, 147.7533), new Point(24.36, 147.8006), new Point(24.52, 147.8989), new Point(24.71, 148.0443), new Point(24.92, 148.2322), new Point(25.15, 148.4589), new Point(25.39, 148.72), new Point(25.64, 149.0113), new Point(25.9, 149.3289), new Point(26.16, 149.6686), new Point(26.43, 150.0265), new Point(26.7, 150.3984), new Point(26.96, 150.7805), new Point(27.22, 151.1689), new Point(27.47, 151.5596), new Point(27.71, 151.9488), new Point(27.94, 152.3326), new Point(28.15, 152.7072), new Point(28.34, 153.0688), new Point(28.53, 153.4977), new Point(28.73, 154.0441), new Point(28.94, 154.6792), new Point(29.15, 155.374), new Point(29.34, 156.0811), new Point(29.52, 156.7926), new Point(29.69, 157.4873), new Point(29.85, 158.1445), new Point(30.01, 158.7441), new Point(30.14, 159.2672), new Point(30.25, 159.696), new Point(30.32, 160.0141), new Point(30.35, 160.2066), new Point(30.3, 160.2595), new Point(30.25, 160.2716), new Point(30.19, 160.2384), new Point(30.22, 160.3248), new Point(30.33, 160.4934), new Point(30.4, 160.5708), new Point(30.24, 160.3056), new Point(29.64, 159.4378), new Point(28.91, 158.3565), new Point(28.18, 157.2266), new Point(27.56, 156.2204), new Point(27.03, 155.3313), new Point(26.53, 154.4252), new Point(26.07, 153.532), new Point(25.65, 152.6835), new Point(25.3, 151.9125), new Point(25.02, 151.253), new Point(24.81, 150.7395), new Point(24.68, 150.4066)), new Array(-168.94, -170.08, -171.13, -172.1, -172.99, -173.8, -174.53, -175.18, -175.77, -176.28, -176.71, -177.09, -177.39, -177.63, -177.81, -177.93, -177.99, -177.99, -177.94, -177.84, -177.69, -177.49, -177.24, -176.94, -176.61, -176.23, -175.82, -175.36, -174.73, -173.82, -172.68, -171.34, -169.82, -168.16, -166.4, -164.58, -162.75, -160.95, -159.23, -157.63, -156.2, -154.97, -152.81, -150.8, -149.89, -149.17, -148.77, -148.96, -150.16, -151.74, -153.48, -155.18, -156.92, -158.86, -160.89, -162.9, -164.79, -166.44, -167.76, -168.63), skeletonBase, 28)); bones.push(new Bone(new Array(new Point(55.57, 137.5501), new Point(55.58, 137.5808), new Point(55.62, 137.6605), new Point(55.68, 137.786), new Point(55.78, 137.9537), new Point(55.9, 138.1605), new Point(56.05, 138.4025), new Point(56.21, 138.6765), new Point(56.4, 138.9788), new Point(56.61, 139.3059), new Point(56.83, 139.6544), new Point(57.07, 140.0207), new Point(57.33, 140.4014), new Point(57.59, 140.7929), new Point(57.86, 141.192), new Point(58.14, 141.5953), new Point(58.42, 141.9994), new Point(58.7, 142.4011), new Point(58.99, 142.7973), new Point(59.27, 143.1847), new Point(59.54, 143.5602), new Point(59.81, 143.9208), new Point(60.07, 144.2635), new Point(60.31, 144.5854), new Point(60.54, 144.8836), new Point(60.75, 145.1551), new Point(60.93, 145.397), new Point(61.1, 145.6066), new Point(61.23, 145.7809), new Point(61.34, 145.9171), new Point(61.42, 146.0123), new Point(61.46, 146.0636), new Point(61.43, 146.0267), new Point(61.35, 145.9197), new Point(61.21, 145.748), new Point(61.04, 145.5172), new Point(60.82, 145.2324), new Point(60.57, 144.899), new Point(60.29, 144.5224), new Point(59.99, 144.1078), new Point(59.66, 143.6608), new Point(59.32, 143.1871), new Point(59, 142.7294), new Point(58.68, 142.2689), new Point(58.32, 141.7588), new Point(57.97, 141.2471), new Point(57.64, 140.768), new Point(57.34, 140.3249), new Point(57.08, 139.9269), new Point(56.85, 139.5832), new Point(56.65, 139.2751), new Point(56.46, 138.9798), new Point(56.28, 138.7032), new Point(56.13, 138.4507), new Point(55.98, 138.2248), new Point(55.86, 138.0277), new Point(55.76, 137.8615), new Point(55.68, 137.7285), new Point(55.62, 137.6308), new Point(55.59, 137.5707)), new Array(-152.05, -153.2, -154.29, -155.3, -156.26, -157.15, -157.98, -158.75, -159.47, -160.12, -160.72, -161.27, -161.77, -162.21, -162.6, -162.95, -163.25, -163.5, -163.71, -163.87, -164, -164.08, -164.13, -164.13, -164.1, -164.04, -163.94, -163.81, -163.51, -162.93, -162.12, -161.12, -159.94, -158.62, -157.2, -155.72, -154.23, -152.77, -151.39, -150.13, -149.03, -148.13, -148.1, -148.06, -146.65, -144.76, -143.05, -142.26, -143.08, -144.57, -146.19, -147.4, -148.2, -148.98, -149.7, -150.35, -150.92, -151.39, -151.75, -151.97), skeletonBase, 29)); } } }//package dinowaurs.SkeletalAnim
Section 89
//stego_walk_SK (dinowaurs.SkeletalAnim.stego_walk_SK) package dinowaurs.SkeletalAnim { import flash.display.*; import flash.geom.*; import dinowaurs.*; public class stego_walk_SK extends SkeletalAnimation { public function stego_walk_SK(_arg1:Sprite){ super(_arg1); bones.push(new Bone(new Array(new Point(145.55, 79.9648), new Point(145.53, 79.4062), new Point(145.49, 78.8073), new Point(145.42, 78.1591), new Point(145.34, 77.4526), new Point(145.25, 76.679), new Point(145.15, 75.8292), new Point(145.06, 74.8945), new Point(144.98, 73.8657), new Point(144.92, 72.734), new Point(144.94, 69.9163), new Point(144.98, 66.9174), new Point(145.04, 66.5875), new Point(145.12, 66.5404), new Point(145.19, 68.3491), new Point(145.27, 70.6811), new Point(145.35, 73.2442), new Point(145.42, 75.7462), new Point(145.49, 77.8951), new Point(145.53, 79.3987)), new Array(11.9, 12.97, 13.75, 14.29, 14.64, 14.83, 14.92, 14.94, 14.48, 13.76, 12.85, 11.82, 10.73, 9.64, 8.63, 7.76, 7.09, 6.7, 8.05, 10.56), skeletonBase, 0)); bones.push(new Bone(new Array(new Point(210.48, 66.2736), new Point(210.2, 64.5131), new Point(209.95, 63.034), new Point(209.73, 61.7763), new Point(209.54, 60.6808), new Point(209.4, 59.6894), new Point(209.28, 58.7444), new Point(209.18, 57.7886), new Point(209.24, 57.2724), new Point(209.38, 56.945), new Point(209.63, 55.1509), new Point(209.93, 53.3218), new Point(210.24, 54.2334), new Point(210.54, 55.424), new Point(210.8, 58.3899), new Point(211.02, 61.7212), new Point(211.2, 65.0481), new Point(211.33, 68.0008), new Point(211.19, 68.6001), new Point(210.77, 67.2401)), new Array(-16.81, -15.21, -13.64, -12.14, -10.76, -9.53, -8.49, -7.69, -7.62, -8.14, -9.2, -10.67, -12.41, -14.3, -16.21, -18.01, -19.57, -20.77, -20.07, -18), skeletonBase, 1)); bones.push(new Bone(new Array(new Point(259.63, 81.1198), new Point(259.74, 77.9813), new Point(259.84, 75.141), new Point(259.92, 72.5761), new Point(259.98, 70.265), new Point(260.03, 68.188), new Point(260.05, 66.3255), new Point(260.06, 64.6579), new Point(260.12, 64.0761), new Point(260.2, 64.2105), new Point(260.31, 63.3615), new Point(260.38, 62.8289), new Point(260.38, 65.271), new Point(260.29, 68.1089), new Point(260.09, 72.7241), new Point(259.84, 77.5955), new Point(259.57, 82.2467), new Point(259.34, 86.2052), new Point(259.42, 86.2176), new Point(259.6, 83.104)), new Array(-42.73, -40.57, -37.98, -35.15, -32.26, -29.48, -26.99, -24.99, -24.09, -24.3, -25.59, -27.69, -30.36, -33.4, -36.59, -39.72, -42.56, -44.91, -45.14, -43.7), skeletonBase, 2)); bones.push(new Bone(new Array(new Point(300.99, 118.8696), new Point(302.65, 113.9651), new Point(304.48, 108.934), new Point(306.34, 103.8778), new Point(308.07, 98.9243), new Point(309.57, 94.2283), new Point(310.78, 89.9637), new Point(311.66, 86.3157), new Point(312.1, 84.7949), new Point(312.11, 85.0777), new Point(311.73, 85.4397), new Point(310.9, 86.8873), new Point(309.64, 91.8328), new Point(307.95, 97.4525), new Point(305.91, 104.8964), new Point(303.67, 112.4361), new Point(301.45, 119.4204), new Point(299.49, 125.235), new Point(299.28, 125.548), new Point(300.35, 121.5095)), new Array(-27.83, -25.18, -22, -18.5, -14.87, -11.34, -8.09, -5.35, -3.77, -3.38, -4.03, -5.33, -7.17, -9.41, -11.93, -14.59, -17.27, -19.84, -22.98, -26.29), skeletonBase, 3)); bones.push(new Bone(new Array(new Point(320.44, 129.1399), new Point(322.56, 123.3257), new Point(324.88, 117.1759), new Point(327.2, 110.8573), new Point(329.33, 104.5711), new Point(331.15, 98.5528), new Point(332.56, 93.0613), new Point(333.56, 88.3681), new Point(334.05, 86.2424), new Point(334.07, 86.3764), new Point(333.67, 86.9848), new Point(332.81, 88.9315), new Point(331.47, 94.5781), new Point(329.66, 101.0493), new Point(327.43, 109.4426), new Point(324.96, 117.9773), new Point(322.45, 125.9513), new Point(320.18, 132.7011), new Point(319.53, 134.1375), new Point(320.07, 131.2546)), new Array(-16.85, -20.97, -22.86, -19.04, -14.58, -9.86, -5.26, -1.15, 1.64, 2.91, 2.92, 2.25, 1.02, -0.64, -2.63, -4.82, -7.09, -9.32, -12.22, -15.37), skeletonBase, 4)); bones.push(new Bone(new Array(new Point(342.46, 135.807), new Point(344.03, 131.5567), new Point(346.08, 126.1116), new Point(348.94, 118.361), new Point(351.59, 110.362), new Point(353.81, 102.4929), new Point(355.47, 95.17), new Point(356.56, 88.8292), new Point(357.04, 85.5834), new Point(357.05, 85.209), new Point(356.64, 85.8134), new Point(355.79, 88.0281), new Point(354.47, 94.167), new Point(352.66, 101.3072), new Point(350.41, 110.498), new Point(347.88, 119.9094), new Point(345.28, 128.79), new Point(342.88, 136.4275), new Point(342.01, 139.0041), new Point(342.25, 137.3506)), new Array(-45.19, -54.48, -58.46, -54.51, -49.09, -41.77, -30.75, -18.06, -7.49, -2.16, -2.44, -3.94, -6.43, -9.72, -13.59, -17.84, -22.26, -26.64, -33.33, -41.32), skeletonBase, 5)); bones.push(new Bone(new Array(new Point(144.55, 80.0819), new Point(144.54, 79.5417), new Point(144.5, 78.9563), new Point(144.43, 78.3174), new Point(144.35, 77.6169), new Point(144.26, 76.8467), new Point(144.17, 75.9984), new Point(144.08, 75.0639), new Point(144, 74.0273), new Point(143.93, 72.8832), new Point(143.94, 70.0498), new Point(143.98, 67.033), new Point(144.05, 66.6841), new Point(144.12, 66.6181), new Point(144.19, 68.4092), new Point(144.27, 70.7259), new Point(144.35, 73.2774), new Point(144.42, 75.7726), new Point(144.49, 77.9451), new Point(144.53, 79.4923)), new Array(-137.99, -137.25, -137.01, -137.19, -137.73, -138.55, -139.56, -140.7, -142.34, -144.23, -146.27, -148.37, -150.92, -153.66, -155.46, -154.49, -152.3, -149.43, -145.01, -140.23), skeletonBase, 6)); bones.push(new Bone(new Array(new Point(121.92, 100.4599), new Point(122.17, 100.2105), new Point(122.22, 99.7179), new Point(122.08, 99.0059), new Point(121.81, 98.0943), new Point(121.43, 97.0016), new Point(120.98, 95.7464), new Point(120.5, 94.3477), new Point(119.88, 92.629), new Point(119.22, 90.6795), new Point(118.61, 86.9541), new Point(118.05, 82.9998), new Point(117.43, 81.4784), new Point(116.82, 80.1227), new Point(116.48, 81.0502), new Point(116.78, 83.8364), new Point(117.38, 87.4274), new Point(118.2, 91.2541), new Point(119.53, 95.4009), new Point(121.12, 98.9693)), new Array(-128.98, -128.41, -128.49, -129.12, -130.22, -131.69, -133.44, -135.38, -137.88, -140.66, -143.61, -146.63, -151.02, -156.22, -159.25, -156.77, -152.05, -146.22, -138.96, -132.05), skeletonBase, 7)); bones.push(new Bone(new Array(new Point(102.59, 124.3589), new Point(103.07, 124.2996), new Point(103.08, 123.7807), new Point(102.69, 122.8555), new Point(101.96, 121.5681), new Point(100.98, 119.9585), new Point(99.84, 118.0675), new Point(98.62, 115.9397), new Point(97.08, 113.2481), new Point(95.44, 110.1678), new Point(93.86, 105.1912), new Point(92.38, 99.9112), new Point(90.53, 96.3723), new Point(88.69, 92.5183), new Point(87.73, 91.9418), new Point(88.53, 95.9635), new Point(90.22, 101.8351), new Point(92.65, 108.3489), new Point(96.35, 115.5845), new Point(100.53, 121.7956)), new Array(-136.94, -134.97, -133.47, -134.17, -135.4, -137.04, -138.93, -140.93, -143.39, -146.08, -148.91, -151.79, -156.07, -161.18, -164.18, -162.05, -157.93, -152.8, -146.22, -139.82), skeletonBase, 8)); bones.push(new Bone(new Array(new Point(85.23, 140.5816), new Point(86.28, 141.1093), new Point(86.74, 141.0231), new Point(86.13, 139.8992), new Point(85.04, 138.2505), new Point(83.6, 136.151), new Point(81.93, 133.6775), new Point(80.18, 130.9148), new Point(78.01, 127.4186), new Point(75.73, 123.427), new Point(73.52, 117.4597), new Point(71.44, 111.1414), new Point(68.82, 106.0099), new Point(66.2, 100.1823), new Point(64.87, 98.42), new Point(65.93, 103.2867), new Point(68.2, 110.7618), new Point(71.52, 119.2094), new Point(76.6, 128.7945), new Point(82.38, 137.1259)), new Array(-147.09, -144.52, -141.47, -139.76, -138.04, -136.79, -136.5, -137.63, -140.42, -143.81, -147.64, -151.76, -157.44, -164.04, -168.56, -167.9, -165.15, -161.2, -155.55, -149.75), skeletonBase, 9)); bones.push(new Bone(new Array(new Point(51.3, 156.1308), new Point(53.15, 158.3383), new Point(54.76, 160.4327), new Point(55.05, 160.8381), new Point(54.97, 160.7237), new Point(54.39, 159.8143), new Point(53.13, 157.8777), new Point(51.01, 154.6909), new Point(47.69, 149.7021), new Point(44.07, 143.7412), new Point(40.47, 135.3937), new Point(37.08, 126.3715), new Point(33.04, 117.4275), new Point(29.31, 107.0328), new Point(27.55, 101.9586), new Point(28.65, 106.8738), new Point(31.13, 115.786), new Point(34.85, 126.4736), new Point(40.78, 139.3966), new Point(47.78, 151.138)), new Array(-170, -167.94, -164.25, -161.13, -157.64, -154.65, -153.02, -153.62, -155.11, -156.6, -158.28, -160.32, -164.35, -170.08, -174.82, -176.18, -176.73, -176.62, -174.64, -171.58), skeletonBase, 10)); bones.push(new Bone(new Array(new Point(171.19, 98.1938), new Point(171.53, 96.5817), new Point(171.74, 95.2448), new Point(171.85, 94.135), new Point(171.87, 93.2026), new Point(171.85, 93.3079), new Point(171.8, 93.9366), new Point(171.72, 93.9024), new Point(171.49, 93.082), new Point(171.19, 92.2545), new Point(170.9, 89.7829), new Point(170.58, 87.1184), new Point(170.26, 87.0589), new Point(169.96, 87.1672), new Point(169.68, 88.9677), new Point(169.43, 90.0663), new Point(169.28, 90.492), new Point(169.27, 91.4392), new Point(169.77, 93.3312), new Point(170.67, 94.8479)), new Array(-61.39, -65.77, -70.61, -75.84, -80.96, -85.48, -89.55, -95.22, -99.73, -106.01, -112.04, -114.85, -118.65, -122.6, -126.41, -129.67, -117.08, -100.74, -82.88, -67.76), skeletonBase, 11)); bones.push(new Bone(new Array(new Point(200.65, 152.2011), new Point(196.78, 152.6834), new Point(192.16, 153.2765), new Point(186.9, 153.7848), new Point(181.54, 153.9587), new Point(176.7, 154.6364), new Point(172.28, 155.4547), new Point(166.12, 155.1669), new Point(161.09, 153.7162), new Point(154.22, 151.3875), new Point(147.81, 146.8064), new Point(144.72, 142.9408), new Point(140.77, 141.0484), new Point(136.81, 138.9943), new Point(133.16, 138.4756), new Point(130.16, 137.419), new Point(141.28, 145.2678), new Point(157.81, 151.881), new Point(177.4, 154.3767), new Point(193.96, 151.7915)), new Array(-149.97, -151.82, -153, -154.14, -154.91, -157.45, -159.59, -158.47, -156.43, -148.36, -134.89, -131.09, -132.64, -132.57, -153.88, -179.74, 164.81, 160.36, -179.1, -159.02), skeletonBase, 12)); bones.push(new Bone(new Array(new Point(181.84, 163.0525), new Point(177.62, 162.9244), new Point(172.8, 163.1192), new Point(167.35, 163.2397), new Point(161.86, 163.1517), new Point(156.63, 162.9463), new Point(151.92, 163.0091), new Point(145.91, 163.1193), new Point(141.17, 162.3834), new Point(135.72, 162.7632), new Point(132.46, 162.1792), new Point(130.43, 159.2972), new Point(126.04, 157.0123), new Point(122.1, 154.9753), new Point(113.65, 148.0197), new Point(108.44, 137.4994), new Point(120.32, 139.5562), new Point(137.36, 144.5611), new Point(155.68, 154.6961), new Point(173.67, 159.5494)), new Array(-32.86, -33.47, -33.47, -32.47, -32.11, -33.72, -33.25, -33.28, -34.25, -33.22, -41.5, -71.22, -81.41, -72.47, -79.66, -90.7, -91.11, -80.77, -46.14, -17.46), skeletonBase, 13)); bones.push(new Bone(new Array(new Point(189.02, 167.6695), new Point(184.76, 167.6178), new Point(179.94, 167.812), new Point(174.57, 167.8074), new Point(169.1, 167.6736), new Point(163.75, 167.6709), new Point(159.07, 167.675), new Point(153.06, 167.7885), new Point(148.24, 167.1735), new Point(142.87, 167.4256), new Point(138.87, 167.8228), new Point(133.2, 167.3762), new Point(127.34, 165.4534), new Point(124.69, 163.1128), new Point(115.2, 156.4173), new Point(108.35, 146.039), new Point(120.17, 148.095), new Point(138.75, 152.9873), new Point(161.61, 160.8399), new Point(181.82, 162.0925)), new Array(0.33, -0.3, -0.32, 0.67, 1.02, -0.6, -0.13, -0.16, -1.14, -0.11, -0.43, -1.97, -10.72, -28.78, -38.95, -51.68, -52.94, -43.05, -8.96, 18.64), skeletonBase, 14)); bones.push(new Bone(new Array(new Point(137.99, 95.7038), new Point(138.27, 95.2827), new Point(138.44, 94.7813), new Point(138.53, 94.1991), new Point(138.54, 93.534), new Point(138.5, 92.7834), new Point(138.43, 91.9436), new Point(138.35, 91.011), new Point(138.14, 89.9281), new Point(137.88, 88.7097), new Point(137.64, 85.7784), new Point(137.4, 82.6453), new Point(137.16, 82.168), new Point(136.95, 81.9688), new Point(136.74, 83.6308), new Point(136.59, 85.8325), new Point(136.5, 88.2939), new Point(136.47, 90.7351), new Point(136.89, 93.0906), new Point(137.61, 94.9555)), new Array(-92.7, -79.22, -61.67, -48.65, -50.01, -52.59, -54.46, -56.82, -61.26, -64.01, -71.2, -76.72, -79.3, -81.01, -84.74, -85.88, -86.62, -95.25, -100.94, -96.24), skeletonBase, 15)); bones.push(new Bone(new Array(new Point(135.09, 157.1553), new Point(149.77, 155.7172), new Point(167.64, 148.9315), new Point(179.17, 140.3834), new Point(178.08, 140.668), new Point(175.88, 141.6507), new Point(174.19, 142.0046), new Point(172.02, 142.5002), new Point(167.72, 143.8689), new Point(164.84, 144.0059), new Point(157.47, 144.0157), new Point(151.53, 142.5193), new Point(148.59, 142.618), new Point(146.56, 142.7323), new Point(142.38, 144.8917), new Point(141.01, 147.1937), new Point(140.12, 149.7071), new Point(130.84, 151.9972), new Point(125.22, 153.4933), new Point(130.92, 156.1107)), new Array(164.5, 156.28, -163.05, -118.81, -93.63, -97.39, -106.89, -111.19, -117.96, -122.09, -119.18, -114.78, -120.42, -127.41, -132.11, -142.95, -155.52, -176.37, 167.06, 163.95), skeletonBase, 16)); bones.push(new Bone(new Array(new Point(114.16, 151.3503), new Point(129.89, 146.9809), new Point(146.86, 155.2649), new Point(168.7, 159.4157), new Point(176.7, 162.3445), new Point(173.08, 163.1902), new Point(167.88, 162.7873), new Point(164.17, 162.7518), new Point(157.54, 163.0543), new Point(153.3, 162.4077), new Point(146.88, 162.9787), new Point(142.43, 162.2393), new Point(137.59, 161.3487), new Point(133.37, 159.985), new Point(127.82, 161.0054), new Point(123.68, 160.2802), new Point(120.35, 158.7063), new Point(109.17, 153.371), new Point(104.05, 148.628), new Point(110.04, 150.1047)), new Array(-97.42, -111.96, -79.35, -43.74, -26.42, -35.91, -36.18, -37.55, -32.56, -38.17, -35.8, -37.17, -42.47, -54.32, -48.49, -55.78, -64.98, -82.85, -97.02, -98.55), skeletonBase, 17)); bones.push(new Bone(new Array(new Point(113.06, 159.8188), new Point(126.69, 154.9011), new Point(148.44, 163.6577), new Point(174.87, 165.3202), new Point(184.35, 166.1438), new Point(180, 168.1985), new Point(174.77, 167.8282), new Point(170.94, 167.9564), new Point(164.74, 167.6499), new Point(160.02, 167.6855), new Point(153.8, 167.9743), new Point(149.23, 167.3985), new Point(143.89, 167.1153), new Point(138.35, 166.922), new Point(133.48, 167.4005), new Point(128.48, 167.3418), new Point(123.97, 166.445), new Point(110.23, 161.8445), new Point(103.01, 157.1039), new Point(108.78, 158.5499)), new Array(-51.59, -57.22, -17.66, 17.95, 35.25, -1.46, -1.15, -1.94, -2.68, -2.9, -0.66, -2.15, -2.12, -3.6, -0.71, -3.53, -5.97, -26.61, -45.25, -50.9), skeletonBase, 18)); bones.push(new Bone(new Array(new Point(264.57, 92.7367), new Point(264.87, 88.5063), new Point(265.62, 86.6002), new Point(266.21, 83.9011), new Point(266.79, 81.4146), new Point(267.33, 79.1335), new Point(267.79, 77.0567), new Point(268.14, 75.1876), new Point(268.34, 74.508), new Point(268.35, 74.6479), new Point(268.2, 73.8946), new Point(267.87, 73.5072), new Point(267.37, 76.1151), new Point(266.72, 79.1149), new Point(265.94, 83.8707), new Point(265.14, 88.8518), new Point(264.37, 93.5802), new Point(263.74, 97.587), new Point(263.83, 97.6717), new Point(264.33, 94.6686)), new Array(-76.9, -77.52, -80.4, -84.34, -87.97, -91.47, -93.77, -94.59, -88.02, -80.09, -73.1, -66.84, -61.17, -54.7, -58.43, -62.11, -65.5, -68.33, -69.36, -73.81), skeletonBase, 19)); bones.push(new Bone(new Array(new Point(278.51, 152.6566), new Point(278.17, 148.572), new Point(275.88, 147.2587), new Point(272.28, 145.1209), new Point(268.97, 142.896), new Point(265.76, 140.6334), new Point(263.74, 138.4432), new Point(263.21, 136.5102), new Point(270.46, 135.9914), new Point(278.93, 135.2506), new Point(286.09, 132.7574), new Point(292.07, 130.0689), new Point(297.04, 130.0115), new Point(302.27, 129.3228), new Point(298.15, 136.2859), new Point(293.91, 143.2284), new Point(289.88, 149.5607), new Point(286.45, 154.7595), new Point(285.51, 155.2442), new Point(281.49, 153.7484)), new Array(-48.69, -65.49, -70.68, -75.77, -79.69, -81.45, -84.78, -92.36, -70.29, -43.13, -24.2, -22.23, -25.06, -24.74, -28.14, -31.01, -33.42, -34.54, -39.99, -45.45), skeletonBase, 20)); bones.push(new Bone(new Array(new Point(291.72, 167.6798), new Point(286.47, 166.7702), new Point(282.5, 166.1323), new Point(277.2, 164.5073), new Point(272.55, 162.5731), new Point(268.73, 160.4109), new Point(265.56, 158.3603), new Point(262.39, 156.4932), new Point(277.21, 154.8192), new Point(293.53, 148.9248), new Point(304.33, 140.9574), new Point(310.58, 137.6361), new Point(315.15, 138.4831), new Point(320.43, 137.6933), new Point(315.79, 145.7169), new Point(311.05, 153.5319), new Point(306.58, 160.5752), new Point(302.93, 166.0986), new Point(300.83, 168.0982), new Point(295.52, 168.0014)), new Array(-10.56, -12.74, -12.15, -20.99, -41.19, -52.13, -63.99, -72.24, -42.67, -6.63, 21.01, 29.91, 32.08, 36.48, 36.42, 36.35, 36.38, 31.55, -8.54, -10.66), skeletonBase, 21)); bones.push(new Bone(new Array(new Point(298.6, 168.9621), new Point(293.29, 168.3136), new Point(289.34, 167.6056), new Point(283.73, 167.0144), new Point(277.82, 167.1826), new Point(273.03, 165.9368), new Point(268.63, 164.6516), new Point(264.52, 163.1598), new Point(282.36, 159.5638), new Point(300.48, 149.7328), new Point(310.87, 138.4482), new Point(316.65, 134.1454), new Point(321.08, 134.7654), new Point(326.06, 133.532), new Point(321.42, 141.5607), new Point(316.69, 149.3832), new Point(312.21, 156.4233), new Point(308.89, 162.436), new Point(307.75, 169.1379), new Point(302.4, 169.296)), new Array(2.76, -0.02, -0.03, -1.35, 2.2, -6.63, -18.19, -28.38, -0.84, 33.08, 58.48, 65.06, 64.79, 66.64, 63.93, 61.08, 58.23, 50.4, 0.54, 0.54), skeletonBase, 22)); bones.push(new Bone(new Array(new Point(294.24, 94.3712), new Point(294.78, 89.8031), new Point(295.31, 85.2394), new Point(295.76, 80.7747), new Point(296.1, 76.5106), new Point(296.31, 72.5542), new Point(296.4, 69.0125), new Point(296.41, 65.9903), new Point(296.44, 64.786), new Point(296.49, 65.0374), new Point(296.59, 65.0263), new Point(296.62, 65.8695), new Point(296.51, 70.0811), new Point(296.18, 74.9342), new Point(295.62, 81.6596), new Point(294.9, 86.8267), new Point(294.19, 90.1598), new Point(293.61, 92.9516), new Point(293.62, 95.7251), new Point(294.01, 95.2083)), new Array(-118.23, -114.39, -111.38, -116.36, -110.88, -100.74, -89.9, -79.7, -71.91, -67.68, -69.43, -72.7, -77, -81.83, -86.7, -91.26, -100.99, -106.6, -112.58, -115.81), skeletonBase, 23)); bones.push(new Bone(new Array(new Point(265.14, 148.5722), new Point(269.38, 145.8333), new Point(272.88, 142.5275), new Point(268.44, 135.8958), new Point(274.17, 133.9897), new Point(284.85, 132.9968), new Point(296.51, 130.5324), new Point(307.4, 126.5197), new Point(315.54, 123.2662), new Point(319.85, 121.9488), new Point(318.21, 122.6244), new Point(314.91, 124.6072), new Point(310.34, 130.0245), new Point(304.92, 135.83), new Point(299.17, 143.0775), new Point(293.55, 148.332), new Point(282.46, 150.551), new Point(276.04, 151.9075), new Point(270, 152.529), new Point(267.23, 150.593)), new Array(-67.27, -93.38, -110.82, -101.05, -74.68, -51.44, -52.16, -56.36, -53.25, -52.12, -56.01, -61.06, -67.38, -74.13, -79.75, -73.85, -57.4, -51.26, -48.9, -56.43), skeletonBase, 24)); bones.push(new Bone(new Array(new Point(272.87, 167.0191), new Point(268.2, 165.7986), new Point(265.77, 161.221), new Point(264.61, 155.5254), new Point(279.46, 153.2786), new Point(297.32, 148.6357), new Point(308.77, 146.3279), new Point(318.48, 143.1697), new Point(327.5, 139.2906), new Point(332.13, 137.7356), new Point(329.39, 139.2079), new Point(324.59, 142.1104), new Point(318.04, 148.4864), new Point(310.39, 155.068), new Point(302.73, 162.7583), new Point(299.11, 167.543), new Point(293.23, 167.4), new Point(288.55, 167.5079), new Point(283.15, 167.6007), new Point(278.29, 167.2564)), new Array(-16.28, -17.71, -54.01, -63.39, -32.82, -3.57, 2.85, 6.26, 16.76, 24.39, 25.45, 20.4, 14.05, 7.21, 1.41, -14.53, -13.58, -14.15, -14.66, -15.94), skeletonBase, 25)); bones.push(new Bone(new Array(new Point(279.59, 168.9817), new Point(274.87, 167.9282), new Point(269.89, 166.885), new Point(267.74, 161.784), new Point(285.34, 157.0722), new Point(304.3, 149.0715), new Point(315.77, 145.9802), new Point(325.44, 142.407), new Point(334.21, 137.2725), new Point(338.51, 134.8452), new Point(335.71, 136.1995), new Point(331.15, 139.6705), new Point(324.83, 146.7873), new Point(317.33, 154.1899), new Point(309.72, 162.5855), new Point(305.89, 169.2987), new Point(300.04, 169.0431), new Point(295.34, 169.219), new Point(289.92, 169.3721), new Point(285.02, 169.1784)), new Array(-2.97, -6.11, -8.5, -38.38, -34.42, -7.95, 2.68, 11.23, 27.17, 39.88, 45.03, 42.85, 38.46, 32.73, 27.3, -3.4, -2.23, -2.25, -2.11, -2.85), skeletonBase, 26)); bones.push(new Bone(new Array(new Point(280.19, 100.12), new Point(281.01, 96.1921), new Point(281.91, 92.3734), new Point(282.81, 88.6976), new Point(283.66, 85.2096), new Point(284.4, 81.9667), new Point(285, 79.0347), new Point(285.44, 76.4849), new Point(285.69, 75.503), new Point(285.72, 75.7328), new Point(285.56, 75.4573), new Point(285.17, 75.8386), new Point(284.54, 79.4234), new Point(283.66, 83.5231), new Point(282.58, 89.4158), new Point(281.38, 95.4882), new Point(280.2, 101.1861), new Point(279.17, 105.9732), new Point(279.17, 106.0659), new Point(279.84, 102.4473)), new Array(-42.04, -39.4, -36.26, -32.83, -29.33, -25.97, -22.97, -20.55, -19.38, -19.5, -20.89, -23.24, -26.31, -29.83, -33.56, -37.25, -40.63, -43.47, -44.09, -42.91), skeletonBase, 27)); bones.push(new Bone(new Array(new Point(37.51, 158.5625), new Point(39.46, 161.2628), new Point(41.29, 164.2336), new Point(41.81, 165.3652), new Point(42.02, 166.0487), new Point(41.74, 165.8086), new Point(40.66, 164.2299), new Point(38.47, 160.912), new Point(34.99, 155.5948), new Point(31.22, 149.3008), new Point(27.46, 140.5745), new Point(23.9, 131.0854), new Point(19.56, 121.2039), new Point(15.52, 109.4452), new Point(13.61, 103.2217), new Point(14.68, 107.8064), new Point(17.15, 116.5855), new Point(20.87, 127.298), new Point(26.85, 140.7049), new Point(33.93, 153.1877)), new Array(-171.41, -170.2, -167.22, -164.7, -161.68, -159.02, -157.6, -158.27, -158.45, -157.81, -156.88, -156.2, -157.77, -161.65, -165.54, -167.69, -170.21, -172.69, -173.28, -172.2), skeletonBase, 28)); bones.push(new Bone(new Array(new Point(70.11, 150.3604), new Point(71.62, 151.5556), new Point(72.66, 152.2363), new Point(72.39, 151.5282), new Point(71.66, 150.2861), new Point(70.48, 148.4747), new Point(68.88, 146.0686), new Point(66.88, 143.0452), new Point(64.14, 138.8884), new Point(61.2, 134.0559), new Point(58.31, 127.0929), new Point(55.58, 119.6581), new Point(52.19, 112.9164), new Point(48.89, 105.1305), new Point(47.23, 101.9905), new Point(48.33, 107.0583), new Point(50.81, 115.3745), new Point(54.48, 125.0101), new Point(60.21, 136.2446), new Point(66.83, 146.1925)), new Array(-162.95, -159.84, -155.39, -151.77, -147.97, -144.82, -143.13, -143.72, -146.67, -150.52, -155.05, -160.05, -166.75, -174.45, 179.91, 179.46, -178.8, -175.74, -170.78, -165.45), skeletonBase, 29)); } } }//package dinowaurs.SkeletalAnim
Section 90
//tri_breathing_SK (dinowaurs.SkeletalAnim.tri_breathing_SK) package dinowaurs.SkeletalAnim { import flash.display.*; import flash.geom.*; import dinowaurs.*; public class tri_breathing_SK extends SkeletalAnimation { public function tri_breathing_SK(_arg1:Sprite){ super(_arg1); bones.push(new Bone(new Array(new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637), new Point(102.96, 64.637)), new Array(15.87, 15.69, 15.51, 15.33, 15.15, 14.97, 14.79, 14.61, 14.43, 14.25, 14.07, 13.88, 13.89, 13.89, 13.91, 13.92, 13.94, 13.97, 13.99, 14.03, 14.06, 14.1, 14.14, 14.18, 14.23, 14.28, 14.33, 14.38, 14.44, 14.49, 14.55, 14.61, 14.67, 14.73, 14.79, 14.85, 14.91, 14.97, 15.03, 15.09, 15.15, 15.21, 15.26, 15.32, 15.37, 15.43, 15.48, 15.53, 15.57, 15.62, 15.66, 15.7, 15.73, 15.76, 15.79, 15.81, 15.83, 15.85, 15.86, 15.87), skeletonBase, 0)); bones.push(new Bone(new Array(new Point(139.6, 54.2139), new Point(139.63, 54.3295), new Point(139.67, 54.4451), new Point(139.7, 54.5609), new Point(139.73, 54.6768), new Point(139.76, 54.7928), new Point(139.79, 54.9088), new Point(139.82, 55.025), new Point(139.85, 55.1413), new Point(139.88, 55.2576), new Point(139.91, 55.3741), new Point(139.94, 55.4906), new Point(139.94, 55.489), new Point(139.94, 55.4844), new Point(139.94, 55.4768), new Point(139.93, 55.4664), new Point(139.93, 55.4533), new Point(139.93, 55.4376), new Point(139.92, 55.4196), new Point(139.92, 55.3993), new Point(139.91, 55.3768), new Point(139.91, 55.3522), new Point(139.9, 55.3258), new Point(139.89, 55.2977), new Point(139.88, 55.2679), new Point(139.88, 55.2366), new Point(139.87, 55.2039), new Point(139.86, 55.17), new Point(139.85, 55.1351), new Point(139.84, 55.0991), new Point(139.83, 55.0623), new Point(139.82, 55.0248), new Point(139.81, 54.9867), new Point(139.8, 54.9482), new Point(139.79, 54.9094), new Point(139.78, 54.8703), new Point(139.77, 54.8312), new Point(139.76, 54.7922), new Point(139.75, 54.7534), new Point(139.74, 54.715), new Point(139.73, 54.677), new Point(139.72, 54.6396), new Point(139.71, 54.6029), new Point(139.7, 54.5671), new Point(139.69, 54.5323), new Point(139.68, 54.4985), new Point(139.67, 54.4661), new Point(139.66, 54.435), new Point(139.65, 54.4053), new Point(139.65, 54.3774), new Point(139.64, 54.3511), new Point(139.63, 54.3268), new Point(139.63, 54.3045), new Point(139.62, 54.2843), new Point(139.62, 54.2664), new Point(139.61, 54.2509), new Point(139.61, 54.2379), new Point(139.6, 54.2276), new Point(139.6, 54.2201), new Point(139.6, 54.2155)), new Array(2.12, 2.01, 1.9, 1.78, 1.67, 1.56, 1.45, 1.34, 1.23, 1.12, 1.01, 0.9, 0.9, 0.9, 0.91, 0.92, 0.93, 0.95, 0.96, 0.98, 1, 1.03, 1.05, 1.08, 1.11, 1.14, 1.17, 1.2, 1.23, 1.27, 1.3, 1.34, 1.38, 1.41, 1.45, 1.49, 1.53, 1.56, 1.6, 1.64, 1.67, 1.71, 1.74, 1.78, 1.81, 1.84, 1.88, 1.9, 1.93, 1.96, 1.99, 2.01, 2.03, 2.05, 2.07, 2.08, 2.09, 2.1, 2.11, 2.12), skeletonBase, 1)); bones.push(new Bone(new Array(new Point(171.39, 53.0429), new Point(171.43, 53.2201), new Point(171.46, 53.3974), new Point(171.5, 53.5748), new Point(171.53, 53.7523), new Point(171.56, 53.93), new Point(171.6, 54.1077), new Point(171.63, 54.2855), new Point(171.66, 54.4635), new Point(171.69, 54.6415), new Point(171.72, 54.8196), new Point(171.75, 54.9978), new Point(171.75, 54.9954), new Point(171.75, 54.9883), new Point(171.75, 54.9767), new Point(171.75, 54.9608), new Point(171.74, 54.9408), new Point(171.74, 54.9169), new Point(171.73, 54.8892), new Point(171.73, 54.8581), new Point(171.72, 54.8238), new Point(171.72, 54.7862), new Point(171.71, 54.7458), new Point(171.7, 54.7027), new Point(171.69, 54.6572), new Point(171.69, 54.6093), new Point(171.68, 54.5593), new Point(171.67, 54.5075), new Point(171.66, 54.454), new Point(171.65, 54.3989), new Point(171.64, 54.3426), new Point(171.63, 54.2852), new Point(171.62, 54.227), new Point(171.61, 54.168), new Point(171.6, 54.1085), new Point(171.59, 54.0488), new Point(171.58, 53.9889), new Point(171.56, 53.9292), new Point(171.55, 53.8698), new Point(171.54, 53.8108), new Point(171.53, 53.7526), new Point(171.52, 53.6954), new Point(171.51, 53.6392), new Point(171.5, 53.5843), new Point(171.49, 53.5309), new Point(171.48, 53.4792), new Point(171.47, 53.4295), new Point(171.46, 53.3818), new Point(171.45, 53.3364), new Point(171.44, 53.2935), new Point(171.44, 53.2533), new Point(171.43, 53.216), new Point(171.42, 53.1818), new Point(171.42, 53.1508), new Point(171.41, 53.1234), new Point(171.41, 53.0996), new Point(171.4, 53.0797), new Point(171.4, 53.0639), new Point(171.4, 53.0523), new Point(171.4, 53.0452)), new Array(-6.14, -6.15, -6.15, -6.15, -6.16, -6.16, -6.16, -6.17, -6.17, -6.17, -6.18, -6.18, -6.18, -6.18, -6.18, -6.18, -6.18, -6.18, -6.18, -6.18, -6.18, -6.18, -6.17, -6.17, -6.17, -6.17, -6.17, -6.17, -6.17, -6.17, -6.17, -6.17, -6.17, -6.16, -6.16, -6.16, -6.16, -6.16, -6.16, -6.16, -6.16, -6.16, -6.16, -6.15, -6.15, -6.15, -6.15, -6.15, -6.15, -6.15, -6.15, -6.15, -6.15, -6.15, -6.15, -6.15, -6.15, -6.14, -6.14, -6.14), skeletonBase, 2)); bones.push(new Bone(new Array(new Point(201.97, 56.3365), new Point(202, 56.5154), new Point(202.04, 56.6944), new Point(202.07, 56.8735), new Point(202.1, 57.0528), new Point(202.14, 57.2321), new Point(202.17, 57.4115), new Point(202.2, 57.5911), new Point(202.23, 57.7707), new Point(202.26, 57.9504), new Point(202.29, 58.1302), new Point(202.32, 58.3101), new Point(202.32, 58.3076), new Point(202.32, 58.3005), new Point(202.32, 58.2887), new Point(202.32, 58.2727), new Point(202.31, 58.2525), new Point(202.31, 58.2284), new Point(202.31, 58.2005), new Point(202.3, 58.1691), new Point(202.3, 58.1344), new Point(202.29, 58.0965), new Point(202.28, 58.0558), new Point(202.27, 58.0122), new Point(202.27, 57.9662), new Point(202.26, 57.9179), new Point(202.25, 57.8674), new Point(202.24, 57.8151), new Point(202.23, 57.7611), new Point(202.22, 57.7055), new Point(202.21, 57.6487), new Point(202.2, 57.5908), new Point(202.19, 57.532), new Point(202.18, 57.4725), new Point(202.17, 57.4124), new Point(202.16, 57.352), new Point(202.15, 57.2916), new Point(202.14, 57.2313), new Point(202.13, 57.1713), new Point(202.12, 57.1118), new Point(202.11, 57.053), new Point(202.09, 56.9952), new Point(202.08, 56.9385), new Point(202.07, 56.8831), new Point(202.06, 56.8292), new Point(202.05, 56.7771), new Point(202.04, 56.7268), new Point(202.04, 56.6787), new Point(202.03, 56.6328), new Point(202.02, 56.5896), new Point(202.01, 56.5489), new Point(202, 56.5113), new Point(202, 56.4767), new Point(201.99, 56.4455), new Point(201.98, 56.4178), new Point(201.98, 56.3938), new Point(201.98, 56.3737), new Point(201.97, 56.3577), new Point(201.97, 56.3461), new Point(201.97, 56.3389)), new Array(-10.72, -10.73, -10.73, -10.73, -10.74, -10.74, -10.74, -10.75, -10.75, -10.75, -10.76, -10.76, -10.76, -10.76, -10.76, -10.76, -10.76, -10.76, -10.76, -10.76, -10.76, -10.76, -10.75, -10.75, -10.75, -10.75, -10.75, -10.75, -10.75, -10.75, -10.75, -10.75, -10.75, -10.74, -10.74, -10.74, -10.74, -10.74, -10.74, -10.74, -10.74, -10.74, -10.73, -10.73, -10.73, -10.73, -10.73, -10.73, -10.73, -10.73, -10.73, -10.73, -10.73, -10.73, -10.73, -10.72, -10.72, -10.72, -10.72, -10.72), skeletonBase, 3)); bones.push(new Bone(new Array(new Point(231.72, 61.9717), new Point(231.75, 62.1523), new Point(231.78, 62.333), new Point(231.82, 62.5137), new Point(231.85, 62.6946), new Point(231.88, 62.8756), new Point(231.92, 63.0567), new Point(231.95, 63.2379), new Point(231.98, 63.4192), new Point(232.01, 63.6005), new Point(232.04, 63.782), new Point(232.07, 63.9636), new Point(232.07, 63.961), new Point(232.07, 63.9538), new Point(232.06, 63.9419), new Point(232.06, 63.9258), new Point(232.06, 63.9055), new Point(232.05, 63.8811), new Point(232.05, 63.8529), new Point(232.04, 63.8211), new Point(232.04, 63.7863), new Point(232.03, 63.748), new Point(232.03, 63.7069), new Point(232.02, 63.6629), new Point(232.01, 63.6165), new Point(232, 63.5676), new Point(231.99, 63.5167), new Point(231.99, 63.4639), new Point(231.98, 63.4095), new Point(231.97, 63.3534), new Point(231.96, 63.2961), new Point(231.95, 63.2376), new Point(231.94, 63.1783), new Point(231.93, 63.1182), new Point(231.92, 63.0576), new Point(231.9, 62.9966), new Point(231.89, 62.9356), new Point(231.88, 62.8748), new Point(231.87, 62.8143), new Point(231.86, 62.7542), new Point(231.85, 62.6949), new Point(231.84, 62.6366), new Point(231.83, 62.5792), new Point(231.82, 62.5234), new Point(231.81, 62.469), new Point(231.8, 62.4164), new Point(231.79, 62.3658), new Point(231.78, 62.3171), new Point(231.77, 62.2709), new Point(231.76, 62.2271), new Point(231.76, 62.1862), new Point(231.75, 62.1482), new Point(231.74, 62.1132), new Point(231.74, 62.0818), new Point(231.73, 62.0538), new Point(231.73, 62.0296), new Point(231.72, 62.0093), new Point(231.72, 61.9932), new Point(231.72, 61.9814), new Point(231.72, 61.9741)), new Array(-24.64, -24.64, -24.65, -24.65, -24.65, -24.66, -24.66, -24.66, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.67, -24.66, -24.66, -24.66, -24.66, -24.66, -24.66, -24.66, -24.66, -24.66, -24.65, -24.65, -24.65, -24.65, -24.65, -24.65, -24.65, -24.65, -24.65, -24.65, -24.64, -24.64, -24.64, -24.64, -24.64, -24.64, -24.64, -24.64, -24.64, -24.64, -24.64, -24.64), skeletonBase, 4)); bones.push(new Bone(new Array(new Point(256.65, 73.4121), new Point(256.68, 73.5941), new Point(256.71, 73.7761), new Point(256.75, 73.9582), new Point(256.78, 74.1406), new Point(256.81, 74.3229), new Point(256.84, 74.5054), new Point(256.87, 74.6879), new Point(256.9, 74.8706), new Point(256.93, 75.0534), new Point(256.96, 75.2363), new Point(256.99, 75.4192), new Point(256.99, 75.4165), new Point(256.99, 75.4092), new Point(256.99, 75.3973), new Point(256.99, 75.3812), new Point(256.98, 75.3607), new Point(256.98, 75.3361), new Point(256.97, 75.3076), new Point(256.97, 75.2756), new Point(256.96, 75.2406), new Point(256.96, 75.202), new Point(256.95, 75.1606), new Point(256.94, 75.1162), new Point(256.94, 75.0694), new Point(256.93, 75.0201), new Point(256.92, 74.9688), new Point(256.91, 74.9157), new Point(256.9, 74.8609), new Point(256.89, 74.8044), new Point(256.88, 74.7466), new Point(256.87, 74.6877), new Point(256.86, 74.628), new Point(256.85, 74.5675), new Point(256.84, 74.5063), new Point(256.83, 74.4448), new Point(256.82, 74.3833), new Point(256.81, 74.322), new Point(256.8, 74.2611), new Point(256.79, 74.2005), new Point(256.78, 74.1408), new Point(256.77, 74.082), new Point(256.76, 74.0242), new Point(256.75, 73.9679), new Point(256.74, 73.9132), new Point(256.73, 73.8602), new Point(256.72, 73.8092), new Point(256.71, 73.7601), new Point(256.7, 73.7136), new Point(256.69, 73.6694), new Point(256.69, 73.6282), new Point(256.68, 73.5899), new Point(256.67, 73.5547), new Point(256.67, 73.523), new Point(256.66, 73.4948), new Point(256.66, 73.4704), new Point(256.65, 73.4499), new Point(256.65, 73.4337), new Point(256.65, 73.4219), new Point(256.65, 73.4145)), new Array(14.13, 14.07, 13.97, 13.85, 13.69, 13.51, 13.31, 13.09, 12.86, 12.62, 12.37, 12.12, 11.87, 11.62, 11.39, 11.16, 10.94, 10.75, 10.57, 10.42, 10.3, 10.2, 10.15, 10.13, 10.14, 10.16, 10.2, 10.26, 10.33, 10.41, 10.51, 10.61, 10.73, 10.85, 10.99, 11.13, 11.27, 11.42, 11.58, 11.74, 11.9, 12.06, 12.22, 12.39, 12.55, 12.71, 12.86, 13.01, 13.16, 13.3, 13.43, 13.56, 13.67, 13.78, 13.87, 13.95, 14.02, 14.08, 14.12, 14.14), skeletonBase, 5)); bones.push(new Bone(new Array(new Point(100.81, 65.5481), new Point(100.81, 65.5413), new Point(100.81, 65.5345), new Point(100.8, 65.5277), new Point(100.8, 65.5209), new Point(100.8, 65.5141), new Point(100.8, 65.5073), new Point(100.79, 65.5005), new Point(100.79, 65.4936), new Point(100.79, 65.4868), new Point(100.79, 65.4799), new Point(100.78, 65.4731), new Point(100.78, 65.4732), new Point(100.78, 65.4734), new Point(100.78, 65.4739), new Point(100.78, 65.4745), new Point(100.78, 65.4753), new Point(100.78, 65.4762), new Point(100.78, 65.4773), new Point(100.78, 65.4785), new Point(100.79, 65.4798), new Point(100.79, 65.4812), new Point(100.79, 65.4828), new Point(100.79, 65.4844), new Point(100.79, 65.4862), new Point(100.79, 65.488), new Point(100.79, 65.49), new Point(100.79, 65.492), new Point(100.79, 65.494), new Point(100.79, 65.4961), new Point(100.79, 65.4983), new Point(100.79, 65.5005), new Point(100.79, 65.5027), new Point(100.8, 65.505), new Point(100.8, 65.5073), new Point(100.8, 65.5096), new Point(100.8, 65.5119), new Point(100.8, 65.5141), new Point(100.8, 65.5164), new Point(100.8, 65.5187), new Point(100.8, 65.5209), new Point(100.8, 65.5231), new Point(100.8, 65.5253), new Point(100.8, 65.5274), new Point(100.81, 65.5294), new Point(100.81, 65.5314), new Point(100.81, 65.5333), new Point(100.81, 65.5351), new Point(100.81, 65.5368), new Point(100.81, 65.5385), new Point(100.81, 65.54), new Point(100.81, 65.5415), new Point(100.81, 65.5428), new Point(100.81, 65.544), new Point(100.81, 65.545), new Point(100.81, 65.5459), new Point(100.81, 65.5467), new Point(100.81, 65.5473), new Point(100.81, 65.5477), new Point(100.81, 65.548)), new Array(-155.23, -155.41, -155.59, -155.77, -155.95, -156.13, -156.31, -156.5, -156.68, -156.86, -157.04, -157.22, -157.22, -157.21, -157.2, -157.18, -157.16, -157.14, -157.11, -157.08, -157.04, -157, -156.96, -156.92, -156.87, -156.82, -156.77, -156.72, -156.67, -156.61, -156.55, -156.5, -156.44, -156.38, -156.32, -156.25, -156.19, -156.13, -156.07, -156.01, -155.95, -155.9, -155.84, -155.78, -155.73, -155.68, -155.62, -155.58, -155.53, -155.49, -155.45, -155.41, -155.37, -155.34, -155.31, -155.29, -155.27, -155.25, -155.24, -155.23), skeletonBase, 6)); bones.push(new Bone(new Array(new Point(71.35, 79.1356), new Point(71.3, 79.0358), new Point(71.26, 78.9359), new Point(71.21, 78.8359), new Point(71.17, 78.7357), new Point(71.12, 78.6354), new Point(71.08, 78.535), new Point(71.03, 78.4344), new Point(70.99, 78.3337), new Point(70.95, 78.2328), new Point(70.91, 78.1318), new Point(70.86, 78.0307), new Point(70.86, 78.0321), new Point(70.87, 78.0361), new Point(70.87, 78.0427), new Point(70.87, 78.0517), new Point(70.88, 78.0631), new Point(70.88, 78.0767), new Point(70.89, 78.0923), new Point(70.9, 78.11), new Point(70.9, 78.1295), new Point(70.91, 78.1508), new Point(70.92, 78.1737), new Point(70.93, 78.1981), new Point(70.94, 78.2239), new Point(70.96, 78.2511), new Point(70.97, 78.2794), new Point(70.98, 78.3088), new Point(70.99, 78.3391), new Point(71.01, 78.3702), new Point(71.02, 78.4021), new Point(71.03, 78.4346), new Point(71.05, 78.4676), new Point(71.06, 78.5009), new Point(71.08, 78.5345), new Point(71.09, 78.5683), new Point(71.11, 78.6021), new Point(71.12, 78.6359), new Point(71.14, 78.6694), new Point(71.15, 78.7027), new Point(71.17, 78.7356), new Point(71.18, 78.7679), new Point(71.19, 78.7996), new Point(71.21, 78.8306), new Point(71.22, 78.8607), new Point(71.23, 78.8898), new Point(71.25, 78.9179), new Point(71.26, 78.9447), new Point(71.27, 78.9703), new Point(71.28, 78.9945), new Point(71.29, 79.0171), new Point(71.3, 79.0381), new Point(71.31, 79.0574), new Point(71.32, 79.0748), new Point(71.33, 79.0903), new Point(71.33, 79.1036), new Point(71.34, 79.1148), new Point(71.34, 79.1237), new Point(71.34, 79.1302), new Point(71.35, 79.1342)), new Array(-157.28, -157.46, -157.65, -157.83, -158.01, -158.19, -158.37, -158.55, -158.73, -158.91, -159.09, -159.27, -159.27, -159.26, -159.25, -159.23, -159.21, -159.19, -159.16, -159.13, -159.09, -159.06, -159.02, -158.97, -158.93, -158.88, -158.83, -158.77, -158.72, -158.66, -158.61, -158.55, -158.49, -158.43, -158.37, -158.31, -158.25, -158.19, -158.13, -158.07, -158.01, -157.95, -157.89, -157.84, -157.78, -157.73, -157.68, -157.63, -157.58, -157.54, -157.5, -157.46, -157.43, -157.39, -157.37, -157.34, -157.32, -157.31, -157.29, -157.29), skeletonBase, 7)); bones.push(new Bone(new Array(new Point(45.34, 90.0207), new Point(45.26, 89.8388), new Point(45.18, 89.6568), new Point(45.1, 89.4746), new Point(45.03, 89.292), new Point(44.95, 89.1092), new Point(44.87, 88.9262), new Point(44.79, 88.743), new Point(44.72, 88.5595), new Point(44.64, 88.3758), new Point(44.57, 88.1917), new Point(44.5, 88.0076), new Point(44.5, 88.0101), new Point(44.5, 88.0175), new Point(44.5, 88.0294), new Point(44.51, 88.0459), new Point(44.52, 88.0665), new Point(44.53, 88.0913), new Point(44.54, 88.1198), new Point(44.55, 88.152), new Point(44.57, 88.1875), new Point(44.58, 88.2262), new Point(44.6, 88.2679), new Point(44.62, 88.3125), new Point(44.64, 88.3595), new Point(44.66, 88.409), new Point(44.68, 88.4606), new Point(44.7, 88.5141), new Point(44.72, 88.5692), new Point(44.75, 88.6261), new Point(44.77, 88.6841), new Point(44.79, 88.7433), new Point(44.82, 88.8034), new Point(44.85, 88.8641), new Point(44.87, 88.9254), new Point(44.9, 88.987), new Point(44.92, 89.0486), new Point(44.95, 89.1101), new Point(44.97, 89.1712), new Point(45, 89.2318), new Point(45.03, 89.2917), new Point(45.05, 89.3507), new Point(45.08, 89.4084), new Point(45.1, 89.4648), new Point(45.12, 89.5197), new Point(45.15, 89.5728), new Point(45.17, 89.6239), new Point(45.19, 89.6729), new Point(45.21, 89.7195), new Point(45.23, 89.7635), new Point(45.25, 89.8048), new Point(45.26, 89.8431), new Point(45.28, 89.8782), new Point(45.29, 89.91), new Point(45.3, 89.9381), new Point(45.32, 89.9625), new Point(45.32, 89.9829), new Point(45.33, 89.9991), new Point(45.34, 90.011), new Point(45.34, 90.0182)), new Array(-130.46, -130.88, -131.46, -132.16, -132.98, -133.9, -134.91, -135.99, -137.14, -138.32, -139.53, -140.76, -141.81, -142.83, -143.83, -144.77, -145.65, -146.46, -147.17, -147.78, -148.27, -148.62, -148.82, -148.87, -148.78, -148.63, -148.41, -148.12, -147.78, -147.38, -146.92, -146.43, -145.88, -145.3, -144.69, -144.05, -143.38, -142.68, -141.97, -141.25, -140.52, -139.78, -139.04, -138.31, -137.58, -136.86, -136.16, -135.48, -134.83, -134.2, -133.61, -133.05, -132.53, -132.06, -131.64, -131.27, -130.96, -130.71, -130.52, -130.41), skeletonBase, 8)); bones.push(new Bone(new Array(new Point(30.86, 107.0148), new Point(30.65, 106.7247), new Point(30.41, 106.396), new Point(30.12, 106.0312), new Point(29.81, 105.6325), new Point(29.47, 105.2027), new Point(29.11, 104.7446), new Point(28.74, 104.2608), new Point(28.36, 103.7545), new Point(27.97, 103.2293), new Point(27.59, 102.6888), new Point(27.21, 102.1372), new Point(26.95, 101.822), new Point(26.71, 101.5131), new Point(26.49, 101.2149), new Point(26.28, 100.9327), new Point(26.09, 100.6712), new Point(25.93, 100.4359), new Point(25.78, 100.2318), new Point(25.67, 100.0643), new Point(25.58, 99.9386), new Point(25.53, 99.86), new Point(25.5, 99.8335), new Point(25.51, 99.8643), new Point(25.55, 99.9388), new Point(25.6, 100.0397), new Point(25.67, 100.1651), new Point(25.75, 100.3133), new Point(25.84, 100.4824), new Point(25.95, 100.671), new Point(26.07, 100.8769), new Point(26.2, 101.0983), new Point(26.34, 101.3335), new Point(26.49, 101.5806), new Point(26.66, 101.8379), new Point(26.83, 102.1035), new Point(27.01, 102.3755), new Point(27.2, 102.6524), new Point(27.39, 102.9324), new Point(27.59, 103.2138), new Point(27.8, 103.4951), new Point(28.01, 103.7745), new Point(28.22, 104.0507), new Point(28.43, 104.3221), new Point(28.65, 104.5873), new Point(28.86, 104.8451), new Point(29.07, 105.094), new Point(29.27, 105.333), new Point(29.48, 105.5606), new Point(29.67, 105.776), new Point(29.85, 105.9779), new Point(30.03, 106.1653), new Point(30.19, 106.3372), new Point(30.34, 106.4926), new Point(30.48, 106.6305), new Point(30.6, 106.75), new Point(30.7, 106.8502), new Point(30.78, 106.9299), new Point(30.84, 106.9882), new Point(30.87, 107.0241)), new Array(-118.37, -119.02, -119.96, -121.16, -122.58, -124.2, -125.99, -127.92, -129.97, -132.1, -134.29, -136.5, -138.53, -140.53, -142.47, -144.32, -146.05, -147.63, -149.05, -150.26, -151.24, -151.96, -152.39, -152.52, -152.4, -152.14, -151.76, -151.26, -150.64, -149.91, -149.09, -148.18, -147.18, -146.11, -144.98, -143.78, -142.54, -141.25, -139.93, -138.58, -137.22, -135.84, -134.46, -133.09, -131.72, -130.38, -129.07, -127.8, -126.57, -125.39, -124.28, -123.23, -122.26, -121.37, -120.58, -119.88, -119.3, -118.83, -118.49, -118.27), skeletonBase, 9)); bones.push(new Bone(new Array(new Point(21.07, 125.1525), new Point(20.66, 124.749), new Point(20.12, 124.2538), new Point(19.46, 123.6703), new Point(18.72, 123.0016), new Point(17.89, 122.2513), new Point(17.01, 121.4229), new Point(16.08, 120.5215), new Point(15.12, 119.5529), new Point(14.16, 118.5248), new Point(13.2, 117.446), new Point(12.26, 116.3273), new Point(11.51, 115.4732), new Point(10.8, 114.6173), new Point(10.14, 113.7738), new Point(9.54, 112.9579), new Point(9, 112.1853), new Point(8.52, 111.4727), new Point(8.11, 110.8363), new Point(7.78, 110.2934), new Point(7.52, 109.86), new Point(7.34, 109.553), new Point(7.24, 109.388), new Point(7.23, 109.38), new Point(7.28, 109.4917), new Point(7.38, 109.6734), new Point(7.51, 109.9206), new Point(7.68, 110.2286), new Point(7.88, 110.5924), new Point(8.12, 111.0075), new Point(8.39, 111.4684), new Point(8.69, 111.9703), new Point(9.02, 112.5079), new Point(9.39, 113.0762), new Point(9.78, 113.6702), new Point(10.2, 114.2848), new Point(10.65, 114.915), new Point(11.13, 115.556), new Point(11.62, 116.203), new Point(12.14, 116.8516), new Point(12.67, 117.4974), new Point(13.23, 118.1362), new Point(13.79, 118.7641), new Point(14.36, 119.3774), new Point(14.93, 119.9728), new Point(15.51, 120.5471), new Point(16.08, 121.0974), new Point(16.65, 121.6212), new Point(17.2, 122.1161), new Point(17.74, 122.5801), new Point(18.25, 123.0113), new Point(18.74, 123.408), new Point(19.2, 123.7686), new Point(19.62, 124.0921), new Point(20, 124.3769), new Point(20.33, 124.622), new Point(20.61, 124.826), new Point(20.84, 124.9877), new Point(21.01, 125.1054), new Point(21.11, 125.1777)), new Array(-129.51, -129.91, -130.44, -131.1, -131.87, -132.74, -133.71, -134.76, -135.89, -137.08, -138.33, -139.62, -140.62, -141.38, -141.93, -142.28, -142.49, -142.56, -142.54, -142.45, -142.32, -142.17, -142.05, -141.97, -142.51, -143.64, -145.21, -147.04, -148.96, -150.82, -152.44, -153.66, -154.3, -154.21, -153.41, -152.53, -151.57, -150.55, -149.47, -148.34, -147.18, -145.98, -144.77, -143.54, -142.31, -141.08, -139.87, -138.68, -137.53, -136.42, -135.35, -134.35, -133.41, -132.55, -131.78, -131.1, -130.52, -130.06, -129.72, -129.51), skeletonBase, 10)); bones.push(new Bone(new Array(new Point(12.81, 135.1692), new Point(12.32, 134.7079), new Point(11.69, 134.1348), new Point(10.92, 133.4542), new Point(10.05, 132.6699), new Point(9.07, 131.7861), new Point(8.03, 130.8074), new Point(6.93, 129.7395), new Point(5.8, 128.5891), new Point(4.65, 127.3649), new Point(3.5, 126.0769), new Point(2.37, 124.7371), new Point(1.47, 123.7089), new Point(0.66, 122.7196), new Point(-0.08, 121.7794), new Point(-0.74, 120.8993), new Point(-1.31, 120.0904), new Point(-1.79, 119.3642), new Point(-2.2, 118.7319), new Point(-2.52, 118.2055), new Point(-2.76, 117.7958), new Point(-2.92, 117.5144), new Point(-3, 117.3717), new Point(-3, 117.3777), new Point(-3.02, 117.3932), new Point(-3.08, 117.3695), new Point(-3.16, 117.328), new Point(-3.22, 117.2916), new Point(-3.25, 117.2849), new Point(-3.22, 117.3358), new Point(-3.13, 117.4734), new Point(-2.95, 117.7293), new Point(-2.68, 118.1352), new Point(-2.31, 118.722), new Point(-1.83, 119.4788), new Point(-1.32, 120.2717), new Point(-0.77, 121.0937), new Point(-0.18, 121.9375), new Point(0.43, 122.7965), new Point(1.08, 123.6638), new Point(1.76, 124.5331), new Point(2.46, 125.398), new Point(3.18, 126.2528), new Point(3.91, 127.0918), new Point(4.65, 127.9099), new Point(5.4, 128.7022), new Point(6.15, 129.4643), new Point(6.89, 130.1921), new Point(7.62, 130.8819), new Point(8.33, 131.5304), new Point(9.01, 132.1346), new Point(9.66, 132.6919), new Point(10.27, 133.1997), new Point(10.83, 133.656), new Point(11.34, 134.0586), new Point(11.79, 134.4055), new Point(12.17, 134.6948), new Point(12.48, 134.9244), new Point(12.71, 135.0919), new Point(12.85, 135.1947)), new Array(-161.2, -160.41, -159.12, -157.43, -155.46, -153.31, -151.09, -148.92, -146.91, -145.17, -143.8, -142.92, -141.99, -140.77, -139.35, -137.79, -136.15, -134.51, -132.92, -131.47, -130.21, -129.22, -128.55, -128.29, -130.03, -133.43, -138.08, -143.55, -149.44, -155.32, -160.79, -165.41, -168.78, -170.48, -170.89, -171.16, -171.31, -171.35, -171.27, -171.1, -170.84, -170.5, -170.09, -169.62, -169.1, -168.54, -167.94, -167.33, -166.7, -166.06, -165.44, -164.82, -164.24, -163.68, -163.17, -162.71, -162.32, -161.99, -161.75, -161.6), skeletonBase, 11)); bones.push(new Bone(new Array(new Point(244.96, 90.6902), new Point(245, 90.8716), new Point(245.03, 91.0529), new Point(245.06, 91.2344), new Point(245.09, 91.4161), new Point(245.12, 91.5977), new Point(245.15, 91.7796), new Point(245.18, 91.9615), new Point(245.21, 92.1435), new Point(245.24, 92.3256), new Point(245.27, 92.5078), new Point(245.3, 92.6901), new Point(245.3, 92.6875), new Point(245.3, 92.6803), new Point(245.29, 92.6684), new Point(245.29, 92.6523), new Point(245.29, 92.6318), new Point(245.28, 92.6074), new Point(245.28, 92.579), new Point(245.28, 92.5471), new Point(245.27, 92.5122), new Point(245.26, 92.4737), new Point(245.26, 92.4324), new Point(245.25, 92.3882), new Point(245.24, 92.3416), new Point(245.24, 92.2925), new Point(245.23, 92.2414), new Point(245.22, 92.1884), new Point(245.21, 92.1338), new Point(245.2, 92.0775), new Point(245.19, 92.0199), new Point(245.18, 91.9613), new Point(245.17, 91.9017), new Point(245.16, 91.8414), new Point(245.15, 91.7804), new Point(245.14, 91.7192), new Point(245.13, 91.658), new Point(245.12, 91.5969), new Point(245.11, 91.5362), new Point(245.1, 91.4758), new Point(245.09, 91.4163), new Point(245.08, 91.3578), new Point(245.07, 91.3001), new Point(245.06, 91.244), new Point(245.05, 91.1895), new Point(245.04, 91.1367), new Point(245.03, 91.0858), new Point(245.03, 91.0369), new Point(245.02, 90.9905), new Point(245.01, 90.9466), new Point(245, 90.9055), new Point(245, 90.8673), new Point(244.99, 90.8322), new Point(244.98, 90.8007), new Point(244.98, 90.7726), new Point(244.97, 90.7483), new Point(244.97, 90.7279), new Point(244.97, 90.7117), new Point(244.97, 90.6999), new Point(244.96, 90.6926)), new Array(-86.61, -86.54, -86.46, -86.39, -86.32, -86.24, -86.24, -86.23, -86.22, -86.22, -86.21, -86.2, -86.21, -86.22, -86.23, -86.24, -86.24, -86.25, -86.26, -86.27, -86.29, -86.3, -86.31, -86.32, -86.33, -86.34, -86.35, -86.36, -86.38, -86.39, -86.4, -86.41, -86.42, -86.43, -86.45, -86.46, -86.47, -86.48, -86.49, -86.5, -86.51, -86.52, -86.53, -86.54, -86.55, -86.56, -86.57, -86.58, -86.59, -86.59, -86.6, -86.61, -86.61, -86.62, -86.62, -86.62, -86.63, -86.63, -86.63, -86.63), skeletonBase, 12)); bones.push(new Bone(new Array(new Point(248.03, 142.7602), new Point(248.13, 142.9376), new Point(248.23, 143.1149), new Point(248.33, 143.2923), new Point(248.42, 143.4697), new Point(248.52, 143.6471), new Point(248.56, 143.8286), new Point(248.59, 144.01), new Point(248.63, 144.1917), new Point(248.66, 144.3734), new Point(248.7, 144.5552), new Point(248.73, 144.7371), new Point(248.73, 144.7349), new Point(248.72, 144.7281), new Point(248.71, 144.7168), new Point(248.7, 144.7012), new Point(248.69, 144.6813), new Point(248.67, 144.6574), new Point(248.66, 144.6296), new Point(248.65, 144.5983), new Point(248.63, 144.564), new Point(248.61, 144.5262), new Point(248.6, 144.4856), new Point(248.58, 144.442), new Point(248.56, 144.3961), new Point(248.55, 144.3477), new Point(248.53, 144.2972), new Point(248.51, 144.2449), new Point(248.49, 144.1909), new Point(248.47, 144.1353), new Point(248.45, 144.0784), new Point(248.43, 144.0204), new Point(248.41, 143.9615), new Point(248.39, 143.9019), new Point(248.37, 143.8416), new Point(248.35, 143.781), new Point(248.33, 143.7204), new Point(248.31, 143.6599), new Point(248.28, 143.5998), new Point(248.26, 143.54), new Point(248.25, 143.4811), new Point(248.23, 143.4231), new Point(248.21, 143.3661), new Point(248.19, 143.3105), new Point(248.17, 143.2565), new Point(248.15, 143.2041), new Point(248.14, 143.1537), new Point(248.12, 143.1053), new Point(248.1, 143.0593), new Point(248.09, 143.0157), new Point(248.08, 142.975), new Point(248.06, 142.9371), new Point(248.05, 142.9024), new Point(248.04, 142.8711), new Point(248.03, 142.8433), new Point(248.03, 142.8191), new Point(248.02, 142.7989), new Point(248.01, 142.7829), new Point(248.01, 142.7712), new Point(248.01, 142.7639)), new Array(-153.78, -154.47, -155.15, -155.83, -156.51, -157.19, -157.54, -157.88, -158.23, -158.57, -158.92, -159.26, -159.19, -159.12, -159.04, -158.95, -158.85, -158.75, -158.64, -158.53, -158.41, -158.28, -158.15, -158.02, -157.88, -157.74, -157.6, -157.45, -157.3, -157.15, -157, -156.85, -156.7, -156.54, -156.39, -156.24, -156.08, -155.93, -155.79, -155.64, -155.5, -155.36, -155.22, -155.09, -154.96, -154.83, -154.72, -154.6, -154.49, -154.39, -154.3, -154.21, -154.13, -154.06, -154, -153.94, -153.89, -153.86, -153.83, -153.82), skeletonBase, 13)); bones.push(new Bone(new Array(new Point(229.35, 151.9398), new Point(229.34, 151.8944), new Point(229.33, 151.8476), new Point(229.33, 151.7997), new Point(229.33, 151.7506), new Point(229.33, 151.7003), new Point(229.31, 151.7661), new Point(229.3, 151.8317), new Point(229.29, 151.8971), new Point(229.28, 151.9624), new Point(229.27, 152.0274), new Point(229.26, 152.0923), new Point(229.26, 152.1124), new Point(229.26, 152.1307), new Point(229.26, 152.1469), new Point(229.26, 152.1614), new Point(229.26, 152.1741), new Point(229.27, 152.185), new Point(229.27, 152.194), new Point(229.27, 152.2015), new Point(229.27, 152.2076), new Point(229.27, 152.212), new Point(229.27, 152.2151), new Point(229.27, 152.2167), new Point(229.27, 152.217), new Point(229.27, 152.2161), new Point(229.28, 152.214), new Point(229.28, 152.2108), new Point(229.28, 152.2067), new Point(229.28, 152.2015), new Point(229.28, 152.1953), new Point(229.28, 152.1884), new Point(229.28, 152.1807), new Point(229.28, 152.1723), new Point(229.29, 152.163), new Point(229.29, 152.1533), new Point(229.29, 152.143), new Point(229.29, 152.1324), new Point(229.29, 152.1214), new Point(229.3, 152.1101), new Point(229.3, 152.0985), new Point(229.3, 152.0869), new Point(229.3, 152.0751), new Point(229.3, 152.0633), new Point(229.3, 152.0516), new Point(229.31, 152.0401), new Point(229.31, 152.0287), new Point(229.31, 152.0176), new Point(229.31, 152.0069), new Point(229.31, 151.9966), new Point(229.31, 151.9868), new Point(229.31, 151.9775), new Point(229.32, 151.969), new Point(229.32, 151.9612), new Point(229.32, 151.9542), new Point(229.32, 151.948), new Point(229.32, 151.9428), new Point(229.32, 151.9387), new Point(229.32, 151.9357), new Point(229.32, 151.9337)), new Array(-58.55, -58.45, -58.35, -58.25, -58.16, -58.06, -57.58, -57.11, -56.64, -56.17, -55.69, -55.22, -55.24, -55.26, -55.28, -55.32, -55.36, -55.4, -55.46, -55.51, -55.58, -55.64, -55.72, -55.79, -55.87, -55.95, -56.04, -56.13, -56.22, -56.32, -56.41, -56.51, -56.61, -56.71, -56.81, -56.91, -57.01, -57.11, -57.2, -57.3, -57.4, -57.49, -57.59, -57.68, -57.77, -57.85, -57.94, -58.01, -58.09, -58.16, -58.23, -58.29, -58.34, -58.39, -58.44, -58.48, -58.51, -58.54, -58.56, -58.57), skeletonBase, 14)); bones.push(new Bone(new Array(new Point(233.6, 158.8901), new Point(233.6, 158.8374), new Point(233.61, 158.7833), new Point(233.61, 158.7281), new Point(233.62, 158.6717), new Point(233.64, 158.614), new Point(233.68, 158.644), new Point(233.73, 158.6734), new Point(233.77, 158.7021), new Point(233.82, 158.7301), new Point(233.86, 158.7575), new Point(233.91, 158.7843), new Point(233.91, 158.8055), new Point(233.91, 158.8254), new Point(233.9, 158.8439), new Point(233.9, 158.8612), new Point(233.9, 158.8771), new Point(233.89, 158.8918), new Point(233.89, 158.905), new Point(233.88, 158.9171), new Point(233.87, 158.9283), new Point(233.87, 158.9381), new Point(233.86, 158.947), new Point(233.85, 158.9546), new Point(233.84, 158.9613), new Point(233.84, 158.967), new Point(233.83, 158.9717), new Point(233.82, 158.9757), new Point(233.81, 158.9788), new Point(233.8, 158.9809), new Point(233.79, 158.9824), new Point(233.78, 158.9831), new Point(233.77, 158.9831), new Point(233.76, 158.9824), new Point(233.75, 158.9809), new Point(233.74, 158.979), new Point(233.73, 158.9765), new Point(233.72, 158.9735), new Point(233.71, 158.9702), new Point(233.7, 158.9664), new Point(233.69, 158.9623), new Point(233.68, 158.9579), new Point(233.67, 158.9532), new Point(233.66, 158.9484), new Point(233.65, 158.9435), new Point(233.64, 158.9383), new Point(233.63, 158.9332), new Point(233.62, 158.928), new Point(233.62, 158.9229), new Point(233.61, 158.9179), new Point(233.6, 158.9131), new Point(233.6, 158.9085), new Point(233.59, 158.9041), new Point(233.59, 158.9002), new Point(233.58, 158.8965), new Point(233.58, 158.8933), new Point(233.57, 158.8905), new Point(233.57, 158.8883), new Point(233.57, 158.8866), new Point(233.57, 158.8855)), new Array(-1.9, -1.94, -1.99, -2.04, -2.08, -2.13, -1.8, -1.47, -1.14, -0.81, -0.48, -0.16, -0.17, -0.18, -0.2, -0.22, -0.25, -0.27, -0.3, -0.34, -0.37, -0.41, -0.45, -0.49, -0.53, -0.57, -0.62, -0.67, -0.72, -0.77, -0.82, -0.87, -0.92, -0.97, -1.02, -1.07, -1.12, -1.18, -1.23, -1.28, -1.33, -1.38, -1.42, -1.47, -1.51, -1.56, -1.6, -1.64, -1.68, -1.71, -1.75, -1.78, -1.81, -1.83, -1.86, -1.88, -1.89, -1.91, -1.92, -1.92), skeletonBase, 15)); bones.push(new Bone(new Array(new Point(209.97, 90.0781), new Point(210.01, 90.2575), new Point(210.04, 90.4369), new Point(210.07, 90.6165), new Point(210.1, 90.7962), new Point(210.13, 90.976), new Point(210.16, 91.1559), new Point(210.19, 91.3358), new Point(210.22, 91.5159), new Point(210.25, 91.6961), new Point(210.28, 91.8763), new Point(210.31, 92.0567), new Point(210.31, 92.0542), new Point(210.31, 92.047), new Point(210.3, 92.0352), new Point(210.3, 92.0192), new Point(210.3, 91.9989), new Point(210.29, 91.9748), new Point(210.29, 91.9467), new Point(210.29, 91.9153), new Point(210.28, 91.8806), new Point(210.27, 91.8425), new Point(210.27, 91.8017), new Point(210.26, 91.758), new Point(210.25, 91.7119), new Point(210.25, 91.6634), new Point(210.24, 91.6129), new Point(210.23, 91.5604), new Point(210.22, 91.5063), new Point(210.21, 91.4506), new Point(210.2, 91.3936), new Point(210.19, 91.3356), new Point(210.18, 91.2766), new Point(210.17, 91.2169), new Point(210.16, 91.1567), new Point(210.15, 91.0962), new Point(210.14, 91.0356), new Point(210.13, 90.9751), new Point(210.12, 90.9151), new Point(210.11, 90.8554), new Point(210.1, 90.7965), new Point(210.09, 90.7385), new Point(210.08, 90.6816), new Point(210.07, 90.6261), new Point(210.06, 90.5721), new Point(210.05, 90.5198), new Point(210.04, 90.4695), new Point(210.04, 90.4212), new Point(210.03, 90.3752), new Point(210.02, 90.3318), new Point(210.01, 90.2911), new Point(210, 90.2534), new Point(210, 90.2187), new Point(209.99, 90.1875), new Point(209.99, 90.1597), new Point(209.98, 90.1356), new Point(209.98, 90.1154), new Point(209.98, 90.0995), new Point(209.97, 90.0877), new Point(209.97, 90.0806)), new Array(-85.74, -85.69, -85.64, -85.59, -85.54, -85.49, -85.52, -85.55, -85.58, -85.61, -85.64, -85.67, -85.67, -85.68, -85.68, -85.69, -85.69, -85.69, -85.7, -85.7, -85.71, -85.71, -85.71, -85.72, -85.72, -85.72, -85.73, -85.73, -85.73, -85.73, -85.74, -85.74, -85.74, -85.74, -85.75, -85.75, -85.75, -85.75, -85.75, -85.75, -85.75, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76, -85.76), skeletonBase, 16)); bones.push(new Bone(new Array(new Point(213.83, 142.1621), new Point(213.91, 142.338), new Point(213.99, 142.5139), new Point(214.07, 142.69), new Point(214.14, 142.8661), new Point(214.22, 143.0422), new Point(214.23, 143.2242), new Point(214.23, 143.4063), new Point(214.23, 143.5884), new Point(214.23, 143.7707), new Point(214.23, 143.953), new Point(214.23, 144.1354), new Point(214.23, 144.1332), new Point(214.22, 144.1264), new Point(214.22, 144.115), new Point(214.21, 144.0993), new Point(214.2, 144.0793), new Point(214.2, 144.0555), new Point(214.19, 144.0277), new Point(214.18, 143.9965), new Point(214.17, 143.9621), new Point(214.16, 143.9243), new Point(214.15, 143.8837), new Point(214.14, 143.8403), new Point(214.13, 143.7944), new Point(214.12, 143.7461), new Point(214.11, 143.6957), new Point(214.1, 143.6434), new Point(214.09, 143.5895), new Point(214.08, 143.534), new Point(214.06, 143.4772), new Point(214.05, 143.4193), new Point(214.04, 143.3605), new Point(214.03, 143.301), new Point(214.02, 143.2408), new Point(214.01, 143.1804), new Point(213.99, 143.12), new Point(213.98, 143.0596), new Point(213.97, 142.9996), new Point(213.96, 142.94), new Point(213.95, 142.8812), new Point(213.94, 142.8234), new Point(213.93, 142.7665), new Point(213.92, 142.7111), new Point(213.9, 142.6572), new Point(213.89, 142.6049), new Point(213.88, 142.5546), new Point(213.88, 142.5064), new Point(213.87, 142.4605), new Point(213.86, 142.4171), new Point(213.85, 142.3764), new Point(213.84, 142.3387), new Point(213.84, 142.3041), new Point(213.83, 142.2728), new Point(213.83, 142.2451), new Point(213.82, 142.221), new Point(213.82, 142.2009), new Point(213.81, 142.1849), new Point(213.81, 142.1732), new Point(213.81, 142.166)), new Array(-150.18, -150.76, -151.34, -151.92, -152.5, -153.08, -153.53, -153.99, -154.44, -154.89, -155.35, -155.8, -155.74, -155.68, -155.6, -155.52, -155.43, -155.33, -155.22, -155.11, -154.99, -154.87, -154.74, -154.6, -154.46, -154.32, -154.17, -154.02, -153.87, -153.71, -153.56, -153.4, -153.24, -153.08, -152.92, -152.76, -152.6, -152.45, -152.29, -152.14, -151.99, -151.84, -151.69, -151.55, -151.42, -151.29, -151.16, -151.04, -150.93, -150.82, -150.72, -150.63, -150.54, -150.47, -150.4, -150.34, -150.29, -150.25, -150.22, -150.21), skeletonBase, 17)); bones.push(new Bone(new Array(new Point(196.45, 152.1083), new Point(196.42, 152.1076), new Point(196.41, 152.1059), new Point(196.39, 152.1034), new Point(196.37, 152.0998), new Point(196.36, 152.0955), new Point(196.29, 152.1358), new Point(196.22, 152.1756), new Point(196.15, 152.2149), new Point(196.09, 152.2538), new Point(196.02, 152.2921), new Point(195.96, 152.3301), new Point(195.96, 152.3461), new Point(195.97, 152.3604), new Point(195.97, 152.3729), new Point(195.98, 152.3837), new Point(195.98, 152.3928), new Point(195.99, 152.4005), new Point(196, 152.4064), new Point(196, 152.4111), new Point(196.01, 152.4143), new Point(196.02, 152.416), new Point(196.03, 152.4166), new Point(196.04, 152.4158), new Point(196.05, 152.4139), new Point(196.06, 152.411), new Point(196.07, 152.4069), new Point(196.09, 152.4019), new Point(196.1, 152.3959), new Point(196.11, 152.389), new Point(196.12, 152.3813), new Point(196.14, 152.373), new Point(196.15, 152.3639), new Point(196.16, 152.3542), new Point(196.18, 152.3438), new Point(196.19, 152.333), new Point(196.2, 152.3218), new Point(196.22, 152.3102), new Point(196.23, 152.2984), new Point(196.25, 152.2862), new Point(196.26, 152.274), new Point(196.27, 152.2617), new Point(196.28, 152.2493), new Point(196.3, 152.2369), new Point(196.31, 152.2247), new Point(196.32, 152.2127), new Point(196.33, 152.2009), new Point(196.34, 152.1895), new Point(196.35, 152.1784), new Point(196.36, 152.1678), new Point(196.37, 152.1578), new Point(196.38, 152.1484), new Point(196.39, 152.1396), new Point(196.4, 152.1317), new Point(196.4, 152.1245), new Point(196.41, 152.1183), new Point(196.41, 152.1131), new Point(196.42, 152.1089), new Point(196.42, 152.1057), new Point(196.42, 152.1039)), new Array(-63.63, -63.22, -62.82, -62.41, -62, -61.59, -61.34, -61.1, -60.85, -60.6, -60.36, -60.11, -60.15, -60.2, -60.25, -60.31, -60.37, -60.43, -60.5, -60.58, -60.65, -60.73, -60.82, -60.9, -60.99, -61.08, -61.18, -61.27, -61.37, -61.47, -61.57, -61.67, -61.77, -61.87, -61.97, -62.07, -62.16, -62.26, -62.36, -62.46, -62.55, -62.64, -62.73, -62.82, -62.9, -62.98, -63.06, -63.14, -63.21, -63.27, -63.33, -63.39, -63.44, -63.49, -63.53, -63.57, -63.6, -63.62, -63.64, -63.65), skeletonBase, 18)); bones.push(new Bone(new Array(new Point(200.04, 159.3512), new Point(200.07, 159.3246), new Point(200.1, 159.2968), new Point(200.13, 159.2677), new Point(200.17, 159.2373), new Point(200.2, 159.2056), new Point(200.17, 159.2294), new Point(200.13, 159.2524), new Point(200.09, 159.2749), new Point(200.06, 159.2967), new Point(200.02, 159.3179), new Point(199.99, 159.3387), new Point(199.99, 159.3576), new Point(199.98, 159.3751), new Point(199.98, 159.3912), new Point(199.98, 159.406), new Point(199.98, 159.4194), new Point(199.98, 159.4315), new Point(199.98, 159.4424), new Point(199.98, 159.4521), new Point(199.97, 159.4606), new Point(199.97, 159.468), new Point(199.97, 159.4743), new Point(199.97, 159.4795), new Point(199.97, 159.4837), new Point(199.97, 159.487), new Point(199.97, 159.4892), new Point(199.97, 159.4907), new Point(199.97, 159.4912), new Point(199.97, 159.491), new Point(199.97, 159.49), new Point(199.97, 159.4883), new Point(199.97, 159.4859), new Point(199.98, 159.4828), new Point(199.98, 159.4791), new Point(199.98, 159.4749), new Point(199.98, 159.4702), new Point(199.98, 159.4651), new Point(199.98, 159.4596), new Point(199.98, 159.4537), new Point(199.99, 159.4476), new Point(199.99, 159.4412), new Point(199.99, 159.4346), new Point(199.99, 159.4279), new Point(199.99, 159.4211), new Point(199.99, 159.4143), new Point(199.99, 159.4075), new Point(200, 159.4008), new Point(200, 159.3942), new Point(200, 159.3879), new Point(200, 159.3818), new Point(200, 159.376), new Point(200, 159.3706), new Point(200.01, 159.3656), new Point(200.01, 159.3611), new Point(200.01, 159.3571), new Point(200.01, 159.3538), new Point(200.01, 159.3511), new Point(200.01, 159.3491), new Point(200.01, 159.3478)), new Array(-0.28, -0.12, -0.09, -0.16, -0.29, -0.45, -0.77, -1.06, -1.29, -1.42, -1.43, -1.27, -1.31, -1.34, -1.36, -1.38, -1.39, -1.4, -1.41, -1.41, -1.4, -1.4, -1.39, -1.37, -1.35, -1.33, -1.31, -1.28, -1.25, -1.22, -1.19, -1.15, -1.11, -1.08, -1.04, -0.99, -0.95, -0.91, -0.87, -0.82, -0.78, -0.74, -0.69, -0.65, -0.61, -0.57, -0.53, -0.49, -0.46, -0.42, -0.39, -0.36, -0.33, -0.3, -0.28, -0.26, -0.24, -0.23, -0.22, -0.21), skeletonBase, 19)); bones.push(new Bone(new Array(new Point(126.99, 90.2551), new Point(126.91, 90.3308), new Point(126.83, 90.4061), new Point(126.74, 90.4812), new Point(126.66, 90.5561), new Point(126.58, 90.6307), new Point(126.5, 90.705), new Point(126.42, 90.7791), new Point(126.33, 90.8529), new Point(126.25, 90.9265), new Point(126.17, 90.9998), new Point(126.08, 91.0728), new Point(126.09, 91.0718), new Point(126.09, 91.0689), new Point(126.09, 91.0642), new Point(126.1, 91.0577), new Point(126.11, 91.0495), new Point(126.12, 91.0397), new Point(126.14, 91.0284), new Point(126.15, 91.0156), new Point(126.17, 91.0015), new Point(126.18, 90.9861), new Point(126.2, 90.9695), new Point(126.22, 90.9517), new Point(126.24, 90.933), new Point(126.27, 90.9132), new Point(126.29, 90.8926), new Point(126.31, 90.8712), new Point(126.34, 90.849), new Point(126.36, 90.8262), new Point(126.39, 90.8028), new Point(126.42, 90.779), new Point(126.44, 90.7547), new Point(126.47, 90.7302), new Point(126.5, 90.7054), new Point(126.53, 90.6804), new Point(126.55, 90.6554), new Point(126.58, 90.6304), new Point(126.61, 90.6054), new Point(126.64, 90.5807), new Point(126.66, 90.5562), new Point(126.69, 90.5321), new Point(126.71, 90.5084), new Point(126.74, 90.4852), new Point(126.76, 90.4627), new Point(126.79, 90.4408), new Point(126.81, 90.4197), new Point(126.83, 90.3995), new Point(126.85, 90.3802), new Point(126.87, 90.362), new Point(126.89, 90.3449), new Point(126.91, 90.329), new Point(126.92, 90.3144), new Point(126.94, 90.3013), new Point(126.95, 90.2895), new Point(126.96, 90.2794), new Point(126.97, 90.2709), new Point(126.98, 90.2641), new Point(126.98, 90.2592), new Point(126.99, 90.2562)), new Array(-81.22, -81.1, -80.98, -80.86, -80.74, -80.62, -80.45, -80.28, -80.1, -79.93, -79.76, -79.58, -79.61, -79.64, -79.67, -79.71, -79.74, -79.78, -79.81, -79.85, -79.89, -79.93, -79.97, -80.02, -80.06, -80.1, -80.15, -80.19, -80.24, -80.28, -80.33, -80.37, -80.42, -80.46, -80.5, -80.55, -80.59, -80.63, -80.68, -80.72, -80.76, -80.8, -80.83, -80.87, -80.91, -80.94, -80.97, -81.01, -81.03, -81.06, -81.09, -81.11, -81.13, -81.15, -81.17, -81.19, -81.2, -81.21, -81.21, -81.22), skeletonBase, 20)); bones.push(new Bone(new Array(new Point(134.57, 139.498), new Point(134.59, 139.5576), new Point(134.62, 139.6168), new Point(134.64, 139.6755), new Point(134.66, 139.7337), new Point(134.68, 139.7915), new Point(134.75, 139.8411), new Point(134.81, 139.8901), new Point(134.88, 139.9383), new Point(134.94, 139.9859), new Point(135.01, 140.0327), new Point(135.07, 140.0788), new Point(135.05, 140.0823), new Point(135.03, 140.084), new Point(135.01, 140.0842), new Point(134.99, 140.0829), new Point(134.97, 140.08), new Point(134.95, 140.0758), new Point(134.93, 140.0702), new Point(134.91, 140.0634), new Point(134.89, 140.0553), new Point(134.87, 140.0461), new Point(134.86, 140.0357), new Point(134.84, 140.0243), new Point(134.82, 140.012), new Point(134.81, 139.9988), new Point(134.8, 139.9846), new Point(134.78, 139.9698), new Point(134.77, 139.9542), new Point(134.76, 139.938), new Point(134.74, 139.9212), new Point(134.73, 139.9039), new Point(134.72, 139.8861), new Point(134.71, 139.8679), new Point(134.7, 139.8495), new Point(134.69, 139.8307), new Point(134.68, 139.8119), new Point(134.67, 139.7929), new Point(134.66, 139.7739), new Point(134.65, 139.7549), new Point(134.65, 139.7361), new Point(134.64, 139.7174), new Point(134.63, 139.699), new Point(134.62, 139.6809), new Point(134.62, 139.6633), new Point(134.61, 139.6461), new Point(134.61, 139.6295), new Point(134.6, 139.6135), new Point(134.6, 139.5982), new Point(134.59, 139.5837), new Point(134.59, 139.5701), new Point(134.59, 139.5574), new Point(134.58, 139.5457), new Point(134.58, 139.5352), new Point(134.58, 139.5257), new Point(134.58, 139.5176), new Point(134.58, 139.5107), new Point(134.57, 139.5053), new Point(134.57, 139.5013), new Point(134.57, 139.4988)), new Array(-144.3, -144.47, -144.64, -144.81, -144.98, -145.16, -145.46, -145.76, -146.06, -146.36, -146.66, -146.96, -146.96, -146.95, -146.94, -146.92, -146.89, -146.86, -146.82, -146.78, -146.73, -146.68, -146.63, -146.57, -146.51, -146.44, -146.37, -146.3, -146.23, -146.15, -146.08, -146, -145.92, -145.84, -145.76, -145.68, -145.59, -145.51, -145.43, -145.35, -145.27, -145.19, -145.12, -145.04, -144.97, -144.9, -144.83, -144.76, -144.7, -144.64, -144.59, -144.54, -144.49, -144.45, -144.41, -144.38, -144.35, -144.33, -144.31, -144.3), skeletonBase, 21)); bones.push(new Bone(new Array(new Point(117.41, 151.8118), new Point(117.4, 151.8199), new Point(117.38, 151.8275), new Point(117.37, 151.8344), new Point(117.35, 151.8408), new Point(117.34, 151.8466), new Point(117.34, 151.8049), new Point(117.34, 151.7622), new Point(117.35, 151.7184), new Point(117.35, 151.6736), new Point(117.35, 151.6278), new Point(117.36, 151.5809), new Point(117.33, 151.5852), new Point(117.31, 151.5897), new Point(117.3, 151.5946), new Point(117.28, 151.5997), new Point(117.26, 151.6051), new Point(117.25, 151.6108), new Point(117.24, 151.6167), new Point(117.23, 151.6228), new Point(117.22, 151.629), new Point(117.21, 151.6354), new Point(117.21, 151.6419), new Point(117.2, 151.6486), new Point(117.2, 151.6553), new Point(117.2, 151.662), new Point(117.2, 151.6688), new Point(117.2, 151.6756), new Point(117.2, 151.6824), new Point(117.2, 151.6891), new Point(117.21, 151.6958), new Point(117.21, 151.7025), new Point(117.22, 151.709), new Point(117.22, 151.7154), new Point(117.23, 151.7218), new Point(117.23, 151.728), new Point(117.24, 151.734), new Point(117.25, 151.7399), new Point(117.26, 151.7455), new Point(117.27, 151.7511), new Point(117.28, 151.7564), new Point(117.29, 151.7615), new Point(117.29, 151.7664), new Point(117.3, 151.771), new Point(117.31, 151.7755), new Point(117.32, 151.7797), new Point(117.33, 151.7837), new Point(117.34, 151.7874), new Point(117.35, 151.7909), new Point(117.36, 151.7941), new Point(117.37, 151.7971), new Point(117.37, 151.7998), new Point(117.38, 151.8022), new Point(117.39, 151.8044), new Point(117.39, 151.8063), new Point(117.4, 151.808), new Point(117.4, 151.8093), new Point(117.4, 151.8104), new Point(117.41, 151.8111), new Point(117.41, 151.8116)), new Array(-65.04, -64.96, -64.88, -64.81, -64.73, -64.65, -64.71, -64.76, -64.81, -64.86, -64.91, -64.97, -64.99, -65.01, -65.03, -65.05, -65.06, -65.08, -65.09, -65.1, -65.11, -65.12, -65.13, -65.14, -65.14, -65.15, -65.15, -65.16, -65.16, -65.16, -65.16, -65.16, -65.16, -65.15, -65.15, -65.15, -65.14, -65.14, -65.14, -65.13, -65.13, -65.12, -65.11, -65.11, -65.1, -65.1, -65.09, -65.09, -65.08, -65.07, -65.07, -65.06, -65.06, -65.05, -65.05, -65.05, -65.04, -65.04, -65.04, -65.04), skeletonBase, 22)); bones.push(new Bone(new Array(new Point(121.17, 159.8891), new Point(121.16, 159.8922), new Point(121.16, 159.8946), new Point(121.16, 159.8965), new Point(121.15, 159.8978), new Point(121.15, 159.8985), new Point(121.14, 159.8603), new Point(121.14, 159.821), new Point(121.14, 159.7807), new Point(121.13, 159.7394), new Point(121.13, 159.697), new Point(121.12, 159.6536), new Point(121.1, 159.6593), new Point(121.08, 159.6652), new Point(121.05, 159.6713), new Point(121.04, 159.6776), new Point(121.02, 159.6841), new Point(121, 159.6907), new Point(120.99, 159.6975), new Point(120.98, 159.7044), new Point(120.97, 159.7113), new Point(120.96, 159.7183), new Point(120.95, 159.7253), new Point(120.95, 159.7324), new Point(120.94, 159.7395), new Point(120.94, 159.7466), new Point(120.94, 159.7536), new Point(120.94, 159.7606), new Point(120.94, 159.7674), new Point(120.94, 159.7743), new Point(120.95, 159.781), new Point(120.95, 159.7876), new Point(120.96, 159.794), new Point(120.96, 159.8003), new Point(120.97, 159.8065), new Point(120.98, 159.8125), new Point(120.99, 159.8182), new Point(120.99, 159.8239), new Point(121, 159.8292), new Point(121.01, 159.8344), new Point(121.02, 159.8394), new Point(121.03, 159.8442), new Point(121.04, 159.8487), new Point(121.05, 159.853), new Point(121.06, 159.8571), new Point(121.07, 159.8609), new Point(121.08, 159.8645), new Point(121.09, 159.8678), new Point(121.1, 159.8709), new Point(121.11, 159.8738), new Point(121.12, 159.8764), new Point(121.13, 159.8788), new Point(121.14, 159.8809), new Point(121.14, 159.8828), new Point(121.15, 159.8844), new Point(121.15, 159.8858), new Point(121.16, 159.887), new Point(121.16, 159.8879), new Point(121.17, 159.8885), new Point(121.17, 159.889)), new Array(0.08, 0.16, 0.24, 0.31, 0.39, 0.47, 0.42, 0.36, 0.31, 0.26, 0.21, 0.15, 0.13, 0.11, 0.09, 0.07, 0.06, 0.04, 0.03, 0.02, 0.01, 0, -0.01, -0.02, -0.02, -0.03, -0.03, -0.03, -0.04, -0.04, -0.04, -0.04, -0.03, -0.03, -0.03, -0.03, -0.02, -0.02, -0.01, -0.01, 0, 0, 0.01, 0.01, 0.02, 0.02, 0.03, 0.04, 0.04, 0.05, 0.05, 0.06, 0.06, 0.07, 0.07, 0.07, 0.08, 0.08, 0.08, 0.08), skeletonBase, 23)); bones.push(new Bone(new Array(new Point(93.93, 91.121), new Point(93.85, 91.0923), new Point(93.76, 91.0635), new Point(93.68, 91.0344), new Point(93.6, 91.005), new Point(93.52, 90.9753), new Point(93.43, 90.9454), new Point(93.35, 90.9153), new Point(93.27, 90.8848), new Point(93.18, 90.8541), new Point(93.1, 90.8232), new Point(93.02, 90.792), new Point(93.02, 90.7924), new Point(93.02, 90.7937), new Point(93.03, 90.7957), new Point(93.04, 90.7985), new Point(93.05, 90.802), new Point(93.06, 90.8062), new Point(93.07, 90.811), new Point(93.08, 90.8165), new Point(93.1, 90.8225), new Point(93.12, 90.829), new Point(93.14, 90.836), new Point(93.16, 90.8435), new Point(93.18, 90.8514), new Point(93.2, 90.8597), new Point(93.22, 90.8683), new Point(93.25, 90.8773), new Point(93.27, 90.8865), new Point(93.3, 90.8959), new Point(93.32, 90.9055), new Point(93.35, 90.9153), new Point(93.38, 90.9252), new Point(93.4, 90.9353), new Point(93.43, 90.9453), new Point(93.46, 90.9554), new Point(93.49, 90.9655), new Point(93.52, 90.9755), new Point(93.54, 90.9854), new Point(93.57, 90.9953), new Point(93.6, 91.0049), new Point(93.63, 91.0144), new Point(93.65, 91.0237), new Point(93.68, 91.0328), new Point(93.7, 91.0416), new Point(93.73, 91.0501), new Point(93.75, 91.0583), new Point(93.77, 91.066), new Point(93.79, 91.0735), new Point(93.81, 91.0804), new Point(93.83, 91.087), new Point(93.85, 91.093), new Point(93.87, 91.0986), new Point(93.88, 91.1036), new Point(93.89, 91.108), new Point(93.91, 91.1118), new Point(93.91, 91.115), new Point(93.92, 91.1176), new Point(93.93, 91.1194), new Point(93.93, 91.1206)), new Array(-80.66, -80.57, -80.49, -80.4, -80.31, -80.22, -80.18, -80.14, -80.1, -80.05, -80.01, -79.97, -79.99, -80.02, -80.04, -80.06, -80.09, -80.11, -80.13, -80.15, -80.18, -80.2, -80.22, -80.24, -80.26, -80.28, -80.3, -80.32, -80.34, -80.36, -80.37, -80.39, -80.41, -80.43, -80.44, -80.46, -80.47, -80.49, -80.5, -80.51, -80.53, -80.54, -80.55, -80.56, -80.57, -80.58, -80.59, -80.6, -80.61, -80.62, -80.63, -80.63, -80.64, -80.64, -80.65, -80.65, -80.66, -80.66, -80.66, -80.66), skeletonBase, 24)); bones.push(new Bone(new Array(new Point(102.25, 141.8381), new Point(102.25, 141.7967), new Point(102.24, 141.7549), new Point(102.23, 141.7127), new Point(102.23, 141.6701), new Point(102.22, 141.6272), new Point(102.18, 141.5908), new Point(102.13, 141.5542), new Point(102.09, 141.5172), new Point(102.04, 141.48), new Point(102, 141.4425), new Point(101.95, 141.4047), new Point(101.93, 141.4089), new Point(101.91, 141.4139), new Point(101.9, 141.4196), new Point(101.88, 141.426), new Point(101.87, 141.4331), new Point(101.86, 141.4408), new Point(101.86, 141.4491), new Point(101.85, 141.458), new Point(101.85, 141.4673), new Point(101.85, 141.4771), new Point(101.85, 141.4874), new Point(101.85, 141.498), new Point(101.85, 141.509), new Point(101.86, 141.5203), new Point(101.86, 141.5319), new Point(101.87, 141.5437), new Point(101.88, 141.5557), new Point(101.89, 141.5679), new Point(101.9, 141.5803), new Point(101.91, 141.5927), new Point(101.92, 141.6051), new Point(101.93, 141.6176), new Point(101.95, 141.6301), new Point(101.96, 141.6425), new Point(101.98, 141.6548), new Point(101.99, 141.667), new Point(102.01, 141.679), new Point(102.02, 141.6908), new Point(102.04, 141.7024), new Point(102.05, 141.7138), new Point(102.07, 141.7249), new Point(102.08, 141.7356), new Point(102.1, 141.746), new Point(102.11, 141.756), new Point(102.13, 141.7655), new Point(102.14, 141.7747), new Point(102.16, 141.7833), new Point(102.17, 141.7914), new Point(102.18, 141.799), new Point(102.2, 141.806), new Point(102.21, 141.8124), new Point(102.22, 141.8182), new Point(102.22, 141.8233), new Point(102.23, 141.8277), new Point(102.24, 141.8313), new Point(102.24, 141.8342), new Point(102.25, 141.8364), new Point(102.25, 141.8376)), new Array(-147.42, -147.33, -147.24, -147.16, -147.07, -146.98, -146.94, -146.9, -146.85, -146.81, -146.77, -146.73, -146.75, -146.77, -146.8, -146.82, -146.85, -146.87, -146.89, -146.91, -146.93, -146.96, -146.98, -147, -147.02, -147.04, -147.06, -147.08, -147.1, -147.11, -147.13, -147.15, -147.17, -147.18, -147.2, -147.22, -147.23, -147.24, -147.26, -147.27, -147.29, -147.3, -147.31, -147.32, -147.33, -147.34, -147.35, -147.36, -147.37, -147.38, -147.38, -147.39, -147.4, -147.4, -147.41, -147.41, -147.41, -147.42, -147.42, -147.42), skeletonBase, 25)); bones.push(new Bone(new Array(new Point(84.97, 152.8587), new Point(84.99, 152.8438), new Point(85, 152.8285), new Point(85.01, 152.8127), new Point(85.02, 152.7966), new Point(85.03, 152.78), new Point(84.99, 152.7564), new Point(84.96, 152.7324), new Point(84.92, 152.7082), new Point(84.88, 152.6836), new Point(84.85, 152.6588), new Point(84.81, 152.6337), new Point(84.78, 152.6306), new Point(84.76, 152.6284), new Point(84.74, 152.627), new Point(84.72, 152.6264), new Point(84.71, 152.6266), new Point(84.69, 152.6274), new Point(84.68, 152.629), new Point(84.67, 152.6312), new Point(84.67, 152.6339), new Point(84.66, 152.6373), new Point(84.66, 152.6412), new Point(84.65, 152.6456), new Point(84.65, 152.6505), new Point(84.65, 152.6558), new Point(84.66, 152.6615), new Point(84.66, 152.6675), new Point(84.66, 152.6739), new Point(84.67, 152.6806), new Point(84.68, 152.6875), new Point(84.68, 152.6946), new Point(84.69, 152.702), new Point(84.7, 152.7095), new Point(84.71, 152.7171), new Point(84.72, 152.7248), new Point(84.74, 152.7326), new Point(84.75, 152.7404), new Point(84.76, 152.7481), new Point(84.77, 152.7559), new Point(84.79, 152.7636), new Point(84.8, 152.7711), new Point(84.81, 152.7786), new Point(84.83, 152.7859), new Point(84.84, 152.793), new Point(84.85, 152.7999), new Point(84.87, 152.8066), new Point(84.88, 152.813), new Point(84.89, 152.819), new Point(84.9, 152.8248), new Point(84.91, 152.8302), new Point(84.92, 152.8353), new Point(84.93, 152.8399), new Point(84.94, 152.8441), new Point(84.95, 152.8478), new Point(84.96, 152.851), new Point(84.96, 152.8537), new Point(84.97, 152.8559), new Point(84.97, 152.8574), new Point(84.97, 152.8584)), new Array(-63.77, -63.69, -63.6, -63.51, -63.42, -63.33, -63.29, -63.25, -63.21, -63.16, -63.12, -63.08, -63.1, -63.13, -63.15, -63.18, -63.2, -63.22, -63.24, -63.27, -63.29, -63.31, -63.33, -63.35, -63.37, -63.39, -63.41, -63.43, -63.45, -63.47, -63.49, -63.5, -63.52, -63.54, -63.55, -63.57, -63.58, -63.6, -63.61, -63.63, -63.64, -63.65, -63.66, -63.67, -63.69, -63.7, -63.71, -63.71, -63.72, -63.73, -63.74, -63.74, -63.75, -63.76, -63.76, -63.76, -63.77, -63.77, -63.77, -63.77), skeletonBase, 26)); bones.push(new Bone(new Array(new Point(88.72, 160.4521), new Point(88.74, 160.4314), new Point(88.76, 160.4103), new Point(88.79, 160.3888), new Point(88.81, 160.3668), new Point(88.83, 160.3445), new Point(88.8, 160.318), new Point(88.77, 160.2912), new Point(88.74, 160.2642), new Point(88.71, 160.2368), new Point(88.68, 160.2091), new Point(88.64, 160.1812), new Point(88.62, 160.1797), new Point(88.59, 160.1792), new Point(88.57, 160.1794), new Point(88.55, 160.1803), new Point(88.53, 160.182), new Point(88.51, 160.1844), new Point(88.5, 160.1874), new Point(88.48, 160.1911), new Point(88.47, 160.1953), new Point(88.46, 160.2001), new Point(88.46, 160.2054), new Point(88.45, 160.2112), new Point(88.45, 160.2174), new Point(88.45, 160.2241), new Point(88.45, 160.2311), new Point(88.45, 160.2384), new Point(88.45, 160.246), new Point(88.45, 160.2539), new Point(88.46, 160.262), new Point(88.46, 160.2703), new Point(88.47, 160.2788), new Point(88.48, 160.2873), new Point(88.48, 160.296), new Point(88.49, 160.3047), new Point(88.5, 160.3135), new Point(88.51, 160.3223), new Point(88.52, 160.331), new Point(88.53, 160.3396), new Point(88.55, 160.3481), new Point(88.56, 160.3565), new Point(88.57, 160.3648), new Point(88.58, 160.3728), new Point(88.59, 160.3807), new Point(88.61, 160.3882), new Point(88.62, 160.3955), new Point(88.63, 160.4025), new Point(88.64, 160.4091), new Point(88.65, 160.4154), new Point(88.66, 160.4213), new Point(88.67, 160.4268), new Point(88.68, 160.4318), new Point(88.69, 160.4363), new Point(88.69, 160.4403), new Point(88.7, 160.4438), new Point(88.71, 160.4467), new Point(88.71, 160.449), new Point(88.71, 160.4507), new Point(88.72, 160.4518)), new Array(1.18, 1.27, 1.36, 1.44, 1.53, 1.62, 1.66, 1.7, 1.75, 1.79, 1.83, 1.87, 1.85, 1.82, 1.8, 1.78, 1.75, 1.73, 1.71, 1.69, 1.66, 1.64, 1.62, 1.6, 1.58, 1.56, 1.54, 1.52, 1.5, 1.48, 1.47, 1.45, 1.43, 1.42, 1.4, 1.38, 1.37, 1.35, 1.34, 1.33, 1.31, 1.3, 1.29, 1.28, 1.27, 1.26, 1.25, 1.24, 1.23, 1.22, 1.21, 1.21, 1.2, 1.2, 1.19, 1.19, 1.18, 1.18, 1.18, 1.18), skeletonBase, 27)); } } }//package dinowaurs.SkeletalAnim
Section 91
//tri_walk_SK (dinowaurs.SkeletalAnim.tri_walk_SK) package dinowaurs.SkeletalAnim { import flash.display.*; import flash.geom.*; import dinowaurs.*; public class tri_walk_SK extends SkeletalAnimation { public function tri_walk_SK(_arg1:Sprite){ super(_arg1); bones.push(new Bone(new Array(new Point(102.96, 62.7598), new Point(102.96, 64.6332), new Point(102.96, 66.7188), new Point(102.96, 68.4129), new Point(102.96, 69.1118), new Point(102.96, 67.3671), new Point(102.96, 64.2704), new Point(102.96, 60.7178), new Point(102.96, 57.6057), new Point(102.96, 55.8302), new Point(102.96, 56.2699), new Point(102.96, 57.3572), new Point(102.96, 58.7444), new Point(102.96, 60.0837), new Point(102.96, 61.0274), new Point(102.96, 61.5932), new Point(102.96, 62.0365), new Point(102.96, 62.3661), new Point(102.96, 62.5906), new Point(102.96, 62.719)), new Array(19.69, 21.13, 21.91, 22.54, 22.8, 21.03, 18.52, 15.73, 13.09, 11.04, 9.56, 8.35, 7.46, 6.9, 6.71, 8.22, 10.77, 13.79, 16.67, 18.84), skeletonBase, 0)); bones.push(new Bone(new Array(new Point(138.83, 49.921), new Point(138.49, 50.8964), new Point(138.3, 52.5), new Point(138.14, 53.8051), new Point(138.08, 54.3441), new Point(138.52, 53.6932), new Point(139.08, 52.1627), new Point(139.63, 50.3848), new Point(140.06, 48.9742), new Point(140.35, 48.5325), new Point(140.53, 49.9403), new Point(140.65, 51.817), new Point(140.73, 53.7934), new Point(140.78, 55.5009), new Point(140.79, 56.5717), new Point(140.66, 56.1437), new Point(140.38, 54.9108), new Point(139.96, 53.2817), new Point(139.45, 51.6562), new Point(139.01, 50.415)), new Array(7.05, 9.24, 10.81, 12.35, 13.55, 12.7, 11.03, 8.91, 6.73, 4.84, 3.18, 1.54, 0.02, -1.3, -2.33, -1.69, 0.03, 2.3, 4.58, 6.34), skeletonBase, 1)); bones.push(new Bone(new Array(new Point(170.4, 46.0212), new Point(169.9, 45.7923), new Point(169.55, 46.5363), new Point(169.22, 47.0067), new Point(169.01, 46.8932), new Point(169.55, 46.7027), new Point(170.31, 46.0802), new Point(171.06, 45.4598), new Point(171.66, 45.2528), new Point(172.05, 45.8526), new Point(172.29, 48.1813), new Point(172.45, 50.9643), new Point(172.55, 53.7842), new Point(172.59, 56.2244), new Point(172.58, 57.8694), new Point(172.46, 57.0855), new Point(172.2, 54.8967), new Point(171.75, 52.0083), new Point(171.17, 49.1185), new Point(170.63, 46.9043)), new Array(-7.25, -4.9, -2.54, -0.19, 1.86, 1.87, 1.06, -0.19, -1.52, -2.56, -3.24, -3.91, -4.99, -7.19, -9.5, -10.38, -10.25, -9.5, -8.5, -7.63), skeletonBase, 2)); bones.push(new Bone(new Array(new Point(200.91, 49.9059), new Point(200.53, 48.4221), new Point(200.27, 47.9031), new Point(199.97, 47.111), new Point(199.74, 45.8977), new Point(200.29, 45.7028), new Point(201.05, 45.5113), new Point(201.81, 45.5615), new Point(202.4, 46.0682), new Point(202.77, 47.2282), new Point(202.99, 49.9196), new Point(203.13, 53.0622), new Point(203.18, 56.4632), new Point(203.09, 60.0768), new Point(202.91, 62.9492), new Point(202.71, 62.6278), new Point(202.46, 60.3729), new Point(202.07, 57.0879), new Point(201.58, 53.6678), new Point(201.11, 50.9885)), new Array(-18.68, -15.87, -12.41, -8.88, -5.62, -4.39, -3.99, -4.08, -4.33, -4.4, -4.44, -4.88, -5.93, -9.89, -14.32, -16.59, -17.95, -18.61, -18.8, -18.75), skeletonBase, 3)); bones.push(new Bone(new Array(new Point(229.59, 59.6058), new Point(229.65, 56.7043), new Point(229.84, 54.4093), new Point(229.89, 51.7852), new Point(229.87, 48.8621), new Point(230.48, 48.0193), new Point(231.26, 47.6171), new Point(232.01, 47.717), new Point(232.59, 48.3558), new Point(232.96, 49.553), new Point(233.18, 52.2671), new Point(233.3, 55.6403), new Point(233.29, 59.5951), new Point(232.92, 65.2789), new Point(232.25, 70.4381), new Point(231.73, 71.2756), new Point(231.26, 69.7045), new Point(230.77, 66.7507), new Point(230.24, 63.4267), new Point(229.78, 60.722)), new Array(-32.7, -30.32, -27.31, -24.29, -21.57, -20.87, -20.95, -21.43, -21.94, -22.1, -21.6, -20.72, -20.06, -20.92, -23.13, -25.79, -28.11, -30.03, -31.47, -32.39), skeletonBase, 4)); bones.push(new Bone(new Array(new Point(252.67, 74.4307), new Point(253.33, 70.5557), new Point(254.21, 66.997), new Point(254.89, 63.0748), new Point(255.38, 58.9519), new Point(256.11, 57.7953), new Point(256.87, 57.4276), new Point(257.54, 57.7424), new Point(258.03, 58.6086), new Point(258.37, 59.8794), new Point(258.68, 62.3702), new Point(258.95, 65.3487), new Point(259.06, 69.0079), new Point(258.54, 75.0773), new Point(257.47, 81.2187), new Point(256.42, 83.2157), new Point(255.45, 82.6342), new Point(254.51, 80.4811), new Point(253.63, 77.7518), new Point(252.94, 75.4183)), new Array(-10.99, -14.2, -16.42, -18.01, -18.98, -20.78, -21.89, -21.71, -20.43, -17.98, -14.35, -10.14, -6.26, -4.32, -4.45, -5.84, -7.3, -8.7, -9.87, -10.69), skeletonBase, 5)); bones.push(new Bone(new Array(new Point(100.88, 63.8118), new Point(100.91, 65.7372), new Point(100.92, 67.8506), new Point(100.93, 69.5672), new Point(100.94, 70.2752), new Point(100.9, 68.4674), new Point(100.86, 65.2798), new Point(100.81, 61.6236), new Point(100.77, 58.4114), new Point(100.74, 56.5571), new Point(100.73, 56.9393), new Point(100.71, 57.9796), new Point(100.7, 59.3316), new Point(100.7, 60.6489), new Point(100.7, 61.585), new Point(100.71, 62.2102), new Point(100.74, 62.7532), new Point(100.78, 63.1985), new Point(100.83, 63.5316), new Point(100.86, 63.7398)), new Array(-151.41, -149.97, -149.19, -148.56, -148.3, -150.07, -152.58, -155.37, -158.01, -160.07, -161.55, -162.75, -163.64, -164.2, -164.39, -162.89, -160.33, -157.31, -154.43, -152.27), skeletonBase, 6)); bones.push(new Bone(new Array(new Point(72.38, 79.3304), new Point(72.81, 81.9676), new Point(73.05, 84.4618), new Point(73.24, 86.4848), new Point(73.33, 87.3186), new Point(72.78, 84.6481), new Point(72.05, 80.2164), new Point(71.31, 75.1387), new Point(70.68, 70.552), new Point(70.24, 67.6126), new Point(69.94, 67.2032), new Point(69.72, 67.5956), new Point(69.57, 68.4625), new Point(69.47, 69.476), new Point(69.44, 70.3071), new Point(69.7, 71.7515), new Point(70.18, 73.6683), new Point(70.84, 75.706), new Point(71.55, 77.5298), new Point(72.14, 78.833)), new Array(-152.31, -147.84, -143.75, -139.85, -137.74, -139.54, -142.2, -145.44, -148.95, -152.43, -157.55, -163.98, -170.41, -175.53, -178.05, -175.6, -170.68, -164.59, -158.63, -154.11), skeletonBase, 7)); bones.push(new Bone(new Array(new Point(47.42, 92.429), new Point(48.94, 96.9732), new Point(50.31, 101.1292), new Point(51.69, 104.6601), new Point(52.46, 106.2766), new Point(51.33, 102.9425), new Point(49.77, 97.4927), new Point(48.09, 91.129), new Point(46.53, 85.0913), new Point(45.25, 80.6593), new Point(43.89, 77.9676), new Point(42.62, 75.3752), new Point(41.77, 73.1587), new Point(41.37, 71.6698), new Point(41.27, 71.265), new Point(41.59, 73.9144), new Point(42.36, 78.2337), new Point(43.66, 83.1956), new Point(45.3, 87.7992), new Point(46.78, 91.1422)), new Array(-153.84, -148.29, -141.78, -135.26, -131.59, -133.41, -136.17, -139.68, -143.72, -148.07, -155.32, -164.81, -174.49, 177.69, 173.75, 176.7, -177.15, -169.45, -161.89, -156.13), skeletonBase, 8)); bones.push(new Bone(new Array(new Point(27.38, 102.2799), new Point(29.95, 108.7156), new Point(32.77, 114.9502), new Point(35.84, 120.382), new Point(37.65, 122.9802), new Point(35.99, 119.1695), new Point(33.67, 112.9605), new Point(31.08, 105.5823), new Point(28.53, 98.3112), new Point(26.3, 92.4769), new Point(23.6, 87.2971), new Point(21.08, 81.2341), new Point(19.55, 75.3135), new Point(19.06, 70.7791), new Point(19.07, 68.8451), new Point(19.3, 72.6385), new Point(20.06, 79.3546), new Point(21.71, 87.2909), new Point(24.08, 94.7467), new Point(26.36, 100.1842)), new Array(-170.15, -164.06, -156.04, -147.83, -142.3, -141.67, -141.6, -142.76, -145.82, -150.74, -158.96, -169.72, 179.11, 169.65, 164.02, 165.31, 169.91, 176.26, -177.25, -172.19), skeletonBase, 9)); bones.push(new Bone(new Array(new Point(7.08, 105.8081), new Point(10.13, 114.3792), new Point(13.94, 123.3224), new Point(18.4, 131.3583), new Point(21.34, 135.5883), new Point(19.83, 131.9565), new Point(17.52, 125.7667), new Point(14.67, 118.0584), new Point(11.49, 109.8944), new Point(8.32, 102.5546), new Point(4.37, 94.6995), new Point(0.8, 84.9156), new Point(-1.06, 74.9965), new Point(-1.22, 67.0795), new Point(-0.75, 63.1758), new Point(-0.64, 67.4155), new Point(-0.23, 75.7496), new Point(1.15, 85.9496), new Point(3.49, 95.7394), new Point(5.94, 102.988)), new Array(179.03, -173.1, -163.15, -153.06, -145.59, -142.86, -140.43, -138.06, -137.15, -139.37, -149.45, -162.46, -176.15, 171.72, 163.39, 162.06, 164.26, 168.52, 173.38, 177.37), skeletonBase, 10)); bones.push(new Bone(new Array(new Point(-5.91, 105.5835), new Point(-2.76, 115.9352), new Point(1.51, 127.0833), new Point(6.82, 137.2391), new Point(10.63, 142.9245), new Point(9.47, 139.794), new Point(7.51, 134.0359), new Point(5.01, 126.735), new Point(1.96, 118.7237), new Point(-1.53, 111.0078), new Point(-6.82, 101.2961), new Point(-11.58, 88.8252), new Point(-14.02, 75.8641), new Point(-14.07, 65.2049), new Point(-13.19, 59.4598), new Point(-12.99, 63.4119), new Point(-12.73, 72.2231), new Point(-11.58, 83.3616), new Point(-9.41, 94.2386), new Point(-7.03, 102.3884)), new Array(147.77, 159.2, 173.02, -173.09, -161.74, -154.9, -147.96, -139.52, -131.61, -127.1, -140.74, -158.09, -176.7, 165.94, 152.29, 145.8, 143.24, 143.38, 145, 146.87), skeletonBase, 11)); bones.push(new Bone(new Array(new Point(238.67, 89.8988), new Point(240, 86.5928), new Point(241.74, 83.7129), new Point(243.31, 80.4231), new Point(244.64, 76.8305), new Point(245.58, 75.8044), new Point(246.33, 75.4224), new Point(246.84, 75.648), new Point(247.18, 76.4181), new Point(247.46, 77.6574), new Point(247.93, 80.2432), new Point(248.48, 83.3854), new Point(248.79, 87.1638), new Point(248, 93.0771), new Point(246.24, 98.7982), new Point(244.39, 100.255), new Point(242.74, 99.1727), new Point(241.26, 96.586), new Point(239.98, 93.5172), new Point(239.04, 90.964)), new Array(-112.32, -114.01, -105.37, -95.81, -86.04, -78.18, -71.43, -65.81, -61.37, -63.29, -67.1, -75.49, -76.28, -77.69, -81.86, -85.23, -90.63, -95.74, -102.69, -109.35), skeletonBase, 12)); bones.push(new Bone(new Array(new Point(218.85, 138.1438), new Point(218.75, 134.2325), new Point(227.89, 134.0019), new Point(238, 132.313), new Point(248.22, 128.8673), new Point(256.24, 126.8633), new Point(262.92, 124.8728), new Point(268.2, 123.2362), new Point(272.15, 122.2088), new Point(270.89, 124.2598), new Point(268.21, 128.2994), new Point(261.53, 133.8867), new Point(261.14, 137.8407), new Point(259.11, 144.042), new Point(253.61, 150.4361), new Point(248.72, 152.2358), new Point(242.14, 151.3295), new Point(236.02, 148.4828), new Point(228.5, 144.3993), new Point(221.74, 140.1724)), new Array(-150.73, -174.62, 167.17, 160.65, 173.6, -170.54, -153.19, -136.64, -123.19, -119.73, -119.51, -123.42, -137.31, -157.2, -175.72, 178.91, -177.42, -168.3, -161.02, -153.92), skeletonBase, 13)); bones.push(new Bone(new Array(new Point(200.68, 148.3052), new Point(198.03, 136.1661), new Point(207.6, 129.3633), new Point(218.37, 125.4011), new Point(227.54, 126.5299), new Point(235.71, 130.2679), new Point(244.33, 134.246), new Point(253.05, 137.5145), new Point(260.75, 139.6197), new Point(260.55, 142.3262), new Point(257.94, 146.4068), new Point(250.05, 151.2509), new Point(245.83, 151.9426), new Point(239.91, 152.0913), new Point(232.85, 151.9738), new Point(227.9, 151.8218), new Point(221.35, 152.2503), new Point(215.64, 152.6872), new Point(208.81, 151.1525), new Point(203.03, 149.3064)), new Array(-71.42, -108.73, -125.51, -129.52, -113.28, -93.63, -72.3, -51.86, -32.9, -23.15, -19.92, -39.69, -57.26, -55.14, -56.58, -57.25, -55.08, -54.04, -60.6, -67.94), skeletonBase, 14)); bones.push(new Bone(new Array(new Point(203.28, 156.0278), new Point(195.41, 143.8822), new Point(202.87, 135.9952), new Point(213.18, 131.6858), new Point(224.32, 134.0139), new Point(235.19, 138.3989), new Point(246.81, 142.0075), new Point(258.08, 143.9223), new Point(267.59, 144.0451), new Point(268.04, 145.5293), new Point(265.6, 149.182), new Point(256.32, 156.4537), new Point(250.24, 158.7957), new Point(244.57, 158.7764), new Point(237.34, 158.7742), new Point(232.31, 158.6743), new Point(226.01, 158.9304), new Point(220.42, 159.2816), new Point(212.81, 158.2507), new Point(206.09, 156.8573)), new Array(-8.4, -61.51, -86.74, -94.53, -75.1, -51.22, -24.86, 1.14, 25.97, 41.64, 50.6, 39.71, -0.81, -0.67, -0.27, -1.85, -1.06, -0.74, -4.29, -7.2), skeletonBase, 15)); bones.push(new Bone(new Array(new Point(204.12, 84.3838), new Point(205.24, 82.521), new Point(206.82, 81.474), new Point(208.31, 80.0225), new Point(209.66, 78.0918), new Point(210.63, 77.4947), new Point(211.37, 77.0659), new Point(211.87, 76.9976), new Point(212.2, 77.4556), new Point(212.48, 78.5937), new Point(212.96, 81.4864), new Point(213.53, 85.168), new Point(213.87, 89.3482), new Point(213.05, 94.7371), new Point(211.25, 99.1068), new Point(209.42, 98.9384), new Point(207.85, 96.442), new Point(206.48, 92.6916), new Point(205.31, 88.7467), new Point(204.45, 85.6413)), new Array(-71.76, -78.54, -84.3, -89.87, -95, -98.73, -97.6, -95.63, -90.92, -82.34, -70.97, -58.78, -48.07, -41.69, -38.91, -40.65, -45.32, -51.12, -59.37, -67.86), skeletonBase, 16)); bones.push(new Bone(new Array(new Point(220.44, 133.9922), new Point(215.59, 133.7109), new Point(211.98, 133.4445), new Point(208.42, 132.249), new Point(205.09, 130.1181), new Point(202.68, 129.1127), new Point(204.45, 128.8316), new Point(206.73, 128.9703), new Point(211.34, 129.6752), new Point(219.42, 130.3569), new Point(229.97, 130.8651), new Point(240.58, 129.8426), new Point(248.75, 128.2153), new Point(252.03, 129.488), new Point(251.88, 131.9236), new Point(249.03, 132.9771), new Point(244.56, 133.5918), new Point(239.25, 133.359), new Point(231.9, 133.697), new Point(224.11, 134.024)), new Array(-113.28, -115.08, -118.81, -124.68, -131.78, -148.03, -161.52, -172.64, 179.89, -176.91, -153.04, -119.4, -92.69, -88.77, -91.16, -101.55, -105.2, -108.03, -110.57, -112.51), skeletonBase, 17)); bones.push(new Bone(new Array(new Point(212.51, 152.3839), new Point(207.09, 151.8448), new Point(202.31, 150.986), new Point(197.01, 148.7102), new Point(191.74, 145.0431), new Point(185.68, 139.7022), new Point(185.44, 135.1651), new Point(186.87, 131.5214), new Point(191.31, 129.6189), new Point(199.42, 131.4192), new Point(212.11, 139.9296), new Point(230.73, 147.2834), new Point(247.79, 148.2211), new Point(252.45, 149.5123), new Point(251.46, 151.9478), new Point(245.01, 152.5968), new Point(239.3, 152.9158), new Point(233.04, 152.3991), new Point(224.84, 152.443), new Point(216.43, 152.5207)), new Array(-59.98, -66.44, -71.1, -76.97, -84.05, -100.24, -113.62, -121.86, -125.37, -117.74, -89.63, -52.57, -23.9, -33.79, -61.47, -57.67, -58.7, -60.62, -60.8, -60.32), skeletonBase, 18)); bones.push(new Bone(new Array(new Point(216.56, 159.3834), new Point(210.32, 159.255), new Point(204.93, 158.6341), new Point(198.83, 156.5859), new Point(192.58, 153.0834), new Point(184.24, 147.6574), new Point(182.21, 142.5723), new Point(182.6, 138.3876), new Point(186.63, 136.211), new Point(195.66, 138.5742), new Point(212.16, 148.0134), new Point(235.65, 153.7023), new Point(255.18, 151.4958), new Point(259.17, 154.0077), new Point(255.32, 159.05), new Point(249.33, 159.4277), new Point(243.5, 159.8228), new Point(237, 159.443), new Point(228.79, 159.4991), new Point(220.43, 159.5438)), new Array(-0.93, -7.35, -9.36, -17.25, -26.15, -39.47, -49.05, -52.99, -52.05, -40.23, -8.57, 31.01, 60.78, 41.09, -0.99, -0.59, -1.41, -2.84, -2.44, -1.47), skeletonBase, 19)); bones.push(new Bone(new Array(new Point(128.64, 86.7218), new Point(129.23, 87.9418), new Point(129.55, 89.6679), new Point(129.8, 91.0673), new Point(129.9, 91.6439), new Point(129.19, 90.7222), new Point(128.15, 88.7491), new Point(126.92, 86.3949), new Point(125.72, 84.3604), new Point(124.74, 83.3824), new Point(124.02, 84.3755), new Point(123.43, 85.8984), new Point(122.98, 87.6018), new Point(122.7, 89.1348), new Point(122.6, 90.1446), new Point(123.36, 90.1836), new Point(124.62, 89.6885), new Point(126.04, 88.8406), new Point(127.34, 87.8703), new Point(128.28, 87.0603)), new Array(-62.33, -62.89, -66.26, -72.34, -78.18, -84.04, -87.46, -92.82, -97.42, -101.97, -108.24, -114.77, -118.18, -114.71, -108.94, -100.32, -90.24, -80.05, -71.11, -64.75), skeletonBase, 20)); bones.push(new Bone(new Array(new Point(151.76, 130.8575), new Point(151.92, 132.3013), new Point(149.59, 135.2826), new Point(144.89, 138.5494), new Point(140.09, 140.4145), new Point(134.34, 140.2789), new Point(130.34, 138.5245), new Point(124.46, 136.1574), new Point(119.26, 133.7646), new Point(114.39, 132.1192), new Point(108.41, 131.689), new Point(102.54, 131.1309), new Point(99.44, 131.5113), new Point(101.86, 134.3897), new Point(106.41, 137.263), new Point(114.42, 139.1977), new Point(124.39, 139.5116), new Point(134.63, 137.9186), new Point(143.46, 135.0159), new Point(149.52, 132.132)), new Array(-116.94, -121.34, -129.44, -140.5, -145.65, -145.71, -143.29, -138.86, -135.15, -135.16, -151.29, -171.34, 170.26, 159.53, 154.07, 157.04, 165.04, 174.93, -159.92, -130.86), skeletonBase, 21)); bones.push(new Bone(new Array(new Point(142.17, 149.6817), new Point(140.92, 150.3349), new Point(136.16, 151.586), new Point(128.59, 151.9733), new Point(122.64, 152.3191), new Point(116.88, 152.1658), new Point(113.39, 151.1394), new Point(108.54, 150.0423), new Point(104.28, 148.6502), new Point(99.4, 147.002), new Point(89.87, 141.8217), new Point(81.65, 134.2937), new Point(78.62, 127.9234), new Point(82.07, 126.9867), new Point(87.42, 128.0128), new Point(94.97, 130.9433), new Point(103.99, 134.0422), new Point(113.59, 136.0345), new Point(123.61, 142.2538), new Point(135.68, 148.098)), new Array(-34.39, -49.17, -61.27, -62.78, -65.31, -65.54, -78.8, -91.37, -95.39, -98.48, -111.31, -127.06, -140.4, -145.64, -145.42, -136.88, -123.7, -109.3, -80.57, -49.16), skeletonBase, 22)); bones.push(new Bone(new Array(new Point(149.52, 154.7149), new Point(146.74, 157.0766), new Point(140.44, 159.3991), new Point(132.66, 159.8965), new Point(126.36, 160.4139), new Point(120.57, 160.2755), new Point(115.12, 159.8787), new Point(108.32, 158.9485), new Point(103.44, 157.5195), new Point(98.09, 155.8131), new Point(86.64, 150.1206), new Point(76.28, 141.4022), new Point(71.75, 133.6004), new Point(74.72, 132.0134), new Point(80.08, 133.0675), new Point(88.47, 137.0311), new Point(99.04, 141.4526), new Point(110.64, 144.4423), new Point(125.07, 151.0424), new Point(141.51, 154.8385)), new Array(52.75, 27.87, -1.87, -0.15, 1.52, -0.3, -0.42, -1.59, -9.46, -16.52, -29.23, -44.65, -57.5, -62.13, -61.23, -51.98, -38.12, -23.11, 6.12, 37.86), skeletonBase, 23)); bones.push(new Bone(new Array(new Point(95.71, 89.786), new Point(96.4, 91.833), new Point(96.77, 94.0054), new Point(97.07, 95.7662), new Point(97.19, 96.4916), new Point(96.35, 94.5553), new Point(95.17, 91.1438), new Point(93.87, 87.1795), new Point(92.66, 83.62), new Point(91.73, 81.4589), new Point(91.07, 81.6001), new Point(90.54, 82.4325), new Point(90.15, 83.6228), new Point(89.91, 84.8362), new Point(89.83, 85.7358), new Point(90.48, 86.6385), new Point(91.61, 87.6134), new Point(92.98, 88.5043), new Point(94.3, 89.1982), new Point(95.31, 89.6344)), new Array(-101.02, -104.62, -104.87, -103.89, -101.9, -96.62, -91.08, -85.23, -79.02, -72.41, -65.82, -59.94, -55.14, -60.88, -69.25, -72.33, -77.05, -84.76, -89.93, -95.15), skeletonBase, 24)); bones.push(new Bone(new Array(new Point(85.87, 140.2289), new Point(83.41, 141.559), new Point(83.56, 143.675), new Point(84.71, 145.6542), new Point(86.58, 146.7786), new Point(90.4, 145.6052), new Point(94.18, 142.5293), new Point(98.13, 138.3978), new Point(102.43, 134.0773), new Point(107.24, 130.457), new Point(112.1, 128.4949), new Point(116.27, 126.9263), new Point(119.51, 125.8063), new Point(114.9, 129.7458), new Point(108.02, 133.8045), new Point(106.07, 135.6145), new Point(103.11, 137.7058), new Point(97.65, 139.6864), new Point(94.35, 140.5932), new Point(90.68, 140.82)), new Array(-148.77, -176.03, 159.28, 153.66, 153.28, 155.84, 158.77, 162.4, 167.07, 173.09, -171.54, -152.26, -131.79, -121.96, -117.19, -119.99, -131.8, -139.23, -144.47, -149.76), skeletonBase, 25)); bones.push(new Bone(new Array(new Point(68.34, 150.8392), new Point(62.96, 142.9599), new Point(64.4, 136.4093), new Point(66.36, 136.5455), new Point(68.28, 137.5493), new Point(71.71, 137.2039), new Point(75.08, 135.0946), new Point(78.6, 132.1871), new Point(82.46, 129.4744), new Point(86.9, 127.976), new Point(91.83, 131.494), new Point(98.12, 136.4499), new Point(105.84, 141.0735), new Point(104.04, 147.1236), new Point(98.64, 152.0256), new Point(95.81, 153.3544), new Point(89.44, 152.972), new Point(82.12, 153.0562), new Point(77.66, 152.489), new Point(72.97, 151.1255)), new Array(-77.04, -103.89, -127.71, -132.36, -131.67, -128.02, -124, -119.34, -113.74, -106.9, -90.91, -71.22, -50.61, -43.71, -45.86, -62.95, -60.17, -61.73, -71.56, -81.78), skeletonBase, 26)); bones.push(new Bone(new Array(new Point(70.24, 159.0888), new Point(60.93, 151.1784), new Point(59.22, 143.1074), new Point(60.65, 142.8024), new Point(62.65, 143.8736), new Point(66.5, 143.8742), new Point(70.35, 142.1136), new Point(74.45, 139.5676), new Point(79.05, 137.2245), new Point(84.44, 136.0763), new Point(91.7, 139.9586), new Point(100.85, 144.4643), new Point(111.22, 147.6149), new Point(110.16, 152.9721), new Point(104.54, 158.1002), new Point(99.66, 160.8934), new Point(93.65, 160.3153), new Point(86.13, 160.5117), new Point(80.34, 160.5193), new Point(74.18, 159.504)), new Array(-0.71, -30.38, -58.45, -67.69, -71.56, -72.05, -71.38, -67.94, -62.78, -56.01, -29.9, 3.91, 34.75, 40.17, 33.12, 1.95, 2.01, 0.06, 0.43, -4.8), skeletonBase, 27)); } } }//package dinowaurs.SkeletalAnim
Section 92
//GameObjectives (dinowaurs.tutorial.GameObjectives) package dinowaurs.tutorial { import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.betaMenu.*; import dinowaurs.managers.*; public class GameObjectives extends TutorialEvent { public var myBackBtn:MelbaButton; public var state:int;// = 0 public var myTextBox:MovieClip; public var bgClip:MovieClip; public var currMiniTut:TutorialEvent; public var myNextBtn:MelbaButton; public function GameObjectives(){ super("gameObjectives"); } public function setBodyText(_arg1:String):void{ var _local2:TextField = myTextBox.textBox; Main.setTextF(_local2, "gameobjTutBody", _arg1); } public function setTitleText(_arg1:String):void{ var _local2:TextField = myTextBox.titleBox; Main.setTextF(_local2, "gameobjTutHead", _arg1); } public function dinos():void{ if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; currMiniTut = new TutorialEvent("minimapIntroDino"); currMiniTut.selfKill = false; currMiniTut.startEvent("minimapIntroDino"); setTitleText("Your Dino"); setBodyText("This is your dino. Notice its position on the mini-map. You'll use dino-weapons to wreak havoc on the enemy."); state++; } public function myVillages():void{ bgClip.visible = false; if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; currMiniTut = new TutorialEvent("minimapIntroMyVil"); currMiniTut.selfKill = false; currMiniTut.startEvent("minimapIntroMyVil"); setTitleText("Your Villages"); setBodyText("Aside from being built, your villages produce gold, provide weapons and shoot down enemy dinos. More on them later."); state++; } public function hisVillages():void{ if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; currMiniTut = new TutorialEvent("minimapIntroHisVil"); currMiniTut.selfKill = false; currMiniTut.startEvent("minimapIntroHisVil"); setTitleText("Enemy Villages"); setBodyText("Any time you destroy an enemy's village, their dino can't respawn there and it stops making gold for them."); state++; } public function nextBtnDown(_arg1:MouseEvent):void{ if (state == 0){ objIntro(); } else { if (state == 1){ minimapIntro1(); } else { if (state == 2){ minimapIntro2(); } else { if (state == 3){ myVillages(); } else { if (state == 4){ hisVillages(); } else { if (state == 5){ dinos(); } else { if (state == 6){ end(); }; }; }; }; }; }; }; } public function minimapIntro1():void{ bgClip.visible = true; bgClip.gotoAndStop(2); setTitleText("Mini-Map"); setBodyText("The mini-map shows you the terrain of the whole map so you can track your villages, the dinos and slow zones."); state++; } public function minimapIntro2():void{ bgClip.visible = true; bgClip.gotoAndStop(3); if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; setTitleText("Mini-Map"); setBodyText("Action in the game is represented on the mini-map. See your projectiles hitting, strike limits and village states."); state++; } public function backBtnDown(_arg1:MouseEvent):void{ if (state <= 1){ return; }; state = (state - 2); nextBtnDown(_arg1); } override public function startEvent(_arg1:String):void{ super.startEvent(_arg1); if (Main.GAME_MANAGER == null){ myKillFlag = true; startTicking(); return; }; if (_arg1 == null){ myKillFlag = true; startTicking(); return; }; bgClip = AssetLoader.getAssetMC("tutorial", "tut_one"); promptBase.addChild(bgClip); bgClip.visible = false; myTextBox = AssetLoader.getAssetMC("tutorial", "tut_textBox"); setTitleText("Welcome Student!"); setBodyText("This is the first of three tutorials that will teach you how to be a fierce Dinowaurior."); myNextBtn = new MelbaButton(null, "none", myTextBox.nextBtn); myNextBtn.base.addEventListener(MouseEvent.MOUSE_DOWN, nextBtnDown); this.promptBase.addChild(myTextBox); Main.GAME_MANAGER.mPlayerDino.inMenu = true; myBackBtn = new MelbaButton(null, "none", myTextBox.backBtn); myBackBtn.base.addEventListener(MouseEvent.MOUSE_DOWN, backBtnDown); } public function end():void{ if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; Main.GAME_MANAGER.tutorialScripter.signalEvent("gameObjectives"); Main.stageRef.focus = Main.stageRef; Main.GAME_MANAGER.mPlayerDino.inMenu = false; } public function objIntro():void{ bgClip.visible = true; bgClip.gotoAndStop(1); setTitleText("Game Objective"); setBodyText("Destroy all the enemy villages and the dino to win. If the enemy dino has less than $200 and no villages, you win."); state++; } } }//package dinowaurs.tutorial
Section 93
//GoldWidgetTutorial (dinowaurs.tutorial.GoldWidgetTutorial) package dinowaurs.tutorial { import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.betaMenu.*; import dinowaurs.managers.*; public class GoldWidgetTutorial extends TutorialEvent { public var myBackBtn:MelbaButton; public var state:int;// = 0 public var myTextBox:MovieClip; public var myNextBtn:MelbaButton; public function GoldWidgetTutorial(){ super("goldWidgetTutorial"); } public function setBodyText(_arg1:String):void{ var _local2:TextField = myTextBox.textBox; Main.setTextF(_local2, "goldwidgetTutBody", _arg1); } public function setTitleText(_arg1:String):void{ var _local2:TextField = myTextBox.titleBox; Main.setTextF(_local2, "goldwidgetTutHead", _arg1); } public function shootCostIntro():void{ promptBase.gotoAndStop(4); setTitleText("Shot Display"); setBodyText("These red circles on top of the gold bar represent your current weapon's ammo cost. Each circle represents 100 gold."); state = 3; } public function goldBarIntro():void{ promptBase.gotoAndStop(3); setTitleText("Gold Display"); setBodyText("This yellow bar displays how much gold you have to spend. The entire bar and each subsequent circle represents 1000 gold."); state = 2; } public function dinoHealthIntro():void{ promptBase.gotoAndStop(2); setTitleText("Dino Health"); setBodyText("The color of this circle represents how much health your dino currently has."); state = 1; } public function nextBtnDown(_arg1:MouseEvent):void{ if (state == 0){ dinoHealthIntro(); } else { if (state == 1){ goldBarIntro(); } else { if (state == 2){ shootCostIntro(); } else { if (state == 3){ Main.GAME_MANAGER.tutorialScripter.signalEvent("goldWidgetTutorial"); Main.stageRef.focus = Main.stageRef; Main.GAME_MANAGER.mPlayerDino.inMenu = false; }; }; }; }; } public function backBtnDown(_arg1:MouseEvent):void{ if (state <= 1){ return; }; state = (state - 2); nextBtnDown(_arg1); } override public function startEvent(_arg1:String):void{ super.startEvent(_arg1); if (Main.GAME_MANAGER == null){ myKillFlag = true; startTicking(); return; }; if (_arg1 == null){ myKillFlag = true; startTicking(); return; }; myTextBox = AssetLoader.getAssetMC("tutorial", "tut_textBox"); setTitleText("Game H.U.D."); setBodyText("The HUD visualizes your gold resources, the potential cost of firing your current weapon, and your dino's health."); promptBase.gotoAndStop(0); myNextBtn = new MelbaButton(null, "none", myTextBox.nextBtn); myNextBtn.base.addEventListener(MouseEvent.MOUSE_DOWN, nextBtnDown); this.promptBase.addChild(myTextBox); Main.GAME_MANAGER.mPlayerDino.inMenu = true; myBackBtn = new MelbaButton(null, "none", myTextBox.backBtn); myBackBtn.base.addEventListener(MouseEvent.MOUSE_DOWN, backBtnDown); } } }//package dinowaurs.tutorial
Section 94
//SandboxServer (dinowaurs.tutorial.SandboxServer) package dinowaurs.tutorial { import flash.events.*; import dinowaurs.dinos.*; import dinowaurs.*; import engine.core.*; import flash.system.*; import flash.utils.*; import dinowaurs.managers.*; public class SandboxServer { public var lastTime:int; public var tickTimer:Timer; public var accumulator:int; public function SandboxServer(){ tickTimer = new Timer(parseInt(GameConfig.getValue("GameTickHertz"))); tickTimer.addEventListener(TimerEvent.TIMER, tick); tickTimer.start(); lastTime = getTimer(); } public function tickTut2Dino(_arg1:int):void{ var _local2:Dino; var _local3:VillageZone; var _local4:VillageZone; var _local8:int; var _local9:MelbaObject; var _local5:Number = -1; var _local6:Number = -1; var _local7:Array = Main.GAME_MANAGER.mNetworkedObjects; while (_local8 < _local7.length) { _local9 = MelbaObject(_local7[_local8]); if ((_local9 is Dino)){ if (Dino(_local9).ID.Value != Main.GAME_MANAGER.mPlayerDino.ID.Value){ _local2 = Dino(_local9); }; } else { if ((_local9 is VillageZone)){ if (VillageZone(_local9).mBaseTile.Pawn.the.x > _local5){ _local4 = VillageZone(_local9); _local5 = VillageZone(_local9).mBaseTile.Pawn.the.x; }; }; }; _local8++; }; _local8 = 0; while (_local8 < _local7.length) { _local9 = MelbaObject(_local7[_local8]); if ((_local9 is VillageZone)){ if (VillageZone(_local9).ID.Value != _local4.ID.Value){ if (VillageZone(_local9).mBaseTile.Pawn.the.x > _local6){ _local3 = VillageZone(_local9); _local6 = VillageZone(_local9).mBaseTile.Pawn.the.x; }; }; }; _local8++; }; if (_local2.Inertia.x < 0){ if (_local2.Pawn.the.x < _local6){ _local2.Inertia.x = 4; _local2.keyRight = true; _local2.keyLeft = false; } else { _local2.keyLeft = true; }; } else { if (_local2.Pawn.the.x > _local5){ _local2.Inertia.x = -4; _local2.keyRight = false; _local2.keyLeft = true; } else { _local2.keyRight = true; }; }; _local2.serverX = (_local2.Pawn.the.x + _local2.Pawn.InitialCenterX); _local2.serverY = Main.GAME_MANAGER.mTerrain.getHeight(_local2.serverX); _local2.Pawn.the.y = Main.GAME_MANAGER.mTerrain.getHeight(_local2.serverX); } public function tickGold(_arg1:int):void{ var _local4:VillageZone; var _local2:Array = Main.GAME_MANAGER.mVillageArray; var _local3:Number = 0; for each (_local4 in _local2) { if (_local4.mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ if (_local4.mVillageLevel == 0){ _local3 = (_local3 + (parseInt(GameConfig.getValue("village0GoldRate")) * (_arg1 / 1000))); }; if (_local4.mVillageLevel == 1){ _local3 = (_local3 + (parseInt(GameConfig.getValue("village1GoldRate")) * (_arg1 / 1000))); }; if (_local4.mVillageLevel == 2){ _local3 = (_local3 + (parseInt(GameConfig.getValue("village2GoldRate")) * (_arg1 / 1000))); }; }; }; Main.GAME_MANAGER.mPlayerInfo.gold = (Main.GAME_MANAGER.mPlayerInfo.gold + _local3); UIManager.setGold(Main.GAME_MANAGER.mPlayerInfo.gold); } public function tickPlayerDino(_arg1:int):void{ var _local4:Number; var _local5:Number; var _local6:Array; var _local2:Dino = Main.GAME_MANAGER.mPlayerDino; _local2.serverX = (_local2.Pawn.the.x + _local2.Pawn.InitialCenterX); _local2.serverY = _local2.Pawn.the.y; var _local3:Array = Main.GAME_MANAGER.mSlowZonePosArray; _local2.inSlowZone = false; _local2.slowZoneMult = parseFloat(GameConfig.getValue("slowZoneSpeedMult")); for each (_local4 in _local3) { _local5 = Math.abs((_local4 - _local2.serverX)); if (_local5 < 600){ _local2.inSlowZone = true; }; }; if (_local2.jetpackLaunch){ _local2.inSlowZone = false; }; if (_local2.jetpackLaunch){ if (_local2.Inertia.y > 0){ if (_local2.serverY >= (Main.GAME_MANAGER.mTerrain.getHeight(_local2.serverX) - 150)){ _local6 = new Array(); _local6.push("junk"); _local6.push("E_D_M"); _local6.push(_local2.ID.Value.toString()); _local6.push(_local2.serverX.toString()); _local6.push(_local2.serverY.toString()); _local6.push("0"); _local6.push("0"); _local6.push("0"); _local6.push(_local2.mBigHealth.toString()); Main.GAME_MANAGER.fullNetworkUpdate(_local6); }; }; } else { if (_local2.serverY >= (Main.GAME_MANAGER.mTerrain.getHeight(_local2.serverX) - 150)){ _local2.Inertia.y = 0; }; }; } public function handleEvent(_arg1:Array):void{ if (_arg1.length <= 0){ return; }; var _local2:String = _arg1[0]; if (_local2.match("shootEvent")){ new SandboxShootHandler(_arg1); }; if (_local2.match("equipEvent")){ Main.GAME_MANAGER.mPlayerDino.equippedWeapons[parseInt(_arg1[2])] = _arg1[1]; Main.GAME_MANAGER.mPlayerDino.equipWeaponStr(_arg1[1]); }; } public function sendVillageUpdate(_arg1:VillageZone):void{ var _local2:Array = new Array(); _local2.push("T_village"); _local2.push("village guy"); _local2.push(_arg1.ID.Value); _local2.push("false"); _local2.push(0); _local2.push(0); _local2.push(_arg1.mXPos); _local2.push(_arg1.mOwnerID); if (_arg1.mVillageBuilt){ _local2.push("true"); } else { _local2.push("false"); }; _local2.push(_arg1.mVillageHealth); _local2.push(_arg1.mVillageLevel); if (_arg1.constructioning){ _local2.push("true"); } else { _local2.push("false"); }; _arg1.networkUpdate(_local2); } public function sendDinoUpdate():void{ var _local1:Array = new Array(); _local1.push("T_dino"); _local1.push("dino guy"); _local1.push(Main.GAME_MANAGER.mPlayerDino.ID.Value); _local1.push("false"); _local1.push(Main.GAME_MANAGER.mPlayerDino.Pawn.the.x); _local1.push(Main.GAME_MANAGER.mPlayerDino.Pawn.the.y); _local1.push(Main.GAME_MANAGER.mPlayerDino.Inertia.x); _local1.push(Main.GAME_MANAGER.mPlayerDino.Inertia.y); _local1.push(0); _local1.push(0.5); _local1.push(Main.GAME_MANAGER.mPlayerDino.mBigHealth); _local1.push(0); _local1.push(0); if (Main.GAME_MANAGER.mPlayerDino.respawning){ _local1.push("true"); } else { _local1.push("false"); }; _local1.push(Main.GAME_MANAGER.mPlayerDino.equippedWeapons[0]); _local1.push(Main.GAME_MANAGER.mPlayerDino.equippedWeapons[1]); _local1.push(Main.GAME_MANAGER.mPlayerDino.currentWeapon); Main.GAME_MANAGER.mPlayerDino.networkUpdate(_local1); } public function tick(_arg1:TimerEvent):void{ if (Main.GAME_MANAGER == null){ return; }; var _local2:int = getTimer(); accumulator = (accumulator + (_local2 - lastTime)); lastTime = _local2; while (accumulator >= 10) { accumulator = (accumulator - 10); tickGold(10); if (Main.tutorialGame == 2){ tickTut2Dino(10); }; tickPlayerDino(10); }; } } }//package dinowaurs.tutorial
Section 95
//SandboxShootHandler (dinowaurs.tutorial.SandboxShootHandler) package dinowaurs.tutorial { import dinowaurs.dinos.*; import dinowaurs.*; import engine.core.*; import dinowaurs.weapons.*; import dinowaurs.managers.*; import engine.networking.*; public class SandboxShootHandler { public function SandboxShootHandler(_arg1:Array, _arg2:Boolean=true){ var _local3:Dino; var _local4:int; var _local5:String; var _local6:Number; var _local7:int; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Array; var _local17:int; var _local18:Number; super(); if (Main.GAME_MANAGER == null){ return; }; _local3 = Main.GAME_MANAGER.mPlayerDino; if (!_arg2){ _local3 = Main.GAME_MANAGER.mEnemyDino; }; if (_arg2){ _local4 = 0; _local7 = 1; if ((_local3.mGun is Cannon)){ _local4 = parseInt(GameConfig.getValue("cannonShotCost")); _local5 = "T_proj_cannon"; _local6 = parseInt(GameConfig.getValue("cannonPower")); _local8 = parseInt(GameConfig.getValue("cannonDamage")); } else { if ((_local3.mGun is SAM)){ _local4 = parseInt(GameConfig.getValue("SAMShotCost")); _local5 = "T_proj_SAMrocket"; _local6 = parseInt(GameConfig.getValue("SAMPower")); _local8 = parseInt(GameConfig.getValue("SAMDamage")); } else { if ((_local3.mGun is Castle)){ _local4 = parseInt(GameConfig.getValue("castleShotCost")); _local5 = "T_proj_arrow"; _local6 = parseInt(GameConfig.getValue("castlePower")); _local8 = parseInt(GameConfig.getValue("castleDamage")); _local7 = 4; } else { if ((_local3.mGun is ClusterBomb)){ _local4 = parseInt(GameConfig.getValue("clusterBombShotCost")); _local5 = "T_proj_cluster_main"; _local6 = parseInt(GameConfig.getValue("clusterBombPower")); _local8 = parseInt(GameConfig.getValue("clusterBombDamage")); } else { if ((_local3.mGun is MeteorGun)){ _local4 = parseInt(GameConfig.getValue("meteorGunShotCost")); _local5 = "meteor"; } else { if ((_local3.mGun is Jetpack)){ _local4 = parseInt(GameConfig.getValue("jetpackShotCost")); _local5 = "jetpack"; _local6 = parseInt(GameConfig.getValue("jetpackPower")); } else { if ((_local3.mGun is LawFirm)){ _local4 = parseInt(GameConfig.getValue("lawFirmShotCost")); _local5 = "T_proj_law"; _local6 = parseInt(GameConfig.getValue("lawFirmPower")); _local8 = parseInt(GameConfig.getValue("lawFirmDamage")); } else { if ((_local3.mGun is AirStrike)){ _local4 = parseInt(GameConfig.getValue("airStrikeShotCost")); _local5 = "airStrike"; } else { if ((_local3.mGun is Flamethrower)){ _local4 = parseInt(GameConfig.getValue("flamethrowerShotCost")); _local5 = "T_proj_flame"; _local6 = parseInt(GameConfig.getValue("flamethrowerPower")); _local8 = parseInt(GameConfig.getValue("flamethrowerDamage")); }; }; }; }; }; }; }; }; }; if (_local4 < Main.GAME_MANAGER.mPlayerInfo.gold){ Main.GAME_MANAGER.mPlayerInfo.gold = (Main.GAME_MANAGER.mPlayerInfo.gold - _local4); _local9 = parseFloat(_arg1[1]); _local10 = parseFloat(_arg1[2]); _local11 = parseFloat(_arg1[3]); _local12 = parseFloat(_arg1[4]); _local13 = ((Math.cos((_local9 * 0.0174532925)) * _local10) * _local6); _local14 = ((Math.sin((_local9 * 0.0174532925)) * _local10) * _local6); _local15 = 0.1; _local16 = new Array(); if (_local5 == "jetpack"){ _local16.push("junk"); _local16.push("E_D_M"); _local16.push(_local3.ID.Value.toString()); _local16.push(_local3.serverX.toString()); _local16.push(_local3.serverY.toString()); _local16.push((_local13 + _local3.Inertia.x).toString()); _local16.push((_local14 + _local3.Inertia.y).toString()); _local16.push("2"); _local16.push(_local3.mBigHealth.toString()); _local3.Pawn.the.y = (_local3.Pawn.the.y - 50); Main.GAME_MANAGER.fullNetworkUpdate(_local16); return; }; _local16.push("shortUpdate"); _local17 = 0; while (_local17 < _local7) { _local18 = ((Math.random() * 2) - 1); if (_local5 != "T_proj_arrow"){ _local18 = 1; }; _local16.push(_local5); _local16.push("projectileGuy"); _local16.push(Math.floor(((Math.random() * 10000) + 10000)).toString()); _local16.push("false"); _local16.push(_local11.toString()); _local16.push(_local12.toString()); _local16.push((_local13 + _local18).toString()); _local16.push((_local14 + _local18).toString()); _local16.push("0"); _local16.push(_local15.toString()); if (_arg2){ _local16.push(Main.GAME_MANAGER.mPlayerInfo.mUserID.toString()); } else { _local16.push("-2"); }; _local16.push(_local8.toString()); _local16.push("100000"); _local17++; }; Main.GAME_MANAGER.fullNetworkUpdate(_local16); }; }; } } }//package dinowaurs.tutorial
Section 96
//TierTutorial (dinowaurs.tutorial.TierTutorial) package dinowaurs.tutorial { import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.betaMenu.*; import engine.core.*; import dinowaurs.managers.*; public class TierTutorial extends TutorialEvent { public var state:int;// = 0 public var myTextBox:MovieClip; public var myNextBtn:MelbaButton; public var tut_two:MovieClip; public var vilDisplay:MovieClip; public var currMiniTut:TutorialEvent; public var myBackBtn:MelbaButton; public function TierTutorial(){ super("tierTutorial"); } public function tierIntro1():void{ tut_two.visible = true; tut_two.gotoAndStop(1); setTitleText("Tier Defenses"); setBodyText("Each of the three tiers has its own health, defense, and gold production rates. The lower a tier, the worse stats it has."); state++; } public function tierIntro2():void{ tut_two.visible = true; tut_two.gotoAndStop(2); if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; if (vilDisplay != null){ if (vilDisplay.parent != null){ vilDisplay.parent.removeChild(vilDisplay); }; }; setTitleText("Tier Weapons"); setBodyText("Furthermore, weapons are more expensive at lower tier villages, while higher tier villages provide discounts."); state++; } public function tier1():void{ tut_two.visible = false; if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; currMiniTut = new TutorialEvent("vilTier1"); currMiniTut.selfKill = false; currMiniTut.startEvent("vilTier1"); if (vilDisplay != null){ if (vilDisplay.parent != null){ vilDisplay.parent.removeChild(vilDisplay); }; }; vilDisplay = AssetLoader.getAssetMC("tutorial", "tut_tiervillage1"); GameData.GUI_BASE.addChildAt(vilDisplay, 0); setTitleText("Tier One"); setBodyText("Tier one villages have low health, defense, and only account for around 15% of your gold production."); state++; } public function tier2():void{ if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; currMiniTut = new TutorialEvent("vilTier2"); currMiniTut.selfKill = false; currMiniTut.startEvent("vilTier2"); vilDisplay.parent.removeChild(vilDisplay); vilDisplay = AssetLoader.getAssetMC("tutorial", "tut_tiervillage2"); GameData.GUI_BASE.addChildAt(vilDisplay, 0); setTitleText("Tier Two"); setBodyText("Tier two villages defend themselves better, so they're harder to destroy. They account for about 30% of your production."); state++; } override public function startEvent(_arg1:String):void{ super.startEvent(_arg1); if (Main.GAME_MANAGER == null){ myKillFlag = true; startTicking(); return; }; if (_arg1 == null){ myKillFlag = true; startTicking(); return; }; tut_two = AssetLoader.getAssetMC("tutorial", "tut_two"); promptBase.addChild(tut_two); tut_two.visible = false; myTextBox = AssetLoader.getAssetMC("tutorial", "tut_textBox"); setTitleText("Welcome Back!"); setBodyText("In this tutorial we'll go over some in-depth aspects of Dinowaurs, including village tiers and the Heads Up Display."); myNextBtn = new MelbaButton(null, "none", myTextBox.nextBtn); myNextBtn.base.addEventListener(MouseEvent.MOUSE_DOWN, nextBtnDown); this.promptBase.addChild(myTextBox); Main.GAME_MANAGER.mPlayerDino.inMenu = true; myBackBtn = new MelbaButton(null, "none", myTextBox.backBtn); myBackBtn.base.addEventListener(MouseEvent.MOUSE_DOWN, backBtnDown); } public function end():void{ if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; Main.GAME_MANAGER.tutorialScripter.signalEvent("tierTutorial"); Main.stageRef.focus = Main.stageRef; vilDisplay.parent.removeChild(vilDisplay); Main.GAME_MANAGER.mPlayerDino.inMenu = false; } public function setTitleText(_arg1:String):void{ var _local2:TextField = myTextBox.titleBox; Main.setTextF(_local2, "tierTutHead", _arg1); } public function nextBtnDown(_arg1:MouseEvent):void{ if (state == 0){ tierIntro1(); } else { if (state == 1){ tierIntro2(); } else { if (state == 2){ tier1(); } else { if (state == 3){ tier2(); } else { if (state == 4){ tier3(); } else { if (state == 5){ end(); }; }; }; }; }; }; } public function setBodyText(_arg1:String):void{ var _local2:TextField = myTextBox.textBox; Main.setTextF(_local2, "tierTutBody", _arg1); } public function backBtnDown(_arg1:MouseEvent):void{ if (state <= 1){ return; }; state = (state - 2); nextBtnDown(_arg1); } public function tier3():void{ if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; currMiniTut = new TutorialEvent("vilTier3"); currMiniTut.selfKill = false; currMiniTut.startEvent("vilTier3"); vilDisplay.parent.removeChild(vilDisplay); vilDisplay = AssetLoader.getAssetMC("tutorial", "tut_tiervillage3"); GameData.GUI_BASE.addChildAt(vilDisplay, 0); setTitleText("Tier Three"); setBodyText("Tier three villages are the toughest and produce the most gold. Run to this tier for cheap weapons if you dare to give up precious territory."); state++; } } }//package dinowaurs.tutorial
Section 97
//TutorialEvent (dinowaurs.tutorial.TutorialEvent) package dinowaurs.tutorial { import flash.events.*; import flash.display.*; import dinowaurs.dinos.*; import dinowaurs.betaMenu.*; import dinowaurs.*; import engine.core.*; import dinowaurs.managers.*; public class TutorialEvent extends Tickable { public var die:Boolean; public var eDisabled:Boolean;// = false public var startTimer:int; private var tut_enemy_dino:Class; private var tut_village_protect:Class; private var tut_village_destroymid:Class; public var enemyDino:MovieClip; public var deathTimer:int; private var tut_village_destroy:Class; public var additionalClips:Array; private var tut_village_protectmid:Class; public var eventName:String; public var selfKill:Boolean;// = true public var movementDisabled:Boolean;// = false public var dieFrame:int; public var activated:Boolean;// = false public var myDino:MovieClip; public var promptBase:MovieClip; public var additionalTimer:int; public var gunDisabled:Boolean;// = false private var tut_your_dino:Class; public var targetX:Number; public var meteorOnly:Boolean;// = false public var killTrigger:Array; public var firstTierOnly:Boolean;// = false public var tempName:String; public function TutorialEvent(_arg1:String){ tut_village_protect = AssetLoader.getAsset("tutorial", "tut_village_protect"); tut_village_protectmid = AssetLoader.getAsset("tutorial", "tut_village_protectmid"); tut_village_destroy = AssetLoader.getAsset("tutorial", "tut_village_destroy"); tut_village_destroymid = AssetLoader.getAsset("tutorial", "tut_village_destroymid"); tut_enemy_dino = AssetLoader.getAsset("tutorial", "tut_enemy_dino"); tut_your_dino = AssetLoader.getAsset("tutorial", "tut_your_dino"); super(("tutEvent_" + _arg1), true); if (!(_arg1 is String)){ tempName = "blank"; }; if (_arg1 == "[object TutorialEvent]"){ tempName = "blank"; }; trace(("me is SPAWNING " + _arg1)); if (tempName != "blank"){ tempName = _arg1; }; startTimer = 1000; if (_arg1 == "move_left"){ gunDisabled = true; eDisabled = true; } else { if (_arg1 == "move_right"){ gunDisabled = true; eDisabled = true; } else { if (_arg1 == "zoomOut"){ gunDisabled = true; eDisabled = true; } else { if (_arg1 == "zoomIn"){ gunDisabled = true; eDisabled = true; } else { if (_arg1 == "goToVillage"){ gunDisabled = true; eDisabled = true; } else { if (_arg1 == "villageMenu"){ gunDisabled = true; } else { if (_arg1 == "shootGun"){ eDisabled = true; } else { if (_arg1 == "goToEmptyVillage"){ eDisabled = true; } else { if (_arg1 == "buildVillage"){ movementDisabled = true; eDisabled = true; } else { if (_arg1 == "equip2weapons"){ firstTierOnly = true; } else { if (_arg1 == "switchWeapons"){ eDisabled = true; gunDisabled = true; movementDisabled = true; } else { if (_arg1 == "killDino"){ eDisabled = true; } else { if (_arg1 == "goToTier2Village"){ eDisabled = true; } else { if (_arg1 == "equipMeteor"){ meteorOnly = true; eDisabled = true; }; }; }; }; }; }; }; }; }; }; }; }; }; }; } public function inputEvent(_arg1:Array):Boolean{ if (eventName == null){ return (false); }; if (_arg1.length != killTrigger.length){ return (false); }; var _local2:int; while (_local2 < _arg1.length) { if (String(_arg1[_local2]) != killTrigger[_local2]){ return (false); }; _local2++; }; startDying(); return (true); } override public function tick(_arg1:uint):void{ var _local2:VillageZone; super.tick(_arg1); if (myKillFlag){ return; }; if (eventName == null){ startTimer = (startTimer - _arg1); if (!(tempName is String)){ return; }; if (startTimer <= 0){ startEvent(tempName); }; return; }; if (Main.GAME_MANAGER == null){ myKillFlag = true; startTicking(); return; }; if (eventName == null){ myKillFlag = true; startTicking(); return; }; if (die){ deathTimer = (deathTimer - _arg1); if (deathTimer <= 0){ myKillFlag = true; }; }; if (eventName.match(/^minimapIntro/)){ if (die){ return; }; additionalTimer = (additionalTimer - _arg1); if (additionalTimer <= 0){ Main.GAME_MANAGER.tutorialScripter.signalEvent(eventName); }; if (eventName == "minimapIntroDino"){ if (Main.GAME_MANAGER.mEnemyDino != null){ enemyDino.scaleX = Main.GAME_MANAGER.mEnemyDino.Pawn.Flipped; }; myDino.scaleX = Main.GAME_MANAGER.mPlayerDino.Pawn.Flipped; }; } else { if (eventName == "killDino"){ if (die){ return; }; if (Main.GAME_MANAGER.mEnemyDino != null){ if (Main.GAME_MANAGER.mEnemyDino.Pawn == null){ trace("tutdino already dead!!"); Main.GAME_MANAGER.tutorialScripter.signalEvent("killDino"); return; }; } else { trace("dat dino iz gone!"); Main.GAME_MANAGER.tutorialScripter.signalEvent("killDino"); return; }; if (!die){ if (UIManager.mMinimap.pointerGuy == null){ UIManager.mMinimap.spawnPointerGuy(Main.GAME_MANAGER.mEnemyDino, "red"); }; }; promptBase.x = (GameData.SCENE_BASE.x + ((Main.GAME_MANAGER.mEnemyDino.Pawn.the.x + (Main.GAME_MANAGER.mEnemyDino.Pawn.the.width / 2)) * GameData.SCENE_BASE.scaleX)); if (promptBase.x < 0){ promptBase.x = 0; }; if (promptBase.x > 700){ promptBase.x = 700; }; } else { if (eventName == "goToVillage"){ _local2 = Main.GAME_MANAGER.getMyClosestVillage(); if (_local2 == null){ startDying(); return; }; if (!die){ if (UIManager.mMinimap.pointerGuy == null){ UIManager.mMinimap.spawnPointerGuy(_local2, "green"); }; }; promptBase.x = (GameData.SCENE_BASE.x + (_local2.mXPos * GameData.SCENE_BASE.scaleX)); if (promptBase.x < 0){ promptBase.x = 0; }; if (promptBase.x > 700){ promptBase.x = 700; }; if ((((promptBase.x > 325)) && ((promptBase.x < 425)))){ startDying(); }; } else { if (eventName == "waitAtBuildingVillage"){ _local2 = Main.GAME_MANAGER.getMyClosestConstructioningVillage(); if (_local2 == null){ if (activated){ startDying(); if (Main.GAME_MANAGER.tutorialScripter.currentTut.ID.Value == ID.Value){ Main.GAME_MANAGER.tutorialScripter.nextTut(); }; }; return; }; activated = true; promptBase.x = (GameData.SCENE_BASE.x + (_local2.mXPos * GameData.SCENE_BASE.scaleX)); if (promptBase.x < 0){ promptBase.x = 0; }; if (promptBase.x > 700){ promptBase.x = 700; }; } else { if (eventName == "goToVillage"){ _local2 = Main.GAME_MANAGER.getMyClosestVillage(); if (_local2 == null){ startDying(); return; }; promptBase.x = (GameData.SCENE_BASE.x + (_local2.mXPos * GameData.SCENE_BASE.scaleX)); if (promptBase.x < 0){ promptBase.x = 0; }; if (promptBase.x > 700){ promptBase.x = 700; }; } else { if (eventName == "captureVillage"){ promptBase.x = (GameData.SCENE_BASE.x + (targetX * GameData.SCENE_BASE.scaleX)); if (promptBase.x < 0){ promptBase.x = 0; }; if (promptBase.x > 700){ promptBase.x = 700; }; } else { if (eventName == "goToTier3Village"){ _local2 = Main.GAME_MANAGER.getMyClosestVillageTier(2); if (_local2 == null){ startDying(); return; }; promptBase.x = (GameData.SCENE_BASE.x + (_local2.mXPos * GameData.SCENE_BASE.scaleX)); if (promptBase.x < 0){ promptBase.x = 0; }; if (promptBase.x > 700){ promptBase.x = 700; }; } else { if (eventName == "goToTier2Village"){ _local2 = Main.GAME_MANAGER.getMyClosestVillageTier(1); if (_local2 == null){ startDying(); return; }; if (!die){ if (UIManager.mMinimap.pointerGuy == null){ UIManager.mMinimap.spawnPointerGuy(_local2, "green"); }; }; promptBase.x = (GameData.SCENE_BASE.x + (_local2.mXPos * GameData.SCENE_BASE.scaleX)); if (promptBase.x < 0){ promptBase.x = 0; }; if (promptBase.x > 700){ promptBase.x = 700; }; if ((((promptBase.x > 250)) && ((promptBase.x < 450)))){ Main.GAME_MANAGER.tutorialScripter.signalEvent("goToTier2Village"); }; } else { if (eventName == "goToEmptyVillage"){ _local2 = Main.GAME_MANAGER.getEmptyClosestVillage(); if (_local2 == null){ startDying(); return; }; if (!die){ if (UIManager.mMinimap.pointerGuy == null){ UIManager.mMinimap.spawnPointerGuy(_local2, "green"); }; }; promptBase.x = (GameData.SCENE_BASE.x + (_local2.mXPos * GameData.SCENE_BASE.scaleX)); if (promptBase.x < 0){ promptBase.x = 0; }; if (promptBase.x > 700){ promptBase.x = 700; }; } else { if (eventName == "shootVillage"){ _local2 = Main.GAME_MANAGER.getEnemyClosestVillage(); if (_local2 == null){ startDying(); return; }; if (!die){ if (UIManager.mMinimap.pointerGuy == null){ UIManager.mMinimap.spawnPointerGuy(_local2, "red"); }; }; promptBase.x = (GameData.SCENE_BASE.x + (_local2.mXPos * GameData.SCENE_BASE.scaleX)); if (promptBase.x < 0){ promptBase.x = 0; }; if (promptBase.x > 700){ promptBase.x = 700; }; } else { if (eventName == "blank"){ if (!die){ dieFrame--; if (dieFrame <= 0){ Main.GAME_MANAGER.tutorialScripter.signalEvent("blank"); }; }; }; }; }; }; }; }; }; }; }; }; }; } public function startEvent(_arg1:String):void{ var _local2:Array; var _local3:Array; var _local4:int; var _local5:VillageZone; var _local6:MovieClip; var _local9:Dino; var _local10:MovieClip; trace(("me is starting " + _arg1)); if (Main.GAME_MANAGER == null){ myKillFlag = true; startTicking(); return; }; if (_arg1 == null){ myKillFlag = true; startTicking(); return; }; var _local7:Array = UIManager.mMinimap.mDinoClips; var _local8:Array = UIManager.mMinimap.mDinos; promptBase = new MovieClip(); additionalClips = new Array(); if (_arg1 == "blank"){ promptBase = new MovieClip(); killTrigger = new Array(); deathTimer = 700; dieFrame = 100; eventName = "blank"; } else { if (_arg1 == "move_left"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_move_left"); killTrigger = new Array("moveEvent", "-1", "0"); deathTimer = 50; dieFrame = 20; eventName = "N/A"; gunDisabled = true; eDisabled = true; } else { if (_arg1 == "endTutorial_0"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_end"); killTrigger = new Array(); deathTimer = 20000; dieFrame = 20000; eventName = "endTutorial_0"; new MelbaButton(null, "none", promptBase.btn_quit); new MelbaButton(null, "none", promptBase.btn_continue); } else { if (_arg1 == "endTutorial_1"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_end2"); killTrigger = new Array(); deathTimer = 20000; dieFrame = 20000; eventName = "endTutorial_1"; new MelbaButton(null, "none", promptBase.btn_quit); new MelbaButton(null, "none", promptBase.btn_continue); } else { if (_arg1 == "endTutorial_2"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_end3"); killTrigger = new Array(); deathTimer = 20000; dieFrame = 20000; eventName = "endTutorial_2"; new MelbaButton(null, "none", promptBase.btn_quit); new MelbaButton(null, "none", promptBase.btn_continue); } else { if (_arg1 == "move_right"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_move_right"); killTrigger = new Array("moveEvent", "1", "0"); deathTimer = 50; dieFrame = 20; eventName = "N/A"; gunDisabled = true; eDisabled = true; } else { if (_arg1 == "vilTier1"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_village_protect"); killTrigger = new Array(); deathTimer = 1; dieFrame = 1; eventName = "vilTier1"; _local2 = UIManager.mMinimap.mVillageClips; _local3 = Main.GAME_MANAGER.mVillageArray; _local4 = 0; while (_local4 < _local2.length) { _local5 = _local3[_local4]; if (_local5.mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ if (_local5.mVillageLevel == 0){ promptBase.x = _local2[_local4].x; promptBase.y = _local2[_local4].y; }; UIManager.mMinimap.mVillageBase.addChild(promptBase); }; _local4++; }; return; } else { if (_arg1 == "vilTier2"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_village_protect"); killTrigger = new Array(); deathTimer = 1; dieFrame = 1; eventName = "vilTier2"; _local2 = UIManager.mMinimap.mVillageClips; _local3 = Main.GAME_MANAGER.mVillageArray; _local4 = 0; while (_local4 < _local2.length) { _local5 = _local3[_local4]; if (_local5.mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ if (_local5.mVillageLevel == 1){ promptBase.x = _local2[_local4].x; promptBase.y = _local2[_local4].y; }; UIManager.mMinimap.mVillageBase.addChild(promptBase); }; _local4++; }; return; } else { if (_arg1 == "vilTier3"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_village_protect"); killTrigger = new Array(); deathTimer = 1; dieFrame = 1; eventName = "vilTier3"; _local2 = UIManager.mMinimap.mVillageClips; _local3 = Main.GAME_MANAGER.mVillageArray; _local4 = 0; while (_local4 < _local2.length) { _local5 = _local3[_local4]; if (_local5.mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ if (_local5.mVillageLevel == 2){ promptBase.x = _local2[_local4].x; promptBase.y = _local2[_local4].y; }; UIManager.mMinimap.mVillageBase.addChild(promptBase); }; _local4++; }; return; } else { if (_arg1 == "minimapIntroMyVil"){ promptBase = new MovieClip(); additionalClips = new Array(); _local2 = UIManager.mMinimap.mVillageClips; _local3 = Main.GAME_MANAGER.mVillageArray; _local4 = 0; while (_local4 < _local2.length) { _local5 = _local3[_local4]; if (_local5.mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ if (_local5.mVillageLevel != 1){ _local6 = AssetLoader.getAssetMC("tutorial", "tut_village_protect"); } else { _local6 = AssetLoader.getAssetMC("tutorial", "tut_village_protectmid"); }; _local6.x = _local2[_local4].x; _local6.y = _local2[_local4].y; UIManager.mMinimap.mVillageBase.addChild(_local6); additionalClips.push(_local6); }; _local4++; }; killTrigger = new Array(); deathTimer = 700; dieFrame = 1; eventName = "minimapIntroMyVil"; additionalTimer = 5000; } else { if (_arg1 == "minimapIntroHisVil"){ promptBase = new MovieClip(); additionalClips = new Array(); _local2 = UIManager.mMinimap.mVillageClips; _local3 = Main.GAME_MANAGER.mVillageArray; _local4 = 0; while (_local4 < _local2.length) { _local5 = _local3[_local4]; if (_local5.mOwnerID != Main.GAME_MANAGER.mPlayerInfo.mUserID){ if (_local5.mVillageLevel != 1){ _local6 = new tut_village_destroy(); } else { _local6 = new tut_village_destroymid(); }; _local6.x = _local2[_local4].x; _local6.y = _local2[_local4].y; UIManager.mMinimap.mVillageBase.addChild(_local6); additionalClips.push(_local6); }; _local4++; }; killTrigger = new Array(); deathTimer = 700; dieFrame = 1; eventName = "minimapIntroHisVil"; additionalTimer = 5000; } else { if (_arg1 == "minimapIntroDino"){ if (die){ return; }; promptBase = new MovieClip(); additionalClips = new Array(); _local7 = UIManager.mMinimap.mDinoClips; _local8 = UIManager.mMinimap.mDinos; _local4 = 0; while (_local4 < _local7.length) { _local9 = _local8[_local4]; if (_local9.ID.Value != Main.GAME_MANAGER.mPlayerDino.ID.Value){ _local10 = new tut_enemy_dino(); enemyDino = _local10; } else { _local10 = new tut_your_dino(); myDino = _local10; }; _local7[_local4].addChild(_local10); additionalClips.push(_local10); _local4++; }; killTrigger = new Array(); deathTimer = 700; dieFrame = 1; eventName = "minimapIntroDino"; additionalTimer = 5000; } else { if (_arg1 == "minimapIntro"){ promptBase = new MovieClip(); additionalClips = new Array(); _local2 = UIManager.mMinimap.mVillageClips; _local3 = Main.GAME_MANAGER.mVillageArray; _local7 = UIManager.mMinimap.mDinoClips; _local8 = UIManager.mMinimap.mDinos; _local4 = 0; while (_local4 < _local2.length) { _local5 = _local3[_local4]; if (_local5.mOwnerID != Main.GAME_MANAGER.mPlayerInfo.mUserID){ if (_local5.mVillageLevel != 1){ _local6 = new tut_village_destroy(); } else { _local6 = new tut_village_destroymid(); }; } else { if (_local5.mVillageLevel != 1){ _local6 = AssetLoader.getAssetMC("tutorial", "tut_village_protect"); } else { _local6 = AssetLoader.getAssetMC("tutorial", "tut_village_protectmid"); }; }; _local6.x = _local2[_local4].x; _local6.y = _local2[_local4].y; UIManager.mMinimap.mVillageBase.addChild(_local6); additionalClips.push(_local6); _local4++; }; _local4 = 0; while (_local4 < _local7.length) { _local9 = _local8[_local4]; if (_local9.ID.Value != Main.GAME_MANAGER.mPlayerDino.ID.Value){ _local10 = new tut_enemy_dino(); } else { _local10 = new tut_your_dino(); }; _local7[_local4].addChild(_local10); additionalClips.push(_local10); _local4++; }; killTrigger = new Array(); deathTimer = 700; dieFrame = 1; eventName = "minimapIntro"; additionalTimer = 5000; } else { if (_arg1 == "zoomOut"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_zoom_out"); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "zoomOut"; gunDisabled = true; eDisabled = true; } else { if (_arg1 == "zoomIn"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_zoom_in"); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "zoomIn"; gunDisabled = true; eDisabled = true; } else { if (_arg1 == "goToVillage"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_village_target"); promptBase.y = 150; promptBase.scaleX = (promptBase.scaleY = 0.5); killTrigger = new Array(); deathTimer = 2500; dieFrame = 11; eventName = "goToVillage"; eDisabled = true; } else { if (_arg1 == "villageMenu"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_village_menu"); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "villageMenu"; } else { if (_arg1 == "exitMenu"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_village_menu_exit"); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "exitMenu"; } else { if (_arg1 == "equipButton"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_equip_button"); promptBase.x = (promptBase.x + 175); promptBase.y = (promptBase.y + 125); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "equipButton"; } else { if (_arg1 == "equipCannon"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_menu_equip"); promptBase.x = (promptBase.x + 165); promptBase.y = (promptBase.y + 135); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "equipCannon"; } else { if (_arg1 == "equipMeteor"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_equip_meteor"); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "equipMeteor"; } else { if (_arg1 == "shootGun"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_shoot_gun"); killTrigger = new Array(); deathTimer = 2000; dieFrame = 11; eventName = "shootGun"; eDisabled = true; movementDisabled = true; } else { if (_arg1 == "shootVillage"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_shoot_village_target"); promptBase.y = 150; promptBase.scaleX = (promptBase.scaleY = 0.4); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "shootVillage"; } else { if (_arg1 == "captureVillage"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_capture"); promptBase.y = 150; promptBase.scaleX = (promptBase.scaleY = 0.7); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "captureVillage"; targetX = Main.GAME_MANAGER.getEnemyClosestVillage().mXPos; } else { if (_arg1 == "goToEmptyVillage"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_village_target"); promptBase.y = 150; promptBase.scaleX = (promptBase.scaleY = 0.4); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "goToEmptyVillage"; eDisabled = true; } else { if (_arg1 == "buildVillage"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_build_village"); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "buildVillage"; movementDisabled = true; eDisabled = false; } else { if (_arg1 == "waitAtBuildingVillage"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_village_wait"); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "waitAtBuildingVillage"; } else { if (_arg1 == "produceButton"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_buy_left"); promptBase.x = 290; promptBase.y = 220; killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "produceButton"; } else { if (_arg1 == "produceSam"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_buy_left"); promptBase.x = 290; promptBase.y = 220; killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "produceSam"; } else { if (_arg1 == "equipSam"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_menu_equip"); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "equipSam"; } else { if (_arg1 == "equip2weapons"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_menu_equip"); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "equip2weapons"; } else { if (_arg1 == "switchWeapons"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_switch_weapons"); killTrigger = new Array(); deathTimer = 1500; dieFrame = 11; eventName = "switchWeapons"; movementDisabled = true; gunDisabled = true; } else { if (_arg1 == "goToTier3Village"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_village_target"); promptBase.y = 150; promptBase.scaleX = (promptBase.scaleY = 0.4); killTrigger = new Array(); deathTimer = 1500; dieFrame = 11; eventName = "goToTier3Village"; } else { if (_arg1 == "goToTier2Village"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_village_target"); promptBase.y = 150; promptBase.scaleX = (promptBase.scaleY = 0.4); killTrigger = new Array(); deathTimer = 1500; dieFrame = 11; eventName = "goToTier2Village"; } else { if (_arg1 == "produceAirStrike"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_buy_left"); promptBase.x = 545; promptBase.y = 220; killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "produceAirStrike"; } else { if (_arg1 == "equipAirStrike"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_menu_equip"); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "equipAirStrike"; } else { if (_arg1 == "deployAirStrike"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_deploy_airstrike"); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "deployAirStrike"; } else { if (_arg1 == "dropTheHammer"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_drop_hammer"); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "dropTheHammer"; } else { if (_arg1 == "killDino"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_kill_dino"); promptBase.scaleX = (promptBase.scaleY = 0.5); killTrigger = new Array(); deathTimer = 700; dieFrame = 11; eventName = "killDino"; } else { if (_arg1 == "goldWidgetTutorial"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_goldWidget"); killTrigger = new Array(); deathTimer = 1; dieFrame = 1; eventName = "goldWidgetTutorial"; } else { if (_arg1 == "gameObjectives"){ promptBase = new MovieClip(); killTrigger = new Array(); deathTimer = 1; dieFrame = 1; eventName = "gameObjectives"; } else { if (_arg1 == "tierTutorial"){ promptBase = new MovieClip(); killTrigger = new Array(); deathTimer = 1; dieFrame = 1; eventName = "tierTutorial"; } else { if (_arg1 == "weaponTutorial"){ promptBase = new MovieClip(); killTrigger = new Array(); deathTimer = 1; dieFrame = 1; eventName = "weaponTutorial"; } else { if (_arg1 == "big_village_MenuTutorial"){ promptBase = AssetLoader.getAssetMC("tutorial", "tut_villageMenuTutorial"); killTrigger = new Array(); deathTimer = 1; dieFrame = 1; eventName = "big_village_MenuTutorial"; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; if (GameData.GUI_BASE != null){ GameData.GUI_BASE.addChild(promptBase); }; _local2 = null; _local3 = null; _local5 = null; _local6 = null; _local7 = null; _local8 = null; } public function signalEvent(_arg1:String):Boolean{ if (eventName == null){ return (false); }; if (!eventName.match(_arg1)){ return (false); }; if (UIManager.mMinimap != null){ UIManager.mMinimap.killPointerGuy(); }; SoundManager.playFX("INT_MenuGconfirm", 0); startDying(); return (true); } override public function kill():void{ var _local1:int; var _local2:MovieClip; super.kill(); if (eventName == null){ return; }; if (additionalClips != null){ _local1 = 0; while (_local1 < additionalClips.length) { _local2 = additionalClips[_local1]; if (_local2 != null){ if (_local2.parent != null){ _local2.parent.removeChild(_local2); }; }; _local1++; }; }; additionalClips = new Array(); if (promptBase.parent != null){ promptBase.parent.removeChild(promptBase); }; } public function startDying():void{ if (eventName == null){ return; }; if (!selfKill){ return; }; die = true; promptBase.visible = false; } } }//package dinowaurs.tutorial
Section 98
//TutorialScript (dinowaurs.tutorial.TutorialScript) package dinowaurs.tutorial { import dinowaurs.managers.*; public class TutorialScript { public var currentTut:TutorialEvent; public var tutorialArray:Array; public function TutorialScript(_arg1:int){ tutorialArray = new Array(); if (_arg1 == 0){ tutorialArray.push("endTutorial_0"); tutorialArray.push("buildVillage"); tutorialArray.push("goToEmptyVillage"); tutorialArray.push("shootVillage"); tutorialArray.push("shootGun"); tutorialArray.push("switchWeapons"); tutorialArray.push("exitMenu"); tutorialArray.push("equip2weapons"); tutorialArray.push("villageMenu"); tutorialArray.push("big_village_MenuTutorial"); tutorialArray.push("goToVillage"); tutorialArray.push("zoomIn"); tutorialArray.push("zoomOut"); tutorialArray.push("move_right"); tutorialArray.push("move_left"); tutorialArray.push("gameObjectives"); currentTut = new TutorialEvent("blank"); } else { if (_arg1 == 1){ tutorialArray.push("endTutorial_1"); tutorialArray.push("dropTheHammer"); tutorialArray.push("deployAirStrike"); tutorialArray.push("equipMeteor"); tutorialArray.push("villageMenu"); tutorialArray.push("goToTier2Village"); tutorialArray.push("killDino"); tutorialArray.push("buildVillage"); tutorialArray.push("goToEmptyVillage"); tutorialArray.push("shootVillage"); tutorialArray.push("goldWidget"); tutorialArray.push("tierTutorial"); currentTut = new TutorialEvent("blank"); } else { tutorialArray.push("minimapIntroDino"); tutorialArray.push("minimapIntroHisVil"); tutorialArray.push("minimapIntroMyVil"); if (_arg1 == 2){ tutorialArray.push("weaponTutorial"); }; currentTut = new TutorialEvent("blank"); }; }; } public function nextTut():void{ if (tutorialArray.length > 0){ if (tutorialArray[(tutorialArray.length - 1)] == "goldWidget"){ currentTut = new GoldWidgetTutorial(); tutorialArray.pop(); return; }; if (tutorialArray[(tutorialArray.length - 1)] == "gameObjectives"){ currentTut = new GameObjectives(); tutorialArray.pop(); return; }; if (tutorialArray[(tutorialArray.length - 1)] == "tierTutorial"){ currentTut = new TierTutorial(); tutorialArray.pop(); return; }; if (tutorialArray[(tutorialArray.length - 1)] == "big_village_MenuTutorial"){ currentTut = new VillageMenuTutorial(); tutorialArray.pop(); return; }; if (tutorialArray[(tutorialArray.length - 1)] == "weaponTutorial"){ currentTut = new WeaponTutorial(); tutorialArray.pop(); return; }; currentTut = new TutorialEvent(tutorialArray.pop()); } else { currentTut = null; }; } public function clearAll():void{ if (currentTut != null){ currentTut.additionalTimer = 0; currentTut.startDying(); }; tutorialArray = new Array(); } public function inputEvent(_arg1:Array):void{ if (currentTut == null){ return; }; if (currentTut.inputEvent(_arg1)){ nextTut(); }; } public function signalEvent(_arg1:String):void{ if (_arg1 == "shootVillage"){ if (Main.tutorialGame == 2){ if (Main.GAME_MANAGER.getEnemyBuiltClosestVillage() == null){ tutorialArray.push(new TutorialEvent("endTutorial_2")); nextTut(); return; }; }; }; if (currentTut == null){ return; }; if (currentTut.signalEvent(_arg1)){ nextTut(); }; } } }//package dinowaurs.tutorial
Section 99
//WeaponTutorial (dinowaurs.tutorial.WeaponTutorial) package dinowaurs.tutorial { import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.betaMenu.*; import dinowaurs.managers.*; public class WeaponTutorial extends TutorialEvent { public var weaponClip:MovieClip; public var state:int;// = 0 public var myTextBox:MovieClip; public var myNextBtn:MelbaButton; public var myBackBtn:MelbaButton; public var currMiniTut:TutorialEvent; public function WeaponTutorial(){ super("weaponTutorial"); } public function jetpack2():void{ weaponClip.gotoAndStop(6); if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; setTitleText("Jetpack"); setBodyText("Once the jetpack overheats, it turns bright red. You must wait until it has cooled down *completely* to use it again."); state++; } public function flame():void{ weaponClip.gotoAndStop(10); if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; setTitleText("Flamethrower"); setBodyText("The flamethrower launches a jet of flame torching anything near its blaze, including your own villages. "); state++; } public function tier1Weaps():void{ weaponClip.gotoAndStop(2); setTitleText("Tier One Weapons"); setBodyText("Tier one weapons all fire one or more projectiles in an arc, and they do damage on impact. Each has their own use."); state++; } public function law1():void{ weaponClip.gotoAndStop(7); if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; setTitleText("Lawfirm"); setBodyText("This tier three weapon launches a lawyer. He runs toward the nearest enemy village and delivers lawsuits that damage the village."); state++; } public function law2():void{ weaponClip.gotoAndStop(8); if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; setTitleText("Lawfirm"); setBodyText("Lawyers aren't guaranteed to make it to the next village. The enemy dino can easily step on them or shoot them with weapons."); state++; } public function end():void{ if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; Main.GAME_MANAGER.tutorialScripter.signalEvent("weaponTutorial"); Main.stageRef.focus = Main.stageRef; Main.GAME_MANAGER.mPlayerDino.inMenu = false; } override public function startEvent(_arg1:String):void{ super.startEvent(_arg1); if (Main.GAME_MANAGER == null){ myKillFlag = true; startTicking(); return; }; if (_arg1 == null){ myKillFlag = true; startTicking(); return; }; weaponClip = AssetLoader.getAssetMC("tutorial", "tut_weapons"); weaponClip.stop(); promptBase.addChild(weaponClip); if (weaponClip.bg_multiply != null){ weaponClip.bg_multiply.blendMode = BlendMode.MULTIPLY; }; myTextBox = AssetLoader.getAssetMC("tutorial", "tut_textBox"); myNextBtn = new MelbaButton(null, "none", myTextBox.nextBtn); myNextBtn.base.addEventListener(MouseEvent.MOUSE_DOWN, nextBtnDown); this.promptBase.addChild(myTextBox); Main.GAME_MANAGER.mPlayerDino.inMenu = true; myBackBtn = new MelbaButton(null, "none", myTextBox.backBtn); myBackBtn.base.addEventListener(MouseEvent.MOUSE_DOWN, backBtnDown); setTitleText("Weapon Overview"); setBodyText("Welcome to all the weapons in Dinowaurs. To be a skilled Waurior you'll need to study up first."); } public function setTitleText(_arg1:String):void{ var _local2:TextField = myTextBox.titleBox; Main.setTextF(_local2, "weaponTutHead", _arg1); } public function flame2():void{ weaponClip.gotoAndStop(11); if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; setTitleText("Flamethrower"); setBodyText("After the initial jet of flame has dissipated, residule fire remains, laying down a fiery barrier on the ground that does damage over time."); state++; } public function nextBtnDown(_arg1:MouseEvent):void{ if (state == 0){ tier1Weaps(); } else { if (state == 1){ cluster(); } else { if (state == 2){ meteor(); } else { if (state == 3){ jetpack(); } else { if (state == 4){ jetpack2(); } else { if (state == 5){ law1(); } else { if (state == 6){ law2(); } else { if (state == 7){ airstrike(); } else { if (state == 8){ flame(); } else { if (state == 9){ flame2(); } else { if (state == 10){ end(); }; }; }; }; }; }; }; }; }; }; }; } public function meteor():void{ weaponClip.gotoAndStop(4); if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; setTitleText("Meteor Dish"); setBodyText("Use satellite technology to call a meteor from the sky! Strikes won't drop until they pass into the solid line ahead of the dino."); state++; } public function setBodyText(_arg1:String):void{ var _local2:TextField = myTextBox.textBox; Main.setTextF(_local2, "weaponTutBody", _arg1); } public function jetpack():void{ weaponClip.gotoAndStop(5); if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; setTitleText("Jetpack"); setBodyText("This tier two weapon launches you right into the air! You get 3 jumps in a row, and then it overheats."); state++; } public function backBtnDown(_arg1:MouseEvent):void{ if (state <= 1){ return; }; state = (state - 2); nextBtnDown(_arg1); } public function cluster():void{ weaponClip.gotoAndStop(3); setTitleText("Cluster Bomb"); setBodyText("The cluster bomb launches a large missile into the air and releases smaller bombs in a spray of destruction."); state++; } public function airstrike():void{ weaponClip.gotoAndStop(9); if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; setTitleText("U.S.S. Iowa"); setBodyText("This aircraft carrier sends several top gun aces toward your enemy dropping nukes on unsuspecting villagers."); state++; } } }//package dinowaurs.tutorial
Section 100
//VillageMenuTutorial (dinowaurs.tutorial.VillageMenuTutorial) package dinowaurs.tutorial { import flash.events.*; import flash.display.*; import flash.text.*; import dinowaurs.betaMenu.*; import dinowaurs.managers.*; public class VillageMenuTutorial extends TutorialEvent { public var myBackBtn:MelbaButton; public var currMiniTut:TutorialEvent; public var state:int;// = 0 public var myTextBox:MovieClip; public var myNextBtn:MelbaButton; public function VillageMenuTutorial(){ super("big_village_MenuTutorial"); } public function setBodyText(_arg1:String):void{ var _local2:TextField = myTextBox.textBox; Main.setTextF(_local2, "villagemenuTutBody", _arg1); } public function setTitleText(_arg1:String):void{ var _local2:TextField = myTextBox.titleBox; Main.setTextF(_local2, "villagemenuTutHead", _arg1); } public function shotCost():void{ promptBase.gotoAndStop(3); setTitleText("Ammo Costs"); setBodyText("The red number is how much it costs to fire that weapon."); state++; } public function purchaseBtn():void{ promptBase.gotoAndStop(5); setTitleText("Weapon Status"); setBodyText("A gold weapon icon means you can purchase the weapon."); state++; } public function nextBtnDown(_arg1:MouseEvent):void{ if (state == 0){ purchaseCost(); } else { if (state == 1){ shotCost(); } else { if (state == 2){ inactiveBtn(); } else { if (state == 3){ purchaseBtn(); } else { if (state == 4){ equipBtn(); } else { if (state == 5){ dragNdrop(); } else { if (state == 6){ end(); }; }; }; }; }; }; }; } public function equipBtn():void{ promptBase.gotoAndStop(6); setTitleText("Weapon Status"); setBodyText("Once bought, the icon turns green and the weapon can be equipped at any of your villages."); state++; } public function purchaseCost():void{ promptBase.gotoAndStop(2); setTitleText("Purchase Cost"); setBodyText("The gold numbers are the one-time purchase cost of the weapon. More on weapon prices later."); var _local1:TextFormat = TextField(myTextBox.titleBox).getTextFormat(); TextField(myTextBox.titleBox).setTextFormat(_local1); state++; } public function dragNdrop():void{ promptBase.gotoAndStop(7); setTitleText("Equip Weapons"); setBodyText("Drag and drop an icon onto an empty weapons slot to equip up to two weapons."); state++; } public function backBtnDown(_arg1:MouseEvent):void{ if (state <= 1){ return; }; state = (state - 2); nextBtnDown(_arg1); } override public function startEvent(_arg1:String):void{ super.startEvent(_arg1); if (Main.GAME_MANAGER == null){ myKillFlag = true; startTicking(); return; }; if (_arg1 == null){ myKillFlag = true; startTicking(); return; }; promptBase.x = 20; promptBase.y = 160; myTextBox = AssetLoader.getAssetMC("tutorial", "tut_textBox"); myTextBox.x = -(promptBase.x); myTextBox.y = -(promptBase.y); setTitleText("Village Menu"); setBodyText("This is where you will purchase and equip your weapons."); myNextBtn = new MelbaButton(null, "none", myTextBox.nextBtn); myNextBtn.base.addEventListener(MouseEvent.MOUSE_DOWN, nextBtnDown); this.promptBase.addChild(myTextBox); Main.GAME_MANAGER.mPlayerDino.inMenu = true; myBackBtn = new MelbaButton(null, "none", myTextBox.backBtn); myBackBtn.base.addEventListener(MouseEvent.MOUSE_DOWN, backBtnDown); } public function end():void{ if (currMiniTut != null){ currMiniTut.myKillFlag = true; currMiniTut.startTicking(); currMiniTut = null; }; Main.GAME_MANAGER.tutorialScripter.signalEvent("big_village_MenuTutorial"); Main.stageRef.focus = Main.stageRef; Main.GAME_MANAGER.mPlayerDino.inMenu = false; } public function inactiveBtn():void{ promptBase.gotoAndStop(4); setTitleText("Weapon Status"); setBodyText("A blue weapon icon means you cannot afford that weapon."); state++; } } }//package dinowaurs.tutorial
Section 101
//AirStrike (dinowaurs.weapons.AirStrike) package dinowaurs.weapons { import dinowaurs.dinos.*; import dinowaurs.*; import dinowaurs.managers.*; public class AirStrike extends StrikeWeapon { public function AirStrike(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:Bone){ var _local7:Array; var _local8:int; super(_arg1, _arg2, _arg3, "airStrikeCarrier", _arg4, "airStrikeCarrier"); var _local5:Number = 1; var _local6:String = Main.currBoostCode; if (_local6 != null){ _local7 = _local6.split("_"); _local8 = 0; while (_local8 < _local7.length) { if (_local7[_local8] == "airStrike"){ _local5 = (parseFloat(_local7[(_local8 + 1)]) + 1); break; }; _local8++; }; }; range = (Main.GAME_MANAGER.priceWatcher.airstrikeRange * _local5); if (Main.GAME_MANAGER != null){ if (mParentDino.ID.Value == Main.GAME_MANAGER.mPlayerDino.ID.Value){ UIManager.mMinimap.strikeWeaponRange(range, mParentDino); }; }; } override public function dropTheHammer():void{ super.dropTheHammer(); SoundManager.stopFX("SFX_AirFire_O"); SoundManager.playFX("SFX_AirFire_S"); } override public function deploy():void{ super.deploy(); if (Main.GAME_MANAGER.mPlayerInfo.gold > this.shotCost){ SoundManager.playFX("SFX_AirFire_O"); }; } } }//package dinowaurs.weapons
Section 102
//BallisticProjectile (dinowaurs.weapons.BallisticProjectile) package dinowaurs.weapons { import flash.events.*; import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import dinowaurs.*; import engine.display.*; import dinowaurs.audio.*; import engine.core.*; import engine.physics.*; import dinowaurs.managers.*; public class BallisticProjectile extends PhysicsActor { public var flightModel:String; public var collisionSoundL:String; public var lifetime:int; public var collisionSoundH:String; public var ownerID:int; public var damage:Number; public var destructed:Boolean;// = false public var prevHeight:Number; public function BallisticProjectile(_arg1:Canvas, _arg2:MelbaPawn, _arg3:Number, _arg4:Number, _arg5:int, _arg6:String="null"){ super(_arg1, _arg2, _arg3, _arg4, _arg6, true); setCollision("box"); ownerID = _arg5; if (ownerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ UIManager.mMinimap.addProjectile(this); }; flightModel = "ballistic"; collisionSoundH = "SFX_ImpactExplosionL"; permCenter = new Point(0, 500); damage = 30; lifetime = 100000; } override public function signalCollision(_arg1:MelbaTile):void{ } override public function stopTicking():void{ super.stopTicking(); if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.replicatedProjectiles.push((ID.Value + " STOPPED TICKING")); }; } override public function kill():void{ if (Main.GAME_MANAGER != null){ if (!destructed){ signalDestruction(); }; if (mAvatarTile){ Main.GAME_MANAGER.transitionCameraToDino(); }; }; if (UIManager.mMinimap != null){ UIManager.mMinimap.removeProjectile(this); }; super.kill(); } public function signalDestruction():void{ var _local4:MelbaPawn; var _local5:SoundEffect; var _local1:Dino = Main.GAME_MANAGER.mPlayerDino; if (_local1 == null){ trace("buggs!"); }; var _local2:Number = Math.abs((_local1.Pawn.the.x - Pawn.the.x)); var _local3:Number = ((mInertia.x * mInertia.x) + (mInertia.y * mInertia.y)); if (SoundManager.mInitialized){ if (_local2 < 8000){ if (((_local3 / (14 * 14)) + 1) < 2){ _local5 = SoundManager.playFX(collisionSoundL); if (_local5 != null){ _local5.volumeOffset = Math.pow((1 - (_local2 / 8000)), 3); }; } else { _local5 = SoundManager.playFX(collisionSoundH); if (_local5 != null){ _local5.volumeOffset = Math.pow((1 - (_local2 / 8000)), 3); }; }; }; }; if (((((((ID.Name.match("cannonball")) || (ID.Name.match("boulder")))) || (ID.Name.match("tracer")))) || (ID.Name.match("cluster main")))){ _local4 = new MelbaPawn(AssetLoader.getAssetMC("weapons2", "explosion_largeimpact"), 2); } else { if (ID.Name.match("airStrikeBomb")){ _local4 = new MelbaPawn(AssetLoader.getAssetMC("weapons2", "explosion_large"), 2); damage = (damage + (((damage * 2) * Math.random()) + (damage / 2))); } else { if (ID.Name.match("meteor")){ _local4 = new MelbaPawn(AssetLoader.getAssetMC("weapons2", "explosion_largeimpact"), 2); damage = (damage * 2.22); } else { if (((ID.Name.match("cluster bomb")) || (ID.Name.match("SAMrocket")))){ _local4 = new MelbaPawn(AssetLoader.getAssetMC("weapons2", "explosion_medium"), 2); } else { _local4 = new MelbaPawn(AssetLoader.getAssetMC("weapons2", "explosion_largeimpact"), 2); }; }; }; }; if (ID.Name.match("lawyer")){ damage = 50; _local3 = 10; }; new Particle(Main.GAME_MANAGER.Canvas_Actor, _local4, Pawn.the.x, (Pawn.the.y + 30), MovieClip(_local4.content).totalFrames); if (mInertia.x < 0){ _local4.the.scaleX = -1; }; _local4.the.scaleX = (_local4.the.scaleX * (((_local3 / (14 * 14)) + 1) * (damage / 50))); _local4.the.scaleY = (_local4.the.scaleY * (((_local3 / (14 * 14)) + 1) * (damage / 50))); UIManager.mMinimap.addProjectileSplosion(this); if (ID.Name != "lawyer"){ ScreenShakeManager.screenShakeValue = ((_local4.the.scaleY * _local4.the.scaleY) * 1); }; if (mAvatarTile){ Main.GAME_MANAGER.transitionCameraToDino(); }; myKillFlag = true; Main.GAME_MANAGER.splodeVillagers(this); destructed = true; } override public function networkUpdate(_arg1:Array):void{ super.networkUpdate(_arg1); ownerID = _arg1[10]; damage = _arg1[11]; lifetime = _arg1[12]; if (myKillFlag){ Main.GAME_MANAGER.replicatedProjectiles.push((ID.Value + " KILL FLAG")); }; if (ID.Name.match("lawyer")){ if (mInertia.x == 0){ MovieClip(mPawn.content).gotoAndStop(2); }; }; } override public function startTicking():void{ super.startTicking(); Main.GAME_MANAGER.replicatedProjectiles.push((ID.Value + " *STARTED* TICKING")); } override public function tick(_arg1:uint):void{ var _local2:Number; var _local3:Number; super.tick(_arg1); if (myKillFlag){ return; }; if ((Pawn.the is MovieClip)){ if (MovieClip(Pawn.the).currentFrame == 1){ MovieClip(Pawn.the).stop(); }; }; if (flightModel == "ballistic"){ mPawn.the.rotation = (Math.atan((mInertia.y / mInertia.x)) / 0.0174532925); } else { if (flightModel == "spinny"){ mPawn.the.rotation = (mPawn.the.rotation + (mInertia.x / 2)); }; }; if (mInertia.x < 0){ mPawn.the.scaleX = -1; } else { mPawn.the.scaleX = 1; }; lifetime = (lifetime - _arg1); if (lifetime <= 0){ myKillFlag = true; return; }; _local2 = UIManager.mTerrain.getHeight((mPawn.the.x + (mPawn.the.width / 2))); if (((ID.Name.match("mine")) || (ID.Name.match("lawyer")))){ if ((mPawn.the.y + 10) > _local2){ mPawn.the.y = _local2; mInertia.y = 0; if (Inertia.x != 0){ Inertia.x = (Inertia.x / Math.abs(Inertia.x)); Inertia.x = (Inertia.x * 4); }; mPawn.the.rotation = 0; }; _local2 = ((_local2 - mPawn.the.y) + 10); if ((((_local2 < 20)) && ((prevHeight > 20)))){ _local3 = Math.random(); if (_local3 > 0.5){ SoundManager.playFX("SFX_LawyerHit_H"); } else { SoundManager.playFX("SFX_LawyerHit_L"); }; UIManager.mMinimap.addProjectile(this); }; prevHeight = _local2; return; }; if (mPawn.the.y > _local2){ signalDestruction(); }; } } }//package dinowaurs.weapons
Section 103
//Cannon (dinowaurs.weapons.Cannon) package dinowaurs.weapons { import flash.display.*; import dinowaurs.dinos.*; import dinowaurs.*; import dinowaurs.managers.*; public class Cannon extends ProjectileWeapon { public function Cannon(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:Bone){ super(_arg1, _arg2, _arg3, "cannon_base", _arg4, "cannon"); } override public function powerUp():void{ super.powerUp(); MovieClip(mMovieClip).rotator.gotoAndPlay("charge"); } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; } override public function kill():void{ super.kill(); trace("killing myself"); } override public function shoot(_arg1:Number):void{ if (mAimerBob.mPower < 0.2){ MovieClip(mMovieClip).rotator.gotoAndStop(1); return; }; super.shoot(_arg1); if (_arg1 < 0.75){ SoundManager.playFX("SFX_CannonFire_L"); } else { SoundManager.playFX("SFX_CannonFire_H"); }; MovieClip(mMovieClip).rotator.gotoAndPlay("fire"); } } }//package dinowaurs.weapons
Section 104
//Castle (dinowaurs.weapons.Castle) package dinowaurs.weapons { import flash.display.*; import dinowaurs.dinos.*; import dinowaurs.*; import dinowaurs.managers.*; public class Castle extends ProjectileWeapon { public function Castle(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:Bone){ super(_arg1, _arg2, _arg3, "castle_base", _arg4, "castle"); } override public function powerUp():void{ super.powerUp(); MovieClip(mMovieClip).rotator.animator.gotoAndPlay("charge"); } override public function shoot(_arg1:Number):void{ if (mAimerBob.mPower < 0.2){ MovieClip(mMovieClip).rotator.animator.gotoAndStop(1); return; }; if (Main.GAME_MANAGER.mPlayerInfo.gold < this.shotCost){ return; }; super.shoot(_arg1); MovieClip(mMovieClip).rotator.animator.gotoAndPlay("fire"); if (_arg1 < 0.75){ SoundManager.playFX("SFX_CastleFire_L"); } else { SoundManager.playFX("SFX_CastleFire_H"); }; } } }//package dinowaurs.weapons
Section 105
//ClusterBomb (dinowaurs.weapons.ClusterBomb) package dinowaurs.weapons { import flash.display.*; import dinowaurs.dinos.*; import dinowaurs.*; import dinowaurs.managers.*; public class ClusterBomb extends ProjectileWeapon { public function ClusterBomb(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:Bone){ super(_arg1, _arg2, _arg3, "clusterbomb_base", _arg4, "clusterbomb"); } override public function powerUp():void{ super.powerUp(); MovieClip(mMovieClip).rotator.gotoAndPlay("charge"); } override public function shoot(_arg1:Number):void{ if (mAimerBob.mPower < 0.2){ MovieClip(mMovieClip).rotator.gotoAndStop(1); return; }; if (Main.GAME_MANAGER.mPlayerInfo.gold < this.shotCost){ return; }; super.shoot(_arg1); MovieClip(mMovieClip).rotator.gotoAndPlay("fire"); if (_arg1 < 0.75){ SoundManager.playFX("SFX_ClusterFire_L"); } else { SoundManager.playFX("SFX_ClusterFire_H"); }; } } }//package dinowaurs.weapons
Section 106
//Flamethrower (dinowaurs.weapons.Flamethrower) package dinowaurs.weapons { import flash.display.*; import dinowaurs.dinos.*; import dinowaurs.*; import dinowaurs.managers.*; public class Flamethrower extends ProjectileWeapon { public function Flamethrower(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:Bone){ super(_arg1, _arg2, _arg3, "flamethrower_base", _arg4, "flamethrower"); } override public function shoot(_arg1:Number):void{ if (mAimerBob.mPower < 0.2){ MovieClip(mMovieClip).rotator.gotoAndStop(1); return; }; if (Main.GAME_MANAGER.mPlayerInfo.gold < this.shotCost){ return; }; super.shoot(_arg1); if (_arg1 < 0.75){ SoundManager.playFX("SFX_FlameFire_L"); } else { SoundManager.playFX("SFX_FlameFire_H"); }; } } }//package dinowaurs.weapons
Section 107
//Jetpack (dinowaurs.weapons.Jetpack) package dinowaurs.weapons { import flash.events.*; import flash.display.*; import dinowaurs.dinos.*; import dinowaurs.*; import dinowaurs.managers.*; public class Jetpack extends ProjectileWeapon { public function Jetpack(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:Bone){ super(_arg1, _arg2, _arg3, "jetpack_base", _arg4, "jetpack"); mClips[0].gotoAndStop(1); } override public function powerUp():void{ super.powerUp(); var _local1:MovieClip = mClips[0]; _local1.rotator.gotoAndPlay("charge"); } override public function mouseDown(_arg1:MouseEvent):void{ var _local2:GoldFloater; if (mParentDino.jetpackState == 2){ _local2 = new GoldFloater(Main.GAME_MANAGER.Canvas_GUI_CRAZY, GlobalRotatorPoint.x, GlobalRotatorPoint.y, -1); MovieClip(_local2.Pawn.content).value.text = "OVERHEATED!"; return; }; super.mouseDown(_arg1); } override public function shoot(_arg1:Number):void{ if (mAimerBob.mPower < 0.2){ MovieClip(mMovieClip).rotator.gotoAndStop(1); return; }; super.shoot(_arg1); if (_arg1 < 0.75){ SoundManager.playFX("SFX_JetFire_L"); } else { SoundManager.playFX("SFX_JetFire_H"); }; var _local2:MovieClip = mClips[0]; _local2.rotator.gotoAndPlay("fire"); } } }//package dinowaurs.weapons
Section 108
//LawFirm (dinowaurs.weapons.LawFirm) package dinowaurs.weapons { import flash.display.*; import dinowaurs.dinos.*; import dinowaurs.*; import dinowaurs.managers.*; public class LawFirm extends ProjectileWeapon { public function LawFirm(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:Bone){ super(_arg1, _arg2, _arg3, "lawFirm_base", _arg4, "lawFirm"); } override public function powerUp():void{ super.powerUp(); MovieClip(mMovieClip).animator.gotoAndPlay("charge"); } override public function shoot(_arg1:Number):void{ if (mAimerBob.mPower < 0.2){ MovieClip(mMovieClip).animator.gotoAndStop(1); return; }; super.shoot(_arg1); MovieClip(mMovieClip).animator.gotoAndPlay("fire"); if (_arg1 < 0.75){ SoundManager.playFX("SFX_LawyerFire_L"); } else { SoundManager.playFX("SFX_LawyerFire_H"); }; } } }//package dinowaurs.weapons
Section 109
//MeteorGun (dinowaurs.weapons.MeteorGun) package dinowaurs.weapons { import flash.display.*; import dinowaurs.dinos.*; import dinowaurs.*; import dinowaurs.managers.*; public class MeteorGun extends StrikeWeapon { public function MeteorGun(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:Bone){ var _local7:Array; var _local8:int; super(_arg1, _arg2, _arg3, "satelitte", _arg4, "meteorgun"); var _local5:Number = 1; var _local6:String = Main.currBoostCode; if (_local6 != null){ _local7 = _local6.split("_"); _local8 = 0; while (_local8 < _local7.length) { if (_local7[_local8] == "meteor"){ _local5 = (parseFloat(_local7[(_local8 + 1)]) + 1); break; }; _local8++; }; }; range = (Main.GAME_MANAGER.priceWatcher.meteorRange * _local5); if (Main.GAME_MANAGER != null){ if (mParentDino.ID.Value == Main.GAME_MANAGER.mPlayerDino.ID.Value){ UIManager.mMinimap.strikeWeaponRange(range, mParentDino); }; }; } override public function dropTheHammer():void{ super.dropTheHammer(); MovieClip(mMovieClip).animator.gotoAndPlay("fire"); SoundManager.stopFX("SFX_Meteor_O"); SoundManager.playFX("SFX_Meteor_S"); } override public function deploy():void{ super.deploy(); if (Main.GAME_MANAGER.mPlayerInfo.gold > this.shotCost){ MovieClip(mMovieClip).animator.gotoAndPlay("charge"); SoundManager.playFX("SFX_Meteor_O"); }; } } }//package dinowaurs.weapons
Section 110
//MineLayer (dinowaurs.weapons.MineLayer) package dinowaurs.weapons { import dinowaurs.dinos.*; import dinowaurs.*; import dinowaurs.managers.*; public class MineLayer extends ProjectileWeapon { public function MineLayer(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:Bone){ super(_arg1, _arg2, _arg3, "minelayer", _arg4, "minelayer"); } override public function shoot(_arg1:Number):void{ if (mAimerBob.mPower < 0.2){ return; }; SoundManager.playFX("minelayer_shoot"); super.shoot(_arg1); } } }//package dinowaurs.weapons
Section 111
//Minigun (dinowaurs.weapons.Minigun) package dinowaurs.weapons { import dinowaurs.dinos.*; import dinowaurs.*; import dinowaurs.managers.*; public class Minigun extends ProjectileWeapon { public function Minigun(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:Bone){ super(_arg1, _arg2, _arg3, "minigun_base", _arg4, "minigun"); } override public function shoot(_arg1:Number):void{ if (mAimerBob.mPower < 0.2){ return; }; super.shoot(_arg1); SoundManager.playFX("minigun_shoot"); } } }//package dinowaurs.weapons
Section 112
//ProjectileWeapon (dinowaurs.weapons.ProjectileWeapon) package dinowaurs.weapons { import flash.events.*; import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import dinowaurs.*; import engine.display.*; import engine.core.*; import engine.physics.*; import dinowaurs.managers.*; import engine.networking.*; public class ProjectileWeapon extends Weapon { public var mPoweringUp:Boolean; public var mThisRotVector:Point; protected var projectilePawn:MelbaPawn; public var lastFloater:GoldFloater; public var mSpaceDown:Boolean; public var mGunPower:Number; public var mAimerBob:AimerBob; protected var mThisShotOffset:Point; public function ProjectileWeapon(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:String, _arg5:Bone, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); mThisShotOffset = new Point(0, 0); mThisRotVector = new Point(0, 0); mWeaponType = "projectile"; mPoweringUp = true; } public function powerUp():void{ if (mAimerBob != null){ mAimerBob.mAimerPoint.play(); mPoweringUp = true; } else { mShootMode = false; }; } public function get GlobalRotatorPoint():Point{ return (MovieClip(mMovieClip).localToGlobal(new Point(MovieClip(mMovieClip).rotator.x, MovieClip(mMovieClip).rotator.y))); } override public function networkUpdate(_arg1:Array):void{ super.networkUpdate(_arg1); mGunPower = _arg1[7]; } public function get GlobalPos():Point{ return (GameData.SCENE_BASE.globalToLocal(MovieClip(mMovieClip).localToGlobal(new Point(MovieClip(mMovieClip).rotator.x, MovieClip(mMovieClip).rotator.y)))); } override public function keyUp(_arg1:KeyboardEvent):void{ } override public function tick(_arg1:uint):void{ var _local2:Point; var _local3:Point; var _local4:Point; var _local5:Number; var _local6:Number; var _local7:Point; var _local8:Point; var _local9:Point; var _local10:Number; var _local11:Point; var _local12:Number; var _local13:Point; var _local14:Number; super.tick(_arg1); if (myKillFlag){ return; }; if (mParentDino.mGun == null){ return; }; if (mParentDino.mGun.ID.Value != ID.Value){ return; }; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.tutorialScripter != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut.gunDisabled){ return; }; }; }; if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.ID.Value == this.mParentDino.ID.Value){ if (!Main.GAME_MANAGER.mPlayerDino.inMenu){ _local2 = new Point(); _local3 = MovieClip(mMovieClip).localToGlobal(new Point(MovieClip(mMovieClip).rotator.x, MovieClip(mMovieClip).rotator.y)); _local4 = GameData.mGameBase.globalToLocal(_local3); _local2.x = (_local3.x - GameData.mGameBase.mouseX); _local2.y = (_local3.y - GameData.mGameBase.mouseY); _local5 = Math.sqrt(((_local2.x * _local2.x) + (_local2.y * _local2.y))); _local6 = (25 / _local5); _local7 = new Point((-(_local2.x) * _local6), (-(_local2.y) * _local6)); _local8 = new Point(_local7.x, _local7.y); mThisRotVector = _local8; _local9 = new Point((25 * mParentDino.Pawn.Flipped), 0); _local10 = Math.sqrt(((_local9.x * _local9.x) + (_local9.y * _local9.y))); _local11 = new Point((_local9.x / _local10), (_local9.y / _local10)); _local12 = Math.sqrt(((_local8.x * _local8.x) + (_local8.y * _local8.y))); _local13 = new Point((_local8.x / _local12), (_local8.y / _local12)); _local14 = Math.acos(((_local11.x * _local13.x) + (_local11.y * _local13.y))); if (_local8.y < 0){ _local14 = (_local14 * -1); }; _local14 = (_local14 * 57.2957795); _local14 = (_local14 - 10); _local14 = (_local14 - MovieClip(mParentDino.Pawn.content).rotator.rotation); MovieClip(mMovieClip).rotator.rotation = _local14; }; }; }; }; if (mPoweringUp){ }; } override public function kill():void{ super.kill(); if (mAimerBob != null){ mAimerBob.myKillFlag = true; mAimerBob.startTicking(); }; mAimerBob = null; } public function shoot(_arg1:Number):void{ if (Main.GAME_MANAGER == null){ return; }; if (mAimerBob.mPower < 0.2){ }; var _local2:GoldFloater = new GoldFloater(Main.GAME_MANAGER.Canvas_GUI_CRAZY, GlobalRotatorPoint.x, GlobalRotatorPoint.y, (-1 * shotCost)); lastFloater = _local2; var _local3:Number = (57.2957795 * Math.atan((-(mThisRotVector.x) / mThisRotVector.y))); if (mThisRotVector.y < 0){ _local3 = (_local3 - 90); } else { _local3 = (_local3 - 270); }; Main.GAME_MANAGER.projectileWeaponShootEvent(_local3, _arg1, (GlobalPos.x + mThisShotOffset.x), (GlobalPos.y + mThisShotOffset.y)); } public function shootGun():void{ if (mAimerBob == null){ return; }; shoot(mAimerBob.mPower); mShootMode = false; mAimerBob.myKillFlag = true; mAimerBob.startTicking(); mAimerBob = null; if (mParentDino != null){ mParentDino.mShootDelay = 360; }; mPoweringUp = false; } override public function mouseUp(_arg1:MouseEvent):void{ if (mParentDino.mGun == null){ return; }; if (mParentDino.mGun.ID.Value != ID.Value){ return; }; if (mParentDino != null){ if (!mParentDino.mAvatarTile){ return; }; if (mPoweringUp){ shootGun(); mPoweringUp = false; }; }; } override public function keyDown(_arg1:KeyboardEvent):void{ } override public function mouseDown(_arg1:MouseEvent):void{ if (mParentDino.mGun == null){ return; }; if (mParentDino.mGun.ID.Value != ID.Value){ return; }; if (UIManager.inMenu){ return; }; if (mParentDino != null){ if (!mParentDino.inMenu){ if (!mParentDino.mAvatarTile){ return; }; startShootMode(); powerUp(); }; }; } public function startShootMode():void{ if (!mParentDino.mAvatarTile){ return; }; if (!enoughMoneyToShoot()){ return; }; mShootMode = true; if (mAimerBob != null){ mAimerBob.myKillFlag = true; mAimerBob.startTicking(); }; mAimerBob = new AimerBob(this); mAimerBob.mAimerPoint.gotoAndStop(10); } private function shootClientSideProj(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{ var _local5:Particle; var _local6:Number; var _local7:Number; if (projectilePawn != null){ _local5 = new Particle(Main.GAME_MANAGER.Canvas_Actor, projectilePawn, _arg3, _arg4, (NetworkManager.latency * 4)); _local6 = ((Math.cos((_arg1 * 0.0174532925)) * mGunPower) * _arg2); _local7 = ((Math.sin((_arg1 * 0.0174532925)) * mGunPower) * _arg2); _local5.applyForce(new Point(_local6, _local7)); _local5.GlobalForce = new Point(0, 0.1); }; } } }//package dinowaurs.weapons
Section 113
//RocketLauncher (dinowaurs.weapons.RocketLauncher) package dinowaurs.weapons { import dinowaurs.dinos.*; import dinowaurs.*; import dinowaurs.managers.*; public class RocketLauncher extends ProjectileWeapon { public function RocketLauncher(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:Bone){ super(_arg1, _arg2, _arg3, "rocketlauncher_base", _arg4, "rl"); } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; } override public function shoot(_arg1:Number):void{ if (mAimerBob.mPower < 0.2){ return; }; super.shoot(_arg1); SoundManager.playFX("rocketLauncher_shoot"); } } }//package dinowaurs.weapons
Section 114
//SAM (dinowaurs.weapons.SAM) package dinowaurs.weapons { import flash.display.*; import dinowaurs.dinos.*; import dinowaurs.*; import dinowaurs.managers.*; public class SAM extends ProjectileWeapon { public function SAM(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:Bone){ super(_arg1, _arg2, _arg3, "SAM_base", _arg4, "SAM"); } override public function powerUp():void{ super.powerUp(); if (mPoweringUp){ MovieClip(mClips[0].rotator.animator).gotoAndPlay("charge"); }; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; } override public function kill():void{ super.kill(); } override public function shoot(_arg1:Number):void{ if (mAimerBob.mPower < 0.2){ MovieClip(mClips[0].rotator.animator).gotoAndStop(1); return; }; super.shoot(_arg1); MovieClip(mClips[0].rotator.animator).gotoAndPlay("fire"); if (_arg1 < 0.75){ SoundManager.playFX("SFX_SamFire_L"); } else { SoundManager.playFX("SFX_SamFire_H"); }; } } }//package dinowaurs.weapons
Section 115
//StrikeWeapon (dinowaurs.weapons.StrikeWeapon) package dinowaurs.weapons { import flash.events.*; import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import dinowaurs.*; import engine.display.*; import dinowaurs.managers.*; public class StrikeWeapon extends Weapon { public var range:Number; public var holdMouse:Boolean;// = false public var holdTimer:int; public var mDeployMode:Boolean; public var holdTimeMAX:int;// = 250 public function StrikeWeapon(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:String, _arg5:Bone, _arg6:String=null){ holdTimer = holdTimeMAX; super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); mWeaponType = "strike"; mDeployMode = false; range = 0; } override public function mouseUp(_arg1:MouseEvent):void{ if (Main.GAME_MANAGER == null){ return; }; if (Main.GAME_MANAGER.mPlayerDino == null){ return; }; if (!Main.GAME_MANAGER.mPlayerDino.goodToGo){ return; }; if (mParentDino != null){ if (mDeployMode){ if (Main.GAME_MANAGER.airStriking){ dropTheHammer(); } else { mDeployMode = false; }; }; }; holdTimer = holdTimeMAX; holdMouse = false; } override public function keyUp(_arg1:KeyboardEvent):void{ } public function deploy():void{ if (!enoughMoneyToShoot()){ return; }; new GoldFloater(Main.GAME_MANAGER.Canvas_GUI_CRAZY, 250, 200, (-1 * shotCost)); Main.GAME_MANAGER.strikeDeploy(mParentDino.Pawn.Flipped); Main.GAME_MANAGER.airStriking = true; mDeployMode = true; holdTimer = holdTimeMAX; holdMouse = false; mParentDino.keyLeft = false; mParentDino.keyRight = false; Main.GAME_MANAGER.signalMovementEvent(new Point(0, 0), true); } public function dropTheHammer():void{ trace("drop the hammer, bitch!"); if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.strikeDropHammer(TileManager.AVATAR.Pawn.the.x); }; } override public function networkUpdate(_arg1:Array):void{ super.networkUpdate(_arg1); if (range != parseInt(_arg1[7])){ range = _arg1[7]; if (Main.GAME_MANAGER != null){ if (mParentDino.ID.Value == Main.GAME_MANAGER.mPlayerDino.ID.Value){ UIManager.mMinimap.strikeWeaponRange(range, mParentDino); }; }; }; range = _arg1[7]; } override public function mouseDown(_arg1:MouseEvent):void{ if (Main.GAME_MANAGER.mPlayerDino.inMenu){ return; }; if (!Main.GAME_MANAGER.mPlayerDino.goodToGo){ return; }; if (mParentDino != null){ if (!mParentDino.mAvatarTile){ return; }; if (!mDeployMode){ holdMouse = true; }; }; } override public function keyDown(_arg1:KeyboardEvent):void{ if (!mParentDino.mAvatarTile){ return; }; if (_arg1.keyCode == 32){ }; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; if (holdMouse){ holdTimer = (holdTimer - _arg1); if (holdTimer <= 0){ deploy(); }; }; } override public function kill():void{ super.kill(); if (UIManager.mMinimap != null){ UIManager.mMinimap.removeStrikeRanger(); }; } } }//package dinowaurs.weapons
Section 116
//StrikeVehicle (dinowaurs.weapons.StrikeVehicle) package dinowaurs.weapons { import flash.geom.*; import engine.display.*; import dinowaurs.managers.*; public class StrikeVehicle extends MelbaActor { public var speed:int; public var ownerID:int; public function StrikeVehicle(_arg1:Canvas, _arg2:MelbaPawn, _arg3:Number, _arg4:Number, _arg5:int, _arg6:int, _arg7:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg7, true); speed = _arg5; ownerID = _arg6; if (speed < 0){ mPawn.flipX(); }; permCenter = new Point(0, 1300); if (UIManager.mMinimap != null){ UIManager.mMinimap.addStrikeCraft(this); }; } override public function kill():void{ if (mAvatarTile){ if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.transitionCameraToDino(); }; }; if (UIManager.mMinimap != null){ UIManager.mMinimap.removeStrikeCraft(this); }; super.kill(); } override public function networkUpdate(_arg1:Array):void{ super.networkUpdate(_arg1); speed = _arg1[6]; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; Pawn.the.y = (Main.GAME_MANAGER.mTerrain.getHeight(Pawn.the.x) - 2000); shiftHorizontal((speed * (_arg1 / 16))); if (Main.GAME_MANAGER == null){ return; }; if (Main.GAME_MANAGER.airStriking){ if (Main.GAME_MANAGER.currentAirStrikeCraft == ID.Value){ TileManager.setAvatar(this); }; }; } } }//package dinowaurs.weapons
Section 117
//Weapon (dinowaurs.weapons.Weapon) package dinowaurs.weapons { import flash.events.*; import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import dinowaurs.*; import engine.core.*; import dinowaurs.managers.*; public class Weapon extends Accessory { protected var mOffset:Point; public var mWeaponType:String; public var mBone:Bone; public var mShootMode:Boolean; public var shotCost:Number; public var mParentDino:Dino; public function Weapon(_arg1:Dino, _arg2:Number, _arg3:Number, _arg4:String, _arg5:Bone, _arg6:String=" "){ super(_arg1.mDinoType, _arg4); ID.Name = _arg6; mWeaponType = "weapon"; mParentDino = _arg1; mOffset = new Point(_arg2, _arg3); mShootMode = false; mBone = _arg5; shotCost = 0; startTicking(); } public function keyUp(_arg1:KeyboardEvent):void{ } public function getShotCost():void{ if (Main.GAME_MANAGER == null){ return; }; shotCost = Main.GAME_MANAGER.priceWatcher.getShotCost(ID.Name); if (mParentDino != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (mParentDino.ID.Value == Main.GAME_MANAGER.mPlayerDino.ID.Value){ UIManager.setShotCost(shotCost); }; }; }; } public function keyDown(_arg1:KeyboardEvent):void{ } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; if (shotCost == 0){ getShotCost(); }; if (mParentDino == null){ myKillFlag = true; }; } public function mouseUp(_arg1:MouseEvent):void{ } public function enoughMoneyToShoot():Boolean{ if (Main.GAME_MANAGER == null){ return (false); }; if (Main.GAME_MANAGER.mPlayerDino == null){ return (false); }; if (Main.GAME_MANAGER.mPlayerDino.respawning){ return (false); }; if (shotCost > Main.GAME_MANAGER.mPlayerInfo.gold){ UIManager.notEnoughGold(); return (false); }; return (true); } override public function networkUpdate(_arg1:Array):void{ super.networkUpdate(_arg1); mWeaponType = _arg1[4]; shotCost = _arg1[6]; if (mParentDino != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (mParentDino.ID.Value == Main.GAME_MANAGER.mPlayerDino.ID.Value){ UIManager.setShotCost(shotCost); }; }; }; } override public function kill():void{ if (mParentDino != null){ if (mParentDino.mGun != null){ if (mParentDino.mGun.ID.Value == ID.Value){ trace("weapon setting gun to null"); mParentDino.mGun = null; }; }; }; super.kill(); } public function mouseDown(_arg1:MouseEvent):void{ } } }//package dinowaurs.weapons
Section 118
//Accessory (dinowaurs.Accessory) package dinowaurs { import flash.display.*; import engine.core.*; import dinowaurs.SkeletalAnim.*; import dinowaurs.managers.*; public class Accessory extends Tickable { public var skeletonsUsed:Array; public var handle:String; public var asset_void:Class; public var mMovieClip:Sprite; public var boneIDs:Array; public var mClips:Array; public var mySkeletalAnimation:SkeletalAnimation; public function Accessory(_arg1:String, _arg2:String){ var _local3:Sprite; asset_void = AssetLoader.getAsset("misc", "asset_void"); super(_arg2, false); handle = _arg2; mClips = new Array(); boneIDs = new Array(); skeletonsUsed = new Array(); if (_arg2 == "beekeepermask"){ if (_arg1 == "ankylo"){ boneIDs.push(26); mClips.push(AssetLoader.getAssetSP("accessories", "ankylo_beekeepermask")); } else { if (_arg1 == "bronto"){ boneIDs.push(8); mClips.push(AssetLoader.getAssetSP("accessories", "bronto_beekeepermask")); } else { if (_arg1 == "stego"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "stego_beekeepermask")); } else { if (_arg1 == "tri"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "tri_beekeepermask")); }; }; }; }; }; if (_arg2 == "tophat"){ if (_arg1 == "ankylo"){ boneIDs.push(26); mClips.push(AssetLoader.getAssetSP("accessories", "ankylo_tophat")); } else { if (_arg1 == "bronto"){ boneIDs.push(8); mClips.push(AssetLoader.getAssetSP("accessories", "bronto_tophat")); } else { if (_arg1 == "stego"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "stego_tophat")); } else { if (_arg1 == "tri"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "tri_tophat")); }; }; }; }; }; if (_arg2 == "bomberglasses"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 26); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 5); }; }; }; }; }; if (_arg2 == "fezhat"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 26); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 5); }; }; }; }; }; if (_arg2 == "gasmask"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 26); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 5); }; }; }; }; }; if (_arg2 == "headphones"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 26); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 5); }; }; }; }; }; if (_arg2 == "mammothmask"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 26); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "tri"){ return; }; }; }; }; }; if (_arg2 == "namhat"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 26); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 5); }; }; }; }; }; if (_arg2 == "nixonmask"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 26); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 5); }; }; }; }; }; if (_arg2 == "popehat"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 26); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 5); }; }; }; }; }; if (_arg2 == "sombrero"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 26); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 5); }; }; }; }; }; if (_arg2 == "spartanhelmet"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 26); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 5); }; }; }; }; }; if (_arg2 == "tribalmask"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 26); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 5); }; }; }; }; }; if (_arg2 == "vikinghelmet"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 26); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 5); }; }; }; }; }; if (_arg2 == "ww2helmet"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 26); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 5); }; }; }; }; }; if (_arg2 == "raincloud"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 23); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 3); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 3); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 3); }; }; }; }; }; if (_arg2 == "pixeljam"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 32); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 15); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 10); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 10); }; }; }; }; }; if (_arg2 == "fro"){ if (_arg1 == "ankylo"){ boneIDs.push(26); mClips.push(AssetLoader.getAssetSP("accessories", "ankylo_fro")); } else { if (_arg1 == "bronto"){ boneIDs.push(8); mClips.push(AssetLoader.getAssetSP("accessories", "bronto_fro")); } else { if (_arg1 == "stego"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "stego_fro")); } else { if (_arg1 == "tri"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "tri_fro")); }; }; }; }; }; if (_arg2 == "helmetknight"){ if (_arg1 == "ankylo"){ boneIDs.push(26); mClips.push(AssetLoader.getAssetSP("accessories", "ankylo_helmetknight")); } else { if (_arg1 == "bronto"){ boneIDs.push(8); mClips.push(AssetLoader.getAssetSP("accessories", "bronto_helmetknight")); } else { if (_arg1 == "stego"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "stego_helmetknight")); } else { if (_arg1 == "tri"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "tri_helmetknight")); }; }; }; }; }; if (_arg2 == "propellerhat"){ if (_arg1 == "ankylo"){ boneIDs.push(26); mClips.push(AssetLoader.getAssetSP("accessories", "ankylo_propellerhat")); } else { if (_arg1 == "bronto"){ boneIDs.push(8); mClips.push(AssetLoader.getAssetSP("accessories", "bronto_propellerhat")); } else { if (_arg1 == "stego"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "stego_propellerhat")); } else { if (_arg1 == "tri"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "tri_propellerhat")); }; }; }; }; }; if (_arg2 == "partyhat"){ if (_arg1 == "ankylo"){ boneIDs.push(26); mClips.push(AssetLoader.getAssetSP("accessories", "partyhat")); } else { if (_arg1 == "bronto"){ boneIDs.push(8); mClips.push(AssetLoader.getAssetSP("accessories", "partyhat")); } else { if (_arg1 == "stego"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "partyhat")); } else { if (_arg1 == "tri"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "partyhat")); }; }; }; }; }; if (_arg2 == "castle_maintower"){ if (_arg1 == "ankylo"){ boneIDs.push(0); mClips.push(new asset_void()); } else { if (_arg1 == "bronto"){ boneIDs.push(2); mClips.push(AssetLoader.getAssetSP("weapons", "bronto_castle_maintower")); }; }; }; if (_arg2 == "castle_shorttower"){ if (_arg1 == "ankylo"){ boneIDs.push(0); mClips.push(new asset_void()); } else { if (_arg1 == "bronto"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons", "bronto_castle_shorttower")); }; }; }; if (_arg2 == "castle_talltower"){ if (_arg1 == "ankylo"){ boneIDs.push(0); mClips.push(new asset_void()); } else { if (_arg1 == "bronto"){ boneIDs.push(0); mClips.push(AssetLoader.getAssetSP("weapons", "bronto_castle_talltower")); }; }; }; if (_arg2 == "butterflytrampstamp"){ if (_arg1 == "ankylo"){ boneIDs.push(27); mClips.push(AssetLoader.getAssetSP("accessories", "ankylo_butterflytrampstamp")); } else { if (_arg1 == "bronto"){ boneIDs.push(9); mClips.push(AssetLoader.getAssetSP("accessories", "bronto_butterflytrampstamp")); } else { if (_arg1 == "stego"){ boneIDs.push(6); mClips.push(AssetLoader.getAssetSP("accessories", "stego_butterflytrampstamp")); } else { if (_arg1 == "tri"){ boneIDs.push(6); mClips.push(AssetLoader.getAssetSP("accessories", "tri_butterflytrampstamp")); }; }; }; }; }; if (_arg2 == "angelwing"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 22); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 2); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 2); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 2); }; }; }; }; }; if (_arg2 == "carrotstick"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 22); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 2); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 2); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 2); }; }; }; }; }; if (_arg2 == "gascap"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 20); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 0); }; }; }; }; }; if (_arg2 == "haytarget"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 20); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 0); }; }; }; }; }; if (_arg2 == "indyflag"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 20); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 0); }; }; }; }; }; if (_arg2 == "jet"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 20); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 0); }; }; }; }; }; if (_arg2 == "lance"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 20); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 0); }; }; }; }; }; if (_arg2 == "mexiblanket"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 22); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 2); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 2); }; }; }; }; }; if (_arg2 == "moped"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 27); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 9); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 6); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 6); }; }; }; }; }; if (_arg2 == "navalsash"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 22); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 2); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 2); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 2); }; }; }; }; }; if (_arg2 == "peaceflag"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 20); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 0); }; }; }; }; }; if (_arg2 == "raptorpouch"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 20); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 0); }; }; }; }; }; if (_arg2 == "sabre"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 20); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 0); }; }; }; }; }; if (_arg2 == "sixpacknecklace"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 24); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 7); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 4); }; }; }; }; if (_arg2 == "skullnecklace"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 24); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 5); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 4); }; }; }; }; if (_arg2 == "turntable"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 20); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 0); }; }; }; }; }; if (_arg2 == "zipper"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 20); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 0); }; }; }; }; }; if (_arg2 == "oldbeard"){ if (_arg1 == "ankylo"){ boneIDs.push(26); mClips.push(AssetLoader.getAssetSP("accessories", "ankylo_oldbeard")); } else { if (_arg1 == "bronto"){ boneIDs.push(8); mClips.push(AssetLoader.getAssetSP("accessories", "bronto_oldbeard")); } else { if (_arg1 == "stego"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "stego_oldbeard")); } else { if (_arg1 == "tri"){ boneIDs.push(5); mClips.push(AssetLoader.getAssetSP("accessories", "tri_oldbeard")); }; }; }; }; }; if (_arg2 == "sweatband"){ if (_arg1 == "ankylo"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("accessories", "ankylo_sweatband")); } else { if (_arg1 == "bronto"){ boneIDs.push(19); mClips.push(AssetLoader.getAssetSP("accessories", "bronto_sweatband")); } else { if (_arg1 == "stego"){ boneIDs.push(22); mClips.push(AssetLoader.getAssetSP("accessories", "stego_sweatband")); } else { if (_arg1 == "tri"){ boneIDs.push(17); mClips.push(AssetLoader.getAssetSP("accessories", "tri_sweatband")); }; }; }; }; }; if (_arg2 == "barbwire"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 1); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 19); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 22); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 17); }; }; }; }; }; if (_arg2 == "footcast"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 14); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 33); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 15); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 24); }; }; }; }; }; if (_arg2 == "garterbelt"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 14); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 33); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 15); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 24); }; }; }; }; }; if (_arg2 == "kneepad"){ if (_arg1 == "ankylo"){ setup(_arg1, "kneepadLFT", 15); } else { if (_arg1 == "bronto"){ setup(_arg1, "kneepadLFT", 33); } else { if (_arg1 == "stego"){ setup(_arg1, "kneepadLFT", 16); } else { if (_arg1 == "tri"){ setup(_arg1, "kneepadLFT", 21); }; }; }; }; if (_arg1 == "ankylo"){ setup(_arg1, "kneepadRGT", 4); } else { if (_arg1 == "bronto"){ setup(_arg1, "kneepadRGT", 22); } else { if (_arg1 == "stego"){ setup(_arg1, "kneepadRGT", 20); } else { if (_arg1 == "tri"){ setup(_arg1, "kneepadRGT", 18); }; }; }; }; }; if (_arg2 == "legwarmer"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 1); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 19); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 22); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 17); }; }; }; }; }; if (_arg2 == "revolver"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 14); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 33); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 15); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 24); }; }; }; }; }; if (_arg2 == "toiletpaper"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 17); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 35); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 18); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 27); }; }; }; }; }; if (_arg2 == "trashcan"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 0); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 18); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 19); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 16); }; }; }; }; }; if (_arg2 == "chartail"){ if (_arg1 == "ankylo"){ boneIDs.push(32); mClips.push(AssetLoader.getAssetSP("accessories", "ankylo_chartail")); } else { if (_arg1 == "bronto"){ boneIDs.push(15); mClips.push(AssetLoader.getAssetSP("accessories", "bronto_chartail")); } else { if (_arg1 == "stego"){ boneIDs.push(28); mClips.push(AssetLoader.getAssetSP("accessories", "stego_chartail")); }; }; }; }; if (_arg2 == "bowieknife"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 29); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 11); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 8); }; }; }; }; }; if (_arg2 == "bunnytail"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 30); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 12); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 8); }; }; }; }; }; if (_arg2 == "gothband"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 30); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 12); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 8); }; }; }; }; }; if (_arg2 == "kite"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 29); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 11); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 8); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 8); }; }; }; }; }; if (_arg2 == "maracas"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 32); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 15); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 10); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 10); }; }; }; }; }; if (_arg2 == "mermaidtail"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 32); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 15); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 10); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 10); }; }; }; }; }; if (_arg2 == "piranha"){ if (_arg1 == "ankylo"){ setup(_arg1, _arg2, 32); } else { if (_arg1 == "bronto"){ setup(_arg1, _arg2, 15); } else { if (_arg1 == "stego"){ setup(_arg1, _arg2, 10); } else { if (_arg1 == "tri"){ setup(_arg1, _arg2, 10); }; }; }; }; }; if (_arg2 == "cannon_base"){ if (_arg1 == "ankylo"){ boneIDs.push(21); mClips.push(AssetLoader.getAssetSP("weapons2", "cannon_base")); } else { if (_arg1 == "bronto"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "cannon_base")); } else { if (_arg1 == "stego"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "cannon_base")); } else { if (_arg1 == "tri"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "cannon_base")); }; }; }; }; }; if (_arg2 == "rocketlauncher_base"){ if (_arg1 == "ankylo"){ boneIDs.push(21); mClips.push(AssetLoader.getAssetSP("weapons", "rocketlauncher_base")); } else { if (_arg1 == "bronto"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons", "rocketlauncher_base")); } else { if (_arg1 == "stego"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons", "rocketlauncher_base")); } else { if (_arg1 == "tri"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "rocketlauncher_base")); }; }; }; }; }; if (_arg2 == "SAM_base"){ if (_arg1 == "ankylo"){ boneIDs.push(21); mClips.push(AssetLoader.getAssetSP("weapons2", "SAM_base_new")); } else { if (_arg1 == "bronto"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "SAM_base_new")); } else { if (_arg1 == "stego"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "SAM_base_new")); } else { if (_arg1 == "tri"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "SAM_base_new")); }; }; }; }; }; if (_arg2 == "castle_base"){ if (_arg1 == "ankylo"){ boneIDs.push(21); mClips.push(AssetLoader.getAssetSP("weapons2", "castle_base2")); } else { if (_arg1 == "bronto"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "castle_base2")); } else { if (_arg1 == "stego"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "castle_base2")); } else { if (_arg1 == "tri"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "castle_base2")); }; }; }; }; }; if (_arg2 == "flamethrower_base"){ if (_arg1 == "ankylo"){ boneIDs.push(21); mClips.push(AssetLoader.getAssetSP("weapons2", "flamethrower_base")); } else { if (_arg1 == "bronto"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "flamethrower_base")); } else { if (_arg1 == "stego"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "flamethrower_base")); } else { if (_arg1 == "tri"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "flamethrower_base")); }; }; }; }; }; if (_arg2 == "jetpack_base"){ if (_arg1 == "ankylo"){ boneIDs.push(21); mClips.push(AssetLoader.getAssetSP("weapons2", "jetpack_base2")); } else { if (_arg1 == "bronto"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "jetpack_base2")); } else { if (_arg1 == "stego"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "jetpack_base2")); } else { if (_arg1 == "tri"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "jetpack_base2")); }; }; }; }; }; if (_arg2 == "lawFirm_base"){ if (_arg1 == "ankylo"){ boneIDs.push(21); mClips.push(AssetLoader.getAssetSP("weapons2", "lawfirm_base_real")); } else { if (_arg1 == "bronto"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "lawfirm_base_real")); } else { if (_arg1 == "stego"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "lawfirm_base_real")); } else { if (_arg1 == "tri"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "lawfirm_base_real")); }; }; }; }; }; if (_arg2 == "clusterbomb_base"){ if (_arg1 == "ankylo"){ boneIDs.push(21); mClips.push(AssetLoader.getAssetSP("weapons2", "cluster_base2")); } else { if (_arg1 == "bronto"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "cluster_base2")); } else { if (_arg1 == "stego"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "cluster_base2")); } else { if (_arg1 == "tri"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "cluster_base2")); }; }; }; }; }; if (_arg2 == "satelitte"){ if (_arg1 == "ankylo"){ boneIDs.push(21); mClips.push(AssetLoader.getAssetSP("weapons2", "meteor_base2")); } else { if (_arg1 == "bronto"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "meteor_base2")); } else { if (_arg1 == "stego"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "meteor_base2")); } else { if (_arg1 == "tri"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "meteor_base2")); }; }; }; }; }; if (_arg2 == "airStrikeCarrier"){ if (_arg1 == "ankylo"){ boneIDs.push(21); mClips.push(AssetLoader.getAssetSP("weapons2", "airStrikeCarrier")); mClips[(mClips.length - 1)].scaleX = (mClips[(mClips.length - 1)].scaleY = 1); } else { if (_arg1 == "bronto"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "airStrikeCarrier")); mClips[(mClips.length - 1)].scaleX = (mClips[(mClips.length - 1)].scaleY = 1); } else { if (_arg1 == "stego"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "airStrikeCarrier")); mClips[(mClips.length - 1)].scaleX = (mClips[(mClips.length - 1)].scaleY = 1); } else { if (_arg1 == "tri"){ boneIDs.push(1); mClips.push(AssetLoader.getAssetSP("weapons2", "airStrikeCarrier")); }; }; }; }; }; if (mClips.length == 1){ mMovieClip = mClips[0]; }; for each (_local3 in mClips) { _local3.name = _arg2; }; } public function remove():void{ var _local2:Sprite; var _local1:int; while (_local1 < mClips.length) { _local2 = mClips[_local1]; if (_local2 != null){ if (_local2.parent != null){ _local2.parent.removeChild(_local2); }; }; _local1++; }; } override public function kill():void{ var _local2:Sprite; super.kill(); var _local1:int; while (_local1 < mClips.length) { _local2 = mClips[_local1]; if (_local2.parent != null){ _local2.parent.removeChild(_local2); }; _local1++; }; mySkeletalAnimation = null; } public function setSkeletonOLD(_arg1:SkeletalAnimation):void{ var _local3:Sprite; var _local4:int; if (mClips == null){ return; }; remove(); var _local2:int; while (_local2 < mClips.length) { _local3 = mClips[_local2]; _local4 = boneIDs[_local2]; if (_local3.parent != null){ _local3.parent.removeChild(_local3); }; if (_arg1.bones != null){ if (_arg1.bones.length >= _local4){ if (_arg1.bones[_local4].mClip != null){ _arg1.bones[_local4].addChild(_local3); _arg1.bones[_local4].resetDraw(); }; }; }; _local2++; }; mySkeletalAnimation = _arg1; } public function setSkelArray(_arg1:Array):String{ var _local4:Sprite; var _local5:int; var _local6:Sprite; if (mClips == null){ return ("none"); }; remove(); var _local2 = "none"; var _local3:int; while (_local3 < mClips.length) { _local4 = mClips[_local3]; _local5 = boneIDs[_local3]; if (_local4.parent != null){ _local4.parent.removeChild(_local4); }; if (_arg1 != null){ if (_arg1.length >= _local5){ if (_arg1[_local5].mClip != null){ if (_arg1[_local5].mClip.numChildren > 0){ _local6 = _arg1[_local5].mClip; while (_local6.numChildren > 0) { _local2 = _local6.getChildAt(0).name; _local6.removeChild(_local6.getChildAt(0)); }; }; _arg1[_local5].addChild(_local4); _arg1[_local5].resetDraw(); }; }; }; _local3++; }; return (_local2); } public function setup(_arg1:String, _arg2:String, _arg3:int):void{ boneIDs.push(_arg3); mClips.push(AssetLoader.getAssetSP("accessories", ((_arg1 + "_") + _arg2))); } } }//package dinowaurs
Section 119
//AimerBob (dinowaurs.AimerBob) package dinowaurs { import flash.display.*; import flash.geom.*; import engine.display.*; import engine.core.*; import dinowaurs.weapons.*; import engine.physics.*; import dinowaurs.managers.*; public class AimerBob extends Tickable { public var timer:Number; public var mAimerPoint:MovieClip; public var mTrajectory:Point; public var mPower:Number; public var mGun:ProjectileWeapon; public function AimerBob(_arg1:ProjectileWeapon){ super("aimerBob", true); mGun = _arg1; mAimerPoint = AssetLoader.getAssetMC("misc", "Baimer"); var _local2:Point = MovieClip(mGun.mMovieClip).localToGlobal(new Point(MovieClip(mGun.mMovieClip).rotator.x, MovieClip(mGun.mMovieClip).rotator.y)); mAimerPoint.x = _local2.x; mAimerPoint.y = _local2.y; mAimerPoint.scaleX = (mAimerPoint.scaleY = 0.4); Main.GAME_MANAGER.Canvas_GUI_CRAZY.Base.addChild(mAimerPoint); mTrajectory = new Point(0, 0); mPower = 0; timer = 0; SoundManager.playFX("INT_ChargeUp"); tick(10); } public function mouseUpdate(_arg1:Number, _arg2:Number):void{ var _local3:Point = MovieClip(mGun.mMovieClip).localToGlobal(new Point(MovieClip(mGun.mMovieClip).rotator.x, MovieClip(mGun.mMovieClip).rotator.y)); mAimerPoint.x = _local3.x; mAimerPoint.y = _local3.y; var _local4:Number = _local3.x; var _local5:Number = _local3.y; var _local6:Point = mGun.mThisRotVector; var _local7:Number = (57.2957795 * Math.atan((-(_local6.x) / _local6.y))); if (_local6.y < 0){ _local7 = (_local7 - 90); } else { _local7 = (_local7 - 270); }; mAimerPoint.rotation = _local7; var _local8:Number = (_local4 - _arg1); var _local9:Number = (_local5 - _arg2); mTrajectory.x = -((_local8 / (_local8 + _local9))); mTrajectory.y = (_local9 / (_local8 + _local9)); mPower = (mAimerPoint.currentFrame / mAimerPoint.totalFrames); } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; timer = (timer + _arg1); var _local2:int = Math.round(((timer / 1400) * mAimerPoint.totalFrames)); mAimerPoint.gotoAndStop(_local2); if (mGun.mShootMode){ mouseUpdate(GameData.mGameBase.mouseX, GameData.mGameBase.mouseY); }; if (timer >= 1400){ mGun.shootGun(); }; } override public function kill():void{ super.kill(); SoundManager.stopFX("INT_ChargeUp"); if (mAimerPoint.parent != null){ mAimerPoint.parent.removeChild(mAimerPoint); }; } } }//package dinowaurs
Section 120
//BattleIntro (dinowaurs.BattleIntro) package dinowaurs { import flash.display.*; import dinowaurs.dinos.*; import flash.text.*; import dinowaurs.betaMenu.*; import engine.display.*; import engine.core.*; import flash.system.*; import dinowaurs.managers.*; import engine.networking.*; public class BattleIntro extends Tickable { public var mapnameSet:Boolean;// = false public var loadingText:TextField; public var waitingPlayer:MovieClip; public var rightDinoInfo:DinoInfo; public var state:int;// = 0 public var totalLibsToLoad:int;// = 0 public var gotPlayerStats:Boolean;// = true public var mLeftPane:MovieClip; public var minimapBase:Sprite; public var leftDinoViewer:DinoViewer; public var rightDinoSuitLib:String; public var separating:Boolean;// = false public var staticLoadingTxt:TextField; public var minimap:Minimap; public var levelName:String; public var loadingBar:MovieClip; public var mapTerrain:Terrain; public var mRightPane:MovieClip; public var backGroundThing:MovieClip; public var timer:int;// = 5000 public var leftDinoSuitLib:String; public var mBase:Sprite; public var loaderBarBase:Sprite; public var rightDinoViewer:DinoViewer; public var leftDinoInfo:DinoInfo; public function BattleIntro(_arg1:DinoInfo, _arg2:DinoInfo, _arg3:Sprite){ var _local4:String; var _local8:TextField; var _local9:*; var _local10:TrophyCase; super("battleintro", true); mBase = new Sprite(); _arg3.addChild(mBase); minimapBase = new Sprite(); mBase.addChild(minimapBase); loaderBarBase = new Sprite(); mBase.addChild(loaderBarBase); backGroundThing = AssetLoader.getAssetMC("misc", "battleintro"); loaderBarBase.addChild(backGroundThing); backGroundThing.play(); loadingBar = backGroundThing.loadingBar; loadingText = backGroundThing.load_num; staticLoadingTxt = backGroundThing.loading; loadingBar.visible = false; loadingText.visible = false; staticLoadingTxt.visible = false; mLeftPane = backGroundThing.left; mRightPane = backGroundThing.right; if ((((((((Main.pickedArena == "winter")) || ((Main.pickedArena == "desert")))) || ((Main.pickedArena == "waste")))) || ((Main.pickedArena == "jungle")))){ Main.arenaType = Main.pickedArena; }; mLeftPane.arenaArt.gotoAndStop(Main.arenaType); mRightPane.arenaArt.gotoAndStop(Main.arenaType); if (Main.arenaType == "desert"){ AssetLoader.loadAsset("desertArena"); AssetLoader.loadAsset("music_desert"); } else { if (Main.arenaType == "winter"){ AssetLoader.loadAsset("snowMountain"); AssetLoader.loadAsset("music_winter"); } else { if (Main.arenaType == "waste"){ AssetLoader.loadAsset("wasteArena"); AssetLoader.loadAsset("music_waste"); } else { if (Main.arenaType == "jungle"){ AssetLoader.loadAsset("jungleArena"); AssetLoader.loadAsset("music_jungle"); }; }; }; }; for each (_local4 in _arg1.accessories) { if (_local4.match("biz_suit")){ AssetLoader.loadAsset((_arg1.dinoType + "_biz_suit")); leftDinoSuitLib = (_arg1.dinoType + "_biz_suit"); }; if (_local4.match("tanuki_suit")){ AssetLoader.loadAsset((_arg1.dinoType + "_tanuki_suit")); leftDinoSuitLib = (_arg1.dinoType + "_tanuki_suit"); }; if (_local4.match("space_suit")){ AssetLoader.loadAsset((_arg1.dinoType + "_space_suit")); leftDinoSuitLib = (_arg1.dinoType + "_space_suit"); }; }; leftDinoViewer = new DinoViewer(mLeftPane.viewer_fordino, 0, 0, -1, -2); leftDinoViewer.myBaseClip.scaleX = 1.5; leftDinoViewer.myBaseClip.scaleY = 1.5; leftDinoViewer.loadDino(_arg1); leftDinoInfo = _arg1; leftDinoViewer.bakeAccessories(); AssetLoader.loadAsset((leftDinoInfo.dinoType + leftDinoInfo.dinoColor)); Main.setTextF(mLeftPane.infoBox.dinoName, "battleintroDinoName", _arg1.dinoName); if (!Main.GUEST_MODE_ENABLED){ Main.setTextF(mLeftPane.infoBox.username, "battleintroUserName", (Main.kongUsername + "'s")); } else { Main.setTextF(mLeftPane.infoBox.username, "battleintroUserName", "Guest-a-saurus's"); mLeftPane.infoBox.stats.visible = false; }; var _local5:BoostIconMGR = new BoostIconMGR(mLeftPane.infoBox); _local5.setBoosts(_arg1.boostCode); Main.currBoostCode = _arg1.boostCode; var _local6:BoostIconMGR = new BoostIconMGR(mRightPane.infoBox); _local6.setBoosts(null); var _local7:PlayerStats = Main.myPlayerStats; if (_local7 != null){ Main.myPlayerStats.display(mLeftPane.infoBox.stats, false, "battleintroStats"); }; if (_arg2 != null){ loadRightDino(_arg2); } else { if (Main.tutorialGame >= 1){ loadRightDino(new DinoInfo("bronto", "Intuition")); } else { loadTutorialStats(); }; }; if (_local7 != null){ _local8 = mLeftPane.infoBox.username; _local8.autoSize = TextFieldAutoSize.RIGHT; _local9 = new PlayerLevelWidget(); if (Main.GUEST_MODE_ENABLED){ _local9.clip.visible = false; }; _local9.setLevel(_local7.playerLevel); mLeftPane.addChild(_local9.clip); _local9.clip.x = ((_local8.x - 10) + mLeftPane.infoBox.x); _local9.clip.y = ((_local8.y + mLeftPane.infoBox.y) - 2.5); _local9.clip.x = (_local9.clip.x - _local9.clip.width); }; mLeftPane.cacheAsBitmap = true; mRightPane.cacheAsBitmap = true; mLeftPane.infoBox.award_egg.visible = false; mLeftPane.infoBox.award_bone.visible = false; mLeftPane.infoBox.award_meteor.visible = false; mLeftPane.infoBox.award_villager.visible = false; mRightPane.infoBox.award_egg.visible = false; mRightPane.infoBox.award_bone.visible = false; mRightPane.infoBox.award_meteor.visible = false; mRightPane.infoBox.award_villager.visible = false; totalLibsToLoad = AssetLoader.QueueLength; if (Main.myPlayerStats != null){ _local10 = new TrophyCase(mLeftPane.infoBox, Main.myPlayerStats); }; if (Main.myPlayerStats == null){ NetworkManager.getPlayerStats([NetworkManager.myUsername]); gotPlayerStats = false; }; } public function loadTutorialStats():void{ Main.setTextF(mRightPane.infoBox.username, "battleintroUserName", ("Tutorial " + (Main.tutorialGame + 1))); if (Main.tutorialGame > 0){ Main.setTextF(mRightPane.infoBox.username, "battleintroDinoName", "Dummy Dino"); } else { Main.setTextF(mRightPane.infoBox.dinoName, "battleintroDinoName", ""); }; Main.setTextF(mRightPane.infoBox.stats, "battleintroStats", ""); } override public function tick(_arg1:uint):void{ var _local2:int; var _local3:Array; var _local4:int; var _local5:Array; var _local6:Array; var _local7:Array; var _local8:Level; super.tick(_arg1); if (myKillFlag){ return; }; mBase.addChild(minimapBase); if (loadingBar.visible){ mBase.addChild(loaderBarBase); }; if (state == 0){ if (backGroundThing.currentFrame >= 15){ if (Main.betaMenu != null){ if (Main.betaMenu.matchingScreen != null){ Main.betaMenu.matchingScreen.myKillFlag = true; }; }; backGroundThing.gotoAndStop(15); state = 1; }; }; if ((((AssetLoader.QueueLength > 0)) || (!((AssetLoader.getProgress() == -1))))){ loadingBar.visible = true; loadingText.visible = true; staticLoadingTxt.visible = true; loadingBar.gotoAndStop(Math.round((AssetLoader.getProgress() * 100))); Main.setTextF(loadingText, "battleintroLoadBar", ((((totalLibsToLoad - AssetLoader.QueueLength) + 1) + "/") + totalLibsToLoad)); } else { loadingBar.visible = false; loadingText.visible = false; staticLoadingTxt.visible = false; }; if (state == 1){ timer = (timer - _arg1); if (timer <= 0){ if (!AssetLoader.loading){ if (AssetLoader.checkLib((leftDinoInfo.dinoType + leftDinoInfo.dinoColor))){ if (rightDinoInfo != null){ if (AssetLoader.checkLib((rightDinoInfo.dinoType + rightDinoInfo.dinoColor))){ if (rightDinoSuitLib != null){ if (AssetLoader.checkLib(rightDinoSuitLib)){ if (leftDinoSuitLib != null){ if (AssetLoader.checkLib(leftDinoSuitLib)){ if (Main.initialGameState.length > 0){ state = 2; Main.readyToStart(); if (Main.tutorialGame == -1){ waitingPlayer = AssetLoader.getAssetMC("misc", "playerWaiting"); minimapBase.addChild(waitingPlayer); }; }; }; } else { if (Main.initialGameState.length > 0){ state = 2; Main.readyToStart(); if (Main.tutorialGame == -1){ waitingPlayer = AssetLoader.getAssetMC("misc", "playerWaiting"); minimapBase.addChild(waitingPlayer); }; }; }; }; } else { if (leftDinoSuitLib != null){ if (AssetLoader.checkLib(leftDinoSuitLib)){ if (Main.initialGameState.length > 0){ state = 2; Main.readyToStart(); if (Main.tutorialGame == -1){ waitingPlayer = AssetLoader.getAssetMC("misc", "playerWaiting"); minimapBase.addChild(waitingPlayer); }; }; }; } else { if (Main.initialGameState.length > 0){ state = 2; Main.readyToStart(); if (Main.tutorialGame == -1){ waitingPlayer = AssetLoader.getAssetMC("misc", "playerWaiting"); minimapBase.addChild(waitingPlayer); }; }; }; }; }; } else { if (Main.initialGameState.length > 0){ state = 2; Main.readyToStart(); if (Main.tutorialGame == -1){ waitingPlayer = AssetLoader.getAssetMC("misc", "playerWaiting"); minimapBase.addChild(waitingPlayer); }; }; }; }; }; }; }; if (state == 2){ if (Main.GAME_MANAGER != null){ backGroundThing.gotoAndPlay(130); state = 3; if (waitingPlayer != null){ if (waitingPlayer.parent != null){ waitingPlayer.parent.removeChild(waitingPlayer); }; }; }; }; if (state == 3){ if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (backGroundThing.currentFrame >= 175){ Main.GAME_MANAGER.mPlayerDino.inMenu = false; } else { Main.GAME_MANAGER.mPlayerDino.inMenu = true; }; }; }; if (backGroundThing.currentFrame == backGroundThing.totalFrames){ backGroundThing.stop(); myKillFlag = true; startTicking(); }; }; if (separating){ }; if ((((minimap == null)) || ((levelName == null)))){ _local2 = 0; while (_local2 < Main.initialGameState.length) { _local3 = Main.initialGameState[_local2]; _local4 = 0; while (_local4 < _local3.length) { if (_local3[_local4].match("T_terrain")){ _local5 = extractObjectData(_local3, _local4); _local6 = new Array(); _local2 = 2; while (_local2 < _local5.length) { _local6.push(int(_local5[_local2])); _local2++; }; mapTerrain = new Terrain(null, 3000, _local6, _local5[1]); mapTerrain.stopTicking(); minimap = new Minimap(); minimap.setTerrain(mapTerrain); minimapBase.addChild(minimap.mBase); } else { if (_local3[_local4].match("T_level")){ _local7 = extractObjectData(_local3, _local4); _local8 = new Level(); _local8.networkUpdate(_local7); levelName = _local8.levelName; }; }; _local4++; }; _local2++; }; }; if (!mapnameSet){ if (backGroundThing.mapname != null){ if (levelName != null){ Main.setTextF(backGroundThing.mapname.mapname, "battleintroMapName", levelName); mapnameSet = true; }; }; }; } public function myPlayerStatsUpdate(_arg1:PlayerStats):void{ _arg1.display(mLeftPane.infoBox.stats, false, "battleintroStats"); var _local2:TextField = mLeftPane.infoBox.username; _local2.autoSize = TextFieldAutoSize.RIGHT; var _local3:* = new PlayerLevelWidget(); if (Main.GUEST_MODE_ENABLED){ _local3.clip.visible = false; }; _local3.setLevel(_arg1.playerLevel); mLeftPane.addChild(_local3.clip); _local3.clip.x = ((_local2.x - 10) + mLeftPane.infoBox.x); _local3.clip.y = ((_local2.y + mLeftPane.infoBox.y) - 2.5); _local3.clip.x = (_local3.clip.x - _local3.clip.width); var _local4:TrophyCase = new TrophyCase(mLeftPane.infoBox, _arg1); } public function loadRightStats():void{ var _local1:TextField; var _local2:*; var _local3:BoostIconMGR; if (Main.opponentUsername.match("Guest")){ return; }; if (Main.tutorialGame == -1){ Main.enemyPlayerStats.display(mRightPane.infoBox.stats, true, "battleintroStats"); _local1 = mRightPane.infoBox.username; _local1.autoSize = TextFieldAutoSize.LEFT; _local2 = new PlayerLevelWidget(); _local2.setLevel(Main.enemyPlayerStats.playerLevel); mRightPane.addChild(_local2.clip); _local2.clip.x = (((_local1.x + _local1.width) + 15) + mRightPane.infoBox.x); _local2.clip.y = ((_local1.y + mRightPane.infoBox.y) - 2.5); new TrophyCase(mRightPane.infoBox, Main.enemyPlayerStats); _local3 = new BoostIconMGR(mRightPane.infoBox); _local3.setBoosts(Main.enemyPlayerStats.boostCode); }; } public function extractObjectData(_arg1:Array, _arg2:int):Array{ var _local3:Array = new Array(_arg1[_arg2]); var _local4:int = (_arg2 + 1); while (_local4 < _arg1.length) { if (((_arg1[_local4].match(/^T_*/)) || (_arg1[_local4].match(/^E_*/)))){ if (!_arg1[_local4].match("Tan")){ break; }; }; _local3.push(_arg1[_local4]); _local4++; }; return (_local3); } override public function kill():void{ super.kill(); if (leftDinoViewer != null){ leftDinoViewer.kill(); }; if (rightDinoViewer != null){ rightDinoViewer.kill(); }; mBase.parent.removeChild(mBase); Main.battleIntro = null; if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.startTutorial(Main.tutorialGame); }; System.gc(); } public function loadRightDino(_arg1:DinoInfo):void{ var _local2:String; trace(("LOAD RIGHT DINO " + _arg1.dinoName)); rightDinoViewer = new DinoViewer(mRightPane.viewer_fordino, 0, 0, -1, -2); rightDinoViewer.myBaseClip.scaleX = 1.5; rightDinoViewer.myBaseClip.scaleY = 1.5; trace("tenten"); rightDinoViewer.loadDino(_arg1, true); rightDinoInfo = _arg1; rightDinoViewer.bakeAccessories(); AssetLoader.loadAsset((rightDinoInfo.dinoType + rightDinoInfo.dinoColor)); trace("ballsey, sir"); trace("jackassery"); trace("plenty good rabbit"); Main.setTextF(mRightPane.infoBox.dinoName, "battleintroDinoName", _arg1.dinoName); if (!Main.opponentUsername.match("Guest")){ Main.setTextF(mRightPane.infoBox.username, "battleintroUserName", Main.opponentUsername); } else { Main.setTextF(mRightPane.infoBox.username, "battleintroUserName", "Guest-a-saurus's"); }; if (Main.myPlayerStats != null){ Main.myPlayerStats.display(mLeftPane.infoBox.stats, false, "battleintroStats"); }; if (Main.enemyPlayerStats != null){ loadRightStats(); }; if (Main.tutorialGame != -1){ loadTutorialStats(); }; for each (_local2 in _arg1.accessories) { if (_local2.match("biz_suit")){ AssetLoader.loadAsset((_arg1.dinoType + "_biz_suit")); rightDinoSuitLib = (_arg1.dinoType + "_biz_suit"); }; if (_local2.match("tanuki_suit")){ AssetLoader.loadAsset((_arg1.dinoType + "_tanuki_suit")); rightDinoSuitLib = (_arg1.dinoType + "_tanuki_suit"); }; if (_local2.match("space_suit")){ AssetLoader.loadAsset((_arg1.dinoType + "_space_suit")); rightDinoSuitLib = (_arg1.dinoType + "_space_suit"); }; }; } } }//package dinowaurs
Section 121
//Bone (dinowaurs.Bone) package dinowaurs { import flash.events.*; import flash.display.*; import engine.core.*; import dinowaurs.managers.*; public class Bone extends MelbaObject { public var animator:MovieClip; public var frame:int; public var mID:int; public var POS:Array; public var ROT:Array; public var mClip:MovieClip; public function Bone(_arg1:Array, _arg2:Array, _arg3:Sprite, _arg4:int){ POS = _arg1; ROT = _arg2; frame = 0; mClip = new MovieClip(); _arg3.addChild(mClip); mClip.x = POS[0].x; mClip.y = POS[0].y; mClip.rotation = ROT[0]; mID = _arg4; } public function traceID(_arg1:MouseEvent):void{ trace(("this bone's ID==" + mID)); } public function resetDraw():void{ if (mClip.parent == null){ return; }; var _local1:Sprite = Sprite(mClip.parent); _local1.removeChild(mClip); _local1.addChild(mClip); } public function swapClip():MovieClip{ var _local2:MovieClip; var _local1:Sprite = Sprite(mClip.parent); _local2 = new MovieClip(); if (_local1 != null){ _local1.addChild(_local2); }; var _local3:MovieClip = mClip; _local2.x = mClip.x; _local2.y = mClip.y; _local2.rotation = mClip.rotation; mClip = _local2; return (_local3); } public function setFrame(_arg1:int):void{ frame = _arg1; } public function enterframe(_arg1:Event):void{ if (mClip.numChildren == 0){ return; }; if (frame >= POS.length){ frame = 0; }; if (animator != null){ frame = (animator.currentFrame - 1); }; if (frame < 0){ frame = (POS.length - 1); }; if (mID == 1000){ trace(frame); trace(mClip.x); trace(mClip.y); trace(mClip.rotation); }; mClip.x = POS[frame].x; mClip.y = POS[frame].y; var _local2:Number = ROT[frame]; if ((((_local2 > 180)) && ((_local2 < 360)))){ _local2 = (_local2 - 180); _local2 = (_local2 + -180); }; mClip.rotation = -(_local2); frame++; } public function kill():void{ if (mClip.parent != null){ mClip.parent.removeChild(mClip); }; POS = new Array(); ROT = new Array(); mClip = null; } } }//package dinowaurs
Section 122
//BoneImp (dinowaurs.BoneImp) package dinowaurs { import flash.events.*; import flash.display.*; import flash.geom.*; import engine.core.*; import dinowaurs.managers.*; public class BoneImp extends Tickable { public var freezedFrame:int;// = -1 public var mID:int; public var yoff:Number;// = 0 public var mClip:MovieClip; public var animator:MovieClip; public var frame:int; public var POS:Array; public var visChecked:Boolean;// = true public var ROT:Array; public function BoneImp(_arg1:Sprite, _arg2:int){ super(("boneImp" + _arg2), false); POS = new Array(); ROT = new Array(); frame = 0; mClip = new MovieClip(); _arg1.addChild(mClip); mID = _arg2; stopTicking(); } public function swapClip():MovieClip{ var _local1:Sprite = Sprite(mClip.parent); var _local2:MovieClip = new MovieClip(); if (_local1 != null){ _local1.addChild(_local2); }; var _local3:MovieClip = mClip; _local2.x = mClip.x; _local2.y = mClip.y; _local2.rotation = mClip.rotation; mClip = _local2; return (_local3); } public function setScript(_arg1:Bone):void{ var _local2:Point; var _local3:Number; POS = new Array(); ROT = new Array(); for each (_local2 in _arg1.POS) { POS.push(_local2); }; for each (_local3 in _arg1.ROT) { ROT.push(_local3); }; } public function setBase(_arg1:Sprite):void{ if (mClip.parent != null){ mClip.parent.removeChild(mClip); }; _arg1.addChild(mClip); } public function freezeFrame(_arg1:int):void{ freezedFrame = _arg1; } override public function kill():void{ if (mClip.parent != null){ mClip.parent.removeChild(mClip); }; mClip = null; ROT = null; POS = null; animator = null; super.kill(); } public function traceID(_arg1:MouseEvent):void{ trace(("this BoneImp's ID==" + mID)); } public function setFrame(_arg1:int):void{ frame = _arg1; } public function resetDraw():void{ if (mClip.parent == null){ return; }; var _local1:Sprite = Sprite(mClip.parent); _local1.removeChild(mClip); _local1.addChild(mClip); } override public function tick(_arg1:uint):void{ var _local3:int; if (!mFirstTick){ return; }; if (myKillFlag){ return; }; if (frame >= POS.length){ frame = 0; }; if (animator != null){ frame = (animator.currentFrame - 1); }; if (frame < 0){ frame = (POS.length - 1); }; if (mID == 1000){ trace(frame); trace(mClip.x); trace(mClip.y); trace(mClip.rotation); }; if (freezedFrame != -1){ frame = freezedFrame; }; mClip.x = POS[frame].x; mClip.y = (POS[frame].y + yoff); var _local2:Number = ROT[frame]; if ((((_local2 > 180)) && ((_local2 < 360)))){ _local2 = (_local2 - 180); _local2 = (_local2 + -180); }; if (!visChecked){ _local3 = 0; while (_local3 < mClip.numChildren) { if (mClip.getChildAt(_local3).visible == false){ mClip.getChildAt(_local3).visible = true; }; _local3++; }; visChecked = true; }; mClip.rotation = -(_local2); frame++; } public function removeChild(_arg1:Sprite):void{ mClip.removeChild(_arg1); if (mClip.numChildren <= 0){ stopTicking(); }; } public function addChild(_arg1:Sprite):void{ mClip.addChild(_arg1); if (Main.GAME_MANAGER == null){ _arg1.visible = false; }; visChecked = false; startTicking(); } } }//package dinowaurs
Section 123
//ChatBox (dinowaurs.ChatBox) package dinowaurs { import flash.events.*; import flash.display.*; import flash.text.*; import engine.core.*; import dinowaurs.managers.*; import engine.networking.*; public class ChatBox extends Tickable { var fadeTimer:int;// = 0 var inputBG:Sprite; var inputField:TextField; var base:Sprite; var myTextBox:TextField; public var myMessage:Boolean;// = false var lines:Array; public function ChatBox(_arg1:Sprite){ super("chatbox", true); startTicking(); if (!Main.unKong){ KongApiManager.kongregate.chat.addEventListener("message", kongChat); }; base = new Sprite(); _arg1.addChild(base); myTextBox = new TextField(); myTextBox.width = 263; myTextBox.height = 42; myTextBox.autoSize = "left"; myTextBox.x = (414 + 6); myTextBox.y = (46 + 6); myTextBox.textColor = 0xFFFFFF; myTextBox.embedFonts = true; var _local2:TextFormat = new TextFormat("Monaco", 8); _local2.leading = 1; myTextBox.defaultTextFormat = _local2; myTextBox.antiAliasType = "advanced"; myTextBox.selectable = false; myTextBox.mouseWheelEnabled = false; base.graphics.beginFill(5682, 0.7); base.graphics.drawRoundRect(414, 46, 284, 84, 13, 13); base.graphics.endFill(); base.graphics.lineStyle(1, 0xFFFFFF); base.graphics.moveTo((414 + 10), (46 + 57)); base.graphics.lineTo(((414 + 10) + 263), (46 + 57)); base.addChild(myTextBox); base.mouseEnabled = false; lines = new Array(); inputField = new TextField(); inputField.type = "input"; inputField.multiline = false; inputField.autoSize = "left"; inputField.x = (414 + 6); inputField.y = (46 + 65); inputField.height = 11; inputField.width = 263; inputField.embedFonts = true; var _local3:TextFormat = new TextFormat("Monaco", 8); _local3.leading = 3; inputField.defaultTextFormat = _local3; inputField.antiAliasType = "advanced"; inputField.textColor = 16758610; inputField.maxChars = 40; inputField.selectable = false; } override public function kill():void{ super.kill(); if (!Main.unKong){ KongApiManager.kongregate.chat.removeEventListener("message", kongChat); }; base.parent.removeChild(base); } public function appendLine(_arg1:String):void{ var _local4:String; var _local5:String; var _local6:int; var _local7:int; var _local8:TextFormat; var _local9:int; myTextBox.text = ""; if (fadeTimer <= 5000){ fadeTimer = 5000; }; base.alpha = 1; var _local2:String = _arg1.split(": ")[0]; var _local3:String = _arg1.split(": ")[1]; _local3 = _local3.split("\n", 1)[0]; if (_local2 != NetworkManager.myUsername){ if (_local2.match("Guest")){ _local2 = "Guesst-a-saurus"; }; KongApiManager.kongregate.chat.displayMessage(_local3, _local2); }; if (_local2.match("Guest")){ _local2 = "Guest-a-saurus"; }; lines.push((((_local2 + ": ") + _local3) + "\n")); if (lines.length <= 4){ for each (_local4 in lines) { _local5 = _local4.split(": ", 1)[0]; _local6 = myTextBox.text.length; _local7 = (_local6 + _local5.length); _local8 = new TextFormat("Monaco", 8); _local8.leading = 1; if (_local4.match(NetworkManager.myUsername)){ myTextBox.appendText(_local4); _local8.color = 16758610; myTextBox.setTextFormat(_local8, _local6, _local7); } else { myTextBox.appendText(_local4); _local8.color = 3959035; myTextBox.setTextFormat(_local8, _local6, _local7); }; _local8.color = 0xFFFFFF; myTextBox.setTextFormat(_local8, _local7, myTextBox.text.length); }; } else { _local9 = (lines.length - 4); while (_local9 < lines.length) { _local4 = lines[_local9]; _local5 = _local4.split(": ", 1)[0]; _local6 = myTextBox.text.length; _local7 = (_local6 + _local5.length); _local8 = new TextFormat("Monaco", 8); _local8.leading = 1; if (_local4.match(NetworkManager.myUsername)){ myTextBox.appendText(_local4); _local8.color = 16758610; myTextBox.setTextFormat(_local8, _local6, _local7); } else { myTextBox.appendText(_local4); _local8.color = 3959035; myTextBox.setTextFormat(_local8, _local6, _local7); }; _local8.color = 0xFFFFFF; myTextBox.setTextFormat(_local8, _local7, myTextBox.text.length); _local9++; }; }; } public function kongChat(_arg1):void{ NetworkManager.sendChatMsg(_arg1.data.text); } public function enterEvent():void{ if (!Main.GUEST_MODE_ENABLED){ if (base.contains(inputField)){ if (inputField.text != ""){ NetworkManager.sendChatMsg(inputField.text); if (!Main.GUEST_MODE_ENABLED){ KongApiManager.kongregate.chat.displayMessage(inputField.text, NetworkManager.myUsername); } else { KongApiManager.kongregate.chat.displayMessage(inputField.text, "Guesst-a-saurus"); }; }; base.removeChild(inputField); base.stage.focus = base.stage; inputField.text = ""; inputField.selectable = false; fadeTimer = 5000; Main.GAME_MANAGER.mPlayerDino.inMenu = false; Main.GAME_MANAGER.mPlayerDino.inChat = false; UIManager.inMenu = false; } else { base.alpha = 1; fadeTimer = 999999999; base.addChild(inputField); base.stage.focus = inputField; inputField.text = ""; inputField.selectable = true; Main.GAME_MANAGER.mPlayerDino.inMenu = true; Main.GAME_MANAGER.mPlayerDino.inChat = true; UIManager.inMenu = true; }; }; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; fadeTimer = (fadeTimer - _arg1); if (fadeTimer <= 0){ if (base.alpha > 0){ base.alpha = (base.alpha - 0.01); }; }; } } }//package dinowaurs
Section 124
//CollideCircle (dinowaurs.CollideCircle) package dinowaurs { import flash.display.*; import engine.display.*; import dinowaurs.managers.*; public class CollideCircle extends MelbaTile { public function CollideCircle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int){ var _local5:MelbaPawn = new MelbaPawn(new MovieClip(), 1); MovieClip(_local5.content).graphics.lineStyle(1, 0xFF00FF); trace(("makin a collide circle with radius ==" + _arg3)); MovieClip(_local5.content).graphics.drawCircle(0, 0, _arg3); super(Main.GAME_MANAGER.Canvas_GUI, _local5, _arg1, _arg2, "debug collide circle", false); _local5.the.visible = false; ID.Value = _arg4; } } }//package dinowaurs
Section 125
//DelayWidget (dinowaurs.DelayWidget) package dinowaurs { import flash.display.*; import engine.core.*; import dinowaurs.managers.*; public class DelayWidget extends Tickable { public var mRelatedObject:MelbaObject; public var eventName:String; public var totalTime:uint; public var mMovieClip:MovieClip; public var timeLeft:uint; public function DelayWidget(_arg1:uint, _arg2:String, _arg3:MelbaObject=null){ super(_arg2, true); eventName = _arg2; totalTime = _arg1; timeLeft = _arg1; mRelatedObject = _arg3; if (eventName.match(/reload/)){ mMovieClip = AssetLoader.getAssetMC("gameGui", "reloadWidget"); mMovieClip.gotoAndStop((timeLeft / totalTime)); mMovieClip.x = 400; mMovieClip.y = 300; GameData.GUI_BASE.addChild(mMovieClip); }; if (eventName.match("equip")){ mMovieClip = AssetLoader.getAssetMC("gameGui", "equipWidget"); mMovieClip.gotoAndStop((timeLeft / totalTime)); mMovieClip.x = 400; mMovieClip.y = 300; GameData.GUI_BASE.addChild(mMovieClip); }; if (eventName.match(/villageMode/)){ mMovieClip = AssetLoader.getAssetMC("gameGui", "villageModeSwitchWidget"); mMovieClip.gotoAndStop(1); }; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; timeLeft = (timeLeft - _arg1); if (timeLeft <= 0){ Main.GAME_MANAGER.signalDelayEnd(eventName, mRelatedObject); myKillFlag = true; startTicking(); timeLeft = 0; }; if (mMovieClip != null){ mMovieClip.gotoAndStop(Math.round(((1 - (timeLeft / totalTime)) * 100))); }; } override public function kill():void{ super.kill(); if (((eventName.match("reload")) || (eventName.match("equip")))){ GameData.GUI_BASE.removeChild(mMovieClip); } else { if (eventName.match("villageMode")){ Sprite(VillageZone(mRelatedObject).mVillageTile.Pawn.the).removeChild(mMovieClip); }; }; } } }//package dinowaurs
Section 126
//DiscoScreen (dinowaurs.DiscoScreen) package dinowaurs { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; import dinowaurs.managers.*; public class DiscoScreen extends MovieClip { public var clip:MovieClip; public var timer:Timer; public var counter:int; public var handle:String; public function DiscoScreen(_arg1:String){ handle = _arg1; if (AssetLoader.getAssetMC("misc", _arg1) != null){ clip = AssetLoader.getAssetMC("misc", _arg1); } else { clip = new MovieClip(); clip.graphics.beginFill(0xFF0000, 0.4); clip.graphics.drawCircle(100, 300, 50); clip.graphics.drawCircle(200, 300, 50); clip.graphics.drawCircle(300, 300, 50); }; addChild(clip); if (_arg1 != "disconnectScreen"){ timer = new Timer(1000); timer.addEventListener(TimerEvent.TIMER, timerF); timer.start(); clip.dropCount.autoSize = TextFieldAutoSize.LEFT; if (_arg1 == "playerDrop"){ counter = 90; clip.dropCount.text = (counter.toString() + " sec."); }; if (_arg1 == "opponentDrop"){ counter = 60; clip.dropCount.text = (counter.toString() + " sec."); }; }; } public function timerF(_arg1:TimerEvent):void{ if (parent == null){ timer.stop(); timer.removeEventListener(TimerEvent.TIMER, timerF); }; if (handle == "playerDrop"){ counter--; if (counter <= 0){ Main.disco("disconnectScreen"); }; clip.dropCount.text = (counter.toString() + " sec."); } else { if (handle == "opponentDrop"){ counter--; clip.dropCount.text = (counter.toString() + " sec."); }; }; } } }//package dinowaurs
Section 127
//DNATag (dinowaurs.DNATag) package dinowaurs { import flash.display.*; import flash.text.*; import engine.display.*; import engine.physics.*; import dinowaurs.managers.*; public class DNATag extends Particle { private var dnaTag:Class; private var textBox:TextField; public function DNATag(_arg1:Canvas, _arg2:Number, _arg3:Number, _arg4:int){ dnaTag = AssetLoader.getAsset("misc", "dnaTag"); var _local5:MelbaPawn = new MelbaPawn(new dnaTag(), 1); super(_arg1, _local5, _arg2, _arg3, 20, "dnaTag", true); mInertia.y = -1; Pawn.the.scaleX = (Pawn.the.scaleY = 0.75); TextField(MovieClip(_local5.content).value).text = _arg4.toString(); var _local6:TextFormat = TextField(MovieClip(_local5.content).value).getTextFormat(); TextField(MovieClip(_local5.content).value).setTextFormat(_local6); textBox = TextField(MovieClip(_local5.content).value); Pawn.the.mouseChildren = false; Pawn.the.mouseEnabled = false; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (mFirstTick){ Pawn.the.alpha = (Pawn.the.alpha - (1 / 80)); }; } } }//package dinowaurs
Section 128
//ExplodedVillager (dinowaurs.ExplodedVillager) package dinowaurs { import flash.display.*; import flash.geom.*; import engine.display.*; import engine.physics.*; import dinowaurs.managers.*; public class ExplodedVillager extends Particle { public var race:String; public var safetyTimer:int;// = 30 public var graphic:MovieClip; public var myTerrain:Terrain; public var landed:Boolean;// = false public function ExplodedVillager(_arg1:Villager, _arg2:Number){ race = _arg1.race; var _local3:MelbaPawn = new MelbaPawn(new MovieClip(), 1); super(_arg1.ParentCanvas, _local3, _arg1.Pawn.the.x, _arg1.Pawn.the.y, 5000, "villager splode", true); myTerrain = _arg1.myTerrain; graphic = AssetLoader.getAssetMC("villagers", ("villagerKnockdown1" + race)); MovieClip(mPawn.content).addChild(graphic); mInertia.x = (_arg2 * 6); mInertia.y = -6; mGlobalForce = new Point(0, 0.1); } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; safetyTimer--; if (safetyTimer > 0){ return; }; if (!landed){ if (mPawn.the.y > myTerrain.getHeight(mPawn.the.x)){ MovieClip(mPawn.content).removeChild(graphic); graphic = AssetLoader.getAssetMC("villagers", ("villagerKnockdown2" + race)); MovieClip(mPawn.content).addChild(graphic); FadeOut = 1E-6; landed = true; }; } else { mPawn.the.y = myTerrain.getHeight(mPawn.the.x); mInertia.x = (mInertia.x - (mInertia.x * 0.05)); }; } } }//package dinowaurs
Section 129
//Fire (dinowaurs.Fire) package dinowaurs { import flash.events.*; import flash.geom.*; import engine.display.*; import engine.physics.*; import dinowaurs.managers.*; public class Fire extends PhysicsActor { private var amRed:Boolean; public var myTerrain:Terrain; public var initialUpdate:Boolean;// = false public var ownerID:int; private var froze:Boolean;// = false private var fire:Class; public function Fire(_arg1:Number, _arg2:Number, _arg3:Terrain, _arg4:Boolean){ var _local5:MelbaPawn; fire = AssetLoader.getAsset("misc", "fire"); _local5 = new MelbaPawn(new fire(), 1); amRed = _arg4; super(Main.GAME_MANAGER.Canvas_Actor, _local5, _arg1, _arg2, "fire", true); myTerrain = _arg3; mPawn.the.scaleX = (mPawn.the.scaleY = 4); } public function keyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 66){ froze = !(froze); }; } override public function networkUpdate(_arg1:Array):void{ if (froze){ return; }; if (amRed){ ID.Value = _arg1[2]; }; if (_arg1[3] == "false"){ myKillFlag = false; } else { if (_arg1[3] == "true"){ myKillFlag = true; }; }; Pawn.the.x = _arg1[4]; Pawn.the.y = _arg1[5]; mInertia.x = _arg1[6]; mInertia.y = _arg1[7]; mGlobalForce.x = _arg1[8]; mGlobalForce.y = _arg1[9]; ownerID = _arg1[10]; Main.signalFlame(ownerID); } override public function tick(_arg1:uint):void{ if (froze){ return; }; super.tick(_arg1); if (myKillFlag){ return; }; if (mPawn.the.y > myTerrain.getHeight(mPawn.the.x)){ mPawn.the.y = myTerrain.getHeight(mPawn.the.x); mInertia = new Point(0, 0); }; } } }//package dinowaurs
Section 130
//GameConfig (dinowaurs.GameConfig) package dinowaurs { public class GameConfig { public static var configMap:Array; public static function initialize(_arg1:Array):void{ configMap = new Array(); var _local2:int; while (_local2 < _arg1.length) { configMap[_arg1[_local2]] = _arg1[(_local2 + 1)]; _local2 = (_local2 + 2); }; } public static function getValue(_arg1:String):String{ if (configMap == null){ return ("0"); }; if (configMap[_arg1] != null){ return ((configMap[_arg1] as String)); }; return ("0"); } } }//package dinowaurs
Section 131
//GameIntro (dinowaurs.GameIntro) package dinowaurs { import flash.events.*; import flash.display.*; import engine.core.*; import flash.media.*; import dinowaurs.managers.*; import engine.networking.*; public class GameIntro extends Tickable { public var background:MovieClip; public var currentClip:MovieClip; public var base:MovieClip; public var state:int; public function GameIntro(_arg1:Sprite){ super("gameIntro", true); base = new MovieClip(); _arg1.addChild(base); state = 0; currentClip = AssetLoader.getAssetMC("gameIntro", "loaderFrame"); background = new MovieClip(); background.graphics.lineStyle(0, 0xFFFFFF); background.graphics.beginFill(0xFFFFFF); background.graphics.drawRect(-100, -100, 1000, 1000); background.graphics.endFill(); base.addChild(background); base.addChild(currentClip); base.addEventListener(MouseEvent.CLICK, skipClick); } public function skipClick(_arg1:MouseEvent):void{ if (state > 1){ nextIntro(); }; } public function nextIntro():void{ var _local1:SpeedTest; var _local2:MovieClip; var _local3:Class; var _local4:Sound; if (state == 0){ base.removeChild(currentClip); currentClip = AssetLoader.getAssetMC("gameIntro", "intuitionLogo"); base.addChild(currentClip); currentClip.x = 167.4; currentClip.y = 143; _local1 = new SpeedTest(); currentClip.addChild(_local1); _local1.x = -167.4; _local1.y = -143; _local2 = AssetLoader.getAssetMC("gameIntro", "qTest"); currentClip.addChild(_local2); _local2.x = -167.4; _local2.y = (-25 - 120); _local3 = AssetLoader.getAsset("gameIntro", "SFX_Intuition"); _local4 = new (_local3); _local4.play(); state = 1; } else { if (state == 1){ base.removeChild(currentClip); currentClip = AssetLoader.getAssetMC("gameIntro", "kongIntro"); base.addChild(currentClip); currentClip.x = (currentClip.x + (currentClip.width / 2)); currentClip.y = (currentClip.y + (currentClip.height / 2)); state = 2; currentClip.addChild(AssetLoader.getAssetMC("gameIntro", "skip_widget")); } else { if (state == 2){ currentClip.stop(); SoundMixer.stopAll(); base.removeChild(currentClip); currentClip = AssetLoader.getAssetMC("gameIntro", "studio13"); base.addChild(currentClip); currentClip.addChild(AssetLoader.getAssetMC("gameIntro", "skip_widget")); state = 3; } else { if (state == 3){ currentClip.stop(); SoundMixer.stopAll(); base.removeChild(currentClip); currentClip = AssetLoader.getAssetMC("gameIntro", "dinowaurs_intro"); currentClip.addChild(AssetLoader.getAssetMC("gameIntro", "skip_widget")); base.addChild(currentClip); state = 4; if (background.parent != null){ background.parent.removeChild(background); }; Main.connectingScreen = AssetLoader.getAssetMC("misc", "connectingScreen"); base.parent.addChild(Main.connectingScreen); if (NetworkManager.loggedIn){ Main.connectingScreen.visible = false; }; } else { if (state == 4){ currentClip.stop(); if (NetworkManager.loggedIn){ if (Main.initSoundFlag){ Main.menuMusicScript.signalMusicEvent("enterMenu"); }; state = 5; if (background.parent != null){ background.parent.removeChild(background); }; Main.connectingScreen.visible = false; } else { currentClip.gotoAndStop(currentClip.totalFrames); }; }; }; }; }; }; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; if (state == 4){ if (NetworkManager.loggedIn){ currentClip.play(); if (Main.connectingScreen != null){ Main.connectingScreen.visible = false; }; if (currentClip.currentFrame == 23){ Main.introDone = true; }; if (currentClip.currentFrame == 24){ currentClip.alpha = 0; }; } else { if (currentClip.currentFrame >= 8){ currentClip.gotoAndStop(8); }; }; } else { if (state == 5){ Main.introDone = true; Main.myIntro = null; if (Main.betaMenu != null){ trace("GAME INTRO READY TO DIE!"); if (Main.betaMenu.initialized){ myKillFlag = true; }; }; }; }; if (currentClip != null){ if (currentClip.currentFrame >= currentClip.totalFrames){ nextIntro(); }; }; } override public function kill():void{ super.kill(); base.parent.removeChild(base); base.removeChild(currentClip); currentClip = null; base = null; Main.introDone = true; Main.myIntro = null; if (background.parent != null){ background.parent.removeChild(background); }; } } }//package dinowaurs
Section 132
//GameSettings (dinowaurs.GameSettings) package dinowaurs { public class GameSettings { private var toolTipsState:int;// = 1 private var accessoryScreenHelp:Number;// = 1 public var dirty:Boolean;// = false private var musicVolume:Number;// = 1 private var battleScreenHelp:Number;// = 1 private var graphicsQuality:String;// = "high" private var arenaQuality:String;// = "high" private var effectsVolume:Number;// = 1 public function set MusicVolume(_arg1:Number):void{ musicVolume = _arg1; dirty = true; } public function set EffectsVolume(_arg1:Number):void{ effectsVolume = _arg1; dirty = true; } public function get BattleScreenHelp():Number{ return (battleScreenHelp); } public function set AccessoryScreenHelp(_arg1:Number):void{ accessoryScreenHelp = _arg1; dirty = true; } public function get MusicVolume():Number{ return (musicVolume); } public function get ToolTips():int{ return (toolTipsState); } public function set BattleScreenHelp(_arg1:Number):void{ battleScreenHelp = _arg1; dirty = true; } public function get GraphicsQuality():String{ return (graphicsQuality); } public function get ArenaQuality():String{ return (arenaQuality); } public function get EffectsVolume():Number{ return (effectsVolume); } public function set ToolTips(_arg1:int):void{ toolTipsState = _arg1; dirty = true; } public function get AccessoryScreenHelp():Number{ return (accessoryScreenHelp); } public function set GraphicsQuality(_arg1:String):void{ graphicsQuality = _arg1; dirty = true; } public function set ArenaQuality(_arg1:String):void{ arenaQuality = _arg1; dirty = true; } } }//package dinowaurs
Section 133
//GameStats (dinowaurs.GameStats) package dinowaurs { import flash.display.*; import flash.text.*; import dinowaurs.managers.*; public class GameStats { public var myIter:int; public var favWeapon:Array; public var moneyCollected:Array; public var matchLength:int; public var moneySpent:Array; public var dinoKills:Array; public var hisIter:int; public var shotsFired:Array; public var playerIDs:Array; public var strikeDist:Array; public var shotsHit:Array; public function GameStats(){ playerIDs = new Array(); shotsFired = new Array(); shotsHit = new Array(); dinoKills = new Array(); moneySpent = new Array(); moneyCollected = new Array(); favWeapon = new Array(); strikeDist = new Array(); matchLength = 0; } public function loadPage(_arg1:MovieClip, _arg2:int):void{ var _local3:int; var _local4:int; var _local5:TextField; var _local6:TextFormat; var _local7:TextField; var _local8:TextFormat; trace(("yo gabba gabba!" + playerIDs.length)); if (_arg1 == null){ return; }; if (playerIDs.length < 2){ return; }; trace(("GAMESTATS.loadPage, page ==" + _arg2)); if (_arg2 == 0){ }; if (_arg2 == 1){ trace("GAME STATS PAGE == 1!!!"); if (_arg1.left != null){ _local5 = _arg1.left.infoBox.stats; _local6 = _local5.getTextFormat(); _local6.leading = 4.65; _local7 = _arg1.right.infoBox.stats; _local8 = _local7.getTextFormat(); _local8.leading = 4.65; _local7.autoSize = TextFieldAutoSize.RIGHT; _local5.autoSize = TextFieldAutoSize.LEFT; if (shotsFired[myIter] == 0){ shotsFired[myIter] = 1; }; if (shotsFired[hisIter] == 0){ shotsFired[hisIter] = 1; }; if (matchLength < 60){ _arg1.left.infoBox.stats.text = (matchLength + " sec"); } else { _local3 = Math.floor((matchLength / 60)); _local4 = (matchLength - (_local3 * 60)); _arg1.left.infoBox.stats.text = (((_local3 + ":") + _local4) + " min"); }; _arg1.left.infoBox.stats.text = (_arg1.left.infoBox.stats.text + ((("\n" + moneySpent[myIter]) + "/") + moneyCollected[myIter])); _arg1.left.infoBox.stats.text = (_arg1.left.infoBox.stats.text + ("\n" + dinoKills[myIter])); _arg1.left.infoBox.stats.text = (_arg1.left.infoBox.stats.text + ("\n" + shotsFired[myIter])); _arg1.left.infoBox.stats.text = (_arg1.left.infoBox.stats.text + (("\n" + Math.round(((100 * shotsHit[myIter]) / shotsFired[myIter]))) + "%")); _arg1.left.infoBox.stats.text = (_arg1.left.infoBox.stats.text + (("\n" + (Math.floor(((100 * strikeDist[myIter]) / 0x100000)) / 100)) + " MP")); _arg1.left.infoBox.stats.text = (_arg1.left.infoBox.stats.text + ("\n" + favWeapon[myIter])); if (matchLength < 60){ _arg1.right.infoBox.stats.text = (matchLength + " sec"); } else { _local3 = Math.floor((matchLength / 60)); _local4 = (matchLength - (_local3 * 60)); _arg1.right.infoBox.stats.text = (((_local3 + ":") + _local4) + " min"); }; _arg1.right.infoBox.stats.text = (_arg1.right.infoBox.stats.text + ((("\n" + moneySpent[hisIter]) + "/") + moneyCollected[hisIter])); _arg1.right.infoBox.stats.text = (_arg1.right.infoBox.stats.text + ("\n" + dinoKills[hisIter])); _arg1.right.infoBox.stats.text = (_arg1.right.infoBox.stats.text + ("\n" + shotsFired[hisIter])); _arg1.right.infoBox.stats.text = (_arg1.right.infoBox.stats.text + (("\n" + Math.round(((100 * shotsHit[hisIter]) / shotsFired[hisIter]))) + "%")); _arg1.right.infoBox.stats.text = (_arg1.right.infoBox.stats.text + (("\n" + (Math.floor(((100 * strikeDist[hisIter]) / 0x100000)) / 100)) + " MP")); _arg1.right.infoBox.stats.text = (_arg1.right.infoBox.stats.text + ("\n" + favWeapon[hisIter])); _local5.setTextFormat(_local6); _local7.setTextFormat(_local8); }; }; } public function networkUpdate(_arg1:Array):void{ trace(("net upbate for gmasestats " + _arg1)); var _local2 = 2; matchLength = (parseInt(_arg1[_local2]) / 1000); _local2++; playerIDs.push(parseInt(_arg1[_local2])); trace(("PLAYER ID==" + parseInt(_arg1[_local2]))); _local2++; shotsFired.push(parseInt(_arg1[_local2])); _local2++; shotsHit.push(parseInt(_arg1[_local2])); _local2++; dinoKills.push(parseInt(_arg1[_local2])); _local2++; moneySpent.push(parseInt(_arg1[_local2])); _local2++; moneyCollected.push(parseInt(_arg1[_local2])); _local2++; favWeapon.push(_arg1[_local2]); _local2++; strikeDist.push(parseInt(_arg1[_local2])); _local2++; playerIDs.push(parseInt(_arg1[_local2])); trace(("PLAYER ID==" + parseInt(_arg1[_local2]))); _local2++; shotsFired.push(parseInt(_arg1[_local2])); _local2++; shotsHit.push(parseInt(_arg1[_local2])); _local2++; dinoKills.push(parseInt(_arg1[_local2])); _local2++; moneySpent.push(parseInt(_arg1[_local2])); _local2++; moneyCollected.push(parseInt(_arg1[_local2])); _local2++; favWeapon.push(_arg1[_local2]); _local2++; strikeDist.push(parseInt(_arg1[_local2])); _local2++; if (playerIDs.length < 2){ return; }; var _local3:int = Main.myUserID; if (playerIDs[0] == Main.myUserID){ myIter = 1; hisIter = 0; } else { myIter = 0; hisIter = 1; }; } } }//package dinowaurs
Section 134
//GoldFloater (dinowaurs.GoldFloater) package dinowaurs { import flash.display.*; import flash.text.*; import engine.display.*; import engine.physics.*; import dinowaurs.managers.*; public class GoldFloater extends Particle { private var goldTag:Class; private var textBox:TextField; public function GoldFloater(_arg1:Canvas, _arg2:Number, _arg3:Number, _arg4:int){ goldTag = AssetLoader.getAsset("misc", "goldTag"); var _local5:MelbaPawn = new MelbaPawn(new goldTag(), 1); super(_arg1, _local5, _arg2, _arg3, 20, "goldTag", true); mInertia.y = -1; Pawn.the.scaleX = (Pawn.the.scaleY = 0.75); var _local6:TextFormat = TextField(MovieClip(_local5.content).value).getTextFormat(); _local6.size = 16; TextField(MovieClip(_local5.content).value).setTextFormat(_local6); textBox = TextField(MovieClip(_local5.content).value); textBox.mouseEnabled = false; textBox.autoSize = TextFieldAutoSize.LEFT; if (_arg4 > 0){ MovieClip(_local5.content).value.textColor = 0xFFCC00; MovieClip(_local5.content).value.text = ("+" + _arg4); }; if (_arg4 < 0){ MovieClip(_local5.content).value.textColor = 0xFF0000; MovieClip(_local5.content).value.text = _arg4; }; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (mFirstTick){ Pawn.the.alpha = (Pawn.the.alpha - (1 / 80)); }; } } }//package dinowaurs
Section 135
//KongItem (dinowaurs.KongItem) package dinowaurs { import engine.core.*; public class KongItem { public var accessoryHandle:String; public var dnaCost:int; public var owned:Boolean; public var identifier:String; public var name:String; public var kredCost:int; public var catagory:String; public var description:String; public function KongItem(_arg1, _arg2:Boolean=false){ if (_arg1.identifier == null){ GameData.console.appendLine("identifier == null \n"); return; }; name = String(_arg1.name); description = String(_arg1.description); identifier = String(_arg1.identifier); kredCost = _arg1.price; var _local3:Array = identifier.split("_"); dnaCost = (kredCost * 200); if (kredCost <= 10){ dnaCost = (kredCost * 100); }; if (_local3[1] != "suit"){ accessoryHandle = _local3[0]; catagory = _local3[1]; } else { accessoryHandle = ((_local3[0] + "_") + _local3[1]); catagory = _local3[1]; }; owned = _arg2; } } }//package dinowaurs
Section 136
//Level (dinowaurs.Level) package dinowaurs { import engine.core.*; public class Level extends Tickable { public var level_right:Number; public var level_left:Number; public var level_bottom:Number; public var camClamp_right:Number; public var camClamp_top:Number; public var level_top:Number; public var levelName:String; public var camClamp_left:Number; public var camClamp_bottom:Number; public function Level(){ super("level", false); } override public function networkUpdate(_arg1:Array):void{ super.networkUpdate(_arg1); trace("LEVEL DATA IN! HERE'S THE RESULTS!"); var _local2:int; while (_local2 < _arg1.length) { trace(((_local2 + " ") + _arg1[_local2])); _local2++; }; level_left = _arg1[4]; level_right = _arg1[5]; level_top = _arg1[6]; level_bottom = _arg1[7]; camClamp_left = _arg1[8]; camClamp_right = _arg1[9]; camClamp_bottom = _arg1[10]; camClamp_top = _arg1[11]; levelName = _arg1[12]; } } }//package dinowaurs
Section 137
//Minimap (dinowaurs.Minimap) package dinowaurs { import flash.display.*; import dinowaurs.dinos.*; import engine.core.*; import dinowaurs.weapons.*; import flash.utils.*; import dinowaurs.managers.*; public class Minimap extends Tickable { public var mDinoBase:MovieClip; public var mProjectileClips:Array; public var mTerrain:Terrain; public var mTerrainLine:MovieClip; public var strikeCrafts:Array; public var strikeRanger:MovieClip; public var mMinHeight:Number; public var mMiniHeightMap:Array; public var strikeCraftClips:Array; public var mDinos:Array; public var mDrawOffset:Number; public var scaleX:Number; public var scaleY:Number; public var mDinoClips:Array; public var mVillages:Array; public var projectileSplosions:Array; public var pointerGuy:MovieClip; public var mBase:MovieClip; public var mVillageClips:Array; public var mVillageBase:MovieClip; public var mProjectiles:Array; public function Minimap(){ super("minimap", true); mMiniHeightMap = new Array(); mBase = new MovieClip(); mBase.graphics.lineStyle(2, 0xFF, 0); mBase.graphics.beginFill(3355596, 0); mBase.graphics.lineTo(700, 0); mBase.graphics.lineTo(700, 50); mBase.graphics.lineTo(0, 50); mBase.graphics.lineTo(0, 0); mBase.graphics.endFill(); GameData.GUI_BASE.addChild(mBase); mBase.x = 0; mBase.y = 390; projectileSplosions = new Array(); mDrawOffset = 0; mDinoBase = new MovieClip(); mBase.addChild(mDinoBase); mVillageBase = new MovieClip(); mBase.addChild(mVillageBase); mDinos = new Array(); mDinoClips = new Array(mDinos.length); mProjectileClips = new Array(); mProjectiles = new Array(); strikeRanger = new MovieClip(); mDinoBase.addChild(strikeRanger); strikeCraftClips = new Array(); strikeCrafts = new Array(); } public function addSlowZone(_arg1:SlowZone):void{ var _local2:MovieClip = AssetLoader.getAssetMC("gameGui", "slowzone"); _local2.x = (_arg1.myBackTile.Pawn.the.x * scaleX); _local2.y = (((_arg1.myBackTile.Pawn.the.y - mMinHeight) - mTerrain.mYPos) * scaleY); mVillageBase.addChild(_local2); } public function flipDino(_arg1:Dino, _arg2:Number):void{ var _local3:int; while (_local3 < mDinos.length) { if (mDinos[_local3].ID.Value == _arg1.ID.Value){ }; _local3++; }; } public function removeProjectile(_arg1:BallisticProjectile):void{ var _local2:uint; while (_local2 < mProjectiles.length) { if (mProjectiles[_local2].ID.Value == _arg1.ID.Value){ mProjectiles[_local2] = mProjectiles[(mProjectiles.length - 1)]; mProjectiles.pop(); mBase.removeChild(mProjectileClips[_local2]); mProjectileClips[_local2] = mProjectileClips[(mProjectileClips.length - 1)]; mProjectileClips.pop(); }; _local2++; }; } override public function tick(_arg1:uint):void{ var _local3:MovieClip; var _local4:BallisticProjectile; var _local5:MovieClip; var _local6:StrikeVehicle; super.tick(_arg1); if (myKillFlag){ return; }; var _local2:uint; while (_local2 < mDinoClips.length) { mDinoClips[_local2].x = ((mDinos[_local2].Pawn.the.x + mDinos[_local2].mTerrainOffset.x) * scaleX); mDinoClips[_local2].y = ((((mDinos[_local2].Pawn.the.y + mDinos[_local2].mTerrainOffset.y) - mMinHeight) - mTerrain.mYPos) * scaleY); mDinoClips[_local2].scaleX = mDinos[_local2].Pawn.Flipped; if (mDinos[_local2].ID.Value == Main.GAME_MANAGER.mPlayerDino.ID.Value){ if (strikeRanger != null){ mDinoClips[_local2].addChild(strikeRanger); }; }; _local2++; }; _local2 = 0; while (_local2 < mProjectileClips.length) { _local3 = mProjectileClips[_local2]; _local4 = mProjectiles[_local2]; _local3.rotation = _local4.Pawn.the.rotation; _local3.x = (_local4.Pawn.the.x * scaleX); _local3.y = (((_local4.Pawn.the.y - mMinHeight) - mTerrain.mYPos) * scaleY); _local2++; }; _local2 = 0; while (_local2 < strikeCraftClips.length) { _local5 = strikeCraftClips[_local2]; _local6 = strikeCrafts[_local2]; _local5.rotation = _local6.Pawn.the.rotation; _local5.x = (_local6.Pawn.the.x * scaleX); _local5.y = (((_local6.Pawn.the.y - mMinHeight) - mTerrain.mYPos) * scaleY); _local2++; }; _local2 = 0; while (_local2 < projectileSplosions.length) { if (projectileSplosions[_local2].currentFrame == 40){ projectileSplosions[_local2].parent.removeChild(projectileSplosions[_local2]); projectileSplosions[_local2] = projectileSplosions[(projectileSplosions.length - 1)]; projectileSplosions.pop(); }; _local2++; }; } public function spawnPointerGuy(_arg1, _arg2:String="red"):void{ var _local3:VillageZone; var _local4:int; var _local5:Dino; if (Main.GAME_MANAGER == null){ return; }; killPointerGuy(); if ((_arg1 is VillageZone)){ _local3 = VillageZone(_arg1); if (_arg2 == "green"){ pointerGuy = AssetLoader.getAssetMC("tutorial", "tut_village_protect"); } else { pointerGuy = AssetLoader.getAssetMC("tutorial", "tut_village_destroy"); }; _local4 = 0; while (_local4 < mVillages.length) { if (mVillages[_local4].ID.Value == _local3.ID.Value){ mVillageBase.addChild(pointerGuy); pointerGuy.x = mVillageClips[_local4].x; pointerGuy.y = mVillageClips[_local4].y; }; _local4++; }; } else { if ((_arg1 is Dino)){ _local5 = Dino(_arg1); if (_arg2 == "green"){ pointerGuy = AssetLoader.getAssetMC("tutorial", "tut_your_dino"); } else { pointerGuy = AssetLoader.getAssetMC("tutorial", "tut_enemy_dino"); }; _local4 = 0; while (_local4 < mDinos.length) { if (mDinos[_local4].ID.Value == _local5.ID.Value){ mDinoBase.addChild(pointerGuy); pointerGuy.x = mDinoClips[_local4].x; pointerGuy.y = mDinoClips[_local4].y; }; _local4++; }; }; }; } public function addStrikeCraft(_arg1:StrikeVehicle):void{ strikeCrafts.push(_arg1); strikeCraftClips.push(new MovieClip()); var _local2:MovieClip = strikeCraftClips[(strikeCraftClips.length - 1)]; if (_arg1.ID.Name == "airStrike craft"){ _local2.addChild(AssetLoader.getAssetMC("misc", "miniJet")); } else { if (_arg1.ID.Name == "laser craft"){ _local2.graphics.lineStyle(2, 0xFF0000); _local2.graphics.lineTo(0, ((4000 * scaleY) * 0.5)); }; }; mBase.addChild(strikeCraftClips[(strikeCraftClips.length - 1)]); } public function updateVillage(_arg1:VillageZone):void{ if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mVillageArray != null){ mVillages = Main.GAME_MANAGER.mVillageArray; } else { return; }; } else { return; }; var _local2:int; while (_local2 < mVillages.length) { if (mVillages[_local2].ID.Value == _arg1.ID.Value){ if (mVillageClips[_local2] != null){ if (mVillageClips[_local2].parent != null){ mVillageClips[_local2].parent.removeChild(mVillageClips[_local2]); }; }; if (mVillages[_local2].mVillageLevel == 0){ mVillageClips[_local2] = AssetLoader.getAssetMC("gameGui", "tier1"); if (mVillages[_local2].constructioning){ mVillageClips[_local2].gotoAndStop(3); }; if (mVillages[_local2].gettingHit){ mVillageClips[_local2].gotoAndStop(2); }; } else { if (mVillages[_local2].mVillageLevel == 1){ mVillageClips[_local2] = AssetLoader.getAssetMC("gameGui", "tier2"); if (mVillages[_local2].constructioning){ mVillageClips[_local2].gotoAndStop(3); }; if (mVillages[_local2].gettingHit){ mVillageClips[_local2].gotoAndStop(2); }; } else { if (mVillages[_local2].mVillageLevel == 2){ mVillageClips[_local2] = AssetLoader.getAssetMC("gameGui", "tier3"); if (mVillages[_local2].constructioning){ mVillageClips[_local2].gotoAndStop(3); }; if (mVillages[_local2].gettingHit){ mVillageClips[_local2].gotoAndStop(2); }; }; }; }; if (mVillages[_local2].mVillageBuilt){ if (mVillages[_local2].mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ mVillageClips[_local2].addChild(AssetLoader.getAssetMC("gameGui", "orange_flag")); } else { mVillageClips[_local2].addChild(AssetLoader.getAssetMC("gameGui", "blue_flag")); }; }; mVillageClips[_local2].x = (mVillages[_local2].mBaseTile.Pawn.the.x * scaleX); mVillageClips[_local2].y = (((mVillages[_local2].mBaseTile.Pawn.the.y - mMinHeight) - mTerrain.mYPos) * scaleY); mVillageBase.addChild(mVillageClips[_local2]); }; _local2++; }; } public function removeDino(_arg1:Dino):void{ var _local2:int; while (_local2 < mDinos.length) { if (mDinos[_local2].ID.Value == _arg1.ID.Value){ mDinos[_local2] = mDinos[(mDinos.length - 1)]; mDinos.pop(); mDinoBase.removeChild(mDinoClips[_local2]); mDinoClips[_local2] = mDinoClips[(mDinoClips.length - 1)]; mDinoClips.pop(); return; }; _local2++; }; } public function drawVillages():void{ var _local1:uint; return; } public function addDino(_arg1:Dino):void{ var _local5:Dino; var _local2:MovieClip = new MovieClip(); var _local3 = -1; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ _local3 = Main.GAME_MANAGER.mPlayerDino.ID.Value; }; }; var _local4:int; while (_local4 < mDinos.length) { _local5 = mDinos[_local4]; if (_local5.ID.Value == _arg1.ID.Value){ _local2 = mDinoClips[_local4]; if (_local2.parent != null){ _local2.parent.removeChild(_local2); }; if (_arg1.mDinoType == "bronto"){ if (_arg1.ID.Value == _local3){ _local2 = AssetLoader.getAssetMC("gameGui", "bronto"); } else { _local2 = AssetLoader.getAssetMC("gameGui", "bronto_enemy"); }; } else { if (_arg1.mDinoType == "ankylo"){ if (_arg1.ID.Value == _local3){ _local2 = AssetLoader.getAssetMC("gameGui", "ankylo"); } else { _local2 = AssetLoader.getAssetMC("gameGui", "ankylo_enemy"); }; } else { if (_arg1.mDinoType == "stego"){ if (_arg1.ID.Value == _local3){ _local2 = AssetLoader.getAssetMC("gameGui", "stego"); } else { _local2 = AssetLoader.getAssetMC("gameGui", "stego_enemy"); }; } else { if (_arg1.mDinoType == "tri"){ if (_arg1.ID.Value == _local3){ _local2 = AssetLoader.getAssetMC("gameGui", "tri"); } else { _local2 = AssetLoader.getAssetMC("gameGui", "tri_enemy"); }; }; }; }; }; _local2.x = (_arg1.Pawn.the.x * scaleX); _local2.y = ((_arg1.Pawn.the.y * scaleX) - 140); mDinoBase.addChild(_local2); mDinoClips[_local4] = _local2; return; }; _local4++; }; mDinos.push(_arg1); if (_arg1.mDinoType == "bronto"){ if (_arg1.ID.Value == _local3){ _local2 = AssetLoader.getAssetMC("gameGui", "bronto"); } else { _local2 = AssetLoader.getAssetMC("gameGui", "bronto_enemy"); }; } else { if (_arg1.mDinoType == "ankylo"){ if (_arg1.ID.Value == _local3){ _local2 = AssetLoader.getAssetMC("gameGui", "ankylo"); } else { _local2 = AssetLoader.getAssetMC("gameGui", "ankylo_enemy"); }; } else { if (_arg1.mDinoType == "stego"){ if (_arg1.ID.Value == _local3){ _local2 = AssetLoader.getAssetMC("gameGui", "stego"); } else { _local2 = AssetLoader.getAssetMC("gameGui", "stego_enemy"); }; } else { if (_arg1.mDinoType == "tri"){ if (_arg1.ID.Value == _local3){ _local2 = AssetLoader.getAssetMC("gameGui", "tri"); } else { _local2 = AssetLoader.getAssetMC("gameGui", "tri_enemy"); }; }; }; }; }; mDinoClips.push(_local2); _local2.x = (_arg1.Pawn.the.x * scaleX); _local2.y = ((_arg1.Pawn.the.y * scaleX) - 140); mDinoBase.addChild(_local2); trace("added dino to minimap"); } public function setVillages(_arg1:Array):void{ mVillages = _arg1; clearVillageClips(); mVillageClips = new Array(mVillages.length); var _local2:int; while (_local2 < mVillages.length) { mVillageClips[_local2] = new MovieClip(); _local2++; }; drawVillages(); } public function removeStrikeRanger():void{ if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.mGun != null){ if (!(Main.GAME_MANAGER.mPlayerDino.mGun is StrikeWeapon)){ strikeRanger.y = 200; }; }; }; }; } public function killPointerGuy():void{ if (pointerGuy != null){ if (pointerGuy.parent != null){ pointerGuy.parent.removeChild(pointerGuy); }; }; pointerGuy = null; } public function clearVillageClips():void{ if (mVillageClips == null){ mVillageClips = new Array(Main.GAME_MANAGER.mVillageArray.length); return; }; var _local1:int; while (_local1 < mVillageClips.length) { if (mVillageClips[_local1] != null){ if (mVillageClips[_local1].parent != null){ mVillageClips[_local1].parent.removeChild(mVillageClips[_local1]); }; }; _local1++; }; if (Main.GAME_MANAGER.mVillageArray != null){ mVillageClips = new Array(Main.GAME_MANAGER.mVillageArray.length); }; } public function addProjectileSplosion(_arg1:BallisticProjectile):void{ var _local2:MovieClip = AssetLoader.getAssetMC("misc", "minimap_hit"); _local2.x = (_arg1.Pawn.the.x * scaleX); _local2.y = (((_arg1.Pawn.the.y - mMinHeight) - mTerrain.mYPos) * scaleY); _local2.scaleY = (_local2.scaleX = 0.4); mBase.addChild(_local2); projectileSplosions.push(_local2); } public function dinoHitz(_arg1:Dino):void{ var _local2:int; while (_local2 < mDinos.length) { if (mDinos[_local2].ID.Value == _arg1.ID.Value){ mDinoClips[_local2].play(); }; _local2++; }; } public function strikeWeaponRange(_arg1:Number, _arg2:Dino):void{ var _local4:Number; var _local3:int; while (_local3 < mDinos.length) { if (mDinos[_local3].ID.Value == _arg2.ID.Value){ if (mDinoClips[_local3].contains(strikeRanger)){ mDinoClips[_local3].removeChild(strikeRanger); }; strikeRanger = new MovieClip(); mDinoBase.addChild(strikeRanger); strikeRanger.y = -50; strikeRanger.graphics.clear(); strikeRanger.graphics.lineStyle(2, 9225791); _local4 = (-5000 * scaleX); while (_local4 < 0) { strikeRanger.graphics.moveTo((_local4 + 4), 0); _local4 = (_local4 + 4); strikeRanger.graphics.lineTo((_local4 + 4), 0); _local4 = (_local4 + 4); }; strikeRanger.graphics.lineTo(((_arg1 - 5000) * scaleX), 0); strikeRanger.graphics.moveTo(((_arg1 - 5000) * scaleX), -5); strikeRanger.graphics.lineTo(((_arg1 - 5000) * scaleX), 5); mDinoClips[_local3].addChild(strikeRanger); }; _local3++; }; } public function addProjectile(_arg1:BallisticProjectile):void{ var _local2:BallisticProjectile; var _local3:MovieClip; for each (_local2 in mProjectiles) { if (_local2.ID.Value == _arg1.ID.Value){ return; }; }; mProjectiles.push(_arg1); mProjectileClips.push(new MovieClip()); _local3 = mProjectileClips[(mProjectileClips.length - 1)]; _local3.graphics.lineStyle(1, 0xFF0000); _local3.graphics.lineTo(5, 0); mBase.addChild(mProjectileClips[(mProjectileClips.length - 1)]); } public function setTerrain(_arg1:Terrain):void{ mTerrain = _arg1; mMiniHeightMap = new Array(); var _local2:Number = 100000; var _local3:Number = -100000; var _local4:uint; while (_local4 < _arg1.mHeightMap.length) { if (_local2 > _arg1.mHeightMap[_local4]){ _local2 = _arg1.mHeightMap[_local4]; }; if (_local3 < _arg1.mHeightMap[_local4]){ _local3 = _arg1.mHeightMap[_local4]; }; _local4++; }; mMinHeight = _local2; var _local5:Number = (_local3 - _local2); var _local6:Number = (mBase.height / _local5); _local4 = 0; while (_local4 < _arg1.mHeightMap.length) { mMiniHeightMap.push(((_arg1.mHeightMap[_local4] - _local2) * _local6)); _local4++; }; var _local7:Number = (mBase.width / mMiniHeightMap.length); var _local8:Number = (_local7 / _arg1.LOD); mTerrainLine = new MovieClip(); mTerrainLine.graphics.lineStyle(1, 5682, 1); mTerrainLine.graphics.beginFill(5682, 0.7); mTerrainLine.graphics.moveTo(0, mMiniHeightMap[0]); _local4 = 0; while (_local4 < mMiniHeightMap.length) { mTerrainLine.graphics.lineTo((_local4 * _local7), mMiniHeightMap[_local4]); _local4++; }; mTerrainLine.graphics.lineTo(700, mMiniHeightMap[(_local4 - 1)]); mTerrainLine.graphics.lineTo(700, (mMiniHeightMap[0] + 75)); mTerrainLine.graphics.lineTo(0, (mMiniHeightMap[0] + 75)); mTerrainLine.graphics.lineTo(0, 0); mTerrainLine.graphics.endFill(); scaleX = _local8; scaleY = _local6; trace(_local8); trace(_local6); mVillageBase.addChild(mTerrainLine); mDrawOffset = (_arg1.mHeightMap[0] * scaleX); } public function removeStrikeCraft(_arg1:StrikeVehicle):void{ var _local2:uint; while (_local2 < strikeCrafts.length) { if (strikeCrafts[_local2].ID.Value == _arg1.ID.Value){ strikeCrafts[_local2] = strikeCrafts[(strikeCrafts.length - 1)]; strikeCrafts.pop(); mBase.removeChild(strikeCraftClips[_local2]); strikeCraftClips[_local2] = strikeCraftClips[(strikeCraftClips.length - 1)]; strikeCraftClips.pop(); }; _local2++; }; } } }//package dinowaurs
Section 138
//PlayerInfo (dinowaurs.PlayerInfo) package dinowaurs { import engine.display.*; import engine.core.*; import dinowaurs.managers.*; public class PlayerInfo extends Tickable { public var projectCodeHash:Array; public var side:String; public var mVillages:uint; public var gold:Number; public var projectStatesHash:Array; public var mWeapons:Array; public var mCurrentProject:ProductionProject; public var mDinoID:int; public var mAvailableProjects:Array; public var projectsHash:Array; public var mCompletedProjects:Array; public var mUserID:int; public var currentTier:int; public function PlayerInfo(){ projectsHash = new Array(); super("playerInfo", true); currentTier = 0; mVillages = 0; mWeapons = new Array(0, 0); UIManager.mPlayerInfo = this; mCompletedProjects = new Array(); mAvailableProjects = new Array(); trace("PLAYER CONSTRUCTOR: new player :)"); projectStatesHash = new Array(); projectStatesHash["cannon"] = "deactive"; projectStatesHash["SAM"] = "deactive"; projectStatesHash["castle"] = "deactive"; projectStatesHash["clusterBomb"] = "deactive"; projectStatesHash["meteorGun"] = "deactive"; projectStatesHash["flamethrower"] = "deactive"; projectStatesHash["lawFirm"] = "deactive"; projectStatesHash["airStrike"] = "deactive"; projectStatesHash["jetpack"] = "deactive"; projectCodeHash = new Array(); projectCodeHash["CN"] = "cannon"; projectCodeHash["SA"] = "SAM"; projectCodeHash["CS"] = "castle"; projectCodeHash["CB"] = "clusterBomb"; projectCodeHash["MT"] = "meteorGun"; projectCodeHash["JP"] = "jetpack"; projectCodeHash["LF"] = "lawFirm"; projectCodeHash["AS"] = "airStrike"; projectCodeHash["FL"] = "flamethrower"; } public function E_event(_arg1:Array):void{ if (_arg1[0] == "E_P_P"){ E_P_P(_arg1); } else { if (_arg1[0] == "E_P_H"){ E_P_H(_arg1); }; }; } public function addAvailableProject(_arg1:ProductionProject):void{ trace(("PLAYER addAvailableProject: " + _arg1.projectName)); var _local2:int; while (_local2 < mAvailableProjects.length) { if (mAvailableProjects[_local2].projectName == _arg1.projectName){ return; }; _local2++; }; mAvailableProjects.push(_arg1); projectStatesHash[_arg1] = "buyable"; } override public function tick(_arg1:uint):void{ var _local2:int; if (myKillFlag){ return; }; if (!Main.GAME_MANAGER.airStriking){ Main.GAME_MANAGER.setPlayerDino(mDinoID); } else { _local2 = 0; while (_local2 < Main.GAME_MANAGER.mNetworkedObjects.length) { if (mDinoID == Main.GAME_MANAGER.mNetworkedObjects[_local2].ID.Value){ if (Main.GAME_MANAGER.mNetworkedObjects[_local2].respawning){ TileManager.AVATAR.myKillFlag = true; Main.GAME_MANAGER.airStriking = false; }; }; _local2++; }; }; if (mCurrentProject != null){ UIManager.setProjectValue((mCurrentProject.productionLeft / mCurrentProject.productionTotal)); }; } public function startProject(_arg1:uint):void{ } public function E_P_H(_arg1:Array):void{ gold = parseInt(_arg1[1]); UIManager.setGold(gold); mDinoID = parseInt(_arg1[2]); } public function setCurrentProject(_arg1:ProductionProject):void{ mCurrentProject = _arg1; _arg1.start(); } override public function kill():void{ super.kill(); mCurrentProject = null; mAvailableProjects = null; mCompletedProjects = null; } public function getWeaponProject(_arg1:String, _arg2:int):ProductionProject{ var _local3:ProductionProject; var _local4:int; for each (_local3 in mCompletedProjects) { if (_local3.projectName == _arg1){ return (_local3); }; }; for each (_local3 in mAvailableProjects) { if (_local3.projectName == _arg1){ _local4 = Main.GAME_MANAGER.priceWatcher.getCost(_arg1, _arg2); if (gold >= _local4){ return (_local3); }; }; }; return (null); } public function getWeaponProjectState(_arg1:String, _arg2:int):String{ var _local3:String; var _local4:ProductionProject; var _local5:int; for each (_local3 in Main.GAME_MANAGER.mPlayerDino.equippedWeapons) { if (_local3 == _arg1){ return ("equipped"); }; }; for each (_local4 in mCompletedProjects) { if (_local4.projectName == _arg1){ return ("equippable"); }; }; for each (_local4 in mAvailableProjects) { if (_local4.projectName == _arg1){ _local5 = Main.GAME_MANAGER.priceWatcher.getCost(_arg1, _arg2); if (gold >= _local5){ return ("buyable"); }; }; }; return ("deactive"); } public function projectComplete(_arg1:String):void{ if (projectsHash[_arg1] == null){ projectsHash[_arg1] = true; } else { return; }; var _local2:int; while (_local2 < mAvailableProjects.length) { if (mAvailableProjects[_local2].projectName == _arg1){ mAvailableProjects[_local2] = mAvailableProjects[(mAvailableProjects.length - 1)]; mAvailableProjects.pop(); }; _local2++; }; _local2 = 0; while (_local2 < mCompletedProjects.length) { if (mCompletedProjects[_local2].projectName == _arg1){ return; }; _local2++; }; mCompletedProjects.push(new ProductionProject(_arg1)); trace((_arg1 + " project has been completed")); if (Main.GAME_MANAGER.currentVillageMenu != null){ Main.GAME_MANAGER.currentVillageMenu.updateAllButtons(); }; } override public function networkUpdate(_arg1:Array):void{ var _local4:String; var _local5:int; var _local6:Array; var _local7:MelbaObject; var _local8:VillageZone; super.networkUpdate(_arg1); if (mUserID != _arg1[4]){ trace(("switching player userID. old one ==" + mUserID)); trace(("NEW userID ==" + _arg1[4])); _local5 = mUserID; mUserID = _arg1[4]; if (Main.GAME_MANAGER == null){ return; }; _local6 = new Array(); for each (_local7 in Main.GAME_MANAGER.mNetworkedObjects) { if ((_local7 is VillageZone)){ _local6.push(_local7); }; }; for each (_local8 in _local6) { if (_local8.mOwnerID == mUserID){ _local8.resetFlag(); UIManager.mMinimap.updateVillage(_local8); }; }; }; mUserID = _arg1[4]; Main.myUserID = mUserID; mDinoID = _arg1[5]; mVillages = _arg1[6]; var _local2:String = _arg1[7]; var _local3:Array = _local2.split(/_/); for each (_local4 in _local3) { if (projectCodeHash[_local4] != null){ projectComplete(projectCodeHash[_local4]); }; }; currentTier = _arg1[8]; gold = _arg1[9]; UIManager.setGold(gold); side = _arg1[10]; UIManager.updateSide(side); } public function E_P_P(_arg1:Array):void{ projectComplete(projectCodeHash[_arg1[1]]); } } }//package dinowaurs
Section 139
//PlayerStats (dinowaurs.PlayerStats) package dinowaurs { import dinowaurs.dinos.*; import flash.text.*; import dinowaurs.managers.*; public class PlayerStats { public var villageKills:int; public var eggAwardLimits:Array; public var losses:int; public var previousEggLevel:int;// = 0 public var wins:int; public var meteorAwardLimits:Array; public var userStatus:String; public var dna:int; public var playerLevel:int; public var previousVillagerLevel:int;// = 0 public var elo:int; public var rank:int; public var villagerAwardLimits:Array; public var boostCode:String; public var misses:int; public var hits:int; public var previousMeteorLevel:int;// = 0 public var kills:int; public var previousBoneLevel:int;// = 0 public var currentDinoInfo:DinoInfo; public var boneAwardLimits:Array; public var userName:String; public var strikeDist:int; public var accuracy:Number; public var adjStrikeDist:Number; public function PlayerStats(_arg1:Array){ eggAwardLimits = new Array(20, 100, 500, 2500, 10000); meteorAwardLimits = new Array(0x100000, 0x400000, 16777216, 67108864, 268435456); boneAwardLimits = new Array(50, 250, 1250, 5000, 25000); villagerAwardLimits = new Array(50, 250, 1250, 5000, 25000); super(); setStats(_arg1); updateAwardLevels(); boostCode = ""; } public function getBoneLvl():int{ var _local1:int; var _local2:int; while (_local2 < 5) { if (kills >= boneAwardLimits[_local2]){ _local1 = (_local2 + 1); }; _local2++; }; return (_local1); } public function newStatsUpdate(_arg1:Array):void{ var _local2:int = wins; setStats(_arg1); var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; while (_local7 < 5) { if ((wins + losses) >= eggAwardLimits[_local7]){ _local3 = (_local7 + 1); }; if (strikeDist >= meteorAwardLimits[_local7]){ _local4 = (_local7 + 1); }; if (kills >= boneAwardLimits[_local7]){ _local5 = (_local7 + 1); }; if (villageKills >= villagerAwardLimits[_local7]){ _local6 = (_local7 + 1); }; _local7++; }; var _local8:Array = new Array(); if (playerLevel != Main.oldLevel){ _local8.push("playerLevel"); }; if (_local3 > previousEggLevel){ _local8.push("egg"); }; if (_local4 > previousMeteorLevel){ _local8.push("meteor"); }; if (_local5 > previousBoneLevel){ _local8.push("bone"); }; if (_local6 > previousVillagerLevel){ _local8.push("villager"); }; if (_local8.length != 0){ if (Main.winLossScreen != null){ Main.winLossScreen.prepAwardCeremony(_local8); }; }; } public function updateAwardLevels():void{ var _local1:int; while (_local1 < 5) { if ((wins + losses) >= eggAwardLimits[_local1]){ previousEggLevel = (_local1 + 1); }; if (strikeDist >= meteorAwardLimits[_local1]){ previousMeteorLevel = (_local1 + 1); }; if (kills >= boneAwardLimits[_local1]){ previousBoneLevel = (_local1 + 1); }; if (villageKills >= villagerAwardLimits[_local1]){ previousVillagerLevel = (_local1 + 1); }; _local1++; }; } public function getMeteorLvl():int{ var _local1:int; var _local2:int; while (_local2 < 5) { if (strikeDist >= meteorAwardLimits[_local2]){ _local1 = (_local2 + 1); }; _local2++; }; return (_local1); } public function calculateLevel():void{ playerLevel = Math.floor(Math.sqrt(wins)); } public function display(_arg1:TextField, _arg2:Boolean, _arg3:String):void{ var _local4 = ""; if (!_arg2){ _local4 = ((((((((wins + "/") + losses) + "\n") + Math.round(((hits / (misses + hits)) * 100))) + "%\n") + rank) + "\n") + elo); } else { _local4 = ((((((((wins + "/") + losses) + "\n") + Math.round(((hits / (misses + hits)) * 100))) + "%\n") + rank) + "\n") + elo); }; Main.setTextF(_arg1, _arg3, _local4); } public function getVillagerLvl():int{ var _local1:int; var _local2:int; while (_local2 < 5) { if (villageKills >= villagerAwardLimits[_local2]){ _local1 = (_local2 + 1); }; _local2++; }; return (_local1); } public function getEggLvl():int{ var _local1:int; var _local2:int; while (_local2 < 5) { if ((wins + losses) >= eggAwardLimits[_local2]){ _local1 = (_local2 + 1); }; _local2++; }; return (_local1); } public function setStats(_arg1:Array):void{ var _local2:int; userName = _arg1[3]; hits = _arg1[5]; misses = _arg1[6]; accuracy = (Math.round(((hits * 100) / (hits + misses))) / 100); if (hits == 0){ accuracy = 0; }; if (misses == 0){ accuracy = 1; }; accuracy = (accuracy * 100); wins = _arg1[7]; calculateLevel(); losses = _arg1[8]; rank = _arg1[9]; elo = _arg1[10]; villageKills = _arg1[11]; strikeDist = _arg1[12]; adjStrikeDist = (Math.floor(((100 * strikeDist) / 0x100000)) / 100); dna = _arg1[13]; kills = _arg1[14]; userStatus = _arg1[15]; if (_arg1.length > 15){ currentDinoInfo = new DinoInfo(_arg1[18], _arg1[17], _arg1[19]); _local2 = 20; while (_local2 < _arg1.length) { if (String(_arg1[_local2]).match("userStats_delim")){ break; }; currentDinoInfo.addAccessory(_arg1[_local2]); _local2++; }; }; } } }//package dinowaurs
Section 140
//PriceWatcher (dinowaurs.PriceWatcher) package dinowaurs { import engine.core.*; public class PriceWatcher extends MelbaObject { public var clusterShotCost:int;// = 0 public var airstrikeShotCost:int;// = 0 public var cannonShotCost:int;// = 0 public var lawCost:Array; public var samCost:Array; public var meteorCost:Array; public var shotLookup:Array; public var lookup:Array; public var jetpackCost:Array; public var flameCost:Array; public var castleCost:Array; public var samShotCost:int;// = 0 public var clusterCost:Array; public var airstrikeRange:int; public var lawShotCost:int;// = 0 public var cannonCost:Array; public var airstrikeCost:Array; public var meteorRange:int; public var meteorShotCost:int;// = 0 public var jetpackShotCost:int;// = 0 public var flameShotCost:int;// = 0 public var castleShotCost:int;// = 0 public function PriceWatcher(){ super("priceWatch"); cannonCost = new Array(); samCost = new Array(); castleCost = new Array(); clusterCost = new Array(); meteorCost = new Array(); flameCost = new Array(); lawCost = new Array(); airstrikeCost = new Array(); jetpackCost = new Array(); lookup = new Array(); lookup["cannon"] = cannonCost; lookup["SAM"] = samCost; lookup["castle"] = castleCost; lookup["clusterBomb"] = clusterCost; lookup["meteorGun"] = meteorCost; lookup["flamethrower"] = flameCost; lookup["lawFirm"] = lawCost; lookup["airStrike"] = airstrikeCost; lookup["jetpack"] = jetpackCost; shotLookup = new Array(); shotLookup["cannon"] = cannonShotCost; shotLookup["SAM"] = samShotCost; shotLookup["castle"] = castleShotCost; shotLookup["clusterbomb"] = clusterShotCost; shotLookup["meteorgun"] = meteorShotCost; shotLookup["flamethrower"] = flameShotCost; shotLookup["lawFirm"] = lawShotCost; shotLookup["airStrikeCarrier"] = airstrikeShotCost; shotLookup["jetpack"] = jetpackShotCost; } override public function networkUpdate(_arg1:Array):void{ super.networkUpdate(_arg1); var _local2 = 3; trace("PRICE WATCH * PRICE WATCH * PRICE WATCH * PRICE WATCH * PRICE WATCH * PRICE WATCH"); cannonCost.push(parseInt(_arg1[_local2])); _local2++; cannonCost.push(parseInt(_arg1[_local2])); _local2++; cannonCost.push(parseInt(_arg1[_local2])); _local2++; cannonShotCost = parseInt(_arg1[_local2]); _local2++; samCost.push(parseInt(_arg1[_local2])); _local2++; samCost.push(parseInt(_arg1[_local2])); _local2++; samCost.push(parseInt(_arg1[_local2])); _local2++; trace(("SAM SHOT COST == " + _arg1[_local2])); samShotCost = parseInt(_arg1[_local2]); _local2++; castleCost.push(parseInt(_arg1[_local2])); _local2++; castleCost.push(parseInt(_arg1[_local2])); _local2++; castleCost.push(parseInt(_arg1[_local2])); _local2++; castleShotCost = parseInt(_arg1[_local2]); _local2++; clusterCost.push(parseInt(_arg1[_local2])); _local2++; clusterCost.push(parseInt(_arg1[_local2])); _local2++; clusterCost.push(parseInt(_arg1[_local2])); _local2++; clusterShotCost = parseInt(_arg1[_local2]); _local2++; meteorCost.push(parseInt(_arg1[_local2])); _local2++; meteorCost.push(parseInt(_arg1[_local2])); _local2++; meteorCost.push(parseInt(_arg1[_local2])); _local2++; meteorShotCost = parseInt(_arg1[_local2]); _local2++; meteorRange = parseInt(_arg1[_local2]); _local2++; flameCost.push(parseInt(_arg1[_local2])); _local2++; flameCost.push(parseInt(_arg1[_local2])); _local2++; flameCost.push(parseInt(_arg1[_local2])); _local2++; flameShotCost = parseInt(_arg1[_local2]); _local2++; lawCost.push(parseInt(_arg1[_local2])); _local2++; lawCost.push(parseInt(_arg1[_local2])); _local2++; lawCost.push(parseInt(_arg1[_local2])); _local2++; lawShotCost = parseInt(_arg1[_local2]); _local2++; airstrikeCost.push(parseInt(_arg1[_local2])); _local2++; airstrikeCost.push(parseInt(_arg1[_local2])); _local2++; airstrikeCost.push(parseInt(_arg1[_local2])); _local2++; airstrikeShotCost = parseInt(_arg1[_local2]); _local2++; airstrikeRange = parseInt(_arg1[_local2]); _local2++; jetpackCost.push(parseInt(_arg1[_local2])); _local2++; jetpackCost.push(parseInt(_arg1[_local2])); _local2++; jetpackCost.push(parseInt(_arg1[_local2])); _local2++; jetpackShotCost = parseInt(_arg1[_local2]); _local2++; shotLookup["cannon"] = cannonShotCost; shotLookup["SAM"] = samShotCost; shotLookup["castle"] = castleShotCost; shotLookup["clusterbomb"] = clusterShotCost; shotLookup["meteorgun"] = meteorShotCost; shotLookup["flamethrower"] = flameShotCost; shotLookup["lawFirm"] = lawShotCost; shotLookup["airStrikeCarrier"] = airstrikeShotCost; shotLookup["jetpack"] = jetpackShotCost; } public function getShotCost(_arg1:String):int{ if (shotLookup[_arg1] == null){ return (-1); }; return (shotLookup[_arg1]); } public function getCost(_arg1:String, _arg2:int):int{ if (lookup[_arg1] == null){ return (-1); }; return (lookup[_arg1][_arg2]); } } }//package dinowaurs
Section 141
//ProductionProject (dinowaurs.ProductionProject) package dinowaurs { import flash.display.*; import engine.core.*; import dinowaurs.managers.*; public class ProductionProject extends MelbaObject { public var productionLeft:int; public var tier:int; public var productionCost:Number; public var projectName:String; public var productionTotal:int; public var shotCost:int; public function ProductionProject(_arg1:String){ super(("project_" + _arg1)); projectName = _arg1; tier = 0; shotCost = 0; if (projectName == "SAM"){ tier = 0; productionCost = 2000; }; if (projectName == "castle"){ tier = 1; productionCost = 2000; }; if (projectName == "minigun"){ tier = 2; productionCost = 4000; }; if (projectName == "minelayer"){ tier = 2; productionCost = 6000; }; if (projectName == "airStrike"){ tier = 2; productionCost = 10000; }; if (projectName == "meteorGun"){ tier = 2; productionCost = 12000; }; if (projectName == "clusterBomb"){ tier = 1; productionCost = 4000; }; } public function start():void{ var _local1:MovieClip = new MovieClip(); if (projectName == "cannon"){ _local1 = AssetLoader.getAssetMC("gameGui", "PROD_cannon"); }; if (projectName == "minigun"){ _local1 = AssetLoader.getAssetMC("gameGui", "PROD_minigun"); }; if (projectName == "castle"){ _local1 = AssetLoader.getAssetMC("gameGui", "PROD_castle"); }; if (projectName == "SAM"){ _local1 = AssetLoader.getAssetMC("gameGui", "PROD_sam"); }; if (projectName == "minelayer"){ _local1 = AssetLoader.getAssetMC("gameGui", "PROD_minefactory"); }; if (projectName == "meteorGun"){ _local1 = AssetLoader.getAssetMC("gameGui", "PROD_meteor"); }; if (projectName == "clusterBomb"){ _local1 = AssetLoader.getAssetMC("gameGui", "PROD_cluster"); }; if (projectName == "airStrike"){ _local1 = AssetLoader.getAssetMC("gameGui", "PROD_aircraft_carrier"); }; UIManager.mProductionWidget.setProject(_local1); } public function spawnButton():MovieClip{ if (projectName == "cannon"){ return (AssetLoader.getAssetMC("gameGui", "cannon_button")); }; if (projectName == "SAM"){ return (AssetLoader.getAssetMC("gameGui", "missile_button")); }; if (projectName == "minigun"){ return (AssetLoader.getAssetMC("gameGui", "minigun_button")); }; if (projectName == "minelayer"){ return (AssetLoader.getAssetMC("gameGui", "mine_button")); }; if (projectName == "castle"){ return (AssetLoader.getAssetMC("gameGui", "castle_button")); }; if (projectName == "airStrike"){ return (AssetLoader.getAssetMC("gameGui", "aircraft_carrier_button")); }; if (projectName == "clusterBomb"){ return (AssetLoader.getAssetMC("gameGui", "cluster_button")); }; if (projectName == "meteorGun"){ return (AssetLoader.getAssetMC("gameGui", "meteor_button")); }; return (null); } override public function networkUpdate(_arg1:Array):void{ super.networkUpdate(_arg1); projectName = _arg1[3]; productionLeft = _arg1[4]; productionTotal = _arg1[5]; tier = _arg1[6]; productionCost = _arg1[7]; shotCost = _arg1[9]; } } }//package dinowaurs
Section 142
//ProductionWidget (dinowaurs.ProductionWidget) package dinowaurs { import flash.display.*; import engine.core.*; public class ProductionWidget extends MelbaObject { public var mProgress:MovieClip; public var mBase:MovieClip; public function ProductionWidget(){ mBase = new MovieClip(); mBase.x = 650; mBase.y = 30; GameData.GUI_BASE.addChild(mBase); mBase.scaleX = (mBase.scaleY = 2); } public function projectComplete():void{ if (mProgress != null){ mBase.removeChild(mProgress); }; mProgress = null; } public function setProject(_arg1:MovieClip):void{ if (mProgress != null){ mBase.removeChild(mProgress); }; mProgress = _arg1; mBase.addChild(mProgress); mProgress.gotoAndStop(1); } } }//package dinowaurs
Section 143
//SlowZone (dinowaurs.SlowZone) package dinowaurs { import engine.display.*; import engine.core.*; import dinowaurs.managers.*; public class SlowZone extends Tickable { public var myBackTile:MelbaTile; public var myTerrain:Terrain; public var myFrontTile:MelbaTile; public function SlowZone(_arg1:Canvas, _arg2:Canvas, _arg3:Terrain, _arg4:Number){ var _local6:MelbaPawn; var _local7:MelbaPawn; super("slowZone", false); var _local5:Number = _arg3.getHeight(_arg4); if (Main.GAME_MANAGER.arena == "winter"){ _local6 = new MelbaPawn(AssetLoader.getAssetSP("snowMountain", "slowzone_back"), 2); myBackTile = new MelbaTile(_arg1, _local6, _arg4, _local5, "back_tile_slowzone", false); _local7 = new MelbaPawn(AssetLoader.getAssetSP("snowMountain", "slowzone_front"), 2); myFrontTile = new MelbaTile(_arg2, _local7, _arg4, _local5, "front_tile_slowzone", false); }; if (Main.GAME_MANAGER.arena == "desert"){ _local6 = new MelbaPawn(AssetLoader.getAssetSP("desertArena", "slowzone_back"), 2); myBackTile = new MelbaTile(_arg1, _local6, _arg4, _local5, "back_tile_slowzone", false); _local7 = new MelbaPawn(AssetLoader.getAssetSP("desertArena", "slowzone_front"), 2); myFrontTile = new MelbaTile(_arg2, _local7, _arg4, _local5, "front_tile_slowzone", false); }; if (Main.GAME_MANAGER.arena == "waste"){ _local6 = new MelbaPawn(AssetLoader.getAssetSP("wasteArena", "slowzone_back"), 2); myBackTile = new MelbaTile(_arg1, _local6, _arg4, _local5, "back_tile_slowzone", false); _local7 = new MelbaPawn(AssetLoader.getAssetSP("wasteArena", "slowzone_front"), 2); myFrontTile = new MelbaTile(_arg2, _local7, _arg4, _local5, "front_tile_slowzone", false); }; if (Main.GAME_MANAGER.arena == "jungle"){ _local6 = new MelbaPawn(AssetLoader.getAssetSP("jungleArena", "slowzone_back"), 2); myBackTile = new MelbaTile(_arg1, _local6, _arg4, _local5, "back_tile_slowzone", false); _local7 = new MelbaPawn(AssetLoader.getAssetSP("jungleArena", "slowzone_front"), 2); myFrontTile = new MelbaTile(_arg2, _local7, _arg4, _local5, "front_tile_slowzone", false); }; _local6.the.scaleX = (_local6.the.scaleY = 2); _local7.the.scaleX = (_local7.the.scaleY = 2); trace("slowzone tiles created"); } override public function kill():void{ super.kill(); myBackTile.myKillFlag = true; if (!myBackTile.bSubscribing){ myBackTile.startTicking(); }; myFrontTile.myKillFlag = true; if (!myFrontTile.bSubscribing){ myFrontTile.startTicking(); }; } } }//package dinowaurs
Section 144
//SpeedTest (dinowaurs.SpeedTest) package dinowaurs { import flash.events.*; import flash.display.*; import flash.text.*; import engine.core.*; import flash.utils.*; import flash.media.*; public class SpeedTest extends MovieClip { public var explosion_mc:Class; public var rocket_mc:Class; public var frameCount:int; public var startTime:uint; public var rocketList:Array; public var explosionList:Array; public var endFrame:int;// = 1000 public function SpeedTest(){ rocket_mc = SpeedTest_rocket_mc; explosion_mc = SpeedTest_explosion_mc; super(); startTest(); addEventListener(Event.ENTER_FRAME, enterFrame); } override public function get totalFrames():int{ return (endFrame); } override public function get currentFrame():int{ return (frameCount); } public function enterFrame(_arg1:Event):void{ var _local2:int; var _local3:MovieClip; var _local4:rocketAction; var _local5:MovieClip; var _local6:int; var _local7:uint; var _local8:Number; var _local9:TextField; frameCount++; _local2 = 0; while (_local2 < rocketList.length) { _local4 = rocketList[_local2]; if (_local4.y > _local4.target){ rocketList[_local2] = rocketList[(rocketList.length - 1)]; rocketList.pop(); removeChild(_local4.clip); _local5 = new explosion_mc(); _local5.x = _local4.x; _local5.y = (_local4.y + _local4.clip.height); _local5.scaleX = (_local5.scaleY = 0.25); addChild(_local5); explosionList.push(_local5); _local2--; } else { _local4.y = (_local4.y + _local4.inertia); _local4.inertia = (_local4.inertia + 1); }; _local2++; }; explosionList.sortOn("y"); for each (_local3 in explosionList) { removeChild(_local3); }; _local2 = 0; while (_local2 < explosionList.length) { _local3 = explosionList[_local2]; addChild(_local3); _local2++; }; _local2 = 0; while (_local2 < explosionList.length) { _local3 = explosionList[_local2]; if (_local3.currentFrame >= _local3.totalFrames){ explosionList[_local2] = explosionList[(explosionList.length - 1)]; explosionList.pop(); removeChild(_local3); _local2--; if (explosionList.length == 0){ _local6 = 0; while (_local6 < numChildren) { removeChild(getChildAt(0)); }; _local7 = (getTimer() - startTime); _local8 = (frameCount / (_local7 / 1000)); _local9 = new TextField(); _local9.textColor = 0xFF0000; addChild(_local9); if (_local8 < 20){ stage.quality = StageQuality.MEDIUM; }; if (_local8 < 16){ stage.quality = StageQuality.LOW; }; frameCount = 1000; endFrame = 0; removeEventListener(Event.ENTER_FRAME, enterFrame); }; }; _local2++; }; } public function startTest():void{ var _local2:rocketAction; startTime = getTimer(); frameCount = 0; rocketList = new Array(); explosionList = new Array(); Rndm.seed = 1; var _local1:int; while (_local1 < 50) { _local2 = new rocketAction(); _local2.clip.rotation = 90; _local2.clip.scaleX = (_local2.clip.scaleY = 0.25); _local2.x = (Rndm.random() * 700); _local2.y = ((Rndm.random() * -800) - 50); _local2.target = ((Rndm.random() * 100) + 200); _local2.inertia = 0; addChild(_local2.clip); rocketList.push(_local2); _local1++; }; } } }//package dinowaurs import flash.display.*; class rocketAction { public var rocket_mc:Class; public var clip:MovieClip; public var target:Number; public var inertia:Number; private function rocketAction(){ rocket_mc = rocketAction_rocket_mc; super(); clip = new rocket_mc(); inertia = 1; } public function set y(_arg1:Number):void{ clip.y = _arg1; } public function set x(_arg1:Number):void{ clip.x = _arg1; } public function get x():Number{ return (clip.x); } public function get y():Number{ return (clip.y); } public function set rotation(_arg1:Number):void{ clip.y = _arg1; } public function get rotation():Number{ return (clip.rotation); } }
Section 145
//SpeedTest_explosion_mc (dinowaurs.SpeedTest_explosion_mc) package dinowaurs { import flash.display.*; import mx.core.*; public class SpeedTest_explosion_mc extends MovieClipAsset { public var loaderBar:DisplayObject; public var color:DisplayObject; public var debug_txt:DisplayObject; public var counterTotal:DisplayObject; public var timeSpawned:DisplayObject; public var visible_sw:DisplayObject; public var network_sw:DisplayObject; public var libName:DisplayObject; public var counterNum:DisplayObject; public var type:DisplayObject; public var id:DisplayObject; } }//package dinowaurs
Section 146
//SpeedTest_rocket_mc (dinowaurs.SpeedTest_rocket_mc) package dinowaurs { import flash.display.*; import mx.core.*; public class SpeedTest_rocket_mc extends MovieClipAsset { public var loaderBar:DisplayObject; public var color:DisplayObject; public var debug_txt:DisplayObject; public var counterTotal:DisplayObject; public var timeSpawned:DisplayObject; public var visible_sw:DisplayObject; public var network_sw:DisplayObject; public var libName:DisplayObject; public var counterNum:DisplayObject; public var type:DisplayObject; public var id:DisplayObject; } }//package dinowaurs
Section 147
//Suit (dinowaurs.Suit) package dinowaurs { import flash.display.*; import dinowaurs.managers.*; public class Suit extends MovieClip { public var baseClip:Sprite; public var maskBits:Array; public var suitMask:MovieClip; public var suitClip:MovieClip; public function Suit(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean=false){ var _local6:MovieClip; super(); if (_arg4){ _local6 = AssetLoader.getAssetMC("accessories", (((_arg1 + "_") + _arg2) + "_static")); addChild(_local6); return; }; suitClip = AssetLoader.getAssetMC(((_arg1 + "_") + _arg2), ((((_arg1 + "_") + _arg2) + "_") + _arg3)); addChild(suitClip); suitMask = AssetLoader.getAssetMC(((_arg1 + "_") + _arg2), (((((_arg1 + "_") + _arg2) + "_") + _arg3) + "_mask")); addChild(suitMask); suitClip.mask = suitMask; maskBits = new Array(); var _local5 = 1; while (_local5 <= suitMask.numChildren) { maskBits.push(suitMask[("msk" + _local5)]); _local5++; }; } override public function gotoAndPlay(_arg1:Object, _arg2:String=null):void{ var _local3:MovieClip; _arg1 = (_arg1 + 1); suitClip.suit.gotoAndPlay(_arg1); for each (_local3 in maskBits) { _local3.gotoAndPlay(_arg1); }; } public function addMask(_arg1:int):void{ suitMask.addChild(maskBits[_arg1]); } public function removeMask(_arg1:int):void{ if (suitMask.contains(maskBits[_arg1])){ suitMask.removeChild(maskBits[_arg1]); }; } override public function gotoAndStop(_arg1:Object, _arg2:String=null):void{ var _local3:MovieClip; _arg1 = (_arg1 + 1); suitClip.suit.gotoAndStop(_arg1); for each (_local3 in maskBits) { _local3.gotoAndStop(_arg1); }; } } }//package dinowaurs
Section 148
//Terrain (dinowaurs.Terrain) package dinowaurs { import flash.display.*; import flash.geom.*; import engine.display.*; import engine.core.*; public class Terrain extends Tickable { public var last4:int;// = 0 public var layer1HM:Array; public var layer2HM:Array; public var layer3HM:Array; public var layer4HM:Array; public var mHeightMap:Array; public var _initY:Number; public var lastXiter:int;// = -1 public var last1:int;// = 0 public var last2:int;// = 0 public var last3:int;// = 0 public var tilesOnDisplay:Array; public var LOD:Number;// = 200 public var lastHeight:Number; private var mCanvas:Canvas; public var mYPos:Number; public var tileList:Array; public var layerOffsets:Array; public var layerColors:Array; public var CHUNK_DEPTH:Number; public var mLength:Number; public function Terrain(_arg1:Canvas, _arg2:Number, _arg3:Array, _arg4:Number, _arg5:String="desert"){ layerOffsets = new Array(0, 300, 450, 520, 800); super("terrain", true); mCanvas = _arg1; CHUNK_DEPTH = 4000; _initY = _arg2; mYPos = int(_initY); tileList = new Array(); tilesOnDisplay = new Array(); LOD = _arg4; mHeightMap = _arg3; lastHeight = mHeightMap[0]; layerColors = new Array(); if (_arg5 == "winter"){ layerColors.push(9279934); layerColors.push(7045019); layerColors.push(2170147); layerColors.push(5984602); layerColors.push(3550005); } else { if (_arg5 == "desert"){ layerColors.push(7092785); layerColors.push(5516330); layerColors.push(4005919); layerColors.push(10517089); layerColors.push(7356730); } else { if (_arg5 == "waste"){ layerColors.push(5329224); layerColors.push(4737088); layerColors.push(3881271); layerColors.push(8026727); layerColors.push(4473407); } else { if (_arg5 == "jungle"){ layerColors.push(3626560); layerColors.push(2901299); layerColors.push(3619367); layerColors.push(5396282); layerColors.push(7633244); }; }; }; }; layer1HM = new Array(); layer2HM = new Array(); layer3HM = new Array(); layer4HM = new Array(); } public function draw():void{ var _local2:int; var _local3:int; var _local4:MelbaTile; var _local5:int; var _local1:int; while (_local1 < mHeightMap.length) { _local2 = int((_local1 * LOD)); _local3 = int(((_initY + mHeightMap[_local1]) - 40)); _local4 = new MelbaTile(mCanvas, new MelbaPawn(new Sprite(), 2, ("terrain pawn " + _local1)), int((_local1 * LOD)), int(((_initY + mHeightMap[_local1]) - 40)), ("terrain " + _local1), false); Sprite(_local4.Pawn.content).graphics.lineStyle(0, 0xFFFFFF, 0); Sprite(_local4.Pawn.content).graphics.beginFill(layerColors[0]); _local5 = 1; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]))); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]))); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]))); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]))); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]))); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]))); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]))); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]))); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]))); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]))); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]))); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int(((LOD * _local5) + 4)), int((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]))); Sprite(_local4.Pawn.content).graphics.lineTo(int(((LOD * _local5) + 4)), CHUNK_DEPTH); Sprite(_local4.Pawn.content).graphics.lineTo(0, CHUNK_DEPTH); Sprite(_local4.Pawn.content).graphics.lineTo(0, 0); Sprite(_local4.Pawn.content).graphics.endFill(); Sprite(_local4.Pawn.content).graphics.lineStyle(0, 0xFFFFFF, 0); Sprite(_local4.Pawn.content).graphics.beginFill(layerColors[1]); Sprite(_local4.Pawn.content).graphics.moveTo(0, (layerOffsets[1] + last1)); layer1HM.push(last1); last1 = int((Math.random() * 40)); _local5 = 1; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[1]) + last1))); layer1HM.push(last1); last1 = int((Math.random() * 40)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[1]) + last1))); layer1HM.push(last1); last1 = int((Math.random() * 40)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[1]) + last1))); layer1HM.push(last1); last1 = int((Math.random() * 40)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[1]) + last1))); layer1HM.push(last1); last1 = int((Math.random() * 40)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[1]) + last1))); layer1HM.push(last1); last1 = int((Math.random() * 40)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[1]) + last1))); layer1HM.push(last1); last1 = int((Math.random() * 40)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[1]) + last1))); layer1HM.push(last1); last1 = int((Math.random() * 40)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[1]) + last1))); layer1HM.push(last1); last1 = int((Math.random() * 40)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[1]) + last1))); layer1HM.push(last1); last1 = int((Math.random() * 40)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[1]) + last1))); layer1HM.push(last1); last1 = int((Math.random() * 40)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[1]) + last1))); layer1HM.push(last1); last1 = int((Math.random() * 40)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int(((LOD * _local5) + 4)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[1]) + last1))); Sprite(_local4.Pawn.content).graphics.lineTo(int(((LOD * _local5) + 4)), (layerOffsets[1] + CHUNK_DEPTH)); Sprite(_local4.Pawn.content).graphics.lineTo(0, (layerOffsets[1] + CHUNK_DEPTH)); Sprite(_local4.Pawn.content).graphics.lineTo(0, 0); Sprite(_local4.Pawn.content).graphics.endFill(); Sprite(_local4.Pawn.content).graphics.lineStyle(0, 0xFFFFFF, 0); Sprite(_local4.Pawn.content).graphics.beginFill(layerColors[2]); Sprite(_local4.Pawn.content).graphics.moveTo(0, (layerOffsets[2] + last2)); _local5 = 1; layer2HM.push(last2); last2 = int((Math.random() * 20)); Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[2]) + last2))); layer2HM.push(last2); last2 = int((Math.random() * 20)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[2]) + last2))); layer2HM.push(last2); last2 = int((Math.random() * 20)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[2]) + last2))); layer2HM.push(last2); last2 = int((Math.random() * 20)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[2]) + last2))); layer2HM.push(last2); last2 = int((Math.random() * 20)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[2]) + last2))); layer2HM.push(last2); last2 = int((Math.random() * 20)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[2]) + last2))); layer2HM.push(last2); last2 = int((Math.random() * 20)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[2]) + last2))); layer2HM.push(last2); last2 = int((Math.random() * 20)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[2]) + last2))); layer2HM.push(last2); last2 = int((Math.random() * 20)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[2]) + last2))); layer2HM.push(last2); last2 = int((Math.random() * 20)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[2]) + last2))); layer2HM.push(last2); last2 = int((Math.random() * 20)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[2]) + last2))); layer2HM.push(last2); last2 = int((Math.random() * 20)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int(((LOD * _local5) + 4)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[2]) + last2))); Sprite(_local4.Pawn.content).graphics.lineTo(int(((LOD * _local5) + 4)), (layerOffsets[2] + CHUNK_DEPTH)); Sprite(_local4.Pawn.content).graphics.lineTo(0, (layerOffsets[2] + CHUNK_DEPTH)); Sprite(_local4.Pawn.content).graphics.lineTo(0, 0); Sprite(_local4.Pawn.content).graphics.endFill(); Sprite(_local4.Pawn.content).graphics.lineStyle(0, 0xFFFFFF, 0); Sprite(_local4.Pawn.content).graphics.beginFill(layerColors[3]); Sprite(_local4.Pawn.content).graphics.moveTo(0, (layerOffsets[3] + last3)); _local5 = 1; layer3HM.push(last3); last3 = int((Math.random() * 15)); Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[3]) + last3))); layer3HM.push(last3); last3 = int((Math.random() * 15)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[3]) + last3))); layer3HM.push(last3); last3 = int((Math.random() * 15)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[3]) + last3))); layer3HM.push(last3); last3 = int((Math.random() * 15)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[3]) + last3))); layer3HM.push(last3); last3 = int((Math.random() * 15)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[3]) + last3))); layer3HM.push(last3); last3 = int((Math.random() * 15)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[3]) + last3))); layer3HM.push(last3); last3 = int((Math.random() * 15)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[3]) + last3))); layer3HM.push(last3); last3 = int((Math.random() * 15)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[3]) + last3))); layer3HM.push(last3); last3 = int((Math.random() * 15)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[3]) + last3))); layer3HM.push(last3); last3 = int((Math.random() * 15)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[3]) + last3))); layer3HM.push(last3); last3 = int((Math.random() * 15)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[3]) + last3))); layer3HM.push(last3); last3 = int((Math.random() * 15)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int(((LOD * _local5) + 4)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[3]) + last3))); Sprite(_local4.Pawn.content).graphics.lineTo(int(((LOD * _local5) + 4)), (layerOffsets[3] + CHUNK_DEPTH)); Sprite(_local4.Pawn.content).graphics.lineTo(0, (layerOffsets[3] + CHUNK_DEPTH)); Sprite(_local4.Pawn.content).graphics.lineTo(0, 0); Sprite(_local4.Pawn.content).graphics.endFill(); Sprite(_local4.Pawn.content).graphics.lineStyle(0, 0xFFFFFF, 0); Sprite(_local4.Pawn.content).graphics.beginFill(layerColors[4]); Sprite(_local4.Pawn.content).graphics.moveTo(0, (layerOffsets[4] + last4)); _local5 = 1; layer4HM.push(last4); last4 = int((Math.random() * 60)); Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[4]) + last4))); layer4HM.push(last4); last4 = int((Math.random() * 60)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[4]) + last4))); layer4HM.push(last4); last4 = int((Math.random() * 60)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[4]) + last4))); layer4HM.push(last4); last4 = int((Math.random() * 60)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[4]) + last4))); layer4HM.push(last4); last4 = int((Math.random() * 60)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[4]) + last4))); layer4HM.push(last4); last4 = int((Math.random() * 60)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[4]) + last4))); layer4HM.push(last4); last4 = int((Math.random() * 60)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[4]) + last4))); layer4HM.push(last4); last4 = int((Math.random() * 60)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[4]) + last4))); layer4HM.push(last4); last4 = int((Math.random() * 60)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[4]) + last4))); layer4HM.push(last4); last4 = int((Math.random() * 60)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[4]) + last4))); layer4HM.push(last4); last4 = int((Math.random() * 60)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int((LOD * _local5)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[4]) + last4))); layer4HM.push(last4); last4 = int((Math.random() * 60)); _local5++; Sprite(_local4.Pawn.content).graphics.lineTo(int(((LOD * _local5) + 4)), int((((mHeightMap[int((_local1 + _local5))] - mHeightMap[_local1]) + layerOffsets[4]) + last4))); Sprite(_local4.Pawn.content).graphics.lineTo(int(((LOD * _local5) + 4)), (layerOffsets[4] + CHUNK_DEPTH)); Sprite(_local4.Pawn.content).graphics.lineTo(0, (layerOffsets[4] + CHUNK_DEPTH)); Sprite(_local4.Pawn.content).graphics.lineTo(0, 0); Sprite(_local4.Pawn.content).graphics.endFill(); lastHeight = (lastHeight + int(mHeightMap[int((_local1 + 1))])); TileManager.removeTile(_local4); TileManager.addTile(_local4); _local4.forceDisplay(); tileList.push(_local4); _local4.cull(); _local1 = (_local1 + 12); }; layer1HM.push(last1); layer2HM.push(last2); layer3HM.push(last3); layer4HM.push(last4); } public function getHeight(_arg1:Number):Number{ var _local2:Number = ((((mHeightMap[Math.ceil((_arg1 / LOD))] - mHeightMap[Math.floor((_arg1 / LOD))]) * ((_arg1 - (Math.floor((_arg1 / LOD)) * LOD)) / LOD)) + mYPos) + mHeightMap[Math.floor((_arg1 / LOD))]); if ((_arg1 / LOD) > mHeightMap.length){ return (mHeightMap[(mHeightMap.length - 1)]); }; if (_arg1 < 0){ return (mHeightMap[0]); }; return (_local2); } public function getLayerHeight(_arg1:int, _arg2:Number):Number{ var _local6:Array; var _local3:Number = Math.ceil((_arg2 / LOD)); var _local4:Number = Math.floor((_arg2 / LOD)); var _local5:Number = (_arg2 - (_local4 * LOD)); if (_arg1 == 1){ _local6 = layer1HM; } else { if (_arg1 == 2){ _local6 = layer2HM; } else { if (_arg1 == 3){ _local6 = layer3HM; } else { _local6 = layer4HM; }; }; }; if ((_arg2 / LOD) > _local6.length){ return (_local6[(_local6.length - 1)]); }; if (_arg2 < 0){ return (_local6[0]); }; var _local7:Number = (((((_local6[_local3] - _local6[_local4]) * (_local5 / LOD)) + _local6[_local4]) + getHeight(_arg2)) + layerOffsets[_arg1]); return (_local7); } override public function kill():void{ tileList = new Array(); tilesOnDisplay = new Array(); } override public function tick(_arg1:uint):void{ var _local4:MelbaTile; super.tick(_arg1); if (myKillFlag){ return; }; var _local2:Number = (-(GameData.SCENE_BASE.x) / GameData.SCENE_BASE.scaleX); var _local3:int = (_local2 / 2400); if (_local3 < 0){ _local3 = 0; }; if (_local3 > (tileList.length - 1)){ _local3 = (tileList.length - 1); }; if (_local3 != lastXiter){ lastXiter = _local3; for each (_local4 in tilesOnDisplay) { if (_local4 != null){ _local4.cull(); }; }; tilesOnDisplay = new Array(); tilesOnDisplay.push(tileList[_local3]); if ((_local3 + 1) < tileList.length){ tilesOnDisplay.push(tileList[(_local3 + 1)]); }; if ((_local3 + 2) < tileList.length){ tilesOnDisplay.push(tileList[(_local3 + 2)]); }; if ((_local3 + 3) < tileList.length){ tilesOnDisplay.push(tileList[(_local3 + 3)]); }; for each (_local4 in tilesOnDisplay) { if (_local4 != null){ _local4.display(); }; }; }; } public function getAngle(_arg1:Number):Number{ var _local4:Number; var _local2:Number = Math.ceil((_arg1 / LOD)); var _local3:Number = Math.floor((_arg1 / LOD)); if (_local2 > _local3){ _local4 = Math.atan(((mHeightMap[_local2] - mHeightMap[_local3]) / 200)); } else { _local4 = Math.atan(((mHeightMap[_local3] - mHeightMap[_local2]) / 200)); }; return ((_local4 * 57.2957795)); } } }//package dinowaurs
Section 149
//VillageMenu2 (dinowaurs.VillageMenu2) package dinowaurs { import flash.events.*; import flash.display.*; import flash.geom.*; import engine.core.*; import dinowaurs.managers.*; public class VillageMenu2 extends Tickable { public var rightGun:MovieClip; public var left:String; public var hoverThing:MovieClip; public var currentDraggable:MovieClip; public var right:String; public var leftGun:MovieClip; public var baseClip:MovieClip; public var bg:MovieClip; private var updateTimerMax:int;// = 500 public var weaponButtons:Array; public var weapNameHash:Array; public var myVillage:VillageZone; public var justEquipped:int;// = 0 private var updateTimer:int;// = 0 public function VillageMenu2(_arg1:VillageZone, _arg2:Number, _arg3:Number, _arg4:String){ weapNameHash = new Array(); super("villageMenu2", true); myVillage = _arg1; bg = AssetLoader.getAssetMC("misc", "backgroundGrey"); bg.alpha = 0.2; GameData.GUI_BASE.addChild(bg); bg.addEventListener(MouseEvent.MOUSE_DOWN, bgMouseDown); baseClip = AssetLoader.getAssetMC("villageMenu", "village_menu"); GameData.GUI_BASE.addChild(baseClip); baseClip.x = ((700 - baseClip.width) / 2); baseClip.y = ((500 - baseClip.height) / 2); Main.GAME_MANAGER.mPlayerDino.inMenu = true; UIManager.inMenu = true; if (Main.GAME_MANAGER.mPlayerDino.mGun != null){ Main.GAME_MANAGER.mPlayerDino.mGun.mShootMode = false; }; if (Main.GAME_MANAGER.tutorialScripter != null){ Main.GAME_MANAGER.tutorialScripter.signalEvent("villageMenu"); }; weaponButtons = new Array(); setUpButtonEvents(); left = "none"; right = "none"; updateWeapSlots(); baseClip.equip_right.addEventListener(MouseEvent.MOUSE_OVER, equipRightOver); baseClip.equip_right.addEventListener(MouseEvent.MOUSE_OUT, equipRightOut); baseClip.equip_left.addEventListener(MouseEvent.MOUSE_OVER, equipLeftOver); baseClip.equip_left.addEventListener(MouseEvent.MOUSE_OUT, equipLeftOut); baseClip.xBtn.addEventListener(MouseEvent.MOUSE_DOWN, xBtnDown); baseClip.xBtn.buttonMode = true; baseClip.xBtn.useHandCursor = true; Main.stageRef.addEventListener(KeyboardEvent.KEY_DOWN, keyDown); setPrices(); if (Main.GAME_MANAGER.mPlayerDino != null){ Main.GAME_MANAGER.mPlayerDino.Inertia.x = 0; Main.GAME_MANAGER.mPlayerDino.direction = 0; Main.GAME_MANAGER.signalMovementEvent(new Point(0, 0)); }; UIManager.openVillageMenu(this); updateAllButtons(); if (myVillage.mVillageLevel == 0){ baseClip.tier1.gotoAndStop(1); baseClip.tier2.gotoAndStop(2); baseClip.tier3.gotoAndStop(2); } else { if (myVillage.mVillageLevel == 1){ baseClip.tier1.gotoAndStop(2); baseClip.tier2.gotoAndStop(1); baseClip.tier3.gotoAndStop(2); } else { if (myVillage.mVillageLevel == 2){ baseClip.tier1.gotoAndStop(2); baseClip.tier2.gotoAndStop(2); baseClip.tier3.gotoAndStop(1); }; }; }; weapNameHash["cannon_button"] = "cannon"; weapNameHash["sam_button"] = "SAM"; weapNameHash["castle_button"] = "castle"; weapNameHash["cluster_bomb_button"] = "clusterBomb"; weapNameHash["meteor_button"] = "meteorGun"; weapNameHash["flamethrower_button"] = "flamethrower"; weapNameHash["law_firm_button"] = "lawFirm"; weapNameHash["air_strike_button"] = "airStrike"; weapNameHash["jetpack_button"] = "jetpack"; } public function xBtnDown(_arg1:MouseEvent):void{ closeMenu(); } public function weapButtonMouseOut(_arg1:MouseEvent):void{ if (baseClip == null){ return; }; if (_arg1.currentTarget.parent.state == "deactive"){ _arg1.currentTarget.parent.gotoAndStop(1); }; if (_arg1.currentTarget.parent.state == "buyable"){ _arg1.currentTarget.parent.gotoAndStop(3); }; if (_arg1.currentTarget.parent.state == "equippable"){ _arg1.currentTarget.parent.gotoAndStop(6); }; if (hoverThing != null){ baseClip.removeChild(hoverThing); hoverThing = null; }; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; if (!myVillage.mVillageBuilt){ closeMenu(); }; updateTimer = (updateTimer - _arg1); if (updateTimer <= 0){ updateAllButtons(); updateTimer = updateTimerMax; }; } public function weapButtonMouseDown(_arg1:MouseEvent):void{ if (_arg1.currentTarget.parent.state == "deactive"){ return; }; trace(("UIMGR DBLCLIK==" + UIManager.dblClickCtr)); if (UIManager.dblClickCtr > 0){ _arg1.currentTarget.parent.gotoAndStop(8); if (justEquipped == 0){ justEquipped = 1; } else { justEquipped = 0; }; Main.GAME_MANAGER.equipEvent(("equip_" + getWeaponName(_arg1.currentTarget.parent.name)), justEquipped); } else { UIManager.dblClickCtr = 30; }; if (_arg1.currentTarget.parent.state == "buyable"){ _arg1.currentTarget.parent.gotoAndStop(5); Main.GAME_MANAGER.startNewProject(("build_" + getWeaponName(_arg1.currentTarget.parent.name))); } else { if (_arg1.currentTarget.parent.state == "equippable"){ _arg1.currentTarget.parent.gotoAndStop(8); } else { return; }; }; var _local2:MovieClip = AssetLoader.getAssetMC("villageMenu", (_arg1.currentTarget.parent.name + "_token")); _local2.startDrag(true); GameData.GUI_BASE.addChild(_local2); _local2.weapName = getWeaponName(_arg1.currentTarget.parent.name); _local2.mouseEnabled = false; _local2.x = _local2.parent.mouseX; _local2.y = _local2.parent.mouseY; currentDraggable = _local2; Main.stageRef.addEventListener(Event.ENTER_FRAME, dragEnterFrame); _local2.addEventListener(MouseEvent.MOUSE_UP, dragMouseUp); } public function keyDown(_arg1:KeyboardEvent):void{ var _local2:String; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.tutorialScripter != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut.eDisabled){ return; }; }; }; }; if (_arg1.keyCode == 69){ closeMenu(); }; trace(_arg1.keyCode); if ((((_arg1.keyCode >= 49)) && ((_arg1.keyCode <= 57)))){ _local2 = "cannon"; switch (_arg1.keyCode){ case 49: _local2 = "cannon"; break; case 50: _local2 = "SAM"; break; case 51: _local2 = "castle"; break; case 52: _local2 = "clusterBomb"; break; case 53: _local2 = "meteorGun"; break; case 54: _local2 = "jetpack"; break; case 55: _local2 = "lawFirm"; break; case 56: _local2 = "airStrike"; break; case 57: _local2 = "flamethrower"; break; }; Main.GAME_MANAGER.startNewProject(("build_" + _local2)); if (Main.GAME_MANAGER.mPlayerDino.currentWeapon == 1){ Main.GAME_MANAGER.equipEvent(("equip_" + _local2), 0); } else { Main.GAME_MANAGER.equipEvent(("equip_" + _local2), 1); }; }; } public function bgMouseDown(_arg1:MouseEvent):void{ closeMenu(); } private function setUpButtonEvents():void{ weaponButtonSetup(baseClip.cannon_button); weaponButtonSetup(baseClip.sam_button); weaponButtonSetup(baseClip.castle_button); weaponButtonSetup(baseClip.cluster_bomb_button); weaponButtonSetup(baseClip.meteor_button); weaponButtonSetup(baseClip.flamethrower_button); weaponButtonSetup(baseClip.law_firm_button); weaponButtonSetup(baseClip.air_strike_button); weaponButtonSetup(baseClip.jetpack_button); } private function weaponButtonSetup(_arg1:MovieClip):void{ _arg1.hitbox.addEventListener(MouseEvent.MOUSE_OVER, weapButtonMouseOver); _arg1.hitbox.addEventListener(MouseEvent.MOUSE_DOWN, weapButtonMouseDown); _arg1.hitbox.addEventListener(MouseEvent.MOUSE_OUT, weapButtonMouseOut); _arg1.hitbox.addEventListener(MouseEvent.DOUBLE_CLICK, weapButtonDoubleClick); _arg1.hitbox.doubleClickEnabled = true; _arg1.state = "deactive"; _arg1.busy = false; _arg1.stop(); weaponButtons.push(_arg1); } public function weapButtonDoubleClick(_arg1:MouseEvent):void{ trace("DOUBLE DOUBLE DOUBLECLICK!!!"); if (_arg1.currentTarget.parent.state == "equippable"){ _arg1.currentTarget.parent.gotoAndStop(8); if (justEquipped == 0){ justEquipped = 1; } else { justEquipped = 0; }; Main.GAME_MANAGER.equipEvent(getWeaponName(_arg1.currentTarget.parent.name), justEquipped); }; } private function getWeaponName(_arg1:String):String{ if (weapNameHash[_arg1] != null){ return (weapNameHash[_arg1]); }; trace(("weapon button named wrong: " + _arg1)); return ("none"); } public function equipRightOver(_arg1:MouseEvent):void{ baseClip.right_highlight.gotoAndStop(2); } private function getButtonState(_arg1:String):String{ if (Main.GAME_MANAGER.tutorialScripter != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut.meteorOnly){ if (!_arg1.match("meteor")){ return ("deactive"); }; }; if (Main.GAME_MANAGER.tutorialScripter.currentTut.firstTierOnly){ if (((((!(_arg1.match("sam"))) && (!(_arg1.match("cannon"))))) && (!(_arg1.match("castle"))))){ return ("deactive"); }; }; }; }; return (Main.GAME_MANAGER.mPlayerInfo.getWeaponProjectState(getWeaponName(_arg1), myVillage.mVillageLevel)); } public function weapButtonMouseOver(_arg1:MouseEvent):void{ if (_arg1.currentTarget.parent.state == "deactive"){ _arg1.currentTarget.parent.gotoAndStop(2); }; if (_arg1.currentTarget.parent.state == "buyable"){ _arg1.currentTarget.parent.gotoAndStop(4); }; if (_arg1.currentTarget.parent.state == "equippable"){ _arg1.currentTarget.parent.gotoAndStop(7); }; var _local2:String = _arg1.currentTarget.parent.name; if (_local2 == "cannon_button"){ hoverThing = AssetLoader.getAssetMC("villageMenu", "cannon_hover"); Main.setTextF(hoverThing.cannon_price, "vilmenuBuyPrice", baseClip.cannon_price.text); Main.setTextF(hoverThing.cannon_shot_price, "vilmenuShootPrice", baseClip.cannon_shot_price.text); hoverThing.shotcostbar.gotoAndStop((parseInt(baseClip.cannon_shot_price.text) / 5)); } else { if (_local2 == "sam_button"){ hoverThing = AssetLoader.getAssetMC("villageMenu", "sam_hover"); Main.setTextF(hoverThing.sam_price, "vilmenuBuyPrice", baseClip.sam_price.text); Main.setTextF(hoverThing.sam_shot_price, "vilmenuShootPrice", baseClip.sam_shot_price.text); hoverThing.shotcostbar.gotoAndStop((parseInt(baseClip.sam_shot_price.text) / 5)); } else { if (_local2 == "castle_button"){ hoverThing = AssetLoader.getAssetMC("villageMenu", "castle_hover"); Main.setTextF(hoverThing.castle_price, "vilmenuBuyPrice", baseClip.castle_price.text); Main.setTextF(hoverThing.castle_shot_price, "vilmenuShootPrice", baseClip.castle_shot_price.text); hoverThing.shotcostbar.gotoAndStop((parseInt(baseClip.castle_shot_price.text) / 5)); } else { if (_local2 == "cluster_bomb_button"){ hoverThing = AssetLoader.getAssetMC("villageMenu", "cluster_bomb_hover"); Main.setTextF(hoverThing.cluster_bomb_price, "vilmenuBuyPrice", baseClip.cluster_bomb_price.text); Main.setTextF(hoverThing.cluster_bomb_shot_price, "vilmenuShootPrice", baseClip.cluster_bomb_shot_price.text); hoverThing.shotcostbar.gotoAndStop((parseInt(baseClip.cluster_bomb_shot_price.text) / 5)); } else { if (_local2 == "meteor_button"){ hoverThing = AssetLoader.getAssetMC("villageMenu", "meteor_hover"); Main.setTextF(hoverThing.meteor_price, "vilmenuBuyPrice", baseClip.meteor_price.text); Main.setTextF(hoverThing.meteor_shot_price, "vilmenuShootPrice", baseClip.meteor_shot_price.text); hoverThing.shotcostbar.gotoAndStop((parseInt(baseClip.meteor_shot_price.text) / 5)); } else { if (_local2 == "flamethrower_button"){ hoverThing = AssetLoader.getAssetMC("villageMenu", "flamethrower_hover"); Main.setTextF(hoverThing.flamethrower_price, "vilmenuBuyPrice", baseClip.flamethrower_price.text); Main.setTextF(hoverThing.flamethrower_shot_price, "vilmenuShootPrice", baseClip.flamethrower_shot_price.text); hoverThing.shotcostbar.gotoAndStop((parseInt(baseClip.flamethrower_shot_price.text) / 5)); } else { if (_local2 == "law_firm_button"){ hoverThing = AssetLoader.getAssetMC("villageMenu", "law_firm_hover"); Main.setTextF(hoverThing.law_firm_price, "vilmenuBuyPrice", baseClip.law_firm_price.text); Main.setTextF(hoverThing.law_firm_shot_price, "vilmenuShootPrice", baseClip.law_firm_shot_price.text); hoverThing.shotcostbar.gotoAndStop((parseInt(baseClip.law_firm_shot_price.text) / 5)); } else { if (_local2 == "air_strike_button"){ hoverThing = AssetLoader.getAssetMC("villageMenu", "air_strike_hover"); Main.setTextF(hoverThing.air_strike_price, "vilmenuBuyPrice", baseClip.air_strike_price.text); Main.setTextF(hoverThing.air_strike_shot_price, "vilmenuShootPrice", baseClip.air_strike_shot_price.text); hoverThing.shotcostbar.gotoAndStop((parseInt(baseClip.air_strike_shot_price.text) / 5)); } else { if (_local2 == "jetpack_button"){ hoverThing = AssetLoader.getAssetMC("villageMenu", "jetpack_hover"); Main.setTextF(hoverThing.jetpack_price, "vilmenuBuyPrice", baseClip.jetpack_price.text); Main.setTextF(hoverThing.jetpack_shot_price, "vilmenuShootPrice", baseClip.jetpack_shot_price.text); hoverThing.shotcostbar.gotoAndStop((parseInt(baseClip.jetpack_shot_price.text) / 5)); }; }; }; }; }; }; }; }; }; hoverThing.x = (_arg1.currentTarget.parent.x + 20); hoverThing.y = _arg1.currentTarget.parent.y; baseClip.addChild(hoverThing); hoverThing.gotoAndStop(getWeaponName(_arg1.currentTarget.parent.name)); } public function equipLeftOver(_arg1:MouseEvent):void{ baseClip.left_highlight.gotoAndStop(2); } public function updateAllButtons():void{ var _local1:MovieClip; var _local2:String; var _local3:PlayerInfo; var _local4:int; var _local5:VillageZone; for each (_local1 in weaponButtons) { if (!_local1.busy){ _local2 = getButtonState(_local1.name); if (_local2 != _local1.state){ _local1.state = _local2; if (_local2 == "deactive"){ _local1.gotoAndStop(1); }; if (_local2 == "buyable"){ _local3 = Main.GAME_MANAGER.mPlayerInfo; _local4 = _local3.getWeaponProject(getWeaponName(_local1.name), myVillage.mVillageLevel).tier; _local5 = Main.GAME_MANAGER.getMyClosestVillage(); if (_local4 <= _local5.mVillageLevel){ _local1.gotoAndStop(3); } else { _local1.gotoAndStop(1); _local1.alpha = 0.4; _local1.state = "deactive"; }; }; if (_local2 == "equippable"){ _local1.gotoAndStop(6); }; if (_local2 == "equipped"){ _local1.gotoAndStop(8); }; }; }; }; updateWeapSlots(); } public function setPrices():void{ var _local1:PlayerInfo = Main.GAME_MANAGER.mPlayerInfo; var _local2:PriceWatcher = Main.GAME_MANAGER.priceWatcher; Main.setTextF(baseClip.cannon_price, "vilmenuBuyPrice", "FREE"); Main.setTextF(baseClip.cannon_shot_price, "vilmenuBuyPrice", _local2.cannonShotCost.toString()); Main.setTextF(baseClip.sam_price, "vilmenuBuyPrice", _local2.samCost[myVillage.mVillageLevel]); Main.setTextF(baseClip.sam_shot_price, "vilmenuBuyPrice", _local2.samShotCost.toString()); Main.setTextF(baseClip.castle_price, "vilmenuBuyPrice", _local2.castleCost[myVillage.mVillageLevel]); Main.setTextF(baseClip.castle_shot_price, "vilmenuBuyPrice", _local2.castleShotCost.toString()); Main.setTextF(baseClip.cluster_bomb_price, "vilmenuBuyPrice", _local2.clusterCost[myVillage.mVillageLevel]); Main.setTextF(baseClip.cluster_bomb_shot_price, "vilmenuBuyPrice", _local2.clusterShotCost.toString()); Main.setTextF(baseClip.meteor_price, "vilmenuBuyPrice", _local2.meteorCost[myVillage.mVillageLevel]); Main.setTextF(baseClip.meteor_shot_price, "vilmenuBuyPrice", _local2.meteorShotCost.toString()); Main.setTextF(baseClip.flamethrower_price, "vilmenuBuyPrice", _local2.flameCost[myVillage.mVillageLevel]); Main.setTextF(baseClip.flamethrower_shot_price, "vilmenuBuyPrice", _local2.flameShotCost.toString()); Main.setTextF(baseClip.law_firm_price, "vilmenuBuyPrice", _local2.lawCost[myVillage.mVillageLevel]); Main.setTextF(baseClip.law_firm_shot_price, "vilmenuBuyPrice", _local2.lawShotCost.toString()); Main.setTextF(baseClip.air_strike_price, "vilmenuBuyPrice", _local2.airstrikeCost[myVillage.mVillageLevel]); Main.setTextF(baseClip.air_strike_shot_price, "vilmenuBuyPrice", _local2.airstrikeShotCost.toString()); Main.setTextF(baseClip.jetpack_price, "vilmenuBuyPrice", _local2.jetpackCost[myVillage.mVillageLevel]); Main.setTextF(baseClip.jetpack_shot_price, "vilmenuBuyPrice", _local2.jetpackShotCost.toString()); } public function dragEnterFrame(_arg1:Event):void{ if (currentDraggable == null){ return; }; currentDraggable.mouseEnabled = true; baseClip.right_highlight.gotoAndStop(1); baseClip.left_highlight.gotoAndStop(1); UIManager.dblClickCtr = (UIManager.dblClickCtr - 10); if (baseClip.equip_right.x < (currentDraggable.x - baseClip.x)){ if (baseClip.equip_right.y < (currentDraggable.y - baseClip.y)){ if ((baseClip.equip_right.x + 79) > (currentDraggable.x - baseClip.x)){ if ((baseClip.equip_right.y + 137) > (currentDraggable.y - baseClip.y)){ baseClip.right_highlight.gotoAndStop(2); }; }; }; }; if (baseClip.equip_left.x < (currentDraggable.x - baseClip.x)){ if (baseClip.equip_left.y < (currentDraggable.y - baseClip.y)){ if ((baseClip.equip_left.x + 79) > (currentDraggable.x - baseClip.x)){ if ((baseClip.equip_left.y + 137) > (currentDraggable.y - baseClip.y)){ baseClip.left_highlight.gotoAndStop(2); }; }; }; }; } public function dragMouseUp(_arg1:MouseEvent):void{ if (baseClip.equip_right.x < (currentDraggable.x - baseClip.x)){ if (baseClip.equip_right.y < (currentDraggable.y - baseClip.y)){ if ((baseClip.equip_right.x + 79) > (currentDraggable.x - baseClip.x)){ if ((baseClip.equip_right.y + 137) > (currentDraggable.y - baseClip.y)){ Main.GAME_MANAGER.equipEvent(("equip_" + currentDraggable.weapName), 1); }; }; }; }; if (baseClip.equip_left.x < (currentDraggable.x - baseClip.x)){ if (baseClip.equip_left.y < (currentDraggable.y - baseClip.y)){ if ((baseClip.equip_left.x + 79) > (currentDraggable.x - baseClip.x)){ if ((baseClip.equip_left.y + 137) > (currentDraggable.y - baseClip.y)){ Main.GAME_MANAGER.equipEvent(("equip_" + currentDraggable.weapName), 0); }; }; }; }; currentDraggable.stopDrag(); currentDraggable.parent.removeChild(currentDraggable); baseClip.right_highlight.gotoAndStop(1); baseClip.left_highlight.gotoAndStop(1); Main.stageRef.removeEventListener(Event.ENTER_FRAME, dragEnterFrame); currentDraggable.removeEventListener(MouseEvent.MOUSE_UP, dragMouseUp); updateAllButtons(); currentDraggable = null; } override public function kill():void{ super.kill(); killCurrentDragable(); baseClip = null; weaponButtons = null; leftGun = null; rightGun = null; baseClip = null; bg = null; } public function equipRightOut(_arg1:MouseEvent):void{ baseClip.right_highlight.gotoAndStop(1); } private function killButtonEvents():void{ weaponButtonKill(baseClip.cannon_button); weaponButtonKill(baseClip.sam_button); weaponButtonKill(baseClip.castle_button); weaponButtonKill(baseClip.cluster_bomb_button); weaponButtonKill(baseClip.meteor_button); weaponButtonKill(baseClip.flamethrower_button); weaponButtonKill(baseClip.law_firm_button); weaponButtonKill(baseClip.air_strike_button); weaponButtonKill(baseClip.jetpack_button); weaponButtons = null; } private function weaponButtonKill(_arg1:MovieClip):void{ _arg1.hitbox.addEventListener(MouseEvent.MOUSE_OVER, weapButtonMouseOver); _arg1.hitbox.addEventListener(MouseEvent.MOUSE_DOWN, weapButtonMouseDown); _arg1.hitbox.addEventListener(MouseEvent.MOUSE_OUT, weapButtonMouseOut); } public function updateWeapSlots():void{ if (Main.GAME_MANAGER == null){ return; }; if (left != Main.GAME_MANAGER.mPlayerDino.equippedWeapons[0]){ if (leftGun != null){ leftGun.parent.removeChild(leftGun); leftGun = null; }; left = Main.GAME_MANAGER.mPlayerDino.equippedWeapons[0]; if (left == "cannon"){ leftGun = AssetLoader.getAssetMC("villageMenu", "cannon_button_token"); }; if (left == "castle"){ leftGun = AssetLoader.getAssetMC("villageMenu", "castle_button_token"); }; if (left == "airStrike"){ leftGun = AssetLoader.getAssetMC("villageMenu", "air_strike_button_token"); }; if (left == "flamethrower"){ leftGun = AssetLoader.getAssetMC("villageMenu", "flamethrower_button_token"); }; if (left == "lawFirm"){ leftGun = AssetLoader.getAssetMC("villageMenu", "law_firm_button_token"); }; if (left == "SAM"){ leftGun = AssetLoader.getAssetMC("villageMenu", "sam_button_token"); }; if (left == "jetpack"){ leftGun = AssetLoader.getAssetMC("villageMenu", "jetpack_button_token"); }; if (left == "meteorGun"){ leftGun = AssetLoader.getAssetMC("villageMenu", "meteor_button_token"); }; if (left == "clusterBomb"){ leftGun = AssetLoader.getAssetMC("villageMenu", "cluster_bomb_button_token"); }; leftGun.x = 84; leftGun.y = 127; leftGun.scaleX = (leftGun.scaleY = 0.643); baseClip.addChild(leftGun); }; if (right != Main.GAME_MANAGER.mPlayerDino.equippedWeapons[1]){ if (rightGun != null){ rightGun.parent.removeChild(rightGun); rightGun = null; }; right = Main.GAME_MANAGER.mPlayerDino.equippedWeapons[1]; if (right == "cannon"){ rightGun = AssetLoader.getAssetMC("villageMenu", "cannon_button_token"); }; if (right == "castle"){ rightGun = AssetLoader.getAssetMC("villageMenu", "castle_button_token"); }; if (right == "airStrike"){ rightGun = AssetLoader.getAssetMC("villageMenu", "air_strike_button_token"); }; if (right == "flamethrower"){ rightGun = AssetLoader.getAssetMC("villageMenu", "flamethrower_button_token"); }; if (right == "lawFirm"){ rightGun = AssetLoader.getAssetMC("villageMenu", "law_firm_button_token"); }; if (right == "SAM"){ rightGun = AssetLoader.getAssetMC("villageMenu", "sam_button_token"); }; if (right == "jetpack"){ rightGun = AssetLoader.getAssetMC("villageMenu", "jetpack_button_token"); }; if (right == "meteorGun"){ rightGun = AssetLoader.getAssetMC("villageMenu", "meteor_button_token"); }; if (right == "clusterBomb"){ rightGun = AssetLoader.getAssetMC("villageMenu", "cluster_bomb_button_token"); }; rightGun.x = 145; rightGun.y = 127; rightGun.scaleX = (rightGun.scaleY = 0.643); baseClip.addChild(rightGun); }; } public function killCurrentDragable():void{ if (currentDraggable == null){ return; }; currentDraggable.stopDrag(); currentDraggable.parent.removeChild(currentDraggable); baseClip.right_highlight.gotoAndStop(1); baseClip.left_highlight.gotoAndStop(1); Main.stageRef.removeEventListener(Event.ENTER_FRAME, dragEnterFrame); currentDraggable.removeEventListener(MouseEvent.MOUSE_UP, dragMouseUp); currentDraggable = null; } public function equipLeftOut(_arg1:MouseEvent):void{ baseClip.left_highlight.gotoAndStop(1); } public function closeMenu():void{ killButtonEvents(); bg.removeEventListener(MouseEvent.MOUSE_DOWN, bgMouseDown); baseClip.equip_right.removeEventListener(MouseEvent.MOUSE_OVER, equipRightOver); baseClip.equip_right.removeEventListener(MouseEvent.MOUSE_OUT, equipRightOut); baseClip.equip_left.removeEventListener(MouseEvent.MOUSE_OVER, equipLeftOver); baseClip.equip_left.removeEventListener(MouseEvent.MOUSE_OUT, equipLeftOut); if (bg != null){ if (bg.parent != null){ bg.parent.removeChild(bg); }; }; UIManager.inMenu = false; if (baseClip != null){ if (baseClip.parent != null){ baseClip.parent.removeChild(baseClip); }; }; if (Main.GAME_MANAGER.mPlayerDino != null){ Main.GAME_MANAGER.mPlayerDino.inMenu = false; if (Main.GAME_MANAGER.mPlayerDino.mGun != null){ Main.GAME_MANAGER.mPlayerDino.mGun.mShootMode = true; }; }; Main.stageRef.removeEventListener(KeyboardEvent.KEY_DOWN, keyDown); myKillFlag = true; startTicking(); if (UIManager.currentVillageMenu.ID.Value == ID.Value){ UIManager.currentVillageMenu = null; }; Main.GAME_MANAGER.currentVillageMenu = null; Main.GAME_MANAGER.tutorialScripter.signalEvent("exitMenu"); Main.stageRef.focus = Main.stageRef; } } }//package dinowaurs
Section 150
//Villager (dinowaurs.Villager) package dinowaurs { import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import engine.display.*; import engine.core.*; import dinowaurs.managers.*; public class Villager extends MelbaActor { public const walking:int = 0; public const panicking:int = 7; public const poking:int = 5; public const whiping:int = 6; public const building:int = 4; public const running:int = 1; public const hammer:int = 3; public const standing:int = 2; public var vilRight:Number; public var MY_X:Number; public var dir:int; public var state:int; public var animCountdown:int; public var height:Number; public var animCountdownMAX:int;// = 1000 public var vilWidth:Number; public var enemyDino:Dino; public var yOff:Number; public var vilLeft:Number; public var race:String; public var speed:int; public var myDino:Dino; public var myVillage:VillageZone; public var myTerrain:Terrain; public var graphic:MovieClip; public function Villager(_arg1:Canvas, _arg2:Number, _arg3:Number, _arg4:Terrain, _arg5:Dino, _arg6:Dino, _arg7:VillageZone){ super(_arg1, new MelbaPawn(new MovieClip(), 1, "villager pawn"), _arg2, _arg3, "villager", true); var _local8:* = Math.floor((Math.random() * 3)); if (_local8 == 0){ race = ""; } else { if (_local8 == 1){ race = "MED"; } else { race = "DRK"; }; }; myDino = _arg5; enemyDino = _arg6; myTerrain = _arg4; myVillage = _arg7; state = running; graphic = AssetLoader.getAssetMC("villagers", ("villagerRunSpless" + race)); MovieClip(mPawn.content).addChild(graphic); yOff = 65; height = 1; animCountdown = Math.round((Math.random() * animCountdownMAX)); if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.villagers != null){ Main.GAME_MANAGER.villagers.push(this); }; }; vilLeft = (myVillage.mBaseTile.Pawn.the.x - (myVillage.mBaseTile.Pawn.the.width / 2)); vilRight = (myVillage.mBaseTile.Pawn.the.x + (myVillage.mBaseTile.Pawn.the.width / 2)); vilWidth = myVillage.mBaseTile.Pawn.the.width; } override public function tick(_arg1:uint):void{ var _local5:int; super.tick(_arg1); if (myKillFlag){ return; }; if (!mFirstTick){ return; }; var _local2:Point = ParentCanvas.Base.localToGlobal(new Point(MY_X, mPawn.the.y)); if ((((_local2.x < -50)) || ((_local2.x > 750)))){ cull(); } else { display(); }; if (((!(myVillage.mVillageBuilt)) && (!(myVillage.constructioning)))){ _local5 = Math.round(Math.random()); if (_local5 == 0){ _local5 = -1; }; splode(_local5); }; if (!mDisplaying){ return; }; if (myDino == null){ trace("NO DINO!!"); }; if (Main.GAME_MANAGER.mPlayerDino == null){ return; }; myDino = Main.GAME_MANAGER.mPlayerDino; if (myTerrain == null){ return; }; if (mPawn == null){ myKillFlag = true; return; }; var _local3:Number = 10000; if (enemyDino != null){ if (enemyDino.Pawn != null){ _local3 = Math.abs((MY_X - enemyDino.Pawn.the.x)); }; }; if (((myVillage.gettingHit) || ((_local3 < 500)))){ if (!(state) == panicking){ state = panicking; MovieClip(mPawn.content).removeChild(graphic); graphic = AssetLoader.getAssetMC("villagers", ("villagerPanic" + race)); MovieClip(mPawn.content).addChild(graphic); }; }; var _local4:Number = (MY_X - myVillage.mBaseTile.Pawn.the.x); if ((((state == poking)) || ((state == whiping)))){ speed = 0; dir = 0; if (Math.abs(_local4) > vilWidth){ switchState(); }; } else { if (dir == 0){ if (MY_X < vilLeft){ dir = 1; } else { dir = -1; }; }; }; if ((((state == building)) || ((state == hammer)))){ speed = 0; dir = 0; }; if (state == walking){ speed = 1; if (dir == 1){ if (MY_X > vilRight){ dir = -1; }; } else { if (MY_X < vilLeft){ dir = 1; }; }; }; if (state == running){ speed = 3; if (dir == 1){ if (MY_X > vilRight){ dir = -1; }; } else { if (MY_X < vilLeft){ dir = 1; }; }; }; if (state == panicking){ speed = 4; if (dir == 1){ if (MY_X > vilRight){ dir = -1; }; } else { if (MY_X < vilLeft){ dir = 1; }; }; }; if (state == standing){ speed = 0; }; if ((dir * mPawn.Flipped) < 0){ mPawn.flipX(); }; mPawn.the.x = (mPawn.the.x + (dir * speed)); mPawn.the.y = (myTerrain.getHeight(MY_X) + yOff); animCountdown--; if (animCountdown < 0){ animCountdown = (animCountdown = Math.round((Math.random() * animCountdownMAX))); switchState(); } else { return; }; } public function splode(_arg1:Number):void{ new ExplodedVillager(this, _arg1); var _local2:int = Math.round((Math.random() * 2)); myKillFlag = true; startTicking(); var _local3:int; while (_local3 < myVillage.villagerArray.length) { if (myVillage.villagerArray[_local3].ID.Value == ID.Value){ myVillage.villagerArray[_local3] = myVillage.villagerArray[(myVillage.villagerArray.length - 1)]; myVillage.villagerArray.pop(); }; _local3++; }; } private function switchState():void{ var _local1:int; if (myVillage.constructioning){ if (state == walking){ if ((((MY_X > (myVillage.mBaseTile.Pawn.the.x - myVillage.mBaseTile.Pawn.the.width))) && ((MY_X < (myVillage.mBaseTile.Pawn.the.x + myVillage.mBaseTile.Pawn.the.width))))){ _local1 = Math.round((Math.random() * 2)); if (_local1 == 1){ state = hammer; MovieClip(mPawn.content).removeChild(graphic); graphic = AssetLoader.getAssetMC("villagers", ("villagerHammer" + race)); MovieClip(mPawn.content).addChild(graphic); } else { state = building; MovieClip(mPawn.content).removeChild(graphic); graphic = AssetLoader.getAssetMC("villagers", ("villagerBuilding" + race)); MovieClip(mPawn.content).addChild(graphic); }; }; } else { state = walking; MovieClip(mPawn.content).removeChild(graphic); graphic = AssetLoader.getAssetMC("villagers", ("villagerWalk" + race)); MovieClip(mPawn.content).addChild(graphic); }; } else { if (!(((MY_X > (myDino.Pawn.the.x - myDino.Pawn.the.width))) && ((MY_X < (myDino.Pawn.the.x + myDino.Pawn.the.width))))){ if (state == walking){ state = standing; MovieClip(mPawn.content).removeChild(graphic); graphic = AssetLoader.getAssetMC("villagers", ("villagerStand" + race)); MovieClip(mPawn.content).addChild(graphic); } else { state = walking; MovieClip(mPawn.content).removeChild(graphic); graphic = AssetLoader.getAssetMC("villagers", ("villagerWalk" + race)); MovieClip(mPawn.content).addChild(graphic); }; } else { if ((((MY_X > (myDino.Pawn.the.x - myDino.Pawn.the.width))) && ((MY_X < (myDino.Pawn.the.x + myDino.Pawn.the.width))))){ _local1 = Math.round((Math.random() * 4)); if (_local1 == 1){ state = poking; MovieClip(mPawn.content).removeChild(graphic); graphic = AssetLoader.getAssetMC("villagers", ("villagerPoke" + race)); MovieClip(mPawn.content).addChild(graphic); } else { if (_local1 == 2){ state = whiping; MovieClip(mPawn.content).removeChild(graphic); graphic = AssetLoader.getAssetMC("villagers", ("villagerWhip" + race)); MovieClip(mPawn.content).addChild(graphic); } else { state = running; MovieClip(mPawn.content).removeChild(graphic); graphic = AssetLoader.getAssetMC("villagers", ("villagerRunSpless" + race)); MovieClip(mPawn.content).addChild(graphic); }; }; }; }; }; } override public function display():void{ if (mCanvas == null){ trace((" NULL CANVAS PROBLEM!!! I AM " + ID.Name)); }; if (!mDisplaying){ if (mCanvas != null){ mCanvas.addChild(mPawn); }; mDisplaying = true; }; } override public function shiftHorizontal(_arg1:Number):void{ super.shiftHorizontal(_arg1); MY_X = mPawn.the.x; } override public function kill():void{ super.kill(); } override public function cull():void{ if (mCanvas == null){ trace((" NULL CANVAS PROBLEM!!! I AM " + ID.Name)); }; if (mDisplaying){ mCanvas.removeChild(mPawn); mDisplaying = false; }; } } }//package dinowaurs
Section 151
//VillageZone (dinowaurs.VillageZone) package dinowaurs { import flash.events.*; import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import engine.display.*; import dinowaurs.audio.*; import engine.core.*; import dinowaurs.managers.*; public class VillageZone extends Tickable { public var village_level3_20:Class; public var village_level3_60:Class; public var mTerrain:Terrain; public var totalVillagers:int;// = 5 public var mNoMenu:Boolean; public var village_level2_60:Class; public var emptyZone:Boolean;// = false public var village_level2_20:Class; public var redHitTimer:int;// = 0 public var mVillageHealthMax:int; public var mBaseTile:VillageBaseTile; public var village_level3_80:Class; public var gettingHit:Boolean; public var village_level1_60:Class; public var mVillageHealth:int; public var village_level1_20:Class; public var mVillageBuilt:Boolean; public var village_level3_40:Class; public var goldTagTicker:int;// = 0 public var mVillageLevel:int; public var mXPos:Number; public var mVillageTile:MelbaTile; public var mVillageMode:String; public var village_level2_100:Class; public var village_level3_100:Class; var vilTickCounter:int; public var village_level2_80:Class; public var village_level1_100:Class; public var village_level2_40:Class; public var mConstructionCurtain:MovieClip; public var mVillageHealthBar:MovieClip; public var villagerArray:Array; public var mOwnerID:int; public var mVillageGraphic:MovieClip; public var flag:Sprite; public var constructioning:Boolean; public var mMyVillage:Boolean; public var village_level1_80:Class; public var zone_empty:Class; public var village_level1_40:Class; public function VillageZone(_arg1:Canvas, _arg2:Canvas, _arg3:Terrain, _arg4:Number){ zone_empty = AssetLoader.getAsset("villages", "zone_empty"); village_level1_20 = AssetLoader.getAsset("villages", "village_level1_20"); village_level1_40 = AssetLoader.getAsset("villages", "village_level1_40"); village_level1_60 = AssetLoader.getAsset("villages", "village_level1_60"); village_level1_80 = AssetLoader.getAsset("villages", "village_level1_80"); village_level1_100 = AssetLoader.getAsset("villages", "village_level1_100"); village_level2_20 = AssetLoader.getAsset("villages", "village_level2_20"); village_level2_40 = AssetLoader.getAsset("villages", "village_level2_40"); village_level2_60 = AssetLoader.getAsset("villages", "village_level2_60"); village_level2_80 = AssetLoader.getAsset("villages", "village_level2_80"); village_level2_100 = AssetLoader.getAsset("villages", "village_level2_100"); village_level3_20 = AssetLoader.getAsset("villages", "village_level3_20"); village_level3_40 = AssetLoader.getAsset("villages", "village_level3_40"); village_level3_60 = AssetLoader.getAsset("villages", "village_level3_60"); village_level3_80 = AssetLoader.getAsset("villages", "village_level3_80"); village_level3_100 = AssetLoader.getAsset("villages", "village_level3_100"); villagerArray = new Array(); super("villageZone", true); var _local5 = ""; if (Main.GAME_MANAGER.arena == "desert"){ _local5 = "desert_"; } else { if (Main.GAME_MANAGER.arena == "waste"){ _local5 = "wasteland_"; } else { if (Main.GAME_MANAGER.arena == "jungle"){ _local5 = "jungle_"; }; }; }; village_level1_20 = AssetLoader.getAsset("villages", (_local5 + "village_level1_20")); village_level1_40 = AssetLoader.getAsset("villages", (_local5 + "village_level1_40")); village_level1_60 = AssetLoader.getAsset("villages", (_local5 + "village_level1_60")); village_level1_80 = AssetLoader.getAsset("villages", (_local5 + "village_level1_80")); village_level1_100 = AssetLoader.getAsset("villages", (_local5 + "village_level1_100")); village_level2_20 = AssetLoader.getAsset("villages", (_local5 + "village_level2_20")); village_level2_40 = AssetLoader.getAsset("villages", (_local5 + "village_level2_40")); village_level2_60 = AssetLoader.getAsset("villages", (_local5 + "village_level2_60")); village_level2_80 = AssetLoader.getAsset("villages", (_local5 + "village_level2_80")); village_level2_100 = AssetLoader.getAsset("villages", (_local5 + "village_level2_100")); village_level3_20 = AssetLoader.getAsset("villages", (_local5 + "village_level3_20")); village_level3_40 = AssetLoader.getAsset("villages", (_local5 + "village_level3_40")); village_level3_60 = AssetLoader.getAsset("villages", (_local5 + "village_level3_60")); village_level3_80 = AssetLoader.getAsset("villages", (_local5 + "village_level3_80")); village_level3_100 = AssetLoader.getAsset("villages", (_local5 + "village_level3_100")); mTerrain = _arg3; mXPos = _arg4; constructioning = false; mVillageTile = new MelbaTile(_arg1, new MelbaPawn(new MovieClip(), 1, "village pawn"), mXPos, mTerrain.getHeight(mXPos), "village tile", false); MovieClip(mVillageTile.Pawn.content).gotoAndStop(0); mVillageTile.permCenter = new Point(0, -200); mBaseTile = new VillageBaseTile(_arg2, new MelbaPawn(new MovieClip(), 1, "village base pawn"), mXPos, mTerrain.getHeight(mXPos), "village base tile", false); MovieClip(mBaseTile.Pawn.content).gotoAndStop(0); mBaseTile.parentVillageZone = this; mVillageGraphic = AssetLoader.getAssetMC("villages", "zone_empty"); MovieClip(mBaseTile.Pawn.content).addChild(mVillageGraphic); Main.stageRef.addEventListener(KeyboardEvent.KEY_DOWN, keyDown); mVillageBuilt = false; mMyVillage = false; mVillageHealth = 100; mVillageHealthBar = AssetLoader.getAssetMC("villages", "villageHealthBar"); mVillageHealthBar.x = -100; mVillageHealthBar.y = 100; Sprite(mBaseTile.Pawn.the).addChild(mVillageHealthBar); mVillageHealthBar.gotoAndStop(1); mVillageMode = "produce"; mConstructionCurtain = AssetLoader.getAssetMC("villages", "construction"); mNoMenu = false; mBaseTile.forceDisplay(); mVillageTile.forceDisplay(); if (Main.ARENA_DETAIL == "high"){ totalVillagers = 5; } else { if (Main.ARENA_DETAIL == "medium"){ totalVillagers = 2; } else { if (Main.ARENA_DETAIL == "low"){ totalVillagers = 0; }; }; }; } public function createConstructionCurtain():void{ if (mConstructionCurtain.parent == null){ Sprite(mBaseTile.Pawn.the).addChild(mConstructionCurtain); mConstructionCurtain.y = -30; SoundManager.playFX("AMB_VillageBuild"); if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.tutorialScripter != null){ Main.GAME_MANAGER.tutorialScripter.signalEvent("buildVillage"); }; }; }; } public function unspawnVillagers():void{ var _local1:Villager; if (villagerArray == null){ return; }; for each (_local1 in villagerArray) { _local1.myKillFlag = true; _local1.startTicking(); }; villagerArray = null; } public function E_V_D(_arg1:Array):void{ constructioning = false; mVillageBuilt = true; removeConstructionCurtain(); UIManager.mMinimap.updateVillage(this); trace(("GOT CONSTRUCTION ENDED!!! h==" + this.mVillageHealth)); } override public function networkUpdate(_arg1:Array):void{ var _local2:DisplayObjectContainer; var _local3:int; var _local4:Number; var _local5:int; var _local6:int; var _local7:VillageZone; super.networkUpdate(_arg1); mXPos = _arg1[6]; mOwnerID = _arg1[7]; if (!mVillageBuilt){ if (_arg1[8] == "true"){ mNoMenu = true; if (UIManager.mMinimap != null){ UIManager.mMinimap.updateVillage(this); redHitTimer = 10; }; }; } else { if (_arg1[8] == "false"){ trace("this village was built, but now its not!"); _local2 = mVillageGraphic.parent; _local2.removeChild(mVillageGraphic); mVillageGraphic = new zone_empty(); mVillageBuilt = false; if (UIManager.mMinimap != null){ UIManager.mMinimap.updateVillage(this); }; _local2.addChild(mVillageGraphic); if (Main.GAME_MANAGER.mPlayerInfo.mUserID == mOwnerID){ Main.GAME_MANAGER.mPlayerInfo.mVillages--; } else { Main.GAME_MANAGER.tutorialScripter.signalEvent("shootVillage"); }; }; }; if (_arg1[12] == "true"){ mVillageHealthMax = 100; }; if (_arg1[8] == "false"){ mVillageBuilt = false; } else { mVillageBuilt = true; }; adjustForHealth(_arg1[9]); if (_arg1[9] < mVillageHealth){ if (((mVillageBuilt) || (constructioning))){ if (UIManager.mMinimap != null){ UIManager.mMinimap.updateVillage(this); }; gettingHit = true; redHitTimer = 10; _local3 = Math.ceil((Math.random() * 4)); if (_local3 == 1){ SoundManager.playFX("AMB_VillageHitWS"); } else { if (_local3 == 2){ SoundManager.playFX("AMB_VillageHitWL"); } else { if (_local3 == 3){ SoundManager.playFX("AMB_VillageHitSS"); } else { SoundManager.playFX("AMB_VillageHitSL"); }; }; }; if (_arg1[9] <= 0){ Main.signalVillageKill(ID.Value); _local4 = Math.random(); if (_local3 > 0.5){ SoundManager.playFX("CTR_VillagersPanicC"); } else { SoundManager.playFX("CTR_VillagersPanicF"); }; _local5 = 0; _local6 = 0; for each (_local7 in Main.GAME_MANAGER.currentVillageMenu) { if (_local7.mVillageBuilt){ if (_local7.mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ _local5++; } else { _local6++; }; }; }; if ((((_local5 <= 1)) || ((_local6 <= 1)))){ Main.GAME_MANAGER.arenaMusicScript.signalMusicEvent("lastVillage"); } else { Main.GAME_MANAGER.arenaMusicScript.signalMusicEvent("villageDeath"); }; }; }; } else { gettingHit = false; if (UIManager.mMinimap != null){ UIManager.mMinimap.updateVillage(this); }; }; if (mVillageHealth > _arg1[9]){ mVillageHealth = _arg1[9]; UIManager.mMinimap.updateVillage(this); }; mVillageHealth = _arg1[9]; mVillageLevel = _arg1[10]; mVillageHealthMax = _arg1[11]; if (flag != null){ if (flag.parent != null){ flag.parent.removeChild(flag); }; flag = null; }; if (mVillageLevel == 0){ if (Main.GAME_MANAGER.mPlayerInfo.mUserID == mOwnerID){ flag = AssetLoader.getAssetSP("villages", "flag_orange_tier1"); } else { flag = AssetLoader.getAssetSP("villages", "flag_blue_tier1"); }; } else { if (mVillageLevel == 1){ if (Main.GAME_MANAGER.mPlayerInfo.mUserID == mOwnerID){ flag = AssetLoader.getAssetSP("villages", "flag_orange_tier2"); } else { flag = AssetLoader.getAssetSP("villages", "flag_blue_tier2"); }; } else { if (mVillageLevel == 2){ if (Main.GAME_MANAGER.mPlayerInfo.mUserID == mOwnerID){ flag = AssetLoader.getAssetSP("villages", "flag_orange_tier3"); } else { flag = AssetLoader.getAssetSP("villages", "flag_blue_tier3"); }; }; }; }; Sprite(mBaseTile.Pawn.the).addChild(flag); if (constructioning){ if (_arg1[12] == "false"){ trace("SWITCH TO NOT CONSCTRUCTIONING, PLEASE!"); removeConstructionCurtain(); if (UIManager.mMinimap != null){ UIManager.mMinimap.updateVillage(this); }; }; }; if (_arg1[12] == "true"){ constructioning = true; } else { constructioning = false; }; } override public function tick(_arg1:uint):void{ var _local3:MelbaObject; var _local4:Number; var _local5:Number; var _local6:Number; super.tick(_arg1); if (myKillFlag){ return; }; if (!mFirstTick){ return; }; if (Main.GAME_MANAGER == null){ return; }; vilTickCounter--; if (vilTickCounter > 0){ return; }; vilTickCounter = 15; var _local2:Boolean; for each (_local3 in Main.GAME_MANAGER.mNetworkedObjects) { if (_local3.ID.Value == ID.Value){ _local2 = true; }; }; if (!_local2){ Main.GAME_MANAGER.mNetworkedObjects.push(this); }; mVillageGraphic.gotoAndStop(1); if (!mBaseTile.Displaying){ return; }; redHitTimer--; if (redHitTimer == 0){ gettingHit = false; UIManager.mMinimap.updateVillage(this); }; if (mVillageBuilt){ if (Main.GAME_MANAGER.mPlayerInfo.mUserID == this.mOwnerID){ if (Main.GAME_MANAGER.mPlayerInfo.side == "left"){ if (mBaseTile.Pawn.the.scaleX > 0){ mBaseTile.Pawn.the.scaleX = -1; }; }; } else { if (Main.GAME_MANAGER.mPlayerInfo.side == "right"){ if (mBaseTile.Pawn.the.scaleX > 0){ mBaseTile.Pawn.the.scaleX = -1; }; }; }; if (MovieClip(mVillageTile.Pawn.content).currentFrame == 1){ if (mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ mMyVillage = true; }; UIManager.villageUpdate(this); }; } else { if (MovieClip(mVillageTile.Pawn.content).currentFrame != 1){ MovieClip(mVillageTile.Pawn.content).gotoAndStop(1); }; if (constructioning){ createConstructionCurtain(); }; }; if (Main.GAME_MANAGER.mPlayerDino != null){ mVillageGraphic.gotoAndStop(1); _local4 = mBaseTile.Pawn.the.x; _local5 = mBaseTile.Pawn.the.width; _local6 = (Main.GAME_MANAGER.mPlayerDino.Pawn.InitialCenterX + Main.GAME_MANAGER.mPlayerDino.Pawn.the.x); if ((((_local6 > (_local4 - (_local5 * 0.5)))) && ((_local6 < (_local4 + (_local5 * 0.5)))))){ if ((((Main.GAME_MANAGER.mPlayerInfo.mUserID == mOwnerID)) || (!(mVillageBuilt)))){ if (Main.GAME_MANAGER.mPlayerInfo.mUserID == mOwnerID){ if (Main.GAME_MANAGER.tutorialScripter != null){ Main.GAME_MANAGER.tutorialScripter.signalEvent("goToVillage"); }; if (mVillageLevel == 2){ Main.GAME_MANAGER.tutorialScripter.signalEvent("goToTier3Village"); }; }; }; if (!mVillageBuilt){ Main.GAME_MANAGER.tutorialScripter.signalEvent("goToEmptyVillage"); }; }; if ((((_local6 > (_local4 - (_local5 * 1.5)))) && ((_local6 < (_local4 + (_local5 * 1.5)))))){ if ((((Main.GAME_MANAGER.mPlayerInfo.mUserID == mOwnerID)) || (!(mVillageBuilt)))){ mVillageGraphic.gotoAndStop(2); }; }; }; if (mVillageHealth <= 0){ if (!emptyZone){ adjustForHealth(mVillageHealth); }; }; } public function pauseVillagers():void{ var _local1:Villager; if (villagerArray == null){ return; }; for each (_local1 in villagerArray) { _local1.stopTicking(); }; } public function E_V_C(_arg1:Array):void{ constructioning = true; mOwnerID = parseInt(_arg1[2]); resetFlag(); createConstructionCurtain(); trace(("GOT CONSTRUCTION STARTED!!! h==" + this.mVillageHealth)); } public function setMode(_arg1:String):void{ var _local2:DelayWidget; if (mVillageMode != _arg1){ if (_arg1.match(/produce/)){ _local2 = new DelayWidget(1000, "villageMode", this); Sprite(mVillageTile.Pawn.the).addChild(_local2.mMovieClip); _local2.mMovieClip.x = 50; _local2.mMovieClip.y = -250; mNoMenu = true; Sprite(mBaseTile.Pawn.the).addChild(mConstructionCurtain); mConstructionCurtain.y = -30; } else { if (_arg1.match(/defend/)){ _local2 = new DelayWidget(1000, "villageMode", this); Sprite(mVillageTile.Pawn.the).addChild(_local2.mMovieClip); _local2.mMovieClip.x = 50; _local2.mMovieClip.y = -250; mNoMenu = true; Sprite(mBaseTile.Pawn.the).addChild(mConstructionCurtain); mConstructionCurtain.y = -30; }; }; }; } public function E_event(_arg1:Array):void{ if (_arg1[0] == "E_V_H"){ E_V_H(_arg1); } else { if (_arg1[0] == "E_V_C"){ E_V_C(_arg1); } else { if (_arg1[0] == "E_V_D"){ E_V_D(_arg1); }; }; }; } public function networkHealth(_arg1:int):void{ var _local2:int; var _local3:Number; var _local4:int; var _local5:int; var _local6:VillageZone; adjustForHealth(_arg1); trace((" VILLAGE HEALTH == " + _arg1)); if ((((_arg1 < mVillageHealth)) || ((_arg1 <= 0)))){ if (((mVillageBuilt) || (constructioning))){ if (UIManager.mMinimap != null){ UIManager.mMinimap.updateVillage(this); }; gettingHit = true; redHitTimer = 10; _local2 = Math.ceil((Math.random() * 4)); if (_local2 == 1){ SoundManager.playFX("AMB_VillageHitWS"); } else { if (_local2 == 2){ SoundManager.playFX("AMB_VillageHitWL"); } else { if (_local2 == 3){ SoundManager.playFX("AMB_VillageHitSS"); } else { SoundManager.playFX("AMB_VillageHitSL"); }; }; }; if (_arg1 <= 0){ this.mVillageBuilt = false; this.mOwnerID = -1; this.constructioning = false; this.removeConstructionCurtain(); if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.tutorialScripter != null){ Main.GAME_MANAGER.tutorialScripter.signalEvent("shootVillage"); }; }; Main.signalVillageKill(ID.Value); _local3 = Math.random(); if (_local2 > 0.5){ SoundManager.playFX("CTR_VillagersPanicC"); } else { SoundManager.playFX("CTR_VillagersPanicF"); }; _local4 = 0; _local5 = 0; for each (_local6 in Main.GAME_MANAGER.currentVillageMenu) { if (_local6.mVillageBuilt){ if (_local6.mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ _local4++; } else { _local5++; }; }; }; if ((((_local4 <= 1)) || ((_local5 <= 1)))){ Main.GAME_MANAGER.arenaMusicScript.signalMusicEvent("lastVillage"); } else { Main.GAME_MANAGER.arenaMusicScript.signalMusicEvent("villageDeath"); }; }; }; } else { gettingHit = false; if (UIManager.mMinimap != null){ UIManager.mMinimap.updateVillage(this); }; }; if (mVillageHealth > _arg1){ mVillageHealth = _arg1; UIManager.mMinimap.updateVillage(this); }; mVillageHealth = _arg1; } public function resetFlag():void{ if (flag != null){ if (flag.parent != null){ flag.parent.removeChild(flag); }; flag = null; }; if (mVillageLevel == 0){ if (Main.GAME_MANAGER.mPlayerInfo.mUserID == mOwnerID){ flag = AssetLoader.getAssetSP("villages", "flag_orange_tier1"); } else { flag = AssetLoader.getAssetSP("villages", "flag_blue_tier1"); }; } else { if (mVillageLevel == 1){ if (Main.GAME_MANAGER.mPlayerInfo.mUserID == mOwnerID){ flag = AssetLoader.getAssetSP("villages", "flag_orange_tier2"); } else { flag = AssetLoader.getAssetSP("villages", "flag_blue_tier2"); }; } else { if (mVillageLevel == 2){ if (Main.GAME_MANAGER.mPlayerInfo.mUserID == mOwnerID){ flag = AssetLoader.getAssetSP("villages", "flag_orange_tier3"); } else { flag = AssetLoader.getAssetSP("villages", "flag_blue_tier3"); }; }; }; }; Sprite(mBaseTile.Pawn.the).addChild(flag); } public function spawnVillagers():void{ var _local1:Dino; var _local2:Dino; var _local3:Villager; if (Main.GAME_MANAGER == null){ return; }; if (Main.GAME_MANAGER.mPlayerDino == null){ return; }; if (villagerArray == null){ villagerArray = new Array(); }; if (villagerArray.length < totalVillagers){ _local1 = Main.GAME_MANAGER.mPlayerDino; _local2 = Main.GAME_MANAGER.mEnemyDino; if (mOwnerID != Main.GAME_MANAGER.mPlayerInfo.mUserID){ _local1 = Main.GAME_MANAGER.mEnemyDino; _local2 = Main.GAME_MANAGER.mPlayerDino; }; if (villagerArray.length < totalVillagers){ _local3 = new Villager(Main.GAME_MANAGER.Canvas_Actor, mBaseTile.Pawn.the.x, 0, mTerrain, _local1, _local2, this); villagerArray.push(_local3); }; }; } public function keyDown(_arg1:KeyboardEvent):void{ var _local2:Number; var _local3:Number; var _local4:Number; if (GameData.console.State == "down"){ return; }; if (Main.GAME_MANAGER == null){ return; }; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.inChat){ return; }; }; if (Main.GAME_MANAGER.tutorialScripter != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut != null){ if (Main.GAME_MANAGER.tutorialScripter.currentTut.eDisabled){ return; }; }; }; }; if (_arg1.keyCode == 69){ trace("village E down"); if (Main.GAME_MANAGER.mPlayerDino == null){ trace(" no player dino!"); return; }; Main.GAME_MANAGER.signalMovementEvent(new Point(0, 0)); if (mVillageBuilt){ if (Main.GAME_MANAGER.mPlayerInfo.mUserID != mOwnerID){ trace("VILLAGE: mouse up and built, but wrong player"); return; }; }; if (constructioning){ trace("VILLAGE: mouse up but constructioning"); return; }; if (UIManager.justShotNoMenu){ trace("VILLAGE: just shot no menu"); UIManager.justShotNoMenu = false; return; }; if (Main.GAME_MANAGER.mPlayerDino.respawning){ trace("VILLAGE: playerdino respawning"); return; }; _local2 = (Main.GAME_MANAGER.mPlayerDino.Pawn.InitialCenterX + Main.GAME_MANAGER.mPlayerDino.Pawn.the.x); _local3 = mBaseTile.Pawn.the.width; _local4 = mBaseTile.Pawn.the.x; if (!mVillageBuilt){ trace("VILLAGE: me not built!"); if (Main.GAME_MANAGER.mPlayerInfo.gold < 200){ UIManager.notEnoughGold(); }; if ((((_local2 > (_local4 - (_local3 * 1.5)))) && ((_local2 < (_local4 + (_local3 * 1.5)))))){ trace("VILLAGE: me should build!"); MovieClip(mBaseTile.Pawn.content).gotoAndStop(1); Main.GAME_MANAGER.sendBuildVillageEvent(this); }; return; }; if ((((_local2 > (_local4 - (_local3 * 1.5)))) && ((_local2 < (_local4 + (_local3 * 1.5)))))){ if (((((mVillageBuilt) && (!(Main.GAME_MANAGER.mPlayerDino.inMenu)))) && (!(Main.GAME_MANAGER.mPlayerDino.inChat)))){ if (Main.GAME_MANAGER.currentVillageMenu == null){ Main.GAME_MANAGER.currentVillageMenu = new VillageMenu2(this, GameData.GUI_BASE.mouseX, GameData.GUI_BASE.mouseY, "inVillage"); }; SoundManager.playFX("CTR_VillagersRabble"); }; }; }; } public function E_V_H(_arg1:Array):void{ networkHealth(parseInt(_arg1[2])); UIManager.mMinimap.updateVillage(this); } public function switchMode():void{ var _local1:DisplayObjectContainer; if (mVillageMode == "produce"){ mVillageMode = "defend"; _local1 = mVillageGraphic.parent; _local1.removeChild(mVillageGraphic); mVillageGraphic = new MovieClip(); _local1.addChild(mVillageGraphic); adjustForHealth(); mNoMenu = false; UIManager.mMinimap.updateVillage(this); } else { if (mVillageMode == "defend"){ mVillageMode = "produce"; _local1 = mVillageGraphic.parent; _local1.removeChild(mVillageGraphic); mVillageGraphic = new MovieClip(); _local1.addChild(mVillageGraphic); adjustForHealth(); mNoMenu = false; UIManager.mMinimap.updateVillage(this); }; }; } public function adjustForHealth(_arg1:int=-1):void{ if (_arg1 == -1){ _arg1 = mVillageHealth; }; mVillageHealthBar.gotoAndStop(Math.round((100 * (_arg1 / mVillageHealthMax)))); _arg1 = ((_arg1 / mVillageHealthMax) * 100); var _local2:MovieClip = new MovieClip(); var _local3:DisplayObjectContainer = mVillageGraphic.parent; _local3.removeChild(mVillageGraphic); emptyZone = false; if (_arg1 <= 0){ _local2 = new zone_empty(); emptyZone = true; } else { if (_arg1 <= 20){ switch (mVillageLevel){ case 0: _local2 = new village_level1_20(); break; case 1: _local2 = new village_level2_20(); break; case 2: _local2 = new village_level3_20(); break; }; } else { if (_arg1 <= 40){ switch (mVillageLevel){ case 0: _local2 = new village_level1_40(); break; case 1: _local2 = new village_level2_40(); break; case 2: _local2 = new village_level3_40(); break; }; } else { if (_arg1 <= 60){ switch (mVillageLevel){ case 0: _local2 = new village_level1_60(); break; case 1: _local2 = new village_level2_60(); break; case 2: _local2 = new village_level3_60(); break; }; } else { if (_arg1 <= 80){ switch (mVillageLevel){ case 0: _local2 = new village_level1_80(); break; case 1: _local2 = new village_level2_80(); break; case 2: _local2 = new village_level3_80(); break; }; } else { switch (mVillageLevel){ case 0: _local2 = new village_level1_100(); break; case 1: _local2 = new village_level2_100(); break; case 2: _local2 = new village_level3_100(); break; }; }; }; }; }; }; mVillageGraphic = _local2; _local3.addChild(mVillageGraphic); } public function removeConstructionCurtain():void{ var _local1:Number; if (this.mConstructionCurtain.parent != null){ mConstructionCurtain.parent.removeChild(mConstructionCurtain); SoundManager.stopFX("AMB_VillageBuild"); _local1 = Math.random(); if (_local1 > 0.5){ SoundManager.playFX("CTR_VillagersCheerD"); } else { SoundManager.playFX("CTR_VillagersCheerC"); }; if (mOwnerID == Main.GAME_MANAGER.mPlayerInfo.mUserID){ Main.GAME_MANAGER.tutorialScripter.signalEvent("captureVillage"); }; }; } override public function kill():void{ var _local1:int; super.kill(); Main.stageRef.removeEventListener(KeyboardEvent.KEY_DOWN, keyDown); mBaseTile.myKillFlag = true; mBaseTile.startTicking(); mVillageTile.myKillFlag = true; mVillageTile.startTicking(); mTerrain = null; if (flag != null){ if (flag.parent != null){ flag.parent.removeChild(flag); }; flag = null; }; if (mConstructionCurtain != null){ if (mConstructionCurtain.parent != null){ mConstructionCurtain.parent.removeChild(mConstructionCurtain); }; mConstructionCurtain = null; }; if (mVillageHealthBar != null){ if (mVillageHealthBar.parent != null){ mVillageHealthBar.parent.removeChild(mVillageHealthBar); }; mVillageHealthBar = null; }; if (mVillageGraphic != null){ if (mVillageGraphic.parent != null){ mVillageGraphic.parent.removeChild(mVillageGraphic); }; mVillageGraphic = null; }; if (Main.GAME_MANAGER != null){ _local1 = 0; while (_local1 < Main.GAME_MANAGER.mVillageArray.length) { if (Main.GAME_MANAGER.mVillageArray[_local1].ID.Value == ID.Value){ Main.GAME_MANAGER.mVillageArray[_local1] = Main.GAME_MANAGER.mVillageArray[(Main.GAME_MANAGER.mVillageArray.length - 1)]; Main.GAME_MANAGER.mVillageArray.pop(); }; _local1++; }; }; } public function unpauseVillagers():void{ var _local1:Villager; if (villagerArray == null){ return; }; for each (_local1 in villagerArray) { _local1.startTicking(); }; } } }//package dinowaurs import flash.display.*; import engine.display.*; class VillageBaseTile extends MelbaTile { public var parentVillageZone:VillageZone; private function VillageBaseTile(_arg1:Canvas, _arg2:MelbaPawn, _arg3:Number, _arg4:Number, _arg5:String="melbaTile", _arg6:Boolean=false){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); MovieClip(mPawn.content).stop(); } override public function cull():void{ if (mDisplaying){ mDisplaying = false; }; if (parentVillageZone != null){ parentVillageZone.pauseVillagers(); }; } override public function display():void{ super.display(); if (parentVillageZone != null){ parentVillageZone.unpauseVillagers(); if (((parentVillageZone.mVillageBuilt) || (parentVillageZone.constructioning))){ parentVillageZone.spawnVillagers(); }; }; } }
Section 152
//CollisionManager (engine.collision.CollisionManager) package engine.collision { import engine.display.*; public class CollisionManager { private static var mColliders:Array; private static var bInitialized:Boolean = false; public static var mActor:MelbaTile; public static function addCollider(_arg1:MelbaTile):void{ if (bInitialized){ removeCollider(_arg1); mColliders.push(_arg1); }; } public static function initialize(_arg1:MelbaTile):void{ if (bInitialized == false){ mColliders = new Array(); mActor = _arg1; bInitialized = true; }; } public static function tick(_arg1:uint):void{ var _local2:uint; if (bInitialized){ _local2 = 0; while (_local2 < mColliders.length) { if (mColliders[_local2].ID.Value != mActor.ID.Value){ if (mColliders[_local2].checkForCollision(mActor)){ trace("hit!"); mActor.signalCollision(mColliders[_local2]); mColliders[_local2].signalCollision(mActor); }; }; _local2++; }; }; } public static function removeCollider(_arg1:MelbaTile):void{ var _local2:uint; if (bInitialized){ _local2 = 0; while (_local2 < mColliders.length) { if (mColliders[_local2].ID.Value == _arg1.ID.Value){ while (_local2 < (mColliders.length - 1)) { mColliders[_local2] = mColliders[(_local2 + 1)]; _local2++; }; mColliders.pop(); }; _local2++; }; }; } } }//package engine.collision
Section 153
//Console (engine.core.Console) package engine.core { import flash.events.*; import flash.display.*; import flash.geom.*; import dinowaurs.dinos.*; import flash.text.*; import dinowaurs.betaMenu.*; import dinowaurs.*; import dinowaurs.managers.*; import engine.networking.*; public class Console extends Sprite { private var mStageRef:Stage; private var tOutput_txt:TextField; private var mCmdHistIter:int;// = -1 private var mUpButtonPressed:Boolean;// = false public var TEXT_SIZE:int;// = 14 private var bSwitched:Boolean; private var mCmdHistory:Array; private var mDownButtonPressed:Boolean;// = false private var mState:String; private var tInput_txt:TextField; private var mTextBase:Sprite; public function Console(_arg1:Sprite, _arg2:Stage){ mStageRef = _arg2; _arg1.addChild(this); this.x = 0; this.y = 0; mCmdHistory = new Array(); trace(mStageRef.stageWidth); graphics.beginFill(0x111111, 0.8); graphics.lineStyle(3, 1179409); graphics.moveTo(0, -3); graphics.lineTo((mStageRef.stageWidth - 1), -3); graphics.lineTo((mStageRef.stageWidth - 1), -((mStageRef.stageHeight - 51))); graphics.lineTo(0, -((mStageRef.stageHeight - 51))); graphics.lineTo(0, -3); graphics.endFill(); graphics.moveTo(0, -30); graphics.lineTo((mStageRef.stageWidth - 1), -30); mTextBase = new Sprite(); mTextBase.y = -55; mTextBase.x = 5; addChild(mTextBase); tOutput_txt = new TextField(); tOutput_txt.defaultTextFormat = new TextFormat("myriad pro", TEXT_SIZE, 0xFFFFFF); tOutput_txt.text = "--- Melba Toast v0.1 ---\n"; appendLine("Welcome to the Melba Toast Prototype Engine! (Melba Toast Engine (c) Intuition Games LLC)\n"); tOutput_txt.autoSize = TextFieldAutoSize.LEFT; tOutput_txt.selectable = false; mTextBase.addChild(tOutput_txt); tInput_txt = new TextField(); tInput_txt.defaultTextFormat = new TextFormat("myriad pro", TEXT_SIZE, 0xFFFFFF); tInput_txt.type = "input"; tInput_txt.autoSize = TextFieldAutoSize.LEFT; tInput_txt.x = 5; tInput_txt.y = -25; tInput_txt.text = ""; addChild(tInput_txt); mState = "up"; addEventListener("enterFrame", frameUpdate); appendLine((("KONG_USERNAME == " + Main.kongUsername) + "\n")); appendLine((("KONG PW == " + Main.kongPW) + "\n")); mTextBase.addEventListener(MouseEvent.MOUSE_DOWN, textDown); mTextBase.addEventListener(MouseEvent.MOUSE_UP, textUp); } protected function popDown():void{ } protected function popUp():void{ mState = "up"; bSwitched = true; mStageRef.focus = null; tInput_txt.text = ""; } public function parseVariableValue(_arg1:String):Number{ var _local2:Array = new Array(); _local2 = _arg1.split(/=/); return (Number(_local2[1])); } public function frameUpdate(_arg1:Event):void{ mTextBase.x = 0; if (!KeyWatch.isDown(192)){ bSwitched = false; }; if (mState == "up"){ if (y > 0){ y = (y - (y / 5)); } else { visible = false; }; if (((KeyWatch.isDown(192)) && (!(bSwitched)))){ popDown(); }; } else { if (mState == "down"){ if (y <= 300){ y = (y + ((300 + y) / 10)); }; mStageRef.focus = tInput_txt; if (((KeyWatch.isDown(192)) && (!(bSwitched)))){ popUp(); }; if (KeyWatch.isDown(38)){ if (mUpButtonPressed == false){ if (mCmdHistory.length > 0){ mCmdHistIter--; if (mCmdHistIter <= 0){ mCmdHistIter = (mCmdHistory.length - 1); }; tInput_txt.text = mCmdHistory[mCmdHistIter]; mUpButtonPressed = true; }; }; } else { mUpButtonPressed = false; }; if (KeyWatch.isDown(40)){ if (mDownButtonPressed == false){ if (mCmdHistory.length > 0){ mCmdHistIter++; if (mCmdHistIter >= mCmdHistory.length){ mCmdHistIter = 0; }; tInput_txt.text = mCmdHistory[mCmdHistIter]; mDownButtonPressed = true; }; }; } else { mDownButtonPressed = false; }; if (KeyWatch.isDown(13)){ if (tInput_txt.length > 0){ appendLine((tInput_txt.text + "\n"), true); mCmdHistory.push(tInput_txt.text); tInput_txt.text = ""; mCmdHistIter = -1; }; }; }; }; } public function textUp(_arg1:MouseEvent):void{ mTextBase.stopDrag(); } public function parseLine(_arg1:String):void{ var _local2:Array; var _local3:String; var _local4:String; var _local5:String; var _local6:String; var _local7:Object; var _local8:KongItem; var _local9:MelbaObject; var _local10:VillageZone; var _local11:Array; var _local12:String; var _local13:Number; var _local14:Number; var _local15:Dino; _arg1 = _arg1.slice(0, -1); if (_arg1.match(/^debugMode/)){ GameData.mDebugMode = !(GameData.mDebugMode); }; if (_arg1.match(/fps$/)){ FPSDisplay.toggle(); }; if (_arg1.match("kill")){ NetworkManager.serverMessage(new Array("suicide")); }; if (_arg1.match(/^terrainOffset.x/)){ Main.GAME_MANAGER.mPlayerDino.setTerrainOffset(new Point(parseVariableValue(_arg1), Main.GAME_MANAGER.mPlayerDino.mTerrainOffset.y)); }; if (_arg1.match(/^terrainOffset.y/)){ Main.GAME_MANAGER.mPlayerDino.setTerrainOffset(new Point(Main.GAME_MANAGER.mPlayerDino.mTerrainOffset.x, parseVariableValue(_arg1))); }; if (_arg1.match(/^fps=/)){ mStageRef.frameRate = parseVariableValue(_arg1); }; if (_arg1.match(/^bg1=/)){ Main.GAME_MANAGER.backgroundManager.bg1ScaleFactor = parseVariableValue(_arg1); }; if (_arg1.match(/^bg2=/)){ Main.GAME_MANAGER.backgroundManager.bg2ScaleFactor = parseVariableValue(_arg1); }; if (_arg1.match("getStats=")){ _local2 = new Array(); _local2 = _arg1.split(/=/); _local3 = _local2[1]; NetworkManager.getPlayerStats([_local3]); Main.statsQueryName = _local3; }; if (_arg1.match("slowdown=")){ FrameWatcher.slowdown = parseVariableValue(_arg1); }; if (_arg1.match("setWins=")){ NetworkManager.serverMessage(["setWins", parseVariableValue(_arg1)]); }; if (_arg1.match("netInfo")){ NetworkManager.netInfo(); }; if (_arg1.match("netDebug")){ }; NetworkManager.sfc.debug = !(NetworkManager.sfc.debug); if (_arg1.match("gameProfile")){ Main.GAME_MANAGER.eventProfilerData(); }; if (_arg1.match(/^noLoop$/)){ FrameWatcher.UseLoop = false; }; if (_arg1.match("giveStamp")){ AssetLoader.setupErrorGuy(); AssetLoader.errorGuy.appendText((Main.kongUsername + "\n")); AssetLoader.errorGuy.appendText(Main.kongPW); }; if (_arg1.match("oogChat")){ }; if (_arg1.match(/^useLoop$/)){ FrameWatcher.UseLoop = true; }; if (_arg1.match(/camCullLeft/)){ if (_arg1.match(/^camCullLeft=/)){ GameData.CULL_LEFT = parseVariableValue(_arg1); }; appendLine((("camera cull left == " + GameData.CULL_LEFT) + "\n")); }; if (_arg1.match(/camCullRight/)){ if (_arg1.match(/^camCullRight=/)){ GameData.CULL_RIGHT = parseVariableValue(_arg1); }; appendLine((("camera cull right == " + GameData.CULL_RIGHT) + "\n")); }; if (_arg1.match(/camCullTop/)){ if (_arg1.match(/^camCullTop=/)){ GameData.CULL_TOP = parseVariableValue(_arg1); }; appendLine((("camera cull top == " + GameData.CULL_TOP) + "\n")); }; if (_arg1.match(/camCullBottom/)){ if (_arg1.match(/^camCullBottom=/)){ GameData.CULL_BOTTOM = parseVariableValue(_arg1); }; appendLine((("camera cull bottom == " + GameData.CULL_BOTTOM) + "\n")); }; if (_arg1.match(/speedMult/)){ if (_arg1.match(/^speedMult=/)){ GameData.SpeedMult = parseVariableValue(_arg1); }; appendLine((("speed multiplier == " + GameData.SpeedMult) + "\n")); }; if (_arg1.match("soundDump")){ SoundManager.screenDump(); }; if (_arg1.match("boostScreen")){ Main.betaMenu.creationScreen.parentScreen.topTab.base.addChild(new BoostScreen()); }; if (_arg1.match("connectMees")){ NetworkManager.connect(); }; if (_arg1.match("discoMees")){ NetworkManager.disconnect(); }; if (_arg1.match("map=")){ _local4 = _arg1.split("=")[1]; appendLine(("sending map == " + _local4)); NetworkManager.serverMessage(["mapPick", _local4]); }; if (_arg1.match("arena=")){ _local5 = _arg1.split("=")[1]; appendLine(("saving arena ==" + _local5)); Main.pickedArena = _local5; }; if (_arg1.match("winGame")){ NetworkManager.serverMessage(["winGame"]); }; if (_arg1.match("debugBtns")){ Main.debugBtns = !(Main.debugBtns); }; if (_arg1.match("logMeIn")){ KongApiManager.fakePageLogin("intuition", "163798_f5c0733abbdaab1f281f9a0467b84fdbd663c0d5"); }; if (_arg1 == "export"){ if (Main.betaMenu != null){ Main.betaMenu.exportCmd(null); }; }; if (_arg1 == "inventory"){ ItemManager.requestInventory(); }; if (_arg1.match("buy ")){ _local6 = _arg1.split(" ")[1]; _local7 = new Object(); _local7.identifier = _local6; _local8 = new KongItem(_local7, false); ItemManager.purchaseItem(_local8); }; if (_arg1.match("ALPHA_OMEGA")){ if (Main.GAME_MANAGER != null){ }; }; if (_arg1 == "itemList"){ ItemManager.requestAllItems(); }; if (_arg1 == "localItemList"){ ItemManager.localAllItems(); }; if (_arg1 == "localInventory"){ ItemManager.localInventory(); }; if (_arg1.match("transit=")){ Main.GAME_MANAGER.transitionToTileOffset = parseVariableValue(_arg1); }; if (_arg1.match("letterSpacing=")){ Main.testValue = parseVariableValue(_arg1); }; if (_arg1.match("dna")){ appendLine(String((Main.myPlayerStats.dna + "\n"))); }; if (_arg1.match("outputIDs")){ appendLine((("player.userid == " + Main.GAME_MANAGER.mPlayerInfo.mUserID) + "\n")); for each (_local9 in Main.GAME_MANAGER.mNetworkedObjects) { if ((_local9 is VillageZone)){ _local10 = VillageZone(_local9); appendLine((("VillageZone " + _local10.mOwnerID) + "\n")); }; }; }; if (_arg1.match("gimmeDNA")){ NetworkManager.serverMessage(["gimmeDNA"]); }; if (_arg1.match("setBoosts=")){ NetworkManager.serverMessage(["setBoosts", Main.currentDino, _arg1.split("=")[1]]); }; if (_arg1.match("debugON")){ Main.debugON = true; }; if (_arg1.match("amLoggedIn")){ appendLine((("loggedIn == " + NetworkManager.loggedIn) + "\n")); }; if (_arg1.match("setFormat")){ _local11 = _arg1.split(" "); _local12 = _local11[1]; _local13 = parseFloat(_local11[2]); _local14 = parseFloat(_local11[3]); Main.setMappedFormat(_local12, _local13, _local14); }; if (_arg1.match("collideCircle")){ if (Main.GAME_MANAGER != null){ for each (_local9 in Main.GAME_MANAGER.mNetworkedObjects) { if ((_local9 is Dino)){ _local15 = Dino(_local9); _local15.toggleAbsoluteServerDino(); }; }; }; }; } public function appendLine(_arg1:String, _arg2:Boolean=false):void{ tOutput_txt.appendText(_arg1); mTextBase.y = (mTextBase.y - (TEXT_SIZE * 1.215)); if (_arg2){ parseLine(_arg1); }; } public function textDown(_arg1:MouseEvent):void{ mTextBase.startDrag(); } public function set State(_arg1:String):void{ mState = _arg1; } public function get State():String{ return (mState); } } }//package engine.core
Section 154
//FPSDisplay (engine.core.FPSDisplay) package engine.core { import flash.events.*; import flash.display.*; import flash.text.*; import engine.display.*; import flash.utils.*; import dinowaurs.managers.*; import engine.networking.*; public class FPSDisplay { public static var mSpriteBase:MovieClip; private static var mInitialized:Boolean; private static var mLatency_txt:TextField; private static var mTextBase:Sprite; private static var mDisplaying:Boolean; private static var mFrameCount:uint; public static var performanceRating:int = -1; private static var mTimer:Timer; private static var mOutput_txt:TextField; public static function timeTick(_arg1:TimerEvent):void{ mOutput_txt.text = ("" + (mFrameCount * 2)); mFrameCount = 0; if (NetworkManager.latency < 200){ mLatency_txt.defaultTextFormat.color = 0xFF00; mLatency_txt.text = ("" + NetworkManager.latency); } else { if (NetworkManager.latency < 400){ mLatency_txt.defaultTextFormat.color = 0xFF; mLatency_txt.text = ("" + NetworkManager.latency); } else { mLatency_txt.defaultTextFormat.color = 0xFF0000; mLatency_txt.text = ("" + NetworkManager.latency); }; }; } public static function display():void{ GameData.GUI_BASE.addChild(mSpriteBase); mDisplaying = true; } public static function cull():void{ mSpriteBase.parent.removeChild(mSpriteBase); mDisplaying = false; } public static function initialize():void{ if (!mInitialized){ mFrameCount = 0; mTimer = new Timer(500, 100000); mTimer.addEventListener(TimerEvent.TIMER, timeTick); mTimer.start(); mSpriteBase = AssetLoader.getAssetMC("misc", "ping_widget"); mOutput_txt = mSpriteBase.hud_fps; mLatency_txt = mSpriteBase.hud_ping; mInitialized = true; }; } public static function toggle():void{ if (mDisplaying){ cull(); } else { display(); }; } public static function tick(_arg1:uint):void{ mFrameCount++; if (NetworkManager.latency < 200){ mLatency_txt.defaultTextFormat.color = 0xFF00; mLatency_txt.text = ("" + NetworkManager.latency); } else { if (NetworkManager.latency < 400){ mLatency_txt.defaultTextFormat.color = 0xFF; mLatency_txt.text = ("" + NetworkManager.latency); } else { mLatency_txt.defaultTextFormat.color = 0xFF0000; mLatency_txt.text = ("" + NetworkManager.latency); }; }; } } }//package engine.core
Section 155
//FrameWatcher (engine.core.FrameWatcher) package engine.core { import flash.events.*; import flash.display.*; import dinowaurs.*; import engine.display.*; import flash.utils.*; import dinowaurs.managers.*; import engine.networking.*; public class FrameWatcher extends MelbaObject { private static var mObjectIter:uint = 0; private static var mFlashTimeEnd:uint = 0; private static var mFlashTimeStart:uint = 0; public static var freeze:Boolean = false; private static var bInitialized:Boolean = false; private static var mTime:uint = 0; private static var mUsingLoop:Boolean = true; public static var mSubscribers:Array; private static var mAccumulator:uint = 0; public static var slowdown:int = 0; private static var mFrameNum:uint = 0; public static var villagersTicking:int = 0; public static var registeredTickables:Array; public static function registerTickable(_arg1:Tickable):void{ registeredTickables.push(_arg1); } public static function outputSubscribers():void{ var _local1:Tickable; for each (_local1 in mSubscribers) { trace(((_local1.ID.Value + "....") + _local1.ID.Name)); }; } public static function get AcitveTickablesCount():Number{ return (registeredTickables.length); } public static function initialize(_arg1:Stage):void{ if (bInitialized){ return; }; mSubscribers = new Array(); _arg1.addEventListener(Event.ENTER_FRAME, frameUpdate); registeredTickables = new Array(); bInitialized = true; } public static function unsubscribe(_arg1:Tickable):void{ var _local2:uint; while (_local2 < mSubscribers.length) { if (mSubscribers[_local2].ID.Value == _arg1.ID.Value){ mSubscribers[_local2] = mSubscribers.pop(); }; _local2++; }; } public static function frameUpdate(_arg1:Event):void{ var _local2:Tickable; var _local4:Tickable; var _local5:uint; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local11:uint; var _local3:uint = getTimer(); for each (_local4 in registeredTickables) { _local4.mFirstTick = true; }; mAccumulator = (mAccumulator + ((getTimer() - mTime) * GameData.SpeedMult)); _local5 = 10; mTime = getTimer(); mUsingLoop = true; if (mUsingLoop){ while (mAccumulator >= _local5) { _local7 = 0; while (_local7 < slowdown) { _local10 = (1 + 1); _local7++; }; _local8 = 0; for each (_local2 in registeredTickables) { if (_local2.bSubscribing){ if ((_local2 is BoneImp)){ if (_local2.mFirstTick){ if (BoneImp(_local2).mClip.numChildren > 0){ _local2.tick(_local5); }; }; } else { _local2.tick(_local5); }; _local2.mFirstTick = false; }; _local8++; }; _local9 = 0; while (_local9 < registeredTickables.length) { _local2 = registeredTickables[_local9]; if ((_local2 is BoneImp)){ }; if (_local2.myKillFlag){ _local2.kill(); if (_local9 != (registeredTickables.length - 1)){ registeredTickables[_local9] = registeredTickables.pop(); } else { registeredTickables.pop(); }; } else { _local9++; }; }; if (TileManager.mInitialized){ TileManager.tick(_local5); }; if (ScreenShakeManager.mInitialized){ ScreenShakeManager.tick(_local5); }; if (SoundManager.mInitialized){ SoundManager.tick(_local5); }; if (NetworkManager.mInitialized){ NetworkManager.tick(_local5); }; mAccumulator = (mAccumulator - _local5); }; for each (_local2 in registeredTickables) { if (_local2.bSubscribing){ _local2.mFirstTick = true; }; }; } else { FPSDisplay.tick(mAccumulator); TileManager.tick(mAccumulator); _local11 = 0; while (_local11 < mSubscribers.length) { mSubscribers[_local11].tick(mAccumulator); _local11++; }; mAccumulator = 0; }; var _local6:uint = getTimer(); } public static function set UseLoop(_arg1:Boolean):void{ mUsingLoop = _arg1; } public static function get SubscriberCount():Number{ return (mSubscribers.length); } public static function traceRegisteredInfo():void{ var _local1:Tickable; for each (_local1 in registeredTickables) { trace(("TICKABLE.name == " + _local1.ID.Name)); }; } } }//package engine.core
Section 156
//GameData (engine.core.GameData) package engine.core { import flash.display.*; import dinowaurs.*; import engine.display.*; public class GameData { public static var mActor:MelbaTile; private static var cull_top:Number = 0; private static var mSceneBase:Sprite; private static var cull_right:Number = 600; private static var speedMult:Number = 1; private static var cull_bottom:Number = 400; public static var mCanvasBase:Canvas; public static var mLevel:Level; private static var mInitialized:Boolean = false; public static var mDebugMode:Boolean; private static var screen_width:Number = (cull_right - cull_left); private static var mStageRef:Stage; private static var cull_left:Number = 0; public static var console:Console; private static var mLobbyBase:Sprite; public static var bgBitmap:Bitmap; private static var mMenuBase:Sprite; public static var baseBitmap:Bitmap; private static var screen_height:Number = (cull_bottom - cull_top); public static var BattleIntroBase:Sprite; public static var mCanvasCount:uint; private static var mBackgroundBase:Sprite; public static var Canvas_Console:Sprite; public static var testObject:MelbaTile; public static var totalMelbaObjects:int; public static var mGameBase:Sprite; private static var mGUIBase:Sprite; public static function set CULL_LEFT(_arg1:Number):void{ cull_left = _arg1; screen_width = (cull_right - cull_left); } public static function get LEVEL_LEFT():Number{ return (mLevel.level_left); } public static function get CanvasCount():Number{ return (mCanvasCount); } public static function get CULL_RIGHT():Number{ return (cull_right); } public static function get CULL_TOP():Number{ return (cull_top); } public static function set BACKGROUND_BASE(_arg1:Sprite):void{ mBackgroundBase = _arg1; } public static function get CLAMP_TOP():Number{ return (mLevel.camClamp_top); } public static function get LEVEL_WIDTH():Number{ return ((LEVEL_RIGHT - LEVEL_LEFT)); } public static function get SCREEN_WIDTH():Number{ return (screen_width); } public static function get SpeedMult():Number{ return (speedMult); } public static function get CLAMP_LEFT():Number{ return ((mLevel.camClamp_left + 1000)); } public static function set CULL_BOTTOM(_arg1:Number):void{ cull_bottom = _arg1; screen_height = (cull_bottom - cull_top); } public static function get LOBBY_BASE():Sprite{ return (mLobbyBase); } public static function get SCENE_BASE():Sprite{ return (mSceneBase); } public static function get CULL_BOTTOM():Number{ return (cull_bottom); } public static function initialize(_arg1:Stage):void{ if (!mInitialized){ mMenuBase = new Sprite(); _arg1.addChild(mMenuBase); mStageRef = _arg1; Canvas_Console = new Sprite(); _arg1.addChild(Canvas_Console); console = new Console(Canvas_Console, _arg1); resetGameBase(); mCanvasCount = 0; KeyWatch.initialize(mStageRef); }; } public static function get CULL_LEFT():Number{ return (cull_left); } public static function get CLAMP_BOTTOM():Number{ return (mLevel.camClamp_bottom); } public static function set CULL_TOP(_arg1:Number):void{ cull_top = _arg1; screen_height = (cull_bottom - cull_top); } public static function resetGameBase():void{ if (mGameBase != null){ if (mGameBase.parent != null){ mGameBase.parent.removeChild(mGameBase); }; mGameBase = null; }; mBackgroundBase = null; mSceneBase = null; mLobbyBase = null; mGUIBase = null; mGameBase = new Sprite(); mStageRef.addChild(mGameBase); mBackgroundBase = new Sprite(); mGameBase.addChild(mBackgroundBase); mSceneBase = new Sprite(); mGameBase.addChild(mSceneBase); mLobbyBase = new Sprite(); mGameBase.addChild(mLobbyBase); mGUIBase = new Sprite(); mGameBase.addChild(mGUIBase); BattleIntroBase = new Sprite(); mGameBase.addChild(BattleIntroBase); mStageRef.addChild(Canvas_Console); } public static function set CULL_RIGHT(_arg1:Number):void{ cull_right = _arg1; screen_width = (cull_right - cull_left); } public static function get CLAMP_RIGHT():Number{ return (mLevel.camClamp_right); } public static function get BACKGROUND_BASE():Sprite{ return (mBackgroundBase); } public static function get SCREEN_HEIGHT():Number{ return (screen_height); } public static function get LEVEL_BOTTOM():Number{ return (mLevel.level_bottom); } public static function set CanvasCount(_arg1:Number):void{ mCanvasCount = _arg1; } public static function get LEVEL_TOP():Number{ return (mLevel.level_top); } public static function set DebugMode(_arg1:Boolean):void{ mDebugMode = _arg1; } public static function get GUI_BASE():Sprite{ return (mGUIBase); } public static function get DebugMode():Boolean{ return (mDebugMode); } public static function get LEVEL_RIGHT():Number{ return (mLevel.level_right); } public static function get LEVEL_HEIGHT():Number{ return ((LEVEL_BOTTOM - LEVEL_TOP)); } public static function set SpeedMult(_arg1:Number):void{ speedMult = _arg1; } } }//package engine.core
Section 157
//KeyWatch (engine.core.KeyWatch) package engine.core { import flash.events.*; import flash.display.*; public class KeyWatch { private static var initialized:Boolean = false; private static var keysDown:Array = new Array(0x0100); public static function initialize(_arg1:Stage):void{ var _local2:uint; if (!initialized){ _arg1.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed); _arg1.addEventListener(KeyboardEvent.KEY_UP, keyReleased); _arg1.addEventListener(Event.DEACTIVATE, clearKeys); _local2 = 0; while (_local2 < keysDown.length) { keysDown[_local2] = false; _local2++; }; initialized = true; }; } private static function clearKeys(_arg1:Event):void{ keysDown = new Array(); } public static function isDown(_arg1:uint):Boolean{ if (!initialized){ throw (new Error("Key class has yet been initialized.")); }; return (Boolean(keysDown[_arg1])); } private static function keyPressed(_arg1:KeyboardEvent):void{ keysDown[_arg1.keyCode] = true; } private static function keyReleased(_arg1:KeyboardEvent):void{ if ((_arg1.keyCode in keysDown)){ keysDown[_arg1.keyCode] = false; }; } } }//package engine.core
Section 158
//MelbaID (engine.core.MelbaID) package engine.core { public class MelbaID { public var Value:uint; public var Name:String; private static var mIter:uint = 0; public function MelbaID(_arg1:String="null"){ Value = mIter++; Name = _arg1; } } }//package engine.core
Section 159
//MelbaObject (engine.core.MelbaObject) package engine.core { public class MelbaObject { public var ID:MelbaID; public function MelbaObject(_arg1:String=null){ ID = new MelbaID(_arg1); } public function networkUpdate(_arg1:Array):void{ ID.Value = parseInt(_arg1[2]); } } }//package engine.core
Section 160
//Rndm (engine.core.Rndm) package engine.core { import flash.display.*; public class Rndm { protected var seedInvalid:Boolean;// = true protected var _seed:uint;// = 0 protected var _pointer:uint;// = 0 protected var bmpd:BitmapData; protected static var _instance:Rndm; public function Rndm(_arg1:uint=0){ _seed = _arg1; bmpd = new BitmapData(1000, 200); } public function set seed(_arg1:uint):void{ if (_arg1 != _seed){ seedInvalid = true; _pointer = 0; }; _seed = _arg1; } public function random():Number{ if (seedInvalid){ bmpd.noise(_seed, 0, 0xFF, (((1 | 2) | 4) | 8)); seedInvalid = false; }; _pointer = ((_pointer + 1) % 200000); return ((((bmpd.getPixel32((_pointer % 1000), ((_pointer / 1000) >> 0)) * 0.999999999999998) + 1E-15) / 4294967295)); } public function sign(_arg1:Number=0.5):int{ return (((random())<_arg1) ? 1 : -1); } public function boolean(_arg1:Number=0.5):Boolean{ return ((random() < _arg1)); } public function float(_arg1:Number, _arg2:Number=NaN):Number{ if (isNaN(_arg2)){ _arg2 = _arg1; _arg1 = 0; }; return (((random() * (_arg2 - _arg1)) + _arg1)); } public function bit(_arg1:Number=0.5):int{ return (((random())<_arg1) ? 1 : 0); } public function reset():void{ _pointer = 0; } public function get seed():uint{ return (_seed); } public function integer(_arg1:Number, _arg2:Number=NaN):int{ if (isNaN(_arg2)){ _arg2 = _arg1; _arg1 = 0; }; return (Math.floor(float(_arg1, _arg2))); } public function set pointer(_arg1:uint):void{ _pointer = _arg1; } public function get pointer():uint{ return (_pointer); } public static function random():Number{ return (instance.random()); } public static function get pointer():uint{ return (instance.pointer); } public static function set seed(_arg1:uint):void{ instance.seed = _arg1; } public static function bit(_arg1:Number=0.5):int{ return (instance.bit(_arg1)); } public static function boolean(_arg1:Number=0.5):Boolean{ return (instance.boolean(_arg1)); } public static function get seed():uint{ return (instance.seed); } public static function get instance():Rndm{ if (_instance == null){ _instance = new (Rndm); }; return (_instance); } public static function reset():void{ instance.reset(); } public static function set pointer(_arg1:uint):void{ instance.pointer = _arg1; } public static function float(_arg1:Number, _arg2:Number=NaN):Number{ return (instance.float(_arg1, _arg2)); } public static function sign(_arg1:Number=0.5):int{ return (instance.sign(_arg1)); } public static function integer(_arg1:Number, _arg2:Number=NaN):int{ return (instance.integer(_arg1, _arg2)); } } }//package engine.core
Section 161
//Tickable (engine.core.Tickable) package engine.core { import dinowaurs.managers.*; public class Tickable extends MelbaObject { public var mFirstTick:Boolean; public var bSubscribing:Boolean;// = false protected var killFLAGGG:Boolean; public var myKillFlag:Boolean; private var resubscribe:Boolean;// = false public function Tickable(_arg1:String="tickable", _arg2:Boolean=false){ super(_arg1); myKillFlag = false; bSubscribing = _arg2; FrameWatcher.registerTickable(this); } public function startTicking():void{ bSubscribing = true; } override public function networkUpdate(_arg1:Array):void{ var _local2:String = _arg1[2]; super.networkUpdate(_arg1); if (_arg1[3] == "false"){ myKillFlag = false; } else { if (_arg1[3] == "true"){ myKillFlag = true; }; }; } public function stopTicking():void{ bSubscribing = false; } public function tick(_arg1:uint):void{ } public function kill():void{ if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.removeFromNetworkList(this); }; } } }//package engine.core
Section 162
//Canvas (engine.display.Canvas) package engine.display { import flash.display.*; import engine.core.*; public class Canvas extends MelbaObject { private var mBase:Sprite; private var mLayers:Array; public function Canvas(_arg1:Sprite, _arg2:String="canvas"){ super(_arg2); mBase = new Sprite(); _arg1.addChild(mBase); mLayers = new Array(); TileManager.addCanvas(this); } public function get Base():Sprite{ return (mBase); } public function initializeLayers(_arg1:uint):void{ var _local2:uint; while (_local2 < 0) { mLayers.push(new Canvas(mBase, ((ID.Name + "layer") + _local2))); _local2++; }; } public function removeChild(_arg1:MelbaPawn):void{ if (mBase.contains(_arg1.the)){ mBase.removeChild(_arg1.the); }; } public function getLayer(_arg1:uint):Canvas{ return (mLayers[_arg1]); } public function addChild(_arg1:MelbaPawn, _arg2:int=-1):void{ if (_arg2 != -1){ mLayers[_arg2].addChild(_arg1.the); } else { mBase.addChild(_arg1.the); }; } } }//package engine.display
Section 163
//MelbaActor (engine.display.MelbaActor) package engine.display { import engine.core.*; public class MelbaActor extends MelbaTile { public static var level_right:Number; public static var level_left:Number; public static var level_bottom:Number; public static var level_top:Number; public function MelbaActor(_arg1:Canvas, _arg2:MelbaPawn, _arg3:Number, _arg4:Number, _arg5:String="melbaActor", _arg6:Boolean=false){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); mDebugColor = 16724787; forceDisplay(); level_left = GameData.LEVEL_LEFT; level_right = GameData.LEVEL_RIGHT; level_top = GameData.LEVEL_TOP; level_bottom = GameData.LEVEL_BOTTOM; } override public function shiftHorizontal(_arg1:Number):void{ super.shiftHorizontal(_arg1); var _local2:* = mPawn.the.x; if ((((_local2 > (level_right + 100))) || ((_local2 < (level_left - 100))))){ myKillFlag = true; }; } override public function cull():void{ } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; } override public function kill():void{ super.kill(); } override public function shiftVertical(_arg1:Number):void{ super.shiftVertical(_arg1); var _local2:* = mPawn.the.y; if (_local2 > (level_bottom + 100)){ myKillFlag = true; }; } } }//package engine.display
Section 164
//MelbaPawn (engine.display.MelbaPawn) package engine.display { import flash.display.*; import flash.text.*; import engine.core.*; public class MelbaPawn extends MelbaObject { private var mBitmap:Bitmap; public var mSprite:Sprite; private var mFlipped:Number;// = 1 private var mDebugColor:uint; private var mBase:Sprite; public var InitialCenterX:Number; public var InitialCenterY:Number; public var mDebugOn:Boolean;// = false private var mDisplayType:uint; public var the:Sprite; public var mDebugInfo:TextField; public var mMovieClip:MovieClip; public function MelbaPawn(_arg1:DisplayObject, _arg2:uint, _arg3:String="melbaPawn"){ super(_arg3); mBase = new Sprite(); the = mBase; if (_arg2 == 1){ mMovieClip = MovieClip(_arg1); mBase.addChild(mMovieClip); } else { if (_arg2 == 2){ mSprite = Sprite(_arg1); mBase.addChild(mSprite); } else { if (_arg2 == 3){ mBitmap = Bitmap(_arg1); mBase.addChild(mBitmap); }; }; }; mDisplayType = _arg2; InitialCenterX = (_arg1.width * 0.5); InitialCenterY = (_arg1.height * 0.5); mDebugInfo = new TextField(); } public function get CenterY():Number{ return ((mBase.y + (mBase.height * 0.5))); } public function flipX():void{ if (mDisplayType == 1){ if (mFlipped == 1){ if (!ID.Name.match("dino")){ mMovieClip.x = (mMovieClip.x + mMovieClip.width); } else { mMovieClip.x = (mMovieClip.x + (InitialCenterX * 2)); }; } else { mMovieClip.x = 0; }; mMovieClip.scaleX = (mMovieClip.scaleX * -1); } else { if (mDisplayType == 2){ if (mFlipped == 1){ if (!ID.Name.match("dino")){ mSprite.x = (mSprite.x + mSprite.width); } else { mSprite.x = (mSprite.x + (InitialCenterX * 2)); }; } else { mSprite.x = 0; }; mSprite.x = (mSprite.x + (mSprite.width * mFlipped)); mSprite.scaleX = (mSprite.scaleX * -1); } else { if (mDisplayType == 3){ if (mFlipped == 1){ mBitmap.x = (mBitmap.x + mBitmap.width); } else { mBitmap.x = 0; }; mBitmap.x = (mBitmap.x + (mBitmap.width * mFlipped)); mBitmap.scaleX = (mBitmap.scaleX * -1); }; }; }; mFlipped = -(mFlipped); } public function updateDebugInfo(_arg1:MelbaID):void{ mDebugInfo.text = ((((("x=" + Math.round(mBase.x)) + "\ny=") + Math.round(mBase.y)) + "\nID=") + ID.Value); } public function get CenterX():Number{ return ((mBase.x + (mBase.width * 0.5))); } public function get Flipped():Number{ return (mFlipped); } public function recalculateInitialCenter():void{ InitialCenterX = (the.width / 2); InitialCenterY = (the.height / 2); } public function debugDraw(_arg1:uint):void{ mDebugColor = _arg1; mDebugInfo.defaultTextFormat = new TextFormat("myriad pro", 20, _arg1); mBase.graphics.lineStyle(2, _arg1, 0.75); mBase.graphics.lineTo((mBase.width / mBase.scaleX), 0); mBase.graphics.lineTo((mBase.width / mBase.scaleX), (mBase.height / mBase.scaleY)); mBase.graphics.lineTo(0, (mBase.height / mBase.scaleY)); mBase.graphics.lineTo(0, 0); mBase.addChild(mDebugInfo); mDebugOn = true; } public function get content():DisplayObject{ if (mDisplayType == 1){ return (mMovieClip); }; if (mDisplayType == 2){ return (mSprite); }; if (mDisplayType == 3){ return (mBitmap); }; return (null); } } }//package engine.display
Section 165
//MelbaTile (engine.display.MelbaTile) package engine.display { import flash.geom.*; import engine.core.*; import engine.collision.*; public class MelbaTile extends Tickable { public var mInTileList:Boolean;// = false public var mTileSectors:Array; protected var mPawn:MelbaPawn; protected var mDebugColor:uint;// = 3407667 private var mCollisionType:String; public var melbaActor:Boolean; protected var mCanvas:Canvas; public var permCenter:Point; protected var mDisplaying:Boolean; public var Pawn:MelbaPawn; public var mAvatarTile:Boolean;// = false private var mRefreshTimer:uint; public function MelbaTile(_arg1:Canvas, _arg2:MelbaPawn, _arg3:Number, _arg4:Number, _arg5:String="melbaTile", _arg6:Boolean=false){ super(_arg5, _arg6); melbaActor = false; mPawn = _arg2; Pawn = mPawn; mPawn.the.x = int(_arg3); mPawn.the.y = int(_arg4); mCanvas = _arg1; mDisplaying = false; if ((mPawn.the.x % 100) == 0){ mPawn.the.x++; }; if ((mPawn.the.y % 100) == 0){ mPawn.the.y++; }; mTileSectors = new Array(); TileManager.addTile(this); mCollisionType = " "; if (permCenter == null){ permCenter = new Point(); }; } public function get Displaying():Boolean{ return (mDisplaying); } public function display():void{ if (mCanvas == null){ trace((" NULL CANVAS PROBLEM!!! I AM " + ID.Name)); }; if (!mDisplaying){ if (mCanvas != null){ mCanvas.addChild(mPawn); }; mDisplaying = true; }; } public function get CenterX():Number{ return (int((mPawn.the.x + (mPawn.the.width * 0.5)))); } public function shiftHorizontal(_arg1:Number):void{ mPawn.the.x = (mPawn.the.x + _arg1); } public function get ParentCanvas():Canvas{ return (mCanvas); } public function get CenterY():Number{ return (int((mPawn.the.y + (mPawn.the.height * 0.5)))); } public function inSectorCulling(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{ if (((mPawn.the.width / 2) + (_arg4 / 2)) > Math.abs((CenterX - (_arg1 + (_arg4 / 2))))){ if (((mPawn.the.height / 2) + (_arg3 / 2)) > Math.abs((CenterY - (_arg2 + (_arg3 / 2))))){ display(); return; }; }; cull(); } public function set RefreshTimer(_arg1:uint):void{ mRefreshTimer = _arg1; } public function forceDisplay():void{ TileManager.forceDisplay(this); } public function checkForCollision(_arg1:MelbaTile):Boolean{ if (_arg1.ID.Value == this.ID.Value){ return (false); }; if (mCollisionType == " "){ return (false); }; if (mCollisionType == "box"){ if (_arg1.CollisionType == "box"){ return (mPawn.the.hitTestObject(_arg1.Pawn.the)); }; }; return (false); } override public function kill():void{ if (mCanvas != null){ mCanvas.removeChild(mPawn); }; TileManager.removeTile(this); CollisionManager.removeCollider(this); mCanvas = null; mPawn = null; super.kill(); } override public function networkUpdate(_arg1:Array):void{ super.networkUpdate(_arg1); var _local2:Number = ((Pawn.the.x + Pawn.InitialCenterX) - _arg1[4]); var _local3:Number = (Pawn.the.y - _arg1[5]); if (_local2 < 0){ _local2 = -(_local2); }; if (_local3 < 0){ _local3 = -(_local3); }; if ((((_local2 > 400)) || ((_local3 > 400)))){ Pawn.the.x = (_arg1[4] - Pawn.InitialCenterX); Pawn.the.y = _arg1[5]; } else { Pawn.the.x = (Pawn.the.x + ((_arg1[4] - Pawn.the.x) * 0.01)); Pawn.the.y = (Pawn.the.y + ((_arg1[5] - Pawn.the.y) * 0.01)); }; if (mAvatarTile){ if (Pawn.the.x > GameData.LEVEL_RIGHT){ Pawn.the.x = GameData.LEVEL_RIGHT; }; if (Pawn.the.x < GameData.LEVEL_LEFT){ Pawn.the.x = GameData.LEVEL_LEFT; }; if (Pawn.the.y > GameData.LEVEL_BOTTOM){ Pawn.the.y = GameData.LEVEL_BOTTOM; }; if (Pawn.the.y < GameData.LEVEL_TOP){ Pawn.the.y = GameData.LEVEL_TOP; }; }; } public function shiftVertical(_arg1:Number):void{ mPawn.the.y = (mPawn.the.y + _arg1); } public function setCollision(_arg1:String):void{ mCollisionType = _arg1; CollisionManager.addCollider(this); } public function signalCollision(_arg1:MelbaTile):void{ } public function cull():void{ if (mCanvas == null){ trace((" NULL CANVAS PROBLEM!!! I AM " + ID.Name)); }; if (mDisplaying){ mCanvas.removeChild(mPawn); mDisplaying = false; }; } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; if (mAvatarTile){ TileManager.cameraPoint.x = int((mPawn.the.x + permCenter.x)); TileManager.cameraPoint.y = int((mPawn.the.y + permCenter.y)); }; } public function get CollisionType():String{ return (mCollisionType); } } }//package engine.display
Section 166
//TileManager (engine.display.TileManager) package engine.display { import flash.display.*; import flash.geom.*; import engine.core.*; import flash.utils.*; import dinowaurs.managers.*; import flash.ui.*; public class TileManager { private static var mTileList:Array; public static var mZooming:Boolean = false; public static var mZoomLevel:uint; private static var mLockToAvatar:Boolean = false; private static var mTileSectors:Array; private static var mLocalCullPhaseMax:uint; private static var mCanvi:Array; public static var scrollSpeedX:Number = 0; public static var scrollSpeedY:Number = 0; public static var bgScrollX:Boolean; public static var mInitialized:Boolean = false; private static var mAvatar:MelbaTile; public static var bgScrollY:Boolean; public static var transitionPoint:Point; private static var mTileListLength:uint; private static var mLocalCullPhase:uint; private static var mSectorPosX:Number; private static var mSectorPosY:Number; public static var mZoomRate:Number = 1; public static var cameraPoint:Point; public static var transitionSpeed:int; public static var transitionPeriod:int; public static var targetPoint:Point; public static function initialize():void{ var _local1:Number; var _local2:uint; if (!mInitialized){ cameraPoint = new Point(); transitionPeriod = 0; transitionSpeed = 1; transitionPoint = new Point(); mTileList = new Array(); mTileListLength = 0; mInitialized = true; GameData.SCENE_BASE.scaleX = 1; GameData.SCENE_BASE.scaleY = 1; mTileSectors = new Array((Math.ceil((GameData.LEVEL_WIDTH / GameData.SCREEN_WIDTH)) + 9)); _local1 = mTileSectors.length; _local2 = 0; while (_local2 < mTileSectors.length) { mTileSectors[_local2] = new TileSector((_local2 * GameData.SCREEN_WIDTH)); _local2++; }; mLocalCullPhase = 0; mLocalCullPhaseMax = 4; mCanvi = new Array(); mZoomLevel = 1; }; } public static function clearAll():void{ var _local1:int; while (_local1 < mTileSectors.length) { mTileSectors[_local1].clearAll(); _local1++; }; mTileSectors = new Array(); mTileList = new Array(); } public static function localCull():void{ var _local1:Number = (-(GameData.SCENE_BASE.x) + (GameData.CULL_LEFT * 4)); var _local2:Number = (-(GameData.SCENE_BASE.y) + (GameData.CULL_TOP * 4)); var _local3:Number = (GameData.CULL_RIGHT - (GameData.CULL_LEFT * 4)); var _local4:Number = (GameData.CULL_BOTTOM - (GameData.CULL_TOP * 4)); var _local5:uint = (uint((mTileList.length / mLocalCullPhaseMax)) * mLocalCullPhase); var _local6:uint = (uint((mTileList.length / mLocalCullPhaseMax)) * (mLocalCullPhase + 1)); var _local7:uint; var _local8:uint = _local5; while (_local8 < _local6) { mTileList[_local8].inSectorCulling(_local1, _local2, _local4, _local3); _local7++; _local8++; }; mLocalCullPhase++; if (mLocalCullPhase > (mLocalCullPhaseMax - 1)){ mLocalCullPhase = 0; }; } public static function removeTileFromSector(_arg1:Point, _arg2:MelbaTile):void{ if (mTileSectors[_arg1.x] != null){ mTileSectors[_arg1.x].removeTile(_arg2); }; } public static function shiftVertical(_arg1:Number):void{ GameData.SCENE_BASE.y = (GameData.SCENE_BASE.y + int(_arg1)); bgScrollY = true; } public static function shiftHorizontal(_arg1:Number):void{ GameData.SCENE_BASE.x = (GameData.SCENE_BASE.x + int(_arg1)); bgScrollX = true; if (GameData.SCENE_BASE.x > (GameData.CLAMP_RIGHT * GameData.SCENE_BASE.scaleX)){ GameData.SCENE_BASE.x = int((GameData.CLAMP_RIGHT * GameData.SCENE_BASE.scaleX)); scrollSpeedX = 0; bgScrollX = false; } else { if (GameData.SCENE_BASE.x < ((GameData.CLAMP_LEFT * GameData.SCENE_BASE.scaleX) + Main.stageRef.stageWidth)){ GameData.SCENE_BASE.x = int(((GameData.CLAMP_LEFT * GameData.SCENE_BASE.scaleX) + Main.stageRef.stageWidth)); scrollSpeedX = 0; bgScrollX = false; }; }; } public static function tick(_arg1:uint):void{ var _local2:Number; var _local3:Number; if (GameData.SCENE_BASE.scaleX != (1 / mZoomLevel)){ mZooming = true; if (GameData.SCENE_BASE.scaleX < (1 / mZoomLevel)){ GameData.SCENE_BASE.scaleX = (GameData.SCENE_BASE.scaleX - ((GameData.SCENE_BASE.scaleX - (1 / mZoomLevel)) / (25 * mZoomRate))); GameData.SCENE_BASE.scaleY = (GameData.SCENE_BASE.scaleY - ((GameData.SCENE_BASE.scaleY - (1 / mZoomLevel)) / (25 * mZoomRate))); } else { GameData.SCENE_BASE.scaleX = (GameData.SCENE_BASE.scaleX - ((GameData.SCENE_BASE.scaleX - (1 / mZoomLevel)) / (10 * mZoomRate))); GameData.SCENE_BASE.scaleY = (GameData.SCENE_BASE.scaleY - ((GameData.SCENE_BASE.scaleY - (1 / mZoomLevel)) / (10 * mZoomRate))); }; _local2 = (GameData.SCENE_BASE.scaleX - (1 / mZoomLevel)); if (_local2 < 0){ _local2 = -(_local2); }; if (_local2 < 0.001){ GameData.SCENE_BASE.scaleX = (1 / mZoomLevel); GameData.SCENE_BASE.scaleY = (1 / mZoomLevel); }; } else { mZooming = false; }; if (!mLockToAvatar){ if (KeyWatch.isDown(Keyboard.LEFT)){ scrollSpeedX++; }; if (KeyWatch.isDown(Keyboard.RIGHT)){ scrollSpeedX--; }; if (KeyWatch.isDown(Keyboard.UP)){ scrollSpeedY++; }; if (KeyWatch.isDown(Keyboard.DOWN)){ scrollSpeedY--; }; if (scrollSpeedX > 40){ scrollSpeedX = 40; }; if (scrollSpeedY > 40){ scrollSpeedY = 40; }; if (scrollSpeedX < -40){ scrollSpeedX = -40; }; if (scrollSpeedY < -40){ scrollSpeedY = -40; }; } else { if (mAvatar == null){ mLockToAvatar = false; return; }; if (transitionPoint == null){ transitionPoint = new Point(); }; targetPoint = new Point(int(((mAvatar.Pawn.the.x + mAvatar.permCenter.x) + (transitionPoint.x * (transitionPeriod / 100)))), int(((mAvatar.Pawn.the.y + mAvatar.permCenter.y) + (transitionPoint.y * (transitionPeriod / 100))))); _local3 = 0; if (mAvatar.ID.Name.match("player dino")){ _local3 = 75; }; scrollSpeedX = int((((-(GameData.SCENE_BASE.x) + ((GameData.SCREEN_WIDTH * 0.5) + GameData.CULL_LEFT)) - (targetPoint.x * GameData.SCENE_BASE.scaleX)) / (1 * (_arg1 * 0.0625)))); scrollSpeedY = int(((((-(GameData.SCENE_BASE.y) + ((GameData.SCREEN_HEIGHT * 0.5) + GameData.CULL_TOP)) - (targetPoint.y * GameData.SCENE_BASE.scaleY)) + _local3) / (1 * (_arg1 * 0.0625)))); transitionPeriod = (transitionPeriod - transitionSpeed); if (transitionPeriod < 0){ transitionPeriod = 0; }; }; if (scrollSpeedY != 0){ shiftVertical((scrollSpeedY * (_arg1 * 0.0625))); }; if (scrollSpeedX != 0){ shiftHorizontal((scrollSpeedX * (_arg1 * 0.0625))); }; checkForSectorChange(); } public static function addTileToSector(_arg1:Point, _arg2:MelbaTile):void{ if (mTileSectors[_arg1.x] != null){ mTileSectors[_arg1.x].addTile(_arg2); }; } public static function removeTile(_arg1:MelbaTile):void{ var _local2:uint; while (_local2 < mTileList.length) { if (mTileList[_local2].ID.Value == _arg1.ID.Value){ mTileList[_local2].mInTileList = false; mTileList[_local2] = mTileList[(mTileList.length - 1)]; mTileList.pop(); }; _local2++; }; _local2 = 0; while (_local2 < mTileSectors.length) { mTileSectors[_local2].removeTile(_arg1); _local2++; }; if (mAvatar != null){ if (mAvatar.ID.Value == _arg1.ID.Value){ mAvatar = null; mLockToAvatar = false; }; }; } public static function addCanvas(_arg1:Canvas):void{ mCanvi.push(_arg1); } public static function setAvatar(_arg1:MelbaTile):void{ if (mAvatar != null){ mAvatar.mAvatarTile = false; }; mAvatar = _arg1; mLockToAvatar = true; mAvatar.mAvatarTile = true; } public static function getSectorXY(_arg1:Number, _arg2:Number):TileSector{ var _local3:int = int((_arg1 / GameData.SCREEN_WIDTH)); var _local4:int = int((_arg2 / GameData.SCREEN_HEIGHT)); if (_local3 < mTileSectors.length){ if (_local3 >= 0){ return (mTileSectors[_local3]); }; }; return (null); } public static function forceDisplay(_arg1:MelbaTile):void{ if (_arg1.mInTileList){ return; }; mTileList.push(_arg1); _arg1.mInTileList = true; _arg1.display(); } public static function getPointSectorXY(_arg1:Number, _arg2:Number):Point{ var _local3:int = int((_arg1 / GameData.SCREEN_WIDTH)); var _local4:int = int((_arg2 / GameData.SCREEN_HEIGHT)); if (_local3 < mTileSectors.length){ if (_local3 >= 0){ return (new Point(_local3, _local4)); }; }; return (null); } private static function sortCanvi():void{ var _local1:uint; while (_local1 < mCanvi.length) { GameData.SCENE_BASE.setChildIndex(mCanvi[_local1].Base, _local1); _local1++; }; } public static function drawSectors(_arg1:int, _arg2:int):void{ var _local3:Sprite = new Sprite(); GameData.SCENE_BASE.addChild(_local3); _local3.graphics.lineStyle(2, 0, 1); var _local4:uint; while (_local4 < _arg1) { _local3.graphics.moveTo((_local4 * GameData.SCREEN_WIDTH), 0); _local3.graphics.lineTo((_local4 * GameData.SCREEN_WIDTH), (100 * GameData.SCREEN_HEIGHT)); _local4++; }; var _local5:uint; while (_local5 < _arg2) { _local3.graphics.moveTo(0, (_local5 * GameData.SCREEN_HEIGHT)); _local3.graphics.lineTo((100 * GameData.SCREEN_WIDTH), (_local5 * GameData.SCREEN_HEIGHT)); _local5++; }; } public static function addTile(_arg1:MelbaTile):void{ var _local2:int = int((_arg1.Pawn.the.x + ((_arg1.Pawn.the.width * _arg1.Pawn.the.scaleX) * 0.5))); var _local3:int = int(((_arg1.Pawn.the.width * _arg1.Pawn.the.scaleX) * 0.5)); var _local4:uint; while (_local4 < mTileSectors.length) { if (Math.abs((_local2 - mTileSectors[_local4].CenterX)) < (_local3 + mTileSectors[_local4].RadiusX)){ mTileSectors[_local4].addTile(_arg1); _arg1.mTileSectors.push(mTileSectors[_local4]); }; _local4++; }; } public static function clearTileList():void{ var _local1:uint; while (_local1 < mTileList.length) { if (mTileList[_local1] != mAvatar){ mTileList[_local1].cull(); mTileList[_local1].mInTileList = false; }; _local1++; }; mTileList = new Array(); mTileListLength = 0; } public static function checkForSectorChange():void{ var _local1:TileSector; var _local2:uint; var _local3:MelbaTile; if (int((-(GameData.SCENE_BASE.x) / (GameData.SCREEN_WIDTH * GameData.SCENE_BASE.scaleX))) != mSectorPosX){ mSectorPosX = int((-(GameData.SCENE_BASE.x) / (GameData.SCREEN_WIDTH * GameData.SCENE_BASE.scaleX))); clearTileList(); _local2 = 0; while (_local2 < (2 * mZoomLevel)) { _local1 = mTileSectors[(_local2 + mSectorPosX)]; if (_local1 != null){ for each (_local3 in _local1.Tiles) { mTileList.push(_local3); _local3.mInTileList = true; _local3.display(); mTileListLength++; }; }; _local2++; }; }; } public static function get AVATAR():MelbaTile{ return (mAvatar); } } }//package engine.display
Section 167
//TileSector (engine.display.TileSector) package engine.display { import engine.core.*; public class TileSector extends MelbaObject { private var mWidth:Number; private var mXPos:Number; private var mTiles:Array; public function TileSector(_arg1:Number, _arg2:String="tileSector", _arg3:Boolean=false){ super(_arg2); mXPos = _arg1; mWidth = (GameData.CULL_RIGHT - GameData.CULL_LEFT); mTiles = new Array(); } public function removeTile(_arg1:MelbaTile):void{ var _local2:uint; while (_local2 < mTiles.length) { if (mTiles[_local2].ID.Value == _arg1.ID.Value){ mTiles[_local2] = mTiles[(mTiles.length - 1)]; mTiles.pop(); }; _local2++; }; } public function get CenterX():Number{ return (int((mXPos + (mWidth * 0.5)))); } public function get Tiles():Array{ return (mTiles); } public function get Width():Number{ return (mWidth); } public function get RadiusX():Number{ return (int((mWidth * 0.5))); } public function addTile(_arg1:MelbaTile):void{ mTiles.push(_arg1); } public function clearAll():void{ var _local1:MelbaTile; for each (_local1 in mTiles) { _local1.myKillFlag = true; if (!_local1.bSubscribing){ _local1.startTicking(); }; }; mTiles = new Array(); } public function get XIter():int{ return (Math.floor((mXPos / mWidth))); } public function get XPos():Number{ return (mXPos); } public function contains(_arg1:Number):Boolean{ if (_arg1 > mXPos){ if (_arg1 < (mXPos + mWidth)){ return (true); }; }; return (false); } } }//package engine.display
Section 168
//NetworkManager (engine.networking.NetworkManager) package engine.networking { import flash.events.*; import flash.display.*; import dinowaurs.dinos.*; import flash.text.*; import dinowaurs.betaMenu.*; import dinowaurs.*; import it.gotoandplay.smartfoxserver.*; import engine.core.*; import dinowaurs.weapons.*; import flash.net.*; import flash.utils.*; import it.gotoandplay.smartfoxserver.data.*; import dinowaurs.managers.*; public class NetworkManager extends MelbaObject { public static var port:int; public static var lastTime:int = 0; public static var thingerlonger:Number = 1; public static var state:uint; public static var gameRoomToJoin:String; public static var tutorialChoice:int = -1; public static var mInitialized:Boolean = false; public static var loginFailCount:int = 5; public static var heartbeatTimer:int = 0; public static var discod:Boolean = false; public static var ip:String; public static var trafficInfos:Array; public static var myLevel:Level; public static var myStatsTimer:Timer; public static var myUsername:String = "noUserName"; public static var dinoChoice:String = "bronto"; public static var newsURL:String; public static var trafficHash:Array; public static var challengedUser:String; public static var loggedIn:Boolean = false; public static var failedConnections:int = 0; public static var sandboxGame:Boolean = false; public static var timeoutLimit:int = 15000; public static var currentLobby:String = "Lobby"; public static var dinoSlotChoice:int = 0; public static var myPassword:String; public static var connectTimeoutTimer:Timer; public static var noStatsPlease:Boolean = false; public static var sfc:SmartFoxClient; public static var latency:Number = 0; public static function getPlayerStats(_arg1:Array):void{ var _local2:Array = new Array("playerStats"); var _local3:int; while (_local3 < _arg1.length) { _local2.push(_arg1[_local3]); _local3++; }; serverMessage(_local2); } public static function oogChatMsg(_arg1:String, _arg2:String):void{ serverMessage(["oogChatMSG", _arg2, _arg1]); } public static function onJoinRoomHandler(_arg1:SFSEvent):void{ var _local2:Room; var _local3:Object; var _local4:Array; var _local5:String; var _local6:User; sfc.getRoomList(); trace(("joined a room: " + sfc.getActiveRoom().getName())); if ((((sfc.getActiveRoom().getName() == "Lobby")) && ((state == 1)))){ trace("gotta do a new game thing!!L!J!LKJ!LJ!L!J"); state = 2; } else { if (sfc.getActiveRoom().getName() == "MatchQueue"){ } else { if (state == 3){ trace(("send that joinGame thing, dino choice ==" + dinoSlotChoice)); serverMessage(new Array("joinGame", Main.currentDino)); }; }; }; if (Main.betaMenu != null){ if (Main.betaMenu.currentArenaLobby != null){ _local2 = _arg1.params.room; if (_local2.getName() == "Lobby"){ return; }; _local3 = _arg1.params.room.getUserList(); _local4 = new Array(); for (_local5 in _local3) { _local6 = _local3[_local5]; _local4.push(_local6); }; Main.betaMenu.currentArenaLobby.fillList(_local4); Main.betaMenu.currentArenaLobby.setUserCount(_local4.length); }; }; } public static function initialize():void{ if (!mInitialized){ sfc = new SmartFoxClient(true); ip = "dinowaurs.kongregate.com"; port = 9339; sfc.addEventListener(SFSEvent.onConnection, onConnectionHandler); sfc.addEventListener(SFSEvent.onLogin, onLoginHandler); sfc.addEventListener(SFSEvent.onRoomListUpdate, onRoomListUpdate); sfc.addEventListener(SFSEvent.onJoinRoom, onJoinRoomHandler); sfc.addEventListener(SFSEvent.onConnectionLost, connectionLost); sfc.addEventListener(SFSEvent.onUserEnterRoom, refreshRooms2); sfc.addEventListener(SFSEvent.onUserLeaveRoom, refreshRooms2); sfc.addEventListener(SFSEvent.onExtensionResponse, onExtensionResponse); sfc.addEventListener(SFSEvent.onUserCountChange, roomUserCountChange); sfc.addEventListener(SFSEvent.onDebugMessage, onDebugMessage); state = 0; myLevel = new Level(); GameData.mLevel = myLevel; mInitialized = true; connectTimeoutTimer = new Timer(10000); connectTimeoutTimer.addEventListener(TimerEvent.TIMER, connectionTimeout); }; } public static function getRoomList():void{ if (sfc.isConnected){ sfc.getRoomList(); }; } public static function startSandboxGame():void{ if (Main.dinoSlots[Main.currentDino].dinoType == "none"){ return; }; Main.rankedMatch = false; sfc.sendXtMessage("DinoServer", "newGame", new Array("true", tutorialChoice, Main.currentDino), SmartFoxClient.XTMSG_TYPE_STR); } public static function chatMsg(_arg1:Array):void{ var _local2:String = _arg1[2]; var _local3:String = _arg1[4]; trace(((_local2 + ": ") + _local3)); UIManager.chatBox.appendLine((((_local2 + ": ") + _local3) + "\n")); } public static function onRoomListUpdate(_arg1:SFSEvent):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; if (myStatsTimer == null){ myStatsTimer = new Timer(300000); myStatsTimer.addEventListener(TimerEvent.TIMER, getMyStatsTimer); serverMessage(new Array("playerStats", myUsername)); }; if (!myStatsTimer.running){ myStatsTimer.start(); }; if (!ItemManager.itemsBeenGot){ ItemManager.requestAllItems(); ItemManager.requestInventory(); }; if (state == 1){ NetworkManager.serverMessage(new Array("joinLobby", "Lobby")); }; if (state == 3){ }; if (Main.betaMenu != null){ _local2 = sfc.getRoomByName("lobbyWinter").getUserCount(); _local3 = sfc.getRoomByName("lobbyDesert").getUserCount(); _local4 = sfc.getRoomByName("lobbyWaste").getUserCount(); _local5 = sfc.getRoomByName("lobbyJungle").getUserCount(); Main.betaMenu.updateRoomCounts(_local2, _local3, _local4, _local5); }; } public static function disconnect():void{ sfc.disconnect(); } public static function tick(_arg1:uint):void{ var _local2:int = getTimer(); if (loggedIn){ if (heartbeatTimer > timeoutLimit){ Main.disco("playerDrop"); loggedIn = false; discod = true; sfc.debug = true; connect(); GameData.console.appendLine((((Main.getDate().toDateString() + " : ") + Main.getDate().toTimeString()) + " DISCO TIME OUT!\n")); }; } else { heartbeatTimer = 0; }; lastTime = _local2; } public static function onLoginHandler(_arg1:SFSEvent):void{ if (_arg1.params.success){ trace("Logged in successfully!"); sfc.sendXtMessage("DinoServer", "login", new Array(myUsername, myPassword), SmartFoxClient.XTMSG_TYPE_STR); if (Main.GAME_MANAGER == null){ state = 1; }; Main.myUserID = sfc.myUserId; loggedIn = true; GameData.console.appendLine((((Main.getDate().toDateString() + " : ") + Main.getDate().toTimeString()) + " SFC logged IN! THIS IS THE WRONG LOGIN\n")); } else { trace("login failed"); }; } public static function connectionLost(_arg1:SFSEvent):void{ if (loggedIn){ Main.disco("playerDrop"); loggedIn = false; discod = true; sfc.debug = true; if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.discoPause(); }; GameData.console.appendLine((((Main.getDate().toDateString() + " : ") + Main.getDate().toTimeString()) + " SFC.CONNECTION_LOST!\n")); connect(); }; } public static function connectionTimeout(_arg1:TimerEvent):void{ connect(); } public static function challengePlayer(_arg1:String, _arg2:Boolean):void{ Main.rankedMatch = false; serverMessage(new Array("playerChallenge", _arg1, Main.currentDino, _arg2)); challengedUser = _arg1; } public static function kongLoginResponse(_arg1:SFSEvent):void{ var _local2:Object; var _local3:int; var _local4:Array; var _local5:StatsDisplay; var _local6:MenuScreen; var _local7:int; var _local8:DisplayObject; trace("kongLoginResponse"); if (_arg1.params.dataObj.success){ GameData.console.appendLine((((Main.getDate().toDateString() + " : ") + Main.getDate().toTimeString()) + " SFC logged IN! \n")); if (!Main.unKong){ KongApiManager.kongregate.services.setMultiplayerConnection("DinoServer", sfc, null); }; if (Main.GAME_MANAGER == null){ state = 1; }; loggedIn = true; sfc.debug = false; for each (_local2 in _arg1.params.dataObj) { trace(_local2); }; if (_arg1.params.dataObj.dinoConfig != null){ GameConfig.initialize(_arg1.params.dataObj.dinoConfig); }; if (_arg1.params.dataObj.accessories != null){ ItemManager.dnaInventoryGot(_arg1.params.dataObj.accessories); }; _local4 = Main.dinoSlots; if (_arg1.params.dataObj.dino0 != null){ if (!(((_arg1.params.dataObj.dino0[1] == "none")) && (!((Main.dinoSlots[0].dinoType == "none"))))){ Main.dinoSlots[0].dinoName = _arg1.params.dataObj.dino0[0]; Main.dinoSlots[0].dinoType = _arg1.params.dataObj.dino0[1]; Main.dinoSlots[0].dinoColor = _arg1.params.dataObj.dino0[2]; _local3 = 3; while (_local3 < _arg1.params.dataObj.dino0.length) { if (_arg1.params.dataObj.accessories != null){ Main.dinoSlots[0].addAccessory(_arg1.params.dataObj.dino0[_local3]); }; _local3++; }; if (Main.betaMenu != null){ Main.betaMenu.updateDinoSelectors(); }; }; }; if (_arg1.params.dataObj.dino1 != null){ if (!(((_arg1.params.dataObj.dino1[1] == "none")) && (!((Main.dinoSlots[1].dinoType == "none"))))){ Main.dinoSlots[1].dinoName = _arg1.params.dataObj.dino1[0]; Main.dinoSlots[1].dinoType = _arg1.params.dataObj.dino1[1]; Main.dinoSlots[1].dinoColor = _arg1.params.dataObj.dino1[2]; _local3 = 3; while (_local3 < _arg1.params.dataObj.dino1.length) { if (_arg1.params.dataObj.accessories != null){ Main.dinoSlots[1].addAccessory(_arg1.params.dataObj.dino1[_local3]); }; _local3++; }; if (Main.betaMenu != null){ Main.betaMenu.updateDinoSelectors(); }; }; }; if (_arg1.params.dataObj.dino2 != null){ if (!(((_arg1.params.dataObj.dino2[1] == "none")) && (!((Main.dinoSlots[2].dinoType == "none"))))){ Main.dinoSlots[2].dinoName = _arg1.params.dataObj.dino2[0]; Main.dinoSlots[2].dinoType = _arg1.params.dataObj.dino2[1]; Main.dinoSlots[2].dinoColor = _arg1.params.dataObj.dino2[2]; _local3 = 3; while (_local3 < _arg1.params.dataObj.dino2.length) { if (_arg1.params.dataObj.accessories != null){ Main.dinoSlots[2].addAccessory(_arg1.params.dataObj.dino2[_local3]); }; _local3++; }; if (Main.betaMenu != null){ Main.betaMenu.updateDinoSelectors(); }; }; }; if (Main.dinoSlots[0] != null){ DinoInfo(Main.dinoSlots[0]).boostCode = _arg1.params.dataObj.boost0; DinoInfo(Main.dinoSlots[0]).boostChoices = _arg1.params.dataObj.boostChoice0; }; if (Main.dinoSlots[1] != null){ DinoInfo(Main.dinoSlots[1]).boostCode = _arg1.params.dataObj.boost1; DinoInfo(Main.dinoSlots[1]).boostChoices = _arg1.params.dataObj.boostChoice1; }; if (Main.dinoSlots[2] != null){ DinoInfo(Main.dinoSlots[2]).boostCode = _arg1.params.dataObj.boost2; DinoInfo(Main.dinoSlots[2]).boostChoices = _arg1.params.dataObj.boostChoice2; }; Main.setGraphicDetail(_arg1.params.dataObj.graphicsQuality); trace(("incoming graphic detail == " + _arg1.params.dataObj.graphicsQuality)); Main.setArenaDetail(_arg1.params.dataObj.arenaQuality); trace(("incoming arena detail == " + _arg1.params.dataObj.arenaQuality)); Main.GAME_SETTINGS.ToolTips = _arg1.params.dataObj.tooltipsState; if (Main.GAME_SETTINGS.ToolTips == 1){ trace(" *********** GOOT TOOL TIPS == 1"); if (Main.betaMenu != null){ Main.betaMenu.turnHelpTipsOff(); }; } else { trace(" *********** GOOT TOOL TIPS == 0"); if (Main.betaMenu != null){ Main.betaMenu.turnHelpTipsOn(); }; }; Main.GAME_SETTINGS.MusicVolume = (parseFloat(_arg1.params.dataObj.musicVolume) / 100); if (Main.GAME_SETTINGS.MusicVolume > 1){ Main.GAME_SETTINGS.MusicVolume = 1; }; Main.GAME_SETTINGS.EffectsVolume = (parseFloat(_arg1.params.dataObj.sfxVolume) / 100); if (Main.GAME_SETTINGS.EffectsVolume > 1){ Main.GAME_SETTINGS.EffectsVolume = 1; }; Main.GAME_SETTINGS.AccessoryScreenHelp = parseFloat(_arg1.params.dataObj.accessoryScreenHelp); Main.GAME_SETTINGS.BattleScreenHelp = parseFloat(_arg1.params.dataObj.battleScreenHelp); Main.friendsList = _arg1.params.dataObj.friends; KongApiManager.myAvatarURL = _arg1.params.dataObj.chatAvatar; Main.myUserID = _arg1.params.dataObj.userID; trace(_arg1.params.dataObj.motd); if (Main.betaMenu != null){ if (Main.betaMenu.initialized){ MenuScreen.setupNews(_arg1.params.dataObj.motd); } else { newsURL = _arg1.params.dataObj.motd; }; } else { newsURL = _arg1.params.dataObj.motd; }; trace(("username ===== " + myUsername)); if (KongApiManager.justSignedIn){ Main.myPlayerStats = null; Main.GUEST_MODE_ENABLED = false; if (Main.betaMenu != null){ for each (_local5 in Main.betaMenu.userStatsDisplays) { _local5.guestMode = false; if (Main.myPlayerStats != null){ _local5.updateStats(Main.myPlayerStats); }; }; for each (_local6 in Main.betaMenu.baseScreen.screens) { _local7 = 0; while (_local7 < _local6.base.numChildren) { _local8 = _local6.base.getChildAt(_local7); if (((_local8.name.match("userName_")) && ((_local8 is MovieClip)))){ Main.setTextF(MovieClip(_local8).text, "menuUserName", Main.kongUsername); }; _local7++; }; if (_local6.myLevelWidget != null){ _local6.myLevelWidget.clip.visible = true; }; }; Main.betaMenu.updateDinoViewers(); }; KongApiManager.justSignedIn = false; }; myStatsTimer = null; GameData.console.appendLine((((Main.getDate().toDateString() + " : ") + Main.getDate().toTimeString()) + " GOT THROUGH LOGIN RESPONSE! \n")); } else { trace("login failed"); GameData.console.appendLine((((Main.getDate().toDateString() + " : ") + Main.getDate().toTimeString()) + " SFC FAILED to log in! \n")); loginFailCount--; }; } public static function getMyStatsTimer(_arg1:TimerEvent):void{ myStatsTimer.stop(); myStatsTimer.reset(); serverMessage(new Array("playerStats", myUsername)); } public static function onDebugMessage(_arg1:SFSEvent):void{ } public static function sendXtMessage(_arg1:String, _arg2:String, _arg3, _arg4:String):void{ if (sfc.isConnected){ sfc.sendXtMessage(_arg1, _arg2, _arg3, _arg4); }; } public static function serverMessage(_arg1:Array):void{ if (sfc.isConnected){ sfc.sendXtMessage("DinoServer", _arg1[0], _arg1, SmartFoxClient.XTMSG_TYPE_STR); }; } public static function joinLobby(_arg1:String):void{ currentLobby = _arg1; NetworkManager.serverMessage(new Array("joinLobby", currentLobby)); } public static function getDinoInfo():void{ serverMessage(new Array("getDinoInfo")); } public static function quitGame():void{ serverMessage(new Array("quitGame")); } public static function getUserCount():void{ serverMessage(new Array("getUserCount")); } public static function sendChatMsg(_arg1:String):void{ serverMessage(["chatMsg", _arg1]); } public static function login(_arg1:String, _arg2:String):void{ trace(((("LOOG ING IN***********************" + _arg1) + " : ") + _arg2)); if (loginFailCount < 0){ return; }; GameData.console.appendLine((((((((Main.getDate().toDateString() + " : ") + Main.getDate().toTimeString()) + " Attempting to login! user==") + _arg1) + " pw==") + _arg2) + " \n")); if (loggedIn){ return; }; if (!sfc.isConnected){ return; }; sfc.login("dinowaurs", _arg1, _arg2); myUsername = _arg1; myPassword = _arg2; } public static function connect():void{ if (!mInitialized){ return; }; connectTimeoutTimer.reset(); connectTimeoutTimer.start(); sfc.connect(ip, port); GameData.console.appendLine((((((Main.getDate().toDateString() + " : ") + Main.getDate().toTimeString()) + " SFC attempt to connect to ") + ip) + " \n")); } public static function refreshRooms(_arg1:MouseEvent):void{ sfc.getRoomList(); } public static function onConnectionHandler(_arg1:SFSEvent):void{ if (_arg1.params.success){ failedConnections = 0; trace("Great, successfully connected"); connectTimeoutTimer.stop(); GameData.console.appendLine((((Main.getDate().toDateString() + " : ") + Main.getDate().toTimeString()) + " SFC connected! \n")); Main.letsLogIn(Main.kongUsername, Main.kongPW); } else { failedConnections++; connectTimeoutTimer.stop(); trace("Ouch, connection failed."); loggedIn = false; if (failedConnections < 8){ connectTimeoutTimer.reset(); connectTimeoutTimer.start(); } else { Main.disco("disconnectScreen"); discod = true; loggedIn = false; }; GameData.console.appendLine((((Main.getDate().toDateString() + " : ") + Main.getDate().toTimeString()) + " SFC FAILED to connect! \n")); }; } public static function netInfo():void{ var _local2:networkMSG_info; var _local1:Array = new Array(); for each (_local2 in trafficInfos) { _local1.push(_local2); }; _local1.sortOn("myLN", (Array.NUMERIC | Array.DESCENDING)); for each (_local2 in _local1) { GameData.console.appendLine((((((("** " + _local2.handle) + " -- ") + _local2.myLN) + " -- ") + (Math.floor(((_local2.myLN * 100) / networkMSG_info.totalLN)) / 100)) + "%\n")); }; } public static function onExtensionResponse(_arg1:SFSEvent):void{ var _local4:int; var _local6:String; var _local7:networkMSG_info; var _local8:ArenaLobby; var _local9:Array; var _local10:int; var _local11:DinoInfo; var _local12:MaroonedScreen; var _local13:int; var _local14:int; var _local15:MovieClip; var _local16:Array; var _local2:String = _arg1.params.dataObj._cmd; var _local3:String = _local2; if ((((_local2 == "")) || ((_local2 == null)))){ _local3 = _arg1.params.dataObj[0]; }; if (trafficHash == null){ trafficHash = new Array(); trafficInfos = new Array(); }; var _local5:int = _local3.length; for each (_local6 in _arg1.params.dataObj) { if (_local6 != null){ _local5 = (_local5 + _local6.length); }; }; if (!trafficHash[_local3]){ trafficHash[_local3] = trafficInfos.length; _local7 = new networkMSG_info(_local3, _local5); trafficInfos.push(_local7); } else { networkMSG_info(trafficInfos[trafficHash[_local3]]).call(_local5); }; if (_arg1.params.dataObj.data != null){ if (_arg1.params.dataObj.data.balance != null){ Main.setKredBalance(_arg1.params.dataObj.data.balance); }; }; if (_local2 != null){ if (_local2 == "kongLogin"){ kongLoginResponse(_arg1); return; }; }; heartbeatTimer = 0; if (_local3.match(/^terrain/)){ Main.GAME_MANAGER.updateTerrainData(_arg1.params.dataObj); } else { if (_local3 == "kongLoadItems"){ ItemManager.allItemsGot(_arg1.params.dataObj.data); } else { if (_local3 == "kongLoadUserItems"){ ItemManager.inventoryGot(_arg1.params.dataObj.data); } else { if (_local3 == "kongUseItemInstance"){ } else { if (_local3 == "playersOnline"){ if (Main.betaMenu != null){ if (Main.betaMenu.matchingScreen != null){ Main.betaMenu.matchingScreen.updatePlayersOnline(parseInt(String(_arg1.params.dataObj[2]))); }; }; } else { if (_local3 == "cancelChallenge"){ Main.challengeCanceled(_arg1.params.dataObj[2]); } else { if (_local3 == "configUpdate"){ GameConfig.initialize(_arg1.params.dataObj); } else { if (_local3 == "dnaAccessories"){ ItemManager.dnaInventoryGot(_arg1.params.dataObj); } else { if (_local3 == "playerStats"){ Main.gotPlayerStats(_arg1.params.dataObj); } else { if (_local3 == "boostUpdate"){ Main.gotPlayerBoosts(_arg1.params.dataObj); if (Main.betaMenu != null){ Main.betaMenu.updateDinoSelectors(); }; } else { if (_local3 == "myBoosts"){ Main.myBoosts(_arg1.params.dataObj); } else { if (_local3 == "bothPlayersReady"){ Main.startGame(); } else { if (_local3 == "ping"){ trace("got a PING"); serverMessage(new Array("pong")); } else { if (_local3 == "playerChallenge"){ Main.rankedMatch = false; Main.challengeRequest(_arg1.params.dataObj[2], _arg1.params.dataObj[3]); } else { if (_local3 == "rejectedChallenge"){ Main.challengeRejected(_arg1.params.dataObj[2]); } else { if (_local3 == "lat"){ latency = _arg1.params.dataObj[2]; } else { if (_local3 == "acceptChallenge"){ Main.acceptChallenge(); } else { if (_local3 == "confirmChallenge"){ Main.challengeConfirmed(challengedUser); } else { if (_local3 == "waitChallenge"){ Main.waitChallenge(_arg1.params.dataObj[2], _arg1.params.dataObj[3]); } else { if (_local3 == "staticDinoInfo"){ Main.newStaticDino(_arg1.params.dataObj); } else { if (_local3 == "userList"){ if (Main.betaMenu != null){ if (Main.betaMenu.currentArenaLobby != null){ _local8 = Main.betaMenu.currentArenaLobby; if (Main.betaMenu.currentArenaLobby != null){ if (_arg1.params.dataObj[2] == currentLobby){ _local9 = new Array(); _local10 = 3; while (_local10 < _arg1.params.dataObj.length) { trace(_arg1.params.dataObj[_local10]); _local9.push(_arg1.params.dataObj[_local10]); _local10++; }; Main.betaMenu.currentArenaLobby.fillList(_local9); }; }; }; }; } else { if (_local3 == "userCount"){ } else { if (_local3 == "loggedIn"){ myUsername = _arg1.params.dataObj[2]; myPassword = _arg1.params.dataObj[3]; } else { if (_local3 == "loginFail"){ } else { if (_local3 == "clusterSplode"){ if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.clusterBombSplode(_arg1.params.dataObj[2]); }; } else { if (_local3 == "dinoInfo"){ Main.GAME_MANAGER.updateDinoInfo(_arg1.params.dataObj); } else { if (_local3 == "setup"){ Main.initialGameState.push(_arg1.params.dataObj); } else { if (_local3 == "oppUsername"){ trace(("OPPUSERNAME" + _arg1.params.dataObj[2])); Main.updateOpponentUsername(_arg1.params.dataObj[2]); _local11 = new DinoInfo(_arg1.params.dataObj[4], _arg1.params.dataObj[3], _arg1.params.dataObj[5]); trace(((("OPP dinoName == " + _local11.dinoName) + " type==") + _local11.dinoType)); _local4 = 5; while (_local4 < (_arg1.params.dataObj.length - 2)) { trace((" acc==" + _arg1.params.dataObj[_local4])); _local11.addAccessory(_arg1.params.dataObj[_local4]); _local4++; }; KongApiManager.myAvatarURL = _arg1.params.dataObj[_local4]; KongApiManager.oppAvatarURL = _arg1.params.dataObj[(_local4 + 1)]; KongApiManager.spawnTab(); if (Main.battleIntro == null){ Main.enemyDinoInfo = _local11; } else { Main.enemyDinoInfo = _local11; Main.battleIntro.loadRightDino(_local11); }; } else { if (_local3 == "gameKilled"){ if ((((Main.GAME_MANAGER == null)) && (!((Main.battleIntro == null))))){ Main.battleIntro.myKillFlag = true; SoundManager.stopAllFX(); SoundManager.playFX("AMB_Winter"); _local12 = new MaroonedScreen(true); GameData.BattleIntroBase.addChild(_local12.base); Main.endGame("disco", _local12); Main.initialGameState = new Array(); } else { if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.playerLeft(); if (Main.bsod != null){ if (Main.bsod.parent != null){ Main.bsod.parent.removeChild(Main.bsod); }; }; }; }; } else { if (_local3 == "jetpackHeat"){ _local13 = parseInt(_arg1.params.dataObj[2]); _local14 = parseInt(_arg1.params.dataObj[3]); trace(_local13); if (_local13 <= 0){ _local13 = 1; }; UIManager.jetpackHeatThing.gotoAndStop(_local13); _local15 = UIManager.jetpackHeatThing; if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ Main.GAME_MANAGER.mPlayerDino.jetpackState = _local14; }; }; } else { if (_local3 == "gamePaused"){ GameData.console.appendLine((("NETWORK RESPONSE: " + _local3) + "\n")); if (Main.GAME_MANAGER != null){ Main.disco("opponentDrop"); Main.GAME_MANAGER.discoPause(); }; } else { if (_local3 == "gameResume"){ if (_arg1.params.dataObj[2] == 0){ if (Main.battleIntro != null){ Main.battleIntro.myKillFlag = true; }; }; if (Main.GAME_MANAGER != null){ if (_arg1.params.dataObj[2] == 0){ Main.endGame("disco"); Main.enemyDinoInfo = null; Main.betaMenu = new BetaMenu(); } else { if (Main.bsod != null){ if (Main.bsod.parent != null){ Main.bsod.parent.removeChild(Main.bsod); Main.bsod = null; }; }; Main.GAME_MANAGER.discoResume(); }; }; } else { if (_local3 == "fullUpdate"){ if (_local3 != null){ GameData.console.appendLine((("NETWORK RESPONSE: " + _local3) + "\n")); }; if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.fullNetworkUpdate(_arg1.params.dataObj); } else { if (Main.initialGameState.length >= 1){ Main.initialGameState.push(_arg1.params.dataObj); }; }; } else { if (_local3 == "sU"){ if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.fullNetworkUpdate(_arg1.params.dataObj); } else { if (Main.initialGameState.length >= 1){ Main.initialGameState.push(_arg1.params.dataObj); }; }; } else { if (_local3 == "stats"){ if (!noStatsPlease){ Main.updateGameStats(_arg1.params.dataObj); }; noStatsPlease = false; } else { if (_local3 == "lose"){ if (Main.GAME_MANAGER == null){ return; }; Main.cannonOnly = false; Main.wonTheGame = false; Main.GAME_MANAGER.lose(); if (currentLobby != "none"){ NetworkManager.serverMessage(new Array("joinLobby", currentLobby)); }; _local14 = 1; } else { if (_local3 == "playerLeft"){ if ((((Main.GAME_MANAGER == null)) && (!((Main.battleIntro == null))))){ Main.battleIntro.myKillFlag = true; SoundManager.stopAllFX(); SoundManager.playFX("AMB_Winter"); _local12 = new MaroonedScreen(true); GameData.BattleIntroBase.addChild(_local12.base); Main.endGame("disco", _local12); Main.initialGameState = new Array(); }; if (Main.GAME_MANAGER == null){ return; }; Main.GAME_MANAGER.win(); if (currentLobby != "none"){ NetworkManager.serverMessage(new Array("joinLobby", currentLobby)); }; _local14 = 1; } else { if (_local3 == "win"){ if (Main.GAME_MANAGER == null){ return; }; Main.GAME_MANAGER.win(); if (currentLobby != "none"){ NetworkManager.serverMessage(new Array("joinLobby", currentLobby)); }; _local14 = 1; } else { if (_local3 == "levelUpdate"){ _local16 = new Array(); _local4 = 2; while (_local4 < _arg1.params.dataObj.length) { _local16.push(_arg1.params.dataObj[_local4]); _local4++; }; myLevel.networkUpdate(_local16); } else { if (_local3 == "chatMsg"){ chatMsg(_arg1.params.dataObj); } else { if (_local3 == "oogChatMsg"){ if (Main.opponentUsername == _arg1.params.dataObj[3]){ if (!Main.unKong){ KongApiManager.kongregate.chat.displayMessage(_arg1.params.dataObj[3], _arg1.params.dataObj[2]); }; }; } else { if (_local3 == "leftChat"){ if (!Main.unKong){ KongApiManager.kongregate.chat.displayMessage(" ", (_arg1.params.dataObj[2] + " has left chat...")); }; } else { if (_local3 == "dino"){ } else { if (_local3 == "strikeDeploy"){ if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.airStriking = true; }; } else { if (_local3 == "hammerDropped"){ if (Main.GAME_MANAGER != null){ if (Main.GAME_MANAGER.mPlayerDino != null){ if (Main.GAME_MANAGER.mPlayerDino.mGun != null){ if ((Main.GAME_MANAGER.mPlayerDino.mGun is StrikeWeapon)){ StrikeWeapon(Main.GAME_MANAGER.mPlayerDino.mGun).mDeployMode = false; }; }; }; }; } else { if (_local3 == "dummyDino"){ } else { if (_local3 == "gameReady"){ trace(("new room name == " + _arg1.params.dataObj[2])); gameRoomToJoin = _arg1.params.dataObj[2]; _local14 = 3; sfc.getRoomList(); serverMessage(new Array("joinGame", Main.currentDino)); Main.startBattleIntro(); }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; } public static function refreshRooms2(_arg1:SFSEvent):void{ sfc.getRoomList(); } public static function roomUserCountChange(_arg1:SFSEvent):void{ if (Main.betaMenu != null){ if (Main.betaMenu.currentArenaLobby != null){ Main.betaMenu.currentArenaLobby.refresh(null); }; }; } public static function startNewGame():void{ Main.tutorialGame = -1; Main.rankedMatch = true; sfc.sendXtMessage("DinoServer", "matchMe", new Array("false", Main.currentDino), SmartFoxClient.XTMSG_TYPE_STR); state = 2; } } }//package engine.networking class networkMSG_info { public var calls:int; public var handle:String; public var myLN:int; public static var totalLN:int = 0; private function networkMSG_info(_arg1:String, _arg2:int){ myLN = _arg2; totalLN = (totalLN + _arg2); handle = _arg1; calls = 1; } public function call(_arg1:int):void{ myLN = (myLN + _arg1); totalLN = (totalLN + _arg1); calls++; } }
Section 169
//Particle (engine.physics.Particle) package engine.physics { import flash.geom.*; import engine.display.*; import dinowaurs.managers.*; public class Particle extends PhysicsActor { private var mFadeOut:Number; private var mAttractionX:Number; private var mAge:uint; private var mAttraction:Boolean;// = false private var mLifetime:uint; private var mLifeInFrames:Boolean;// = true private var mAttractionY:Number; public function Particle(_arg1:Canvas, _arg2:MelbaPawn, _arg3:Number, _arg4:Number, _arg5:uint, _arg6:String="particle", _arg7:Boolean=true){ super(_arg1, _arg2, _arg3, _arg4, _arg6, true); mAge = 0; mLifetime = _arg5; mFadeOut = 0; forceDisplay(); mLifeInFrames = _arg7; mDebugColor = 16777011; } public function animationDone():void{ mPawn.the.parent.removeChild(mPawn.the); } public function setAttraction(_arg1:Number, _arg2:Number):void{ mAttraction = true; mAttractionX = _arg1; mAttractionY = _arg2; } override public function tick(_arg1:uint):void{ var _local2:Number; super.tick(_arg1); if (myKillFlag){ return; }; mPawn.the.alpha = (mPawn.the.alpha - mFadeOut); if (mPawn.the.alpha <= 0.001){ myKillFlag = true; }; if (mLifeInFrames){ if (mFirstTick){ mAge++; }; } else { mAge = (mAge + _arg1); }; if (mAge > mLifetime){ myKillFlag = true; }; if (mAttraction){ _local2 = Math.sqrt((((mAttractionX - mPawn.the.x) * (mAttractionX - mPawn.the.x)) + ((mAttractionY - mPawn.the.y) * (mAttractionY - mPawn.the.y)))); _local2 = (_local2 * 10); applyForce(new Point(((mAttractionX - mPawn.the.x) / _local2), ((mAttractionY - mPawn.the.y) / _local2))); Friction = (Friction - 0.0001); }; } public function get FadeOut():Number{ return (mFadeOut); } public function set FadeOut(_arg1:Number):void{ mFadeOut = _arg1; } override public function kill():void{ if (mAvatarTile){ if (Main.GAME_MANAGER != null){ Main.GAME_MANAGER.transitionCameraToDino(); }; }; super.kill(); } } }//package engine.physics
Section 170
//PhysicsActor (engine.physics.PhysicsActor) package engine.physics { import flash.geom.*; import engine.display.*; public class PhysicsActor extends MelbaActor { private var mMass:Number; private var mTerminalVelocity:Number; private var mFriction:Number; protected var mInertia:Point; private var mAngularFriction:Number; protected var mGlobalForce:Point; private var mAngularMomentum:Number; public function PhysicsActor(_arg1:Canvas, _arg2:MelbaPawn, _arg3:Number, _arg4:Number, _arg5:String="physicsActor", _arg6:Boolean=false){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); mPawn.the.x = _arg3; mPawn.the.y = _arg4; mInertia = new Point(0, 0); mAngularMomentum = 0; mGlobalForce = new Point(0, 0); mFriction = 1; mAngularFriction = 0; mMass = 1; mTerminalVelocity = 20; mDebugColor = 3355647; } public function set GlobalForce(_arg1:Point):void{ mGlobalForce = _arg1; } override public function networkUpdate(_arg1:Array):void{ super.networkUpdate(_arg1); mInertia.x = parseFloat(_arg1[6]); mInertia.y = parseFloat(_arg1[7]); mGlobalForce.x = parseFloat(_arg1[8]); mGlobalForce.y = parseFloat(_arg1[9]); } override public function tick(_arg1:uint):void{ super.tick(_arg1); if (myKillFlag){ return; }; if (mInertia.x != 0){ shiftHorizontal((mInertia.x * (_arg1 / 16))); }; if (mInertia.y != 0){ shiftVertical((mInertia.y * (_arg1 / 16))); }; if (((!((ID.Name == "boulder"))) && (!((ID.Name == "arrow"))))){ mInertia.x = (mInertia.x + (mGlobalForce.x * (_arg1 / 16))); mInertia.y = (mInertia.y + (mGlobalForce.y * (_arg1 / 16))); } else { mInertia.x = (mInertia.x + ((mGlobalForce.x * 3) * (_arg1 / 16))); mInertia.y = (mInertia.y + ((mGlobalForce.y * 3) * (_arg1 / 16))); }; if (mAngularMomentum != 0){ mPawn.content.rotation = (mPawn.content.rotation + mAngularMomentum); }; mAngularMomentum = (mAngularMomentum * mAngularFriction); } public function get Friction():Number{ return (mFriction); } public function applyForce(_arg1:Point):void{ mInertia.x = (mInertia.x + _arg1.x); mInertia.y = (mInertia.y + _arg1.y); } public function set Mass(_arg1:Number):void{ mMass = _arg1; } public function get GlobalForce():Point{ return (mGlobalForce); } public function get Inertia():Point{ return (mInertia); } public function set Friction(_arg1:Number):void{ mFriction = _arg1; } public function applyAngularForce(_arg1:Number):void{ mAngularMomentum = (mAngularMomentum + _arg1); } public function set AngularFriction(_arg1:Number):void{ mAngularFriction = _arg1; } } }//package engine.physics
Section 171
//PhysicsManager (engine.physics.PhysicsManager) package engine.physics { import flash.geom.*; import flash.utils.*; public class PhysicsManager { private static var mInitialized:Boolean = false; private static var mPhysicsObjects:Dictionary; private static var mGlobalForce:Point; public static function addObject(_arg1:PhysicsActor):void{ mPhysicsObjects[_arg1.ID] = _arg1; } public static function removeObject(_arg1:PhysicsActor):void{ mPhysicsObjects[_arg1.ID] = null; } public static function setGlobalForce(_arg1:Point):void{ mGlobalForce = _arg1; } public static function get GLOBAL_FORCE():Point{ return (mGlobalForce); } public static function initialize():void{ if (!mInitialized){ mPhysicsObjects = new Dictionary(true); mGlobalForce = new Point(0, 0); }; } } }//package engine.physics
Section 172
//Color (fl.motion.Color) package fl.motion { import flash.display.*; import flash.geom.*; public class Color extends ColorTransform { private var _tintColor:Number;// = 0 private var _tintMultiplier:Number;// = 0 public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8); } private function deriveTintColor():uint{ var _local1:Number = (1 / this.tintMultiplier); var _local2:uint = Math.round((this.redOffset * _local1)); var _local3:uint = Math.round((this.greenOffset * _local1)); var _local4:uint = Math.round((this.blueOffset * _local1)); var _local5:uint = (((_local2 << 16) | (_local3 << 8)) | _local4); return (_local5); } public function set brightness(_arg1:Number):void{ if (_arg1 > 1){ _arg1 = 1; } else { if (_arg1 < -1){ _arg1 = -1; }; }; var _local2:Number = (1 - Math.abs(_arg1)); var _local3:Number = 0; if (_arg1 > 0){ _local3 = (_arg1 * 0xFF); }; this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2)); this.redOffset = (this.greenOffset = (this.blueOffset = _local3)); } private function parseXML(_arg1:XML=null):Color{ var _local3:XML; var _local4:String; var _local5:uint; if (!_arg1){ return (this); }; var _local2:XML = _arg1.elements()[0]; if (!_local2){ return (this); }; for each (_local3 in _local2.attributes()) { _local4 = _local3.localName(); if (_local4 == "tintColor"){ _local5 = (Number(_local3.toString()) as uint); this.tintColor = _local5; } else { this[_local4] = Number(_local3.toString()); }; }; return (this); } public function get tintColor():uint{ return (this._tintColor); } public function set tintColor(_arg1:uint):void{ this.setTint(_arg1, this.tintMultiplier); } public function get brightness():Number{ return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1)); } public function set tintMultiplier(_arg1:Number):void{ this.setTint(this.tintColor, _arg1); } public function get tintMultiplier():Number{ return (this._tintMultiplier); } public function setTint(_arg1:uint, _arg2:Number):void{ this._tintColor = _arg1; this._tintMultiplier = _arg2; this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2))); var _local3:uint = ((_arg1 >> 16) & 0xFF); var _local4:uint = ((_arg1 >> 8) & 0xFF); var _local5:uint = (_arg1 & 0xFF); this.redOffset = Math.round((_local3 * _arg2)); this.greenOffset = Math.round((_local4 * _arg2)); this.blueOffset = Math.round((_local5 * _arg2)); } public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{ var _local4:Number = (1 - _arg3); var _local5:uint = ((_arg1 >> 24) & 0xFF); var _local6:uint = ((_arg1 >> 16) & 0xFF); var _local7:uint = ((_arg1 >> 8) & 0xFF); var _local8:uint = (_arg1 & 0xFF); var _local9:uint = ((_arg2 >> 24) & 0xFF); var _local10:uint = ((_arg2 >> 16) & 0xFF); var _local11:uint = ((_arg2 >> 8) & 0xFF); var _local12:uint = (_arg2 & 0xFF); var _local13:uint = ((_local5 * _local4) + (_local9 * _arg3)); var _local14:uint = ((_local6 * _local4) + (_local10 * _arg3)); var _local15:uint = ((_local7 * _local4) + (_local11 * _arg3)); var _local16:uint = ((_local8 * _local4) + (_local12 * _arg3)); var _local17:uint = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16); return (_local17); } public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{ var _local4:Number = (1 - _arg3); var _local5:ColorTransform = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3))); return (_local5); } public static function fromXML(_arg1:XML):Color{ return (Color(new (Color).parseXML(_arg1))); } } }//package fl.motion
Section 173
//Room (it.gotoandplay.smartfoxserver.data.Room) package it.gotoandplay.smartfoxserver.data { public class Room { private var maxSpectators:int; private var maxUsers:int; private var userList:Array; private var name:String; private var userCount:int; private var specCount:int; private var temp:Boolean; private var limbo:Boolean; private var id:int; private var myPlayerIndex:int; private var game:Boolean; private var variables:Array; private var priv:Boolean; public function Room(_arg1:int, _arg2:String, _arg3:int, _arg4:int, _arg5:Boolean, _arg6:Boolean, _arg7:Boolean, _arg8:Boolean, _arg9:int=0, _arg10:int=0){ this.id = _arg1; this.name = _arg2; this.maxSpectators = _arg4; this.maxUsers = _arg3; this.temp = _arg5; this.game = _arg6; this.priv = _arg7; this.limbo = _arg8; this.userCount = _arg9; this.specCount = _arg10; this.userList = []; this.variables = []; } public function getUser(_arg1):User{ var _local3:String; var _local4:User; var _local2:User; if (typeof(_arg1) == "number"){ _local2 = userList[_arg1]; } else { if (typeof(_arg1) == "string"){ for (_local3 in userList) { _local4 = this.userList[_local3]; if (_local4.getName() == _arg1){ _local2 = _local4; break; }; }; }; }; return (_local2); } public function setUserCount(_arg1:int):void{ this.userCount = _arg1; } public function getMyPlayerIndex():int{ return (this.myPlayerIndex); } public function removeUser(_arg1:int):void{ var _local2:User = userList[_arg1]; if (((this.game) && (_local2.isSpectator()))){ specCount--; } else { userCount--; }; delete userList[_arg1]; } public function addUser(_arg1:User, _arg2:int):void{ userList[_arg2] = _arg1; if (((this.game) && (_arg1.isSpectator()))){ specCount++; } else { userCount++; }; } public function getUserCount():int{ return (this.userCount); } public function getId():int{ return (this.id); } public function setIsLimbo(_arg1:Boolean):void{ this.limbo = _arg1; } public function getVariables():Array{ return (variables); } public function isLimbo():Boolean{ return (this.limbo); } public function getMaxUsers():int{ return (this.maxUsers); } public function getMaxSpectators():int{ return (this.maxSpectators); } public function getName():String{ return (this.name); } public function isPrivate():Boolean{ return (this.priv); } public function setSpectatorCount(_arg1:int):void{ this.specCount = _arg1; } public function clearVariables():void{ this.variables = []; } public function isTemp():Boolean{ return (this.temp); } public function setVariables(_arg1:Array):void{ this.variables = _arg1; } public function getSpectatorCount():int{ return (this.specCount); } public function getVariable(_arg1:String){ return (variables[_arg1]); } public function setMyPlayerIndex(_arg1:int):void{ this.myPlayerIndex = _arg1; } public function isGame():Boolean{ return (this.game); } public function clearUserList():void{ this.userList = []; this.userCount = 0; this.specCount = 0; } public function getUserList():Array{ return (this.userList); } } }//package it.gotoandplay.smartfoxserver.data
Section 174
//User (it.gotoandplay.smartfoxserver.data.User) package it.gotoandplay.smartfoxserver.data { public class User { private var isSpec:Boolean; private var pId:int; private var name:String; private var variables:Array; private var isMod:Boolean; private var id:int; public function User(_arg1:int, _arg2:String){ this.id = _arg1; this.name = _arg2; this.variables = []; this.isSpec = false; this.isMod = false; } public function getName():String{ return (this.name); } public function clearVariables():void{ this.variables = []; } public function getVariables():Array{ return (this.variables); } public function setModerator(_arg1:Boolean):void{ this.isMod = _arg1; } public function isSpectator():Boolean{ return (this.isSpec); } public function getId():int{ return (this.id); } public function isModerator():Boolean{ return (this.isMod); } public function setVariables(_arg1:Object):void{ var _local2:String; var _local3:*; for (_local2 in _arg1) { _local3 = _arg1[_local2]; if (_local3 != null){ this.variables[_local2] = _local3; } else { delete this.variables[_local2]; }; }; } public function getVariable(_arg1:String){ return (this.variables[_arg1]); } public function setIsSpectator(_arg1:Boolean):void{ this.isSpec = _arg1; } public function setPlayerId(_arg1:int):void{ this.pId = _arg1; } public function getPlayerId():int{ return (this.pId); } } }//package it.gotoandplay.smartfoxserver.data
Section 175
//ExtHandler (it.gotoandplay.smartfoxserver.handlers.ExtHandler) package it.gotoandplay.smartfoxserver.handlers { import it.gotoandplay.smartfoxserver.*; import it.gotoandplay.smartfoxserver.util.*; public class ExtHandler implements IMessageHandler { private var sfs:SmartFoxClient; public function ExtHandler(_arg1:SmartFoxClient){ this.sfs = _arg1; } public function handleMessage(_arg1:Object, _arg2:String):void{ var _local3:Object; var _local4:SFSEvent; var _local5:XML; var _local6:String; var _local7:int; var _local8:String; var _local9:Object; if (_arg2 == SmartFoxClient.XTMSG_TYPE_XML){ _local5 = (_arg1 as XML); _local6 = _local5.body.@action; _local7 = int(_local5.body.@id); if (_local6 == "xtRes"){ _local8 = _local5.body.toString(); _local9 = ObjectSerializer.getInstance().deserialize(_local8); _local3 = {}; _local3.dataObj = _local9; _local3.type = _arg2; _local4 = new SFSEvent(SFSEvent.onExtensionResponse, _local3); sfs.dispatchEvent(_local4); }; } else { if (_arg2 == SmartFoxClient.XTMSG_TYPE_JSON){ _local3 = {}; _local3.dataObj = _arg1.o; _local3.type = _arg2; _local4 = new SFSEvent(SFSEvent.onExtensionResponse, _local3); sfs.dispatchEvent(_local4); } else { if (_arg2 == SmartFoxClient.XTMSG_TYPE_STR){ _local3 = {}; _local3.dataObj = _arg1; _local3.type = _arg2; _local4 = new SFSEvent(SFSEvent.onExtensionResponse, _local3); sfs.dispatchEvent(_local4); }; }; }; } } }//package it.gotoandplay.smartfoxserver.handlers
Section 176
//IMessageHandler (it.gotoandplay.smartfoxserver.handlers.IMessageHandler) package it.gotoandplay.smartfoxserver.handlers { public interface IMessageHandler { function handleMessage(_arg1:Object, _arg2:String):void; } }//package it.gotoandplay.smartfoxserver.handlers
Section 177
//SysHandler (it.gotoandplay.smartfoxserver.handlers.SysHandler) package it.gotoandplay.smartfoxserver.handlers { import it.gotoandplay.smartfoxserver.*; import flash.utils.*; import it.gotoandplay.smartfoxserver.data.*; import it.gotoandplay.smartfoxserver.util.*; public class SysHandler implements IMessageHandler { private var sfs:SmartFoxClient; private var handlersTable:Array; public function SysHandler(_arg1:SmartFoxClient){ this.sfs = _arg1; handlersTable = []; handlersTable["apiOK"] = this.handleApiOK; handlersTable["apiKO"] = this.handleApiKO; handlersTable["logOK"] = this.handleLoginOk; handlersTable["logKO"] = this.handleLoginKo; handlersTable["logout"] = this.handleLogout; handlersTable["rmList"] = this.handleRoomList; handlersTable["uCount"] = this.handleUserCountChange; handlersTable["joinOK"] = this.handleJoinOk; handlersTable["joinKO"] = this.handleJoinKo; handlersTable["uER"] = this.handleUserEnterRoom; handlersTable["userGone"] = this.handleUserLeaveRoom; handlersTable["pubMsg"] = this.handlePublicMessage; handlersTable["prvMsg"] = this.handlePrivateMessage; handlersTable["dmnMsg"] = this.handleAdminMessage; handlersTable["modMsg"] = this.handleModMessage; handlersTable["dataObj"] = this.handleASObject; handlersTable["rVarsUpdate"] = this.handleRoomVarsUpdate; handlersTable["roomAdd"] = this.handleRoomAdded; handlersTable["roomDel"] = this.handleRoomDeleted; handlersTable["rndK"] = this.handleRandomKey; handlersTable["roundTripRes"] = this.handleRoundTripBench; handlersTable["uVarsUpdate"] = this.handleUserVarsUpdate; handlersTable["createRmKO"] = this.handleCreateRoomError; handlersTable["bList"] = this.handleBuddyList; handlersTable["bUpd"] = this.handleBuddyListUpdate; handlersTable["bAdd"] = this.handleBuddyAdded; handlersTable["roomB"] = this.handleBuddyRoom; handlersTable["leaveRoom"] = this.handleLeaveRoom; handlersTable["swSpec"] = this.handleSpectatorSwitched; handlersTable["bPrm"] = this.handleAddBuddyPermission; handlersTable["remB"] = this.handleRemoveBuddy; } private function populateVariables(_arg1:Array, _arg2:Object, _arg3:Array=null):void{ var _local4:XML; var _local5:String; var _local6:String; var _local7:String; for each (_local4 in _arg2.vars["var"]) { _local5 = _local4.@n; _local6 = _local4.@t; _local7 = _local4; if (_arg3 != null){ _arg3.push(_local5); _arg3[_local5] = true; }; if (_local6 == "b"){ _arg1[_local5] = ((_local7 == "1")) ? true : false; } else { if (_local6 == "n"){ _arg1[_local5] = Number(_local7); } else { if (_local6 == "s"){ _arg1[_local5] = _local7; } else { if (_local6 == "x"){ delete _arg1[_local5]; }; }; }; }; }; } private function handleRoomDeleted(_arg1:Object):void{ var _local2:int = int(_arg1.body.rm.@id); var _local3:Array = sfs.getAllRooms(); var _local4:Object = {}; _local4.room = _local3[_local2]; delete _local3[_local2]; var _local5:SFSEvent = new SFSEvent(SFSEvent.onRoomDeleted, _local4); sfs.dispatchEvent(_local5); } public function handleAdminMessage(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.user.@id); var _local4:String = _arg1.body.txt; var _local5:Object = {}; _local5.message = Entities.decodeEntities(_local4); var _local6:SFSEvent = new SFSEvent(SFSEvent.onAdminMessage, _local5); sfs.dispatchEvent(_local6); } public function handleUserVarsUpdate(_arg1:Object):void{ var _local3:Array; var _local5:Room; var _local6:Object; var _local7:SFSEvent; var _local2:int = int(_arg1.body.user.@id); var _local4:User; if (_arg1.body.vars.toString().length > 0){ for each (_local5 in sfs.getAllRooms()) { _local4 = _local5.getUser(_local2); if (_local4 != null){ _local3 = []; populateVariables(_local4.getVariables(), _arg1.body, _local3); }; }; _local6 = {}; _local6.user = ((sfs.getActiveRoom().getUser(_local2))!=null) ? sfs.getActiveRoom().getUser(_local2) : _local4; _local6.changedVars = _local3; _local7 = new SFSEvent(SFSEvent.onUserVariablesUpdate, _local6); sfs.dispatchEvent(_local7); }; } private function handleCreateRoomError(_arg1:Object):void{ var _local2:String = _arg1.body.room.@e; var _local3:Object = {}; _local3.error = _local2; var _local4:SFSEvent = new SFSEvent(SFSEvent.onCreateRoomError, _local3); sfs.dispatchEvent(_local4); } public function handlePrivateMessage(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.user.@id); var _local4:String = _arg1.body.txt; var _local5:User = sfs.getRoom(_local2).getUser(_local3); var _local6:Object = {}; _local6.message = Entities.decodeEntities(_local4); _local6.sender = _local5; _local6.roomId = _local2; _local6.userId = _local3; var _local7:SFSEvent = new SFSEvent(SFSEvent.onPrivateMessage, _local6); sfs.dispatchEvent(_local7); } private function handleBuddyRoom(_arg1:Object):void{ var _local2:String = _arg1.body.br.@r; var _local3:Array = _local2.split(","); var _local4:int; while (_local4 < _local3.length) { _local3[_local4] = int(_local3[_local4]); _local4++; }; var _local5:Object = {}; _local5.idList = _local3; var _local6:SFSEvent = new SFSEvent(SFSEvent.onBuddyRoom, _local5); sfs.dispatchEvent(_local6); } public function handleLogout(_arg1:Object):void{ sfs.__logout(); var _local2:SFSEvent = new SFSEvent(SFSEvent.onLogout, {}); sfs.dispatchEvent(_local2); } public function handleUserCountChange(_arg1:Object):void{ var _local6:Object; var _local7:SFSEvent; var _local2:int = int(_arg1.body.@u); var _local3:int = int(_arg1.body.@s); var _local4:int = int(_arg1.body.@r); var _local5:Room = sfs.getAllRooms()[_local4]; if (_local5 != null){ _local5.setUserCount(_local2); _local5.setSpectatorCount(_local3); _local6 = {}; _local6.room = _local5; _local7 = new SFSEvent(SFSEvent.onUserCountChange, _local6); sfs.dispatchEvent(_local7); }; } private function handleRandomKey(_arg1:Object):void{ var _local2:String = _arg1.body.k.toString(); var _local3:Object = {}; _local3.key = _local2; var _local4:SFSEvent = new SFSEvent(SFSEvent.onRandomKey, _local3); sfs.dispatchEvent(_local4); } public function handlePublicMessage(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.user.@id); var _local4:String = _arg1.body.txt; var _local5:User = sfs.getRoom(_local2).getUser(_local3); var _local6:Object = {}; _local6.message = Entities.decodeEntities(_local4); _local6.sender = _local5; _local6.roomId = _local2; var _local7:SFSEvent = new SFSEvent(SFSEvent.onPublicMessage, _local6); sfs.dispatchEvent(_local7); } public function handleUserEnterRoom(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.u.@i); var _local4:String = _arg1.body.u.n; var _local5 = (_arg1.body.u.@m == "1"); var _local6 = (_arg1.body.u.@s == "1"); var _local7:int = ((_arg1.body.u.@p)!=null) ? int(_arg1.body.u.@p) : -1; var _local8:XMLList = _arg1.body.u.vars["var"]; var _local9:Room = sfs.getRoom(_local2); var _local10:User = new User(_local3, _local4); _local10.setModerator(_local5); _local10.setIsSpectator(_local6); _local10.setPlayerId(_local7); _local9.addUser(_local10, _local3); if (_arg1.body.u.vars.toString().length > 0){ populateVariables(_local10.getVariables(), _arg1.body.u); }; var _local11:Object = {}; _local11.roomId = _local2; _local11.user = _local10; var _local12:SFSEvent = new SFSEvent(SFSEvent.onUserEnterRoom, _local11); sfs.dispatchEvent(_local12); } public function dispatchDisconnection():void{ var _local1:SFSEvent = new SFSEvent(SFSEvent.onConnectionLost, null); sfs.dispatchEvent(_local1); } private function handleRemoveBuddy(_arg1:Object):void{ var _local4:String; var _local5:Object; var _local6:SFSEvent; var _local2:String = _arg1.body.n.toString(); var _local3:Object; for (_local4 in sfs.buddyList) { _local3 = sfs.buddyList[_local4]; if (_local3.name == _local2){ delete sfs.buddyList[_local4]; _local5 = {}; _local5.list = sfs.buddyList; _local6 = new SFSEvent(SFSEvent.onBuddyList, _local5); sfs.dispatchEvent(_local6); break; }; }; } private function handleAddBuddyPermission(_arg1:Object):void{ var _local2:Object = {}; _local2.sender = _arg1.body.n.toString(); _local2.message = ""; if (_arg1.body.txt != undefined){ _local2.message = Entities.decodeEntities(_arg1.body.txt); }; var _local3:SFSEvent = new SFSEvent(SFSEvent.onBuddyPermissionRequest, _local2); sfs.dispatchEvent(_local3); } public function handleLoginOk(_arg1:Object):void{ var _local2:int = int(_arg1.body.login.@id); var _local3:int = int(_arg1.body.login.@mod); var _local4:String = _arg1.body.login.@n; sfs.amIModerator = (_local3 == 1); sfs.myUserId = _local2; sfs.myUserName = _local4; sfs.playerId = -1; var _local5:Object = {}; _local5.success = true; _local5.name = _local4; _local5.error = ""; var _local6:SFSEvent = new SFSEvent(SFSEvent.onLogin, _local5); sfs.dispatchEvent(_local6); sfs.getRoomList(); } private function handleBuddyListUpdate(_arg1:Object):void{ var _local4:Object; var _local5:XMLList; var _local6:Object; var _local7:Boolean; var _local8:String; var _local9:XML; var _local2:Object = {}; var _local3:SFSEvent; if (_arg1.body.b != null){ _local4 = {}; _local4.isOnline = ((_arg1.body.b.@s == "1")) ? true : false; _local4.name = _arg1.body.b.n.toString(); _local4.id = _arg1.body.b.@i; _local4.isBlocked = ((_arg1.body.b.@x == "1")) ? true : false; _local5 = _arg1.body.b.vs; _local6 = null; _local7 = false; for (_local8 in sfs.buddyList) { _local6 = sfs.buddyList[_local8]; if (_local6.name == _local4.name){ sfs.buddyList[_local8] = _local4; _local4.isBlocked = _local6.isBlocked; _local4.variables = _local6.variables; if (_local5.toString().length > 0){ for each (_local9 in _local5.v) { _local4.variables[_local9.@n.toString()] = _local9.toString(); }; }; _local7 = true; break; }; }; if (_local7){ _local2.buddy = _local4; _local3 = new SFSEvent(SFSEvent.onBuddyListUpdate, _local2); sfs.dispatchEvent(_local3); }; } else { _local2.error = _arg1.body.err.toString(); _local3 = new SFSEvent(SFSEvent.onBuddyListError, _local2); sfs.dispatchEvent(_local3); }; } public function handleRoomVarsUpdate(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.user.@id); var _local4:Room = sfs.getRoom(_local2); var _local5:Array = []; if (_arg1.body.vars.toString().length > 0){ populateVariables(_local4.getVariables(), _arg1.body, _local5); }; var _local6:Object = {}; _local6.room = _local4; _local6.changedVars = _local5; var _local7:SFSEvent = new SFSEvent(SFSEvent.onRoomVariablesUpdate, _local6); sfs.dispatchEvent(_local7); } public function handleRoomList(_arg1:Object):void{ var _local3:XML; var _local4:Object; var _local5:SFSEvent; var _local6:int; var _local7:Room; sfs.clearRoomList(); var _local2:Array = sfs.getAllRooms(); for each (_local3 in _arg1.body.rmList.rm) { _local6 = int(_local3.@id); _local7 = new Room(_local6, _local3.n, int(_local3.@maxu), int(_local3.@maxs), (_local3.@temp == "1"), (_local3.@game == "1"), (_local3.@priv == "1"), (_local3.@lmb == "1"), int(_local3.@ucnt), int(_local3.@scnt)); if (_local3.vars.toString().length > 0){ populateVariables(_local7.getVariables(), _local3); }; _local2[_local6] = _local7; }; _local4 = {}; _local4.roomList = _local2; _local5 = new SFSEvent(SFSEvent.onRoomListUpdate, _local4); sfs.dispatchEvent(_local5); } private function handleBuddyAdded(_arg1:Object):void{ var _local6:XML; var _local2:Object = {}; _local2.isOnline = ((_arg1.body.b.@s == "1")) ? true : false; _local2.name = _arg1.body.b.n.toString(); _local2.id = _arg1.body.b.@i; _local2.isBlocked = ((_arg1.body.b.@x == "1")) ? true : false; _local2.variables = {}; var _local3:XMLList = _arg1.body.b.vs; if (_local3.toString().length > 0){ for each (_local6 in _local3.v) { _local2.variables[_local6.@n.toString()] = _local6.toString(); }; }; sfs.buddyList.push(_local2); var _local4:Object = {}; _local4.list = sfs.buddyList; var _local5:SFSEvent = new SFSEvent(SFSEvent.onBuddyList, _local4); sfs.dispatchEvent(_local5); } private function handleRoomAdded(_arg1:Object):void{ var _local2:int = int(_arg1.body.rm.@id); var _local3:String = _arg1.body.rm.name; var _local4:int = int(_arg1.body.rm.@max); var _local5:int = int(_arg1.body.rm.@spec); var _local6:Boolean = ((_arg1.body.rm.@temp == "1")) ? true : false; var _local7:Boolean = ((_arg1.body.rm.@game == "1")) ? true : false; var _local8:Boolean = ((_arg1.body.rm.@priv == "1")) ? true : false; var _local9:Boolean = ((_arg1.body.rm.@limbo == "1")) ? true : false; var _local10:Room = new Room(_local2, _local3, _local4, _local5, _local6, _local7, _local8, _local9); var _local11:Array = sfs.getAllRooms(); _local11[_local2] = _local10; if (_arg1.body.rm.vars.toString().length > 0){ populateVariables(_local10.getVariables(), _arg1.body.rm); }; var _local12:Object = {}; _local12.room = _local10; var _local13:SFSEvent = new SFSEvent(SFSEvent.onRoomAdded, _local12); sfs.dispatchEvent(_local13); } public function handleUserLeaveRoom(_arg1:Object):void{ var _local7:String; var _local2:int = int(_arg1.body.user.@id); var _local3:int = int(_arg1.body.@r); var _local4:Room = sfs.getRoom(_local3); if (_local4.getUser(_local2) != null){ _local7 = _local4.getUser(_local2).getName(); _local4.removeUser(_local2); }; var _local5:Object = {}; _local5.roomId = _local3; _local5.userId = _local2; _local5.userName = _local7; var _local6:SFSEvent = new SFSEvent(SFSEvent.onUserLeaveRoom, _local5); sfs.dispatchEvent(_local6); } private function handleSpectatorSwitched(_arg1:Object):void{ var _local5:int; var _local6:User; var _local7:Object; var _local8:SFSEvent; var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.pid.@id); var _local4:Room = sfs.getRoom(_local2); if (_local3 > 0){ _local4.setUserCount((_local4.getUserCount() + 1)); _local4.setSpectatorCount((_local4.getSpectatorCount() - 1)); }; if (_arg1.body.pid.@u != undefined){ _local5 = int(_arg1.body.pid.@u); _local6 = _local4.getUser(_local5); if (_local6 != null){ _local6.setIsSpectator(false); _local6.setPlayerId(_local3); }; } else { sfs.playerId = _local3; _local7 = {}; _local7.success = (sfs.playerId > 0); _local7.newId = sfs.playerId; _local7.room = _local4; _local8 = new SFSEvent(SFSEvent.onSpectatorSwitched, _local7); sfs.dispatchEvent(_local8); }; } private function handleLeaveRoom(_arg1:Object):void{ var _local2:int = int(_arg1.body.rm.@id); var _local3:Object = {}; _local3.roomId = _local2; var _local4:SFSEvent = new SFSEvent(SFSEvent.onRoomLeft, _local3); sfs.dispatchEvent(_local4); } public function handleLoginKo(_arg1:Object):void{ var _local2:Object = {}; _local2.success = false; _local2.error = _arg1.body.login.@e; var _local3:SFSEvent = new SFSEvent(SFSEvent.onLogin, _local2); sfs.dispatchEvent(_local3); } public function handleModMessage(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.user.@id); var _local4:String = _arg1.body.txt; var _local5:User; var _local6:Room = sfs.getRoom(_local2); if (_local6 != null){ _local5 = sfs.getRoom(_local2).getUser(_local3); }; var _local7:Object = {}; _local7.message = Entities.decodeEntities(_local4); _local7.sender = _local5; var _local8:SFSEvent = new SFSEvent(SFSEvent.onModeratorMessage, _local7); sfs.dispatchEvent(_local8); } public function handleApiOK(_arg1:Object):void{ sfs.isConnected = true; var _local2:SFSEvent = new SFSEvent(SFSEvent.onConnection, {success:true}); sfs.dispatchEvent(_local2); } private function handleRoundTripBench(_arg1:Object):void{ var _local2:int = getTimer(); var _local3:int = (_local2 - sfs.getBenchStartTime()); var _local4:Object = {}; _local4.elapsed = _local3; var _local5:SFSEvent = new SFSEvent(SFSEvent.onRoundTripResponse, _local4); sfs.dispatchEvent(_local5); } public function handleJoinOk(_arg1:Object):void{ var _local7:XML; var _local8:Object; var _local9:SFSEvent; var _local10:String; var _local11:int; var _local12:Boolean; var _local13:Boolean; var _local14:int; var _local15:User; var _local2:int = int(_arg1.body.@r); var _local3:XMLList = _arg1.body; var _local4:XMLList = _arg1.body.uLs.u; var _local5:int = int(_arg1.body.pid.@id); sfs.activeRoomId = _local2; var _local6:Room = sfs.getRoom(_local2); _local6.clearUserList(); sfs.playerId = _local5; _local6.setMyPlayerIndex(_local5); if (_local3.vars.toString().length > 0){ _local6.clearVariables(); populateVariables(_local6.getVariables(), _local3); }; for each (_local7 in _local4) { _local10 = _local7.n; _local11 = int(_local7.@i); _local12 = ((_local7.@m == "1")) ? true : false; _local13 = ((_local7.@s == "1")) ? true : false; _local14 = ((_local7.@p == null)) ? -1 : int(_local7.@p); _local15 = new User(_local11, _local10); _local15.setModerator(_local12); _local15.setIsSpectator(_local13); _local15.setPlayerId(_local14); if (_local7.vars.toString().length > 0){ populateVariables(_local15.getVariables(), _local7); }; _local6.addUser(_local15, _local11); }; sfs.changingRoom = false; _local8 = {}; _local8.room = _local6; _local9 = new SFSEvent(SFSEvent.onJoinRoom, _local8); sfs.dispatchEvent(_local9); } public function handleApiKO(_arg1:Object):void{ var _local2:Object = {}; _local2.success = false; _local2.error = "API are obsolete, please upgrade"; var _local3:SFSEvent = new SFSEvent(SFSEvent.onConnection, _local2); sfs.dispatchEvent(_local3); } public function handleASObject(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.user.@id); var _local4:String = _arg1.body.dataObj; var _local5:User = sfs.getRoom(_local2).getUser(_local3); var _local6:Object = ObjectSerializer.getInstance().deserialize(new XML(_local4)); var _local7:Object = {}; _local7.obj = _local6; _local7.sender = _local5; var _local8:SFSEvent = new SFSEvent(SFSEvent.onObjectReceived, _local7); sfs.dispatchEvent(_local8); } private function handleBuddyList(_arg1:Object):void{ var _local4:Object; var _local7:XML; var _local8:XML; var _local9:XMLList; var _local10:XML; var _local2:XMLList = _arg1.body.bList; var _local3:XMLList = _arg1.body.mv; var _local5:Object = {}; var _local6:SFSEvent; if (((!((_local3 == null))) && ((_local3.toString().length > 0)))){ for each (_local7 in _local3.v) { sfs.myBuddyVars[_local7.@n.toString()] = _local7.toString(); }; }; if (((!((_local2 == null))) && (!((_local2.b.length == null))))){ if (_local2.toString().length > 0){ for each (_local8 in _local2.b) { _local4 = {}; _local4.isOnline = ((_local8.@s == "1")) ? true : false; _local4.name = _local8.n.toString(); _local4.id = _local8.@i; _local4.isBlocked = ((_local8.@x == "1")) ? true : false; _local4.variables = {}; _local9 = _local8.vs; if (_local9.toString().length > 0){ for each (_local10 in _local9.v) { _local4.variables[_local10.@n.toString()] = _local10.toString(); }; }; sfs.buddyList.push(_local4); }; }; _local5.list = sfs.buddyList; _local6 = new SFSEvent(SFSEvent.onBuddyList, _local5); sfs.dispatchEvent(_local6); } else { _local5.error = _arg1.body.err.toString(); _local6 = new SFSEvent(SFSEvent.onBuddyListError, _local5); sfs.dispatchEvent(_local6); }; } public function handleJoinKo(_arg1:Object):void{ sfs.changingRoom = false; var _local2:Object = {}; _local2.error = _arg1.body.error.@msg; var _local3:SFSEvent = new SFSEvent(SFSEvent.onJoinRoomError, _local2); sfs.dispatchEvent(_local3); } public function handleMessage(_arg1:Object, _arg2:String):void{ var _local3:XML = (_arg1 as XML); var _local4:String = _local3.body.@action; var _local5:Function = handlersTable[_local4]; if (_local5 != null){ _local5.apply(this, [_arg1]); } else { trace(("Unknown sys command: " + _local4)); }; } } }//package it.gotoandplay.smartfoxserver.handlers
Section 178
//HttpConnection (it.gotoandplay.smartfoxserver.http.HttpConnection) package it.gotoandplay.smartfoxserver.http { import flash.events.*; import flash.net.*; public class HttpConnection extends EventDispatcher { private var urlRequest:URLRequest; private var port:int; private var urlLoaderFactory:LoaderFactory; private var connected:Boolean;// = false private var sessionId:String; private var ipAddr:String; private var webUrl:String; private var codec:IHttpProtocolCodec; private static const servletUrl:String = "BlueBox/HttpBox.do"; public static const HANDSHAKE_TOKEN:String = "#"; private static const HANDSHAKE:String = "connect"; private static const DISCONNECT:String = "disconnect"; private static const CONN_LOST:String = "ERR#01"; private static const paramName:String = "sfsHttp"; public function HttpConnection(){ codec = new RawProtocolCodec(); urlLoaderFactory = new LoaderFactory(handleResponse, handleIOError); } public function close():void{ send(DISCONNECT); } public function getSessionId():String{ return (this.sessionId); } private function handleIOError(_arg1:IOErrorEvent):void{ var _local2:Object = {}; _local2.message = _arg1.text; var _local3:HttpEvent = new HttpEvent(HttpEvent.onHttpError, _local2); dispatchEvent(_local3); } public function send(_arg1:String):void{ var _local2:URLVariables; var _local3:URLLoader; if (((((connected) || (((!(connected)) && ((_arg1 == HANDSHAKE)))))) || (((!(connected)) && ((_arg1 == "poll")))))){ _local2 = new URLVariables(); _local2[paramName] = codec.encode(this.sessionId, _arg1); urlRequest.data = _local2; if (_arg1 != "poll"){ trace(("[ Send ]: " + urlRequest.data)); }; _local3 = urlLoaderFactory.getLoader(); _local3.data = _local2; _local3.load(urlRequest); }; } public function connect(_arg1:String, _arg2:int=8080):void{ this.ipAddr = _arg1; this.port = _arg2; this.webUrl = ((((("http://" + this.ipAddr) + ":") + this.port) + "/") + servletUrl); this.sessionId = null; urlRequest = new URLRequest(webUrl); urlRequest.method = URLRequestMethod.POST; send(HANDSHAKE); } private function handleResponse(_arg1:Event):void{ var _local4:HttpEvent; var _local2:URLLoader = (_arg1.target as URLLoader); var _local3:String = (_local2.data as String); var _local5:Object = {}; if (_local3.charAt(0) == HANDSHAKE_TOKEN){ if (sessionId == null){ sessionId = codec.decode(_local3); connected = true; _local5.sessionId = this.sessionId; _local5.success = true; _local4 = new HttpEvent(HttpEvent.onHttpConnect, _local5); dispatchEvent(_local4); } else { trace("**ERROR** SessionId is being rewritten"); }; } else { if (_local3.indexOf(CONN_LOST) == 0){ _local5.data = {}; _local4 = new HttpEvent(HttpEvent.onHttpClose, _local5); } else { _local5.data = _local3; _local4 = new HttpEvent(HttpEvent.onHttpData, _local5); }; dispatchEvent(_local4); }; } public function isConnected():Boolean{ return (this.connected); } } }//package it.gotoandplay.smartfoxserver.http
Section 179
//HttpEvent (it.gotoandplay.smartfoxserver.http.HttpEvent) package it.gotoandplay.smartfoxserver.http { import flash.events.*; public class HttpEvent extends Event { public var params:Object; private var evtType:String; public static const onHttpClose:String = "onHttpClose"; public static const onHttpError:String = "onHttpError"; public static const onHttpConnect:String = "onHttpConnect"; public static const onHttpData:String = "onHttpData"; public function HttpEvent(_arg1:String, _arg2:Object){ super(_arg1); this.params = _arg2; this.evtType = _arg1; } override public function clone():Event{ return (new HttpEvent(this.evtType, this.params)); } override public function toString():String{ return (formatToString("HttpEvent", "type", "bubbles", "cancelable", "eventPhase", "params")); } } }//package it.gotoandplay.smartfoxserver.http
Section 180
//IHttpProtocolCodec (it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec) package it.gotoandplay.smartfoxserver.http { public interface IHttpProtocolCodec { function decode(_arg1:String):String; function encode(_arg1:String, _arg2:String):String; } }//package it.gotoandplay.smartfoxserver.http
Section 181
//LoaderFactory (it.gotoandplay.smartfoxserver.http.LoaderFactory) package it.gotoandplay.smartfoxserver.http { import flash.events.*; import flash.net.*; public class LoaderFactory { private var currentLoaderIndex:int; private var loadersPool:Array; private static const DEFAULT_POOL_SIZE:int = 8; public function LoaderFactory(_arg1:Function, _arg2:Function, _arg3:int=8){ var _local5:URLLoader; super(); loadersPool = []; var _local4:int; while (_local4 < _arg3) { _local5 = new URLLoader(); _local5.dataFormat = URLLoaderDataFormat.TEXT; _local5.addEventListener(Event.COMPLETE, _arg1); _local5.addEventListener(IOErrorEvent.IO_ERROR, _arg2); _local5.addEventListener(IOErrorEvent.NETWORK_ERROR, _arg2); loadersPool.push(_local5); _local4++; }; currentLoaderIndex = 0; } public function getLoader():URLLoader{ var _local1:URLLoader = loadersPool[currentLoaderIndex]; currentLoaderIndex++; if (currentLoaderIndex >= loadersPool.length){ currentLoaderIndex = 0; }; return (_local1); } } }//package it.gotoandplay.smartfoxserver.http
Section 182
//RawProtocolCodec (it.gotoandplay.smartfoxserver.http.RawProtocolCodec) package it.gotoandplay.smartfoxserver.http { public class RawProtocolCodec implements IHttpProtocolCodec { private static const SESSION_ID_LEN:int = 32; public function decode(_arg1:String):String{ var _local2:String; if (_arg1.charAt(0) == HttpConnection.HANDSHAKE_TOKEN){ _local2 = _arg1.substr(1, SESSION_ID_LEN); }; return (_local2); } public function encode(_arg1:String, _arg2:String):String{ return ((((_arg1 == null)) ? "" : _arg1 + _arg2)); } } }//package it.gotoandplay.smartfoxserver.http
Section 183
//Entities (it.gotoandplay.smartfoxserver.util.Entities) package it.gotoandplay.smartfoxserver.util { public class Entities { private static var hexTable:Array = new Array(); private static var ascTab:Array = []; private static var ascTabRev:Array = []; public static function decodeEntities(_arg1:String):String{ var _local2:String; var _local3:String; var _local4:String; var _local5:String; var _local6:String; var _local7:int; _local2 = ""; while (_local7 < _arg1.length) { _local3 = _arg1.charAt(_local7); if (_local3 == "&"){ _local4 = _local3; do { _local7++; _local5 = _arg1.charAt(_local7); _local4 = (_local4 + _local5); } while (((!((_local5 == ";"))) && ((_local7 < _arg1.length)))); _local6 = ascTabRev[_local4]; if (_local6 != null){ _local2 = (_local2 + _local6); } else { _local2 = (_local2 + String.fromCharCode(getCharCode(_local4))); }; } else { _local2 = (_local2 + _local3); }; _local7++; }; return (_local2); } public static function encodeEntities(_arg1:String):String{ var _local4:String; var _local5:int; var _local2 = ""; var _local3:int; while (_local3 < _arg1.length) { _local4 = _arg1.charAt(_local3); _local5 = _arg1.charCodeAt(_local3); if ((((((_local5 == 9)) || ((_local5 == 10)))) || ((_local5 == 13)))){ _local2 = (_local2 + _local4); } else { if ((((_local5 >= 32)) && ((_local5 <= 126)))){ if (ascTab[_local4] != null){ _local2 = (_local2 + ascTab[_local4]); } else { _local2 = (_local2 + _local4); }; } else { _local2 = (_local2 + _local4); }; }; _local3++; }; return (_local2); } public static function getCharCode(_arg1:String):Number{ var _local2:String = _arg1.substr(3, _arg1.length); _local2 = _local2.substr(0, (_local2.length - 1)); return (Number(("0x" + _local2))); } ascTab[">"] = "&gt;"; ascTab["<"] = "&lt;"; ascTab["&"] = "&amp;"; ascTab["'"] = "&apos;"; ascTab["\""] = "&quot;"; ascTabRev["&gt;"] = ">"; ascTabRev["&lt;"] = "<"; ascTabRev["&amp;"] = "&"; ascTabRev["&apos;"] = "'"; ascTabRev["&quot;"] = "\""; hexTable["0"] = 0; hexTable["1"] = 1; hexTable["2"] = 2; hexTable["3"] = 3; hexTable["4"] = 4; hexTable["5"] = 5; hexTable["6"] = 6; hexTable["7"] = 7; hexTable["8"] = 8; hexTable["9"] = 9; hexTable["A"] = 10; hexTable["B"] = 11; hexTable["C"] = 12; hexTable["D"] = 13; hexTable["E"] = 14; hexTable["F"] = 15; } }//package it.gotoandplay.smartfoxserver.util
Section 184
//ObjectSerializer (it.gotoandplay.smartfoxserver.util.ObjectSerializer) package it.gotoandplay.smartfoxserver.util { public class ObjectSerializer { private var eof:String; private var debug:Boolean; private var tabs:String; private static var instance:ObjectSerializer; public function ObjectSerializer(_arg1:Boolean=false){ this.tabs = "\t\t\t\t\t\t\t\t\t\t\t\t\t"; setDebug(_arg1); } public function serialize(_arg1:Object):String{ var _local2:Object = {}; obj2xml(_arg1, _local2); return (_local2.xmlStr); } private function xml2obj(_arg1:XML, _arg2:Object):void{ var _local5:String; var _local6:XML; var _local7:String; var _local8:String; var _local9:String; var _local10:String; var _local11:String; var _local3:int; var _local4:XMLList = _arg1.children(); for each (_local6 in _local4) { _local5 = _local6.name().toString(); if (_local5 == "obj"){ _local7 = _local6.@o; _local8 = _local6.@t; if (_local8 == "a"){ _arg2[_local7] = []; } else { if (_local8 == "o"){ _arg2[_local7] = {}; }; }; xml2obj(_local6, _arg2[_local7]); } else { if (_local5 == "var"){ _local9 = _local6.@n; _local10 = _local6.@t; _local11 = _local6.toString(); if (_local10 == "b"){ _arg2[_local9] = ((_local11 == "0")) ? false : true; } else { if (_local10 == "n"){ _arg2[_local9] = Number(_local11); } else { if (_local10 == "s"){ _arg2[_local9] = _local11; } else { if (_local10 == "x"){ _arg2[_local9] = null; }; }; }; }; }; }; }; } private function setDebug(_arg1:Boolean):void{ this.debug = _arg1; if (this.debug){ this.eof = "\n"; } else { this.eof = ""; }; } private function encodeEntities(_arg1:String):String{ return (_arg1); } private function obj2xml(_arg1:Object, _arg2:Object, _arg3:int=0, _arg4:String=""):void{ var _local5:String; var _local6:String; var _local7:String; var _local8:*; if (_arg3 == 0){ _arg2.xmlStr = ("<dataObj>" + this.eof); } else { if (this.debug){ _arg2.xmlStr = (_arg2.xmlStr + this.tabs.substr(0, _arg3)); }; _local6 = ((_arg1 is Array)) ? "a" : "o"; _arg2.xmlStr = (_arg2.xmlStr + ((((("<obj t='" + _local6) + "' o='") + _arg4) + "'>") + this.eof)); }; for (_local5 in _arg1) { _local7 = typeof(_arg1[_local5]); _local8 = _arg1[_local5]; if ((((((((_local7 == "boolean")) || ((_local7 == "number")))) || ((_local7 == "string")))) || ((_local7 == "null")))){ if (_local7 == "boolean"){ _local8 = Number(_local8); } else { if (_local7 == "null"){ _local7 = "x"; _local8 = ""; } else { if (_local7 == "string"){ _local8 = Entities.encodeEntities(_local8); }; }; }; if (this.debug){ _arg2.xmlStr = (_arg2.xmlStr + this.tabs.substr(0, (_arg3 + 1))); }; _arg2.xmlStr = (_arg2.xmlStr + ((((((("<var n='" + _local5) + "' t='") + _local7.substr(0, 1)) + "'>") + _local8) + "</var>") + this.eof)); } else { if (_local7 == "object"){ obj2xml(_local8, _arg2, (_arg3 + 1), _local5); if (this.debug){ _arg2.xmlStr = (_arg2.xmlStr + this.tabs.substr(0, (_arg3 + 1))); }; _arg2.xmlStr = (_arg2.xmlStr + ("</obj>" + this.eof)); }; }; }; if (_arg3 == 0){ _arg2.xmlStr = (_arg2.xmlStr + ("</dataObj>" + this.eof)); }; } public function deserialize(_arg1:String):Object{ var _local2:XML = new XML(_arg1); var _local3:Object = {}; xml2obj(_local2, _local3); return (_local3); } public static function getInstance(_arg1:Boolean=false):ObjectSerializer{ if (instance == null){ instance = new ObjectSerializer(_arg1); }; return (instance); } } }//package it.gotoandplay.smartfoxserver.util
Section 185
//SFSEvent (it.gotoandplay.smartfoxserver.SFSEvent) package it.gotoandplay.smartfoxserver { import flash.events.*; public class SFSEvent extends Event { public var params:Object; public static const onExtensionResponse:String = "onExtensionResponse"; public static const onConfigLoadFailure:String = "onConfigLoadFailure"; public static const onBuddyListUpdate:String = "onBuddyListUpdate"; public static const onUserLeaveRoom:String = "onUserLeaveRoom"; public static const onRoomLeft:String = "onRoomLeft"; public static const onRoundTripResponse:String = "onRoundTripResponse"; public static const onRoomListUpdate:String = "onRoomListUpdate"; public static const onConnection:String = "onConnection"; public static const onBuddyListError:String = "onBuddyListError"; public static const onJoinRoom:String = "onJoinRoom"; public static const onBuddyRoom:String = "onBuddyRoom"; public static const onUserEnterRoom:String = "onUserEnterRoom"; public static const onDebugMessage:String = "onDebugMessage"; public static const onAdminMessage:String = "onAdminMessage"; public static const onPublicMessage:String = "onPublicMessage"; public static const onModeratorMessage:String = "onModMessage"; public static const onPrivateMessage:String = "onPrivateMessage"; public static const onLogout:String = "onLogout"; public static const onJoinRoomError:String = "onJoinRoomError"; public static const onRoomAdded:String = "onRoomAdded"; public static const onLogin:String = "onLogin"; public static const onSpectatorSwitched:String = "onSpectatorSwitched"; public static const onBuddyPermissionRequest:String = "onBuddyPermissionRequest"; public static const onRoomDeleted:String = "onRoomDeleted"; public static const onConnectionLost:String = "onConnectionLost"; public static const onBuddyList:String = "onBuddyList"; public static const onRoomVariablesUpdate:String = "onRoomVariablesUpdate"; public static const onCreateRoomError:String = "onCreateRoomError"; public static const onUserCountChange:String = "onUserCountChange"; public static const onUserVariablesUpdate:String = "onUserVariablesUpdate"; public static const onConfigLoadSuccess:String = "onConfigLoadSuccess"; public static const onRandomKey:String = "onRandomKey"; public static const onObjectReceived:String = "onObjectReceived"; public function SFSEvent(_arg1:String, _arg2:Object){ super(_arg1); this.params = _arg2; } override public function toString():String{ return (formatToString("SFSEvent", "type", "bubbles", "cancelable", "eventPhase", "params")); } override public function clone():Event{ return (new SFSEvent(this.type, this.params)); } } }//package it.gotoandplay.smartfoxserver
Section 186
//SmartFoxClient (it.gotoandplay.smartfoxserver.SmartFoxClient) package it.gotoandplay.smartfoxserver { import flash.events.*; import flash.net.*; import flash.utils.*; import it.gotoandplay.smartfoxserver.data.*; import it.gotoandplay.smartfoxserver.handlers.*; import it.gotoandplay.smartfoxserver.http.*; import it.gotoandplay.smartfoxserver.util.*; import com.adobe.serialization.json.*; public class SmartFoxClient extends EventDispatcher { private var autoConnectOnConfigSuccess:Boolean;// = false private var connected:Boolean; private var benchStartTime:int; public var myUserId:int; private var _httpPollSpeed:int; private var minVersion:Number; private var roomList:Array; public var httpPort:int;// = 8080 public var blueBoxPort:Number;// = 0 public var properties:Object;// = null public var debug:Boolean; private var byteBuffer:ByteArray; private var subVersion:Number; public var port:int;// = 9339 public var buddyList:Array; private var httpConnection:HttpConnection; public var defaultZone:String; private var messageHandlers:Array; private var isHttpMode:Boolean;// = false private var majVersion:Number; private var socketConnection:Socket; public var blueBoxIpAddress:String; private var sysHandler:SysHandler; public var myUserName:String; public var myBuddyVars:Array; public var ipAddress:String; public var playerId:int; public var smartConnect:Boolean;// = true public var amIModerator:Boolean; private var extHandler:ExtHandler; public var changingRoom:Boolean; public var activeRoomId:int; public static const CONNECTION_MODE_HTTP:String = "http"; private static const MSG_JSON:String = "{"; public static const MODMSG_TO_USER:String = "u"; public static const XTMSG_TYPE_XML:String = "xml"; private static const MSG_XML:String = "<"; public static const MODMSG_TO_ROOM:String = "r"; private static const EOM:int = 0; public static const XTMSG_TYPE_STR:String = "str"; public static const CONNECTION_MODE_SOCKET:String = "socket"; public static const MODMSG_TO_ZONE:String = "z"; public static const CONNECTION_MODE_DISCONNECTED:String = "disconnected"; public static const XTMSG_TYPE_JSON:String = "json"; private static var MAX_POLL_SPEED:Number = 10000; private static var DEFAULT_POLL_SPEED:Number = 750; private static var MIN_POLL_SPEED:Number = 0; private static var HTTP_POLL_REQUEST:String = "poll"; private static var MSG_STR:String = "%"; public function SmartFoxClient(_arg1:Boolean=false){ _httpPollSpeed = DEFAULT_POLL_SPEED; super(); this.majVersion = 1; this.minVersion = 5; this.subVersion = 6; this.activeRoomId = -1; this.debug = _arg1; this.messageHandlers = []; setupMessageHandlers(); socketConnection = new Socket(); socketConnection.addEventListener(Event.CONNECT, handleSocketConnection); socketConnection.addEventListener(Event.CLOSE, handleSocketDisconnection); socketConnection.addEventListener(ProgressEvent.SOCKET_DATA, handleSocketData); socketConnection.addEventListener(IOErrorEvent.IO_ERROR, handleIOError); socketConnection.addEventListener(IOErrorEvent.NETWORK_ERROR, handleIOError); socketConnection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, handleSecurityError); httpConnection = new HttpConnection(); httpConnection.addEventListener(HttpEvent.onHttpConnect, handleHttpConnect); httpConnection.addEventListener(HttpEvent.onHttpClose, handleHttpClose); httpConnection.addEventListener(HttpEvent.onHttpData, handleHttpData); httpConnection.addEventListener(HttpEvent.onHttpError, handleHttpError); byteBuffer = new ByteArray(); } private function getXmlUserVariable(_arg1:Object):String{ var _local3:*; var _local4:String; var _local5:String; var _local6:String; var _local2 = "<vars>"; for (_local6 in _arg1) { _local3 = _arg1[_local6]; _local5 = typeof(_local3); _local4 = null; if (_local5 == "boolean"){ _local4 = "b"; _local3 = (_local3) ? "1" : "0"; } else { if (_local5 == "number"){ _local4 = "n"; } else { if (_local5 == "string"){ _local4 = "s"; } else { if ((((((_local3 == null)) && ((_local5 == "object")))) || ((_local5 == "undefined")))){ _local4 = "x"; _local3 = ""; }; }; }; }; if (_local4 != null){ _local2 = (_local2 + (((((("<var n='" + _local6) + "' t='") + _local4) + "'><![CDATA[") + _local3) + "]]></var>")); }; }; _local2 = (_local2 + "</vars>"); return (_local2); } private function jsonReceived(_arg1:String):void{ var _local2:Object = JSON.decode(_arg1); var _local3:String = _local2["t"]; var _local4:IMessageHandler = messageHandlers[_local3]; if (_local4 != null){ _local4.handleMessage(_local2["b"], XTMSG_TYPE_JSON); }; } private function onConfigLoadFailure(_arg1:IOErrorEvent):void{ var _local2:Object = {message:_arg1.text}; var _local3:SFSEvent = new SFSEvent(SFSEvent.onConfigLoadFailure, _local2); dispatchEvent(_local3); } public function getActiveRoom():Room{ if (((!(checkRoomList())) || (!(checkJoin())))){ return (null); }; return (roomList[activeRoomId]); } public function getBuddyRoom(_arg1:Object):void{ if (_arg1.id != -1){ send({t:"sys"}, "roomB", -1, (("<b id='" + _arg1.id) + "' />")); }; } private function checkBuddyDuplicates(_arg1:String):Boolean{ var _local3:Object; var _local2:Boolean; for each (_local3 in buddyList) { if (_local3.name == _arg1){ _local2 = true; break; }; }; return (_local2); } private function handleHttpClose(_arg1:HttpEvent):void{ initialize(); var _local2:SFSEvent = new SFSEvent(SFSEvent.onConnectionLost, {}); dispatchEvent(_local2); } private function getXmlRoomVariable(_arg1:Object):String{ var _local2:String = _arg1.name.toString(); var _local3:* = _arg1.val; var _local4:String = (_arg1.priv) ? "1" : "0"; var _local5:String = (_arg1.persistent) ? "1" : "0"; var _local6:String; var _local7 = typeof(_local3); if (_local7 == "boolean"){ _local6 = "b"; _local3 = (_local3) ? "1" : "0"; } else { if (_local7 == "number"){ _local6 = "n"; } else { if (_local7 == "string"){ _local6 = "s"; } else { if ((((((_local3 == null)) && ((_local7 == "object")))) || ((_local7 == "undefined")))){ _local6 = "x"; _local3 = ""; }; }; }; }; if (_local6 != null){ return ((((((((((("<var n='" + _local2) + "' t='") + _local6) + "' pr='") + _local4) + "' pe='") + _local5) + "'><![CDATA[") + _local3) + "]]></var>")); }; return (""); } public function getBuddyById(_arg1:int):Object{ var _local2:Object; for each (_local2 in buddyList) { if (_local2.id == _arg1){ return (_local2); }; }; return (null); } private function handleSocketDisconnection(_arg1:Event):void{ initialize(); var _local2:SFSEvent = new SFSEvent(SFSEvent.onConnectionLost, {}); dispatchEvent(_local2); } private function handleSocketError(_arg1:SecurityErrorEvent):void{ debugMessage(("Socket Error: " + _arg1.text)); } private function xmlReceived(_arg1:String):void{ var xmlData:XML; var msg = _arg1; try { xmlData = new XML(msg); } catch(e:Error) { }; var handlerId:String = xmlData.@t; var action:String = xmlData.body.@action; var roomId:int = xmlData.body.@r; var handler:IMessageHandler = messageHandlers[handlerId]; if (handler != null){ handler.handleMessage(xmlData, XTMSG_TYPE_XML); }; } public function switchSpectator(_arg1:int=-1):void{ if (((!(checkRoomList())) || (!(checkJoin())))){ return; }; if (_arg1 == -1){ _arg1 = activeRoomId; }; send({t:"sys"}, "swSpec", _arg1, ""); } public function roundTripBench():void{ this.benchStartTime = getTimer(); send({t:"sys"}, "roundTrip", activeRoomId, ""); } private function handleHttpError(_arg1:HttpEvent):void{ trace("HttpError"); if (!connected){ dispatchConnectionError(); }; } public function joinRoom(_arg1, _arg2:String="", _arg3:Boolean=false, _arg4:Boolean=false, _arg5:int=-1):void{ var _local8:Room; var _local9:Object; var _local10:String; var _local11:int; var _local12:String; if (!checkRoomList()){ return; }; var _local6 = -1; var _local7:int = (_arg3) ? 1 : 0; if (!this.changingRoom){ if (typeof(_arg1) == "number"){ _local6 = int(_arg1); } else { if (typeof(_arg1) == "string"){ for each (_local8 in roomList) { if (_local8.getName() == _arg1){ _local6 = _local8.getId(); break; }; }; }; }; if (_local6 != -1){ _local9 = {t:"sys"}; _local10 = (_arg4) ? "0" : "1"; _local11 = ((_arg5 > -1)) ? _arg5 : activeRoomId; if (activeRoomId == -1){ _local10 = "0"; _local11 = -1; }; _local12 = (((((((((("<room id='" + _local6) + "' pwd='") + _arg2) + "' spec='") + _local7) + "' leave='") + _local10) + "' old='") + _local11) + "' />"); send(_local9, "joinRoom", activeRoomId, _local12); changingRoom = true; } else { debugMessage("SmartFoxError: requested room to join does not exist!"); }; }; } public function get httpPollSpeed():int{ return (this._httpPollSpeed); } public function uploadFile(_arg1:FileReference, _arg2:int=-1, _arg3:String="", _arg4:int=-1):void{ if (_arg2 == -1){ _arg2 = this.myUserId; }; if (_arg3 == ""){ _arg3 = this.myUserName; }; if (_arg4 == -1){ _arg4 = this.httpPort; }; _arg1.upload(new URLRequest(((((((("http://" + this.ipAddress) + ":") + _arg4) + "/default/Upload.py?id=") + _arg2) + "&nick=") + _arg3))); debugMessage(((((((("[UPLOAD]: http://" + this.ipAddress) + ":") + _arg4) + "/default/Upload.py?id=") + _arg2) + "&nick=") + _arg3)); } private function debugMessage(_arg1:String):void{ var _local2:SFSEvent; if (this.debug){ trace(_arg1); _local2 = new SFSEvent(SFSEvent.onDebugMessage, {message:_arg1}); dispatchEvent(_local2); }; } private function errorTrace(_arg1:String):void{ trace("\n****************************************************************"); trace("Internal error:"); trace(_arg1); trace("****************************************************************"); } private function makeXmlHeader(_arg1:Object):String{ var _local3:String; var _local2 = "<msg"; for (_local3 in _arg1) { _local2 = (_local2 + ((((" " + _local3) + "='") + _arg1[_local3]) + "'")); }; _local2 = (_local2 + ">"); return (_local2); } public function loadBuddyList():void{ send({t:"sys"}, "loadB", -1, ""); } private function handleSocketConnection(_arg1:Event):void{ var _local2:Object = {t:"sys"}; var _local3 = (((("<ver v='" + this.majVersion.toString()) + this.minVersion.toString()) + this.subVersion.toString()) + "' />"); send(_local2, "verChk", 0, _local3); } public function set httpPollSpeed(_arg1:int):void{ if ((((_arg1 >= 0)) && ((_arg1 <= 10000)))){ this._httpPollSpeed = _arg1; }; } public function leaveRoom(_arg1:int):void{ if (((!(checkRoomList())) || (!(checkJoin())))){ return; }; var _local2:Object = {t:"sys"}; var _local3 = (("<rm id='" + _arg1) + "' />"); send(_local2, "leaveRoom", _arg1, _local3); } private function checkRoomList():Boolean{ var _local1:Boolean; if ((((roomList == null)) || ((roomList.length == 0)))){ _local1 = false; errorTrace("The room list is empty!\nThe client API cannot function properly until the room list is populated.\nPlease consult the documentation for more infos."); }; return (_local1); } private function strReceived(_arg1:String):void{ var _local2:Array = _arg1.substr(1, (_arg1.length - 2)).split(MSG_STR); var _local3:String = _local2[0]; var _local4:IMessageHandler = messageHandlers[_local3]; if (_local4 != null){ _local4.handleMessage(_local2.splice(1, (_local2.length - 1)), XTMSG_TYPE_STR); }; } public function getRoomByName(_arg1:String):Room{ var _local3:Room; if (!checkRoomList()){ return (null); }; var _local2:Room; for each (_local3 in roomList) { if (_local3.getName() == _arg1){ _local2 = _local3; break; }; }; return (_local2); } public function getAllRooms():Array{ return (roomList); } public function getRoom(_arg1:int):Room{ if (!checkRoomList()){ return (null); }; return (roomList[_arg1]); } private function tryBlueBoxConnection(_arg1:ErrorEvent):void{ var _local2:String; var _local3:int; if (!connected){ if (smartConnect){ debugMessage("Socket connection failed. Trying BlueBox"); isHttpMode = true; _local2 = ((blueBoxIpAddress)!=null) ? blueBoxIpAddress : ipAddress; _local3 = ((blueBoxPort)!=0) ? blueBoxPort : httpPort; httpConnection.connect(_local2, _local3); } else { dispatchConnectionError(); }; } else { dispatchEvent(_arg1); debugMessage(("[WARN] Connection error: " + _arg1.text)); }; } private function checkJoin():Boolean{ var _local1:Boolean; if (activeRoomId < 0){ _local1 = false; errorTrace("You haven't joined any rooms!\nIn order to interact with the server you should join at least one room.\nPlease consult the documentation for more infos."); }; return (_local1); } public function setBuddyVariables(_arg1:Array):void{ var _local4:String; var _local5:String; var _local2:Object = {t:"sys"}; var _local3 = "<vars>"; for (_local4 in _arg1) { _local5 = _arg1[_local4]; if (myBuddyVars[_local4] != _local5){ myBuddyVars[_local4] = _local5; _local3 = (_local3 + (((("<var n='" + _local4) + "'><![CDATA[") + _local5) + "]]></var>")); }; }; _local3 = (_local3 + "</vars>"); this.send(_local2, "setBvars", -1, _local3); } private function addMessageHandler(_arg1:String, _arg2:IMessageHandler):void{ if (this.messageHandlers[_arg1] == null){ this.messageHandlers[_arg1] = _arg2; } else { debugMessage((("Warning, message handler called: " + _arg1) + " already exist!")); }; } private function handleSecurityError(_arg1:SecurityErrorEvent):void{ tryBlueBoxConnection(_arg1); } private function handleIOError(_arg1:IOErrorEvent):void{ tryBlueBoxConnection(_arg1); } private function dispatchConnectionError():void{ var _local1:Object = {}; _local1.success = false; _local1.error = "I/O Error"; var _local2:SFSEvent = new SFSEvent(SFSEvent.onConnection, _local1); dispatchEvent(_local2); } public function login(_arg1:String, _arg2:String, _arg3:String):void{ var _local4:Object = {t:"sys"}; var _local5 = (((((("<login z='" + _arg1) + "'><nick><![CDATA[") + _arg2) + "]]></nick><pword><![CDATA[") + _arg3) + "]]></pword></login>"); send(_local4, "login", 0, _local5); } public function __logout():void{ initialize(true); } private function setupMessageHandlers():void{ sysHandler = new SysHandler(this); extHandler = new ExtHandler(this); addMessageHandler("sys", sysHandler); addMessageHandler("xt", extHandler); } public function autoJoin():void{ if (!checkRoomList()){ return; }; var _local1:Object = {t:"sys"}; this.send(_local1, "autoJoin", (this.activeRoomId) ? this.activeRoomId : -1, ""); } private function onConfigLoadSuccess(_arg1:Event):void{ var _local4:SFSEvent; var _local2:URLLoader = (_arg1.target as URLLoader); var _local3:XML = new XML(_local2.data); this.ipAddress = (this.blueBoxIpAddress = _local3.ip); this.port = int(_local3.port); this.defaultZone = _local3.zone; if (_local3.blueBoxIpAddress != undefined){ this.blueBoxIpAddress = _local3.blueBoxIpAddress; }; if (_local3.blueBoxPort != undefined){ this.blueBoxPort = _local3.blueBoxPort; }; if (_local3.debug != undefined){ this.debug = ((_local3.debug.toLowerCase() == "true")) ? true : false; }; if (_local3.smartConnect != undefined){ this.smartConnect = ((_local3.smartConnect.toLowerCase() == "true")) ? true : false; }; if (_local3.httpPort != undefined){ this.httpPort = int(_local3.httpPort); }; if (_local3.httpPollSpeed != undefined){ this.httpPollSpeed = int(_local3.httpPollSpeed); }; if (_local3.rawProtocolSeparator != undefined){ rawProtocolSeparator = _local3.rawProtocolSeparator; }; if (autoConnectOnConfigSuccess){ this.connect(ipAddress, port); } else { _local4 = new SFSEvent(SFSEvent.onConfigLoadSuccess, {}); dispatchEvent(_local4); }; } private function send(_arg1:Object, _arg2:String, _arg3:Number, _arg4:String):void{ var _local5:String = makeXmlHeader(_arg1); _local5 = (_local5 + ((((((("<body action='" + _arg2) + "' r='") + _arg3) + "'>") + _arg4) + "</body>") + closeHeader())); debugMessage((("[Sending]: " + _local5) + "\n")); if (isHttpMode){ httpConnection.send(_local5); } else { writeToSocket(_local5); }; } private function handleSocketData(_arg1:Event):void{ var _local3:int; var _local2:int = socketConnection.bytesAvailable; while (--_local2 >= 0) { _local3 = socketConnection.readByte(); if (_local3 != 0){ byteBuffer.writeByte(_local3); } else { handleMessage(byteBuffer.toString()); byteBuffer = new ByteArray(); }; }; } public function logout():void{ var _local1:Object = {t:"sys"}; send(_local1, "logout", -1, ""); } public function getRoomList():void{ var _local1:Object = {t:"sys"}; send(_local1, "getRmList", activeRoomId, ""); } public function getConnectionMode():String{ var _local1:String = CONNECTION_MODE_DISCONNECTED; if (this.isConnected){ if (this.isHttpMode){ _local1 = CONNECTION_MODE_HTTP; } else { _local1 = CONNECTION_MODE_SOCKET; }; }; return (_local1); } public function disconnect():void{ connected = false; if (!isHttpMode){ socketConnection.close(); } else { httpConnection.close(); }; sysHandler.dispatchDisconnection(); } public function clearRoomList():void{ this.roomList = []; } public function sendJson(_arg1:String):void{ debugMessage((("[Sending - JSON]: " + _arg1) + "\n")); if (isHttpMode){ httpConnection.send(_arg1); } else { writeToSocket(_arg1); }; } public function setRoomVariables(_arg1:Array, _arg2:int=-1, _arg3:Boolean=true):void{ var _local5:String; var _local6:Object; if (((!(checkRoomList())) || (!(checkJoin())))){ return; }; if (_arg2 == -1){ _arg2 = activeRoomId; }; var _local4:Object = {t:"sys"}; if (_arg3){ _local5 = "<vars>"; } else { _local5 = "<vars so='0'>"; }; for each (_local6 in _arg1) { _local5 = (_local5 + getXmlRoomVariable(_local6)); }; _local5 = (_local5 + "</vars>"); send(_local4, "setRvars", _arg2, _local5); } public function addBuddy(_arg1:String):void{ var _local2:String; if (((!((_arg1 == myUserName))) && (!(checkBuddyDuplicates(_arg1))))){ _local2 = (("<n>" + _arg1) + "</n>"); send({t:"sys"}, "addB", -1, _local2); }; } private function initialize(_arg1:Boolean=false):void{ this.changingRoom = false; this.amIModerator = false; this.playerId = -1; this.activeRoomId = -1; this.myUserId = -1; this.myUserName = ""; this.roomList = []; this.buddyList = []; this.myBuddyVars = []; if (!_arg1){ this.connected = false; this.isHttpMode = false; }; } public function getVersion():String{ return (((((this.majVersion + ".") + this.minVersion) + ".") + this.subVersion)); } public function setUserVariables(_arg1:Object, _arg2:int=-1):void{ if (((!(checkRoomList())) || (!(checkJoin())))){ return; }; if (_arg2 == -1){ _arg2 = activeRoomId; }; var _local3:Object = {t:"sys"}; var _local4:Room = getActiveRoom(); var _local5:User = _local4.getUser(myUserId); _local5.setVariables(_arg1); var _local6:String = getXmlUserVariable(_arg1); send(_local3, "setUvars", _arg2, _local6); } public function sendPrivateMessage(_arg1:String, _arg2:int, _arg3:int=-1):void{ if (((!(checkRoomList())) || (!(checkJoin())))){ return; }; if (_arg3 == -1){ _arg3 = activeRoomId; }; var _local4:Object = {t:"sys"}; var _local5 = (((("<txt rcp='" + _arg2) + "'><![CDATA[") + Entities.encodeEntities(_arg1)) + "]]></txt>"); send(_local4, "prvMsg", _arg3, _local5); } public function getBuddyByName(_arg1:String):Object{ var _local2:Object; for each (_local2 in buddyList) { if (_local2.name == _arg1){ return (_local2); }; }; return (null); } private function closeHeader():String{ return ("</msg>"); } public function sendPublicMessage(_arg1:String, _arg2:int=-1):void{ if (((!(checkRoomList())) || (!(checkJoin())))){ return; }; if (_arg2 == -1){ _arg2 = activeRoomId; }; var _local3:Object = {t:"sys"}; var _local4 = (("<txt><![CDATA[" + Entities.encodeEntities(_arg1)) + "]]></txt>"); send(_local3, "pubMsg", _arg2, _local4); } public function clearBuddyList():void{ buddyList = []; send({t:"sys"}, "clearB", -1, ""); var _local1:Object = {}; _local1.list = buddyList; var _local2:SFSEvent = new SFSEvent(SFSEvent.onBuddyList, _local1); dispatchEvent(_local2); } public function sendString(_arg1:String):void{ debugMessage((("[Sending - STR]: " + _arg1) + "\n")); if (isHttpMode){ httpConnection.send(_arg1); } else { writeToSocket(_arg1); }; } public function removeBuddy(_arg1:String):void{ var _local3:Object; var _local4:String; var _local5:Object; var _local6:String; var _local7:Object; var _local8:SFSEvent; var _local2:Boolean; for (_local4 in buddyList) { _local3 = buddyList[_local4]; if (_local3.name == _arg1){ delete buddyList[_local4]; _local2 = true; break; }; }; if (_local2){ _local5 = {t:"sys"}; _local6 = (("<n>" + _arg1) + "</n>"); send(_local5, "remB", -1, _local6); _local7 = {}; _local7.list = buddyList; _local8 = new SFSEvent(SFSEvent.onBuddyList, _local7); dispatchEvent(_local8); }; } public function setBuddyBlockStatus(_arg1:String, _arg2:Boolean):void{ var _local4:String; var _local5:Object; var _local6:SFSEvent; var _local3:Object = getBuddyByName(_arg1); if (_local3 != null){ if (_local3.isBlocked != _arg2){ _local3.isBlocked = _arg2; _local4 = (((("<n x='" + (_arg2) ? "1" : "0") + "'>") + _arg1) + "</n>"); send({t:"sys"}, "setB", -1, _local4); _local5 = {}; _local5.buddy = _local3; _local6 = new SFSEvent(SFSEvent.onBuddyListUpdate, _local5); dispatchEvent(_local6); }; }; } private function handleMessage(_arg1:String):void{ if (_arg1 != "ok"){ debugMessage((((("[ RECEIVED ]: " + _arg1) + ", (len: ") + _arg1.length) + ")")); }; var _local2:String = _arg1.charAt(0); if (_local2 == MSG_XML){ xmlReceived(_arg1); } else { if (_local2 == MSG_STR){ strReceived(_arg1); } else { if (_local2 == MSG_JSON){ jsonReceived(_arg1); }; }; }; } public function getUploadPath():String{ return ((((("http://" + this.ipAddress) + ":") + this.httpPort) + "/default/uploads/")); } private function handleHttpData(_arg1:HttpEvent):void{ var _local4:String; var _local5:int; var _local2:String = (_arg1.params.data as String); var _local3:Array = _local2.split("\n"); if (_local3[0] != ""){ _local5 = 0; while (_local5 < (_local3.length - 1)) { _local4 = _local3[_local5]; if (_local4.length > 0){ handleMessage(_local4); }; _local5++; }; if (this._httpPollSpeed > 0){ setTimeout(this.handleDelayedPoll, this._httpPollSpeed); } else { handleDelayedPoll(); }; }; } public function loadConfig(_arg1:String="config.xml", _arg2:Boolean=true):void{ this.autoConnectOnConfigSuccess = _arg2; var _local3:URLLoader = new URLLoader(); _local3.addEventListener(Event.COMPLETE, onConfigLoadSuccess); _local3.addEventListener(IOErrorEvent.IO_ERROR, onConfigLoadFailure); _local3.load(new URLRequest(_arg1)); } public function set rawProtocolSeparator(_arg1:String):void{ if (((!((_arg1 == "<"))) && (!((_arg1 == "{"))))){ MSG_STR = _arg1; }; } private function writeToSocket(_arg1:String):void{ var _local2:ByteArray = new ByteArray(); _local2.writeMultiByte(_arg1, "utf-8"); _local2.writeByte(0); socketConnection.writeBytes(_local2); socketConnection.flush(); } public function sendXtMessage(_arg1:String, _arg2:String, _arg3, _arg4:String="xml", _arg5:int=-1):void{ var _local6:Object; var _local7:Object; var _local8:String; var _local9:String; var _local10:Number; var _local11:Object; var _local12:Object; var _local13:String; if (!checkRoomList()){ return; }; if (_arg5 == -1){ _arg5 = activeRoomId; }; if (_arg4 == XTMSG_TYPE_XML){ _local6 = {t:"xt"}; _local7 = {name:_arg1, cmd:_arg2, param:_arg3}; _local8 = (("<![CDATA[" + ObjectSerializer.getInstance().serialize(_local7)) + "]]>"); send(_local6, "xtReq", _arg5, _local8); } else { if (_arg4 == XTMSG_TYPE_STR){ _local9 = ((((((((MSG_STR + "xt") + MSG_STR) + _arg1) + MSG_STR) + _arg2) + MSG_STR) + _arg5) + MSG_STR); _local10 = 0; while (_local10 < _arg3.length) { _local9 = (_local9 + (_arg3[_local10].toString() + MSG_STR)); _local10++; }; sendString(_local9); } else { if (_arg4 == XTMSG_TYPE_JSON){ _local11 = {}; _local11.x = _arg1; _local11.c = _arg2; _local11.r = _arg5; _local11.p = _arg3; _local12 = {}; _local12.t = "xt"; _local12.b = _local11; _local13 = JSON.encode(_local12); sendJson(_local13); }; }; }; } public function sendObjectToGroup(_arg1:Object, _arg2:Array, _arg3:int=-1):void{ var _local5:String; var _local6:Object; var _local7:String; if (((!(checkRoomList())) || (!(checkJoin())))){ return; }; if (_arg3 == -1){ _arg3 = activeRoomId; }; var _local4 = ""; for (_local5 in _arg2) { if (!isNaN(_arg2[_local5])){ _local4 = (_local4 + (_arg2[_local5] + ",")); }; }; _local4 = _local4.substr(0, (_local4.length - 1)); _arg1._$$_ = _local4; _local6 = {t:"sys"}; _local7 = (("<![CDATA[" + ObjectSerializer.getInstance().serialize(_arg1)) + "]]>"); send(_local6, "asObjG", _arg3, _local7); } public function get rawProtocolSeparator():String{ return (MSG_STR); } public function getRandomKey():void{ send({t:"sys"}, "rndK", -1, ""); } public function sendObject(_arg1:Object, _arg2:int=-1):void{ if (((!(checkRoomList())) || (!(checkJoin())))){ return; }; if (_arg2 == -1){ _arg2 = activeRoomId; }; var _local3 = (("<![CDATA[" + ObjectSerializer.getInstance().serialize(_arg1)) + "]]>"); var _local4:Object = {t:"sys"}; send(_local4, "asObj", _arg2, _local3); } public function connect(_arg1:String, _arg2:int=9339):void{ if (!connected){ initialize(); this.ipAddress = _arg1; this.port = _arg2; socketConnection.connect(_arg1, _arg2); } else { debugMessage("*** ALREADY CONNECTED ***"); }; } public function sendBuddyPermissionResponse(_arg1:Boolean, _arg2:String):void{ var _local3:Object = {t:"sys"}; var _local4 = (((("<n res='" + (_arg1) ? "g" : "r") + "'>") + _arg2) + "</n>"); send(_local3, "bPrm", -1, _local4); } public function sendModeratorMessage(_arg1:String, _arg2:String, _arg3:int=-1):void{ if (((!(checkRoomList())) || (!(checkJoin())))){ return; }; var _local4:Object = {t:"sys"}; var _local5 = (((((("<txt t='" + _arg2) + "' id='") + _arg3) + "'><![CDATA[") + Entities.encodeEntities(_arg1)) + "]]></txt>"); send(_local4, "modMsg", activeRoomId, _local5); } public function getBenchStartTime():int{ return (this.benchStartTime); } public function createRoom(_arg1:Object, _arg2:int=-1):void{ var _local10:String; if (((!(checkRoomList())) || (!(checkJoin())))){ return; }; if (_arg2 == -1){ _arg2 = activeRoomId; }; var _local3:Object = {t:"sys"}; var _local4:String = (_arg1.isGame) ? "1" : "0"; var _local5 = "1"; var _local6:String = ((_arg1.maxUsers == null)) ? "0" : String(_arg1.maxUsers); var _local7:String = ((_arg1.maxSpectators == null)) ? "0" : String(_arg1.maxSpectators); var _local8:String = (_arg1.joinAsSpectator) ? "1" : "0"; if (((_arg1.isGame) && (!((_arg1.exitCurrentRoom == null))))){ _local5 = (_arg1.exitCurrentRoom) ? "1" : "0"; }; var _local9 = (((((((("<room tmp='1' gam='" + _local4) + "' spec='") + _local7) + "' exit='") + _local5) + "' jas='") + _local8) + "'>"); _local9 = (_local9 + (("<name><![CDATA[" + ((_arg1.name == null)) ? "" : _arg1.name) + "]]></name>")); _local9 = (_local9 + (("<pwd><![CDATA[" + ((_arg1.password == null)) ? "" : _arg1.password) + "]]></pwd>")); _local9 = (_local9 + (("<max>" + _local6) + "</max>")); if (_arg1.uCount != null){ _local9 = (_local9 + (("<uCnt>" + (_arg1.uCount) ? "1" : "0") + "</uCnt>")); }; if (_arg1.extension != null){ _local9 = (_local9 + ("<xt n='" + _arg1.extension.name)); _local9 = (_local9 + (("' s='" + _arg1.extension.script) + "' />")); }; if (_arg1.vars == null){ _local9 = (_local9 + "<vars></vars>"); } else { _local9 = (_local9 + "<vars>"); for (_local10 in _arg1.vars) { _local9 = (_local9 + getXmlRoomVariable(_arg1.vars[_local10])); }; _local9 = (_local9 + "</vars>"); }; _local9 = (_local9 + "</room>"); send(_local3, "createRoom", _arg2, _local9); } private function handleDelayedPoll():void{ httpConnection.send(HTTP_POLL_REQUEST); } private function handleHttpConnect(_arg1:HttpEvent):void{ this.handleSocketConnection(null); connected = true; httpConnection.send(HTTP_POLL_REQUEST); } public function set isConnected(_arg1:Boolean):void{ this.connected = _arg1; } public function get isConnected():Boolean{ return (this.connected); } } }//package it.gotoandplay.smartfoxserver
Section 187
//EdgeMetrics (mx.core.EdgeMetrics) package mx.core { public class EdgeMetrics { public var top:Number; public var left:Number; public var bottom:Number; public var right:Number; mx_internal static const VERSION:String = "3.2.0.3958"; public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0); ; public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){ this.left = _arg1; this.top = _arg2; this.right = _arg3; this.bottom = _arg4; } public function clone():EdgeMetrics{ return (new EdgeMetrics(left, top, right, bottom)); } } }//package mx.core
Section 188
//FlexMovieClip (mx.core.FlexMovieClip) package mx.core { import flash.display.*; import mx.utils.*; public class FlexMovieClip extends MovieClip { mx_internal static const VERSION:String = "3.2.0.3958"; public function FlexMovieClip(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 189
//FlexSprite (mx.core.FlexSprite) package mx.core { import flash.display.*; import mx.utils.*; public class FlexSprite extends Sprite { mx_internal static const VERSION:String = "3.2.0.3958"; public function FlexSprite(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 190
//FontAsset (mx.core.FontAsset) package mx.core { import flash.text.*; public class FontAsset extends Font implements IFlexAsset { mx_internal static const VERSION:String = "3.2.0.3958"; } }//package mx.core
Section 191
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 192
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 193
//IFlexDisplayObject (mx.core.IFlexDisplayObject) package mx.core { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.accessibility.*; public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher { function get visible():Boolean; function get rotation():Number; function localToGlobal(_arg1:Point):Point; function get name():String; function set width(_arg1:Number):void; function get measuredHeight():Number; function get blendMode():String; function get scale9Grid():Rectangle; function set name(_arg1:String):void; function set scaleX(_arg1:Number):void; function set scaleY(_arg1:Number):void; function get measuredWidth():Number; function get accessibilityProperties():AccessibilityProperties; function set scrollRect(_arg1:Rectangle):void; function get cacheAsBitmap():Boolean; function globalToLocal(_arg1:Point):Point; function get height():Number; function set blendMode(_arg1:String):void; function get parent():DisplayObjectContainer; function getBounds(_arg1:DisplayObject):Rectangle; function get opaqueBackground():Object; function set scale9Grid(_arg1:Rectangle):void; function setActualSize(_arg1:Number, _arg2:Number):void; function set alpha(_arg1:Number):void; function set accessibilityProperties(_arg1:AccessibilityProperties):void; function get width():Number; function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean; function set cacheAsBitmap(_arg1:Boolean):void; function get scaleX():Number; function get scaleY():Number; function get scrollRect():Rectangle; function get mouseX():Number; function get mouseY():Number; function set height(_arg1:Number):void; function set mask(_arg1:DisplayObject):void; function getRect(_arg1:DisplayObject):Rectangle; function get alpha():Number; function set transform(_arg1:Transform):void; function move(_arg1:Number, _arg2:Number):void; function get loaderInfo():LoaderInfo; function get root():DisplayObject; function hitTestObject(_arg1:DisplayObject):Boolean; function set opaqueBackground(_arg1:Object):void; function set visible(_arg1:Boolean):void; function get mask():DisplayObject; function set x(_arg1:Number):void; function set y(_arg1:Number):void; function get transform():Transform; function set filters(_arg1:Array):void; function get x():Number; function get y():Number; function get filters():Array; function set rotation(_arg1:Number):void; function get stage():Stage; } }//package mx.core
Section 194
//IRepeaterClient (mx.core.IRepeaterClient) package mx.core { public interface IRepeaterClient { function get instanceIndices():Array; function set instanceIndices(_arg1:Array):void; function get isDocument():Boolean; function set repeaters(_arg1:Array):void; function initializeRepeaterArrays(_arg1:IRepeaterClient):void; function get repeaters():Array; function set repeaterIndices(_arg1:Array):void; function get repeaterIndices():Array; } }//package mx.core
Section 195
//MovieClipAsset (mx.core.MovieClipAsset) package mx.core { public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.2.0.3958"; public function MovieClipAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 196
//mx_internal (mx.core.mx_internal) package mx.core { public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal"; }//package mx.core
Section 197
//SpriteAsset (mx.core.SpriteAsset) package mx.core { public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.2.0.3958"; public function SpriteAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 198
//NameUtil (mx.utils.NameUtil) package mx.utils { import flash.display.*; import mx.core.*; import flash.utils.*; public class NameUtil { mx_internal static const VERSION:String = "3.2.0.3958"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var result:String; var o:DisplayObject; var s:String; var indices:Array; var displayObject = _arg1; try { o = displayObject; while (o != null) { if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){ break; }; s = o.name; if ((o is IRepeaterClient)){ indices = IRepeaterClient(o).instanceIndices; if (indices){ s = (s + (("[" + indices.join("][")) + "]")); }; }; result = ((result == null)) ? s : ((s + ".") + result); o = o.parent; }; } catch(e:SecurityError) { }; return (result); } public static function createUniqueName(_arg1:Object):String{ if (!_arg1){ return (null); }; var _local2:String = getQualifiedClassName(_arg1); var _local3:int = _local2.indexOf("::"); if (_local3 != -1){ _local2 = _local2.substr((_local3 + 2)); }; var _local4:int = _local2.charCodeAt((_local2.length - 1)); if ((((_local4 >= 48)) && ((_local4 <= 57)))){ _local2 = (_local2 + "_"); }; return ((_local2 + counter++)); } } }//package mx.utils
Section 199
//dinowaurs (dinowaurs) package { import flash.events.*; import flash.display.*; import flash.text.*; import engine.core.*; import flash.system.*; import flash.utils.*; import flash.media.*; import dinowaurs.managers.*; public class dinowaurs extends Sprite { public var kongStampBox:TextField; public var monaco_font:Class; public var sploitBtn:MovieClip; public var totalLibsToLoad:int; public var usernameBox:TextField; public var username:String; public var loaderView; public var nullButton:MovieClip; public var password:String; public var randomButton:MovieClip; public var loaderFrame:Class; public var codex_font:Class; public var fucrateButton:MovieClip; public var aeiowuButton:MovieClip; public static var unKong:Boolean = false; public function dinowaurs(){ loaderFrame = dinowaurs_loaderFrame; codex_font = dinowaurs_codex_font; monaco_font = dinowaurs_monaco_font; super(); Security.loadPolicyFile("http://www.boobenthusiast.com/crossdomain.xml"); Security.allowDomain("*"); Security.allowInsecureDomain("*"); this.stage.frameRate = 30; var _local1:Object = LoaderInfo(root.loaderInfo).parameters; var _local2:String = _local1.api_path; if (_local2 == null){ _local2 = "http://www.kongregate.com/flash/API_AS3_Local.swf"; }; KongApiManager.initialize(_local2, this); if (_local1.kongregate_username == null){ unKong = true; }; setup(); } public function enterFrame(_arg1:Event):void{ trace(AssetLoader.getProgress()); var _local2 = (("assetLoader.prog == " + AssetLoader.getProgress()) + "\n"); _local2 = (_local2 + (("assetQueue.length == " + AssetLoader.assetQueue.length) + "\n")); _local2 = (_local2 + (("current bytes == " + AssetLoader.bulkProgress) + "\n")); loaderView.debug_txt.text = _local2; if (AssetLoader.getProgress() == -1){ if (username == null){ username = "aeiowu"; }; Main.initialize(stage, loaderView.debug_txt, username, password, unKong); stage.removeChild(loaderView); this.removeEventListener(Event.ENTER_FRAME, enterFrame); } else { loaderView.loaderBar.gotoAndStop(Math.round((AssetLoader.getProgress() * 100))); loaderView.counterNum.text = ((totalLibsToLoad - AssetLoader.QueueLength) + 1); loaderView.counterTotal.text = totalLibsToLoad; loaderView.libName.text = AssetLoader.CurrentLoadLibrary; }; } public function setup():void{ if (fucrateButton != null){ fucrateButton.parent.removeChild(fucrateButton); fucrateButton = null; aeiowuButton.parent.removeChild(aeiowuButton); aeiowuButton = null; randomButton.parent.removeChild(randomButton); randomButton = null; }; this.addEventListener(Event.ENTER_FRAME, enterFrame); AssetLoader.initialize(stage); if (AssetLoader.useBigBertha){ AssetLoader.loadAsset("bigBertha"); } else { AssetLoader.loadAsset("misc"); AssetLoader.loadAsset("dinos"); AssetLoader.loadAsset("weapons2"); AssetLoader.loadAsset("accessories"); AssetLoader.loadAsset("mainMenu2"); AssetLoader.loadAsset("gameIntro"); AssetLoader.loadAsset("music_menu"); }; if (unKong){ AssetLoader.loadAsset("unKong"); }; loaderView = new loaderFrame(); stage.addChild(loaderView); totalLibsToLoad = AssetLoader.QueueLength; var _local1:Object = LoaderInfo(root.loaderInfo).parameters; if (username != "nullBOOBAH"){ if (_local1.kongregate_username != null){ username = _local1.kongregate_username; password = _local1.kongregate_stamp; } else { username = "Guest-a-saurus"; password = ""; }; }; trace(("MY USERNAME == " + username)); GameData.initialize(stage); GameData.CULL_LEFT = -50; GameData.CULL_RIGHT = 750; GameData.CULL_TOP = -50; GameData.CULL_BOTTOM = 500; GameData.SCENE_BASE.scaleX = 1; GameData.SCENE_BASE.scaleY = 1; } } }//package
Section 200
//dinowaurs_codex_font (dinowaurs_codex_font) package { import mx.core.*; public class dinowaurs_codex_font extends FontAsset { } }//package
Section 201
//dinowaurs_loaderFrame (dinowaurs_loaderFrame) package { import flash.display.*; import mx.core.*; public class dinowaurs_loaderFrame extends SpriteAsset { public var loaderBar:DisplayObject; public var debug_txt:DisplayObject; public var counterTotal:DisplayObject; public var counterNum:DisplayObject; public var libName:DisplayObject; } }//package
Section 202
//dinowaurs_monaco_font (dinowaurs_monaco_font) package { import mx.core.*; public class dinowaurs_monaco_font extends FontAsset { } }//package
Section 203
//rocketAction_rocket_mc (rocketAction_rocket_mc) package { import flash.display.*; import mx.core.*; public class rocketAction_rocket_mc extends MovieClipAsset { public var loaderBar:DisplayObject; public var color:DisplayObject; public var debug_txt:DisplayObject; public var counterTotal:DisplayObject; public var timeSpawned:DisplayObject; public var visible_sw:DisplayObject; public var network_sw:DisplayObject; public var libName:DisplayObject; public var counterNum:DisplayObject; public var type:DisplayObject; public var id:DisplayObject; } }//package

Library Items

Symbol 1 BitmapUsed by:2
Symbol 2 GraphicUses:1Used by:123
Symbol 3 GraphicUsed by:114
Symbol 4 GraphicUsed by:114
Symbol 5 GraphicUsed by:114
Symbol 6 GraphicUsed by:114
Symbol 7 GraphicUsed by:114
Symbol 8 GraphicUsed by:114
Symbol 9 GraphicUsed by:114
Symbol 10 GraphicUsed by:114
Symbol 11 GraphicUsed by:114
Symbol 12 GraphicUsed by:114
Symbol 13 GraphicUsed by:114
Symbol 14 GraphicUsed by:114
Symbol 15 GraphicUsed by:114
Symbol 16 GraphicUsed by:114
Symbol 17 GraphicUsed by:114
Symbol 18 GraphicUsed by:114
Symbol 19 GraphicUsed by:114
Symbol 20 GraphicUsed by:114
Symbol 21 GraphicUsed by:114
Symbol 22 GraphicUsed by:114
Symbol 23 GraphicUsed by:114
Symbol 24 GraphicUsed by:114
Symbol 25 GraphicUsed by:114
Symbol 26 GraphicUsed by:114
Symbol 27 GraphicUsed by:114
Symbol 28 GraphicUsed by:114
Symbol 29 GraphicUsed by:114
Symbol 30 GraphicUsed by:114
Symbol 31 GraphicUsed by:114
Symbol 32 GraphicUsed by:114
Symbol 33 GraphicUsed by:114
Symbol 34 GraphicUsed by:114
Symbol 35 GraphicUsed by:114
Symbol 36 GraphicUsed by:114
Symbol 37 GraphicUsed by:114
Symbol 38 GraphicUsed by:114
Symbol 39 GraphicUsed by:114
Symbol 40 GraphicUsed by:114
Symbol 41 GraphicUsed by:114
Symbol 42 GraphicUsed by:114
Symbol 43 GraphicUsed by:83
Symbol 44 GraphicUsed by:83
Symbol 45 GraphicUsed by:83
Symbol 46 GraphicUsed by:83
Symbol 47 GraphicUsed by:83
Symbol 48 GraphicUsed by:83
Symbol 49 GraphicUsed by:83
Symbol 50 GraphicUsed by:83
Symbol 51 GraphicUsed by:83
Symbol 52 GraphicUsed by:83
Symbol 53 GraphicUsed by:83
Symbol 54 GraphicUsed by:83
Symbol 55 GraphicUsed by:83
Symbol 56 GraphicUsed by:83
Symbol 57 GraphicUsed by:83
Symbol 58 GraphicUsed by:83
Symbol 59 GraphicUsed by:83
Symbol 60 GraphicUsed by:83
Symbol 61 GraphicUsed by:83
Symbol 62 GraphicUsed by:83
Symbol 63 GraphicUsed by:83
Symbol 64 GraphicUsed by:83
Symbol 65 GraphicUsed by:83
Symbol 66 GraphicUsed by:83
Symbol 67 GraphicUsed by:83
Symbol 68 GraphicUsed by:83
Symbol 69 GraphicUsed by:83
Symbol 70 GraphicUsed by:83
Symbol 71 GraphicUsed by:83
Symbol 72 GraphicUsed by:83
Symbol 73 GraphicUsed by:83
Symbol 74 GraphicUsed by:83
Symbol 75 GraphicUsed by:83
Symbol 76 GraphicUsed by:83
Symbol 77 GraphicUsed by:83
Symbol 78 GraphicUsed by:83
Symbol 79 GraphicUsed by:83
Symbol 80 GraphicUsed by:83
Symbol 81 GraphicUsed by:83
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82Used by:114
Symbol 84 GraphicUsed by:113
Symbol 85 GraphicUsed by:113
Symbol 86 GraphicUsed by:113
Symbol 87 GraphicUsed by:113
Symbol 88 GraphicUsed by:113
Symbol 89 GraphicUsed by:113
Symbol 90 GraphicUsed by:113
Symbol 91 GraphicUsed by:113
Symbol 92 GraphicUsed by:113
Symbol 93 GraphicUsed by:113
Symbol 94 GraphicUsed by:113
Symbol 95 GraphicUsed by:113
Symbol 96 GraphicUsed by:113
Symbol 97 GraphicUsed by:113
Symbol 98 GraphicUsed by:113
Symbol 99 GraphicUsed by:113
Symbol 100 GraphicUsed by:113
Symbol 101 GraphicUsed by:113
Symbol 102 GraphicUsed by:113
Symbol 103 GraphicUsed by:113
Symbol 104 GraphicUsed by:113
Symbol 105 GraphicUsed by:113
Symbol 106 GraphicUsed by:113
Symbol 107 GraphicUsed by:113
Symbol 108 GraphicUsed by:113
Symbol 109 GraphicUsed by:113
Symbol 110 GraphicUsed by:113
Symbol 111 GraphicUsed by:113
Symbol 112 GraphicUsed by:113
Symbol 113 MovieClipUses:84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112Used by:114
Symbol 114 MovieClipUses:3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 83 113Used by:123
Symbol 115 FontUsed by:116 117 120 121 122
Symbol 116 TextUses:115Used by:123
Symbol 117 EditableTextUses:115Used by:123
Symbol 118 FontUsed by:119
Symbol 119 EditableTextUses:118Used by:123
Symbol 120 EditableTextUses:115Used by:123
Symbol 121 TextUses:115Used by:123
Symbol 122 TextUses:115Used by:123
Symbol 123 MovieClip {dinowaurs_loaderFrame} [loaderFrame]Uses:2 114 116 117 119 120 121 122
Symbol 124 GraphicUsed by:135
Symbol 125 FontUsed by:126 127 128 129 133 134
Symbol 126 EditableTextUses:125Used by:135
Symbol 127 EditableTextUses:125Used by:135
Symbol 128 EditableTextUses:125Used by:135
Symbol 129 TextUses:125Used by:135
Symbol 130 GraphicUsed by:132
Symbol 131 GraphicUsed by:132
Symbol 132 MovieClipUses:130 131Used by:135
Symbol 133 TextUses:125Used by:135
Symbol 134 EditableTextUses:125Used by:135
Symbol 135 MovieClip {dinowaurs.managers.Main_dinoDupEntryClass} [dinoEntry]Uses:124 126 127 128 129 132 133 134
Symbol 136 GraphicUsed by:157
Symbol 137 GraphicUsed by:157
Symbol 138 GraphicUsed by:157
Symbol 139 GraphicUsed by:157
Symbol 140 GraphicUsed by:157
Symbol 141 GraphicUsed by:157
Symbol 142 GraphicUsed by:157
Symbol 143 GraphicUsed by:157
Symbol 144 GraphicUsed by:157
Symbol 145 GraphicUsed by:157
Symbol 146 GraphicUsed by:157
Symbol 147 GraphicUsed by:157
Symbol 148 GraphicUsed by:157
Symbol 149 GraphicUsed by:157
Symbol 150 GraphicUsed by:157
Symbol 151 GraphicUsed by:157
Symbol 152 GraphicUsed by:157
Symbol 153 GraphicUsed by:157
Symbol 154 GraphicUsed by:157
Symbol 155 GraphicUsed by:157
Symbol 156 GraphicUsed by:157
Symbol 157 MovieClip {dinowaurs.SpeedTest_explosion_mc} [explosion_medium]Uses:136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
Symbol 158 GraphicUsed by:163
Symbol 159 GraphicUsed by:163
Symbol 160 GraphicUsed by:163
Symbol 161 GraphicUsed by:163
Symbol 162 GraphicUsed by:163
Symbol 163 MovieClip {dinowaurs.SpeedTest_rocket_mc} [SAMrocket]Uses:158 159 160 161 162
Symbol 164 Font {dinowaurs_codex_font}
Symbol 165 Font {dinowaurs_monaco_font}

Instance Names

"loaderBar"Symbol 123 MovieClip {dinowaurs_loaderFrame} [loaderFrame] Frame 1Symbol 114 MovieClip
"counterNum"Symbol 123 MovieClip {dinowaurs_loaderFrame} [loaderFrame] Frame 1Symbol 117 EditableText
"debug_txt"Symbol 123 MovieClip {dinowaurs_loaderFrame} [loaderFrame] Frame 1Symbol 119 EditableText
"libName"Symbol 123 MovieClip {dinowaurs_loaderFrame} [loaderFrame] Frame 1Symbol 120 EditableText
"counterTotal"Symbol 123 MovieClip {dinowaurs_loaderFrame} [loaderFrame] Frame 1Symbol 117 EditableText
"id"Symbol 135 MovieClip {dinowaurs.managers.Main_dinoDupEntryClass} [dinoEntry] Frame 1Symbol 126 EditableText
"type"Symbol 135 MovieClip {dinowaurs.managers.Main_dinoDupEntryClass} [dinoEntry] Frame 1Symbol 127 EditableText
"color"Symbol 135 MovieClip {dinowaurs.managers.Main_dinoDupEntryClass} [dinoEntry] Frame 1Symbol 128 EditableText
"visible_sw"Symbol 135 MovieClip {dinowaurs.managers.Main_dinoDupEntryClass} [dinoEntry] Frame 1Symbol 132 MovieClip
"network_sw"Symbol 135 MovieClip {dinowaurs.managers.Main_dinoDupEntryClass} [dinoEntry] Frame 1Symbol 132 MovieClip
"timeSpawned"Symbol 135 MovieClip {dinowaurs.managers.Main_dinoDupEntryClass} [dinoEntry] Frame 1Symbol 134 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1459 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 1Symbol 123 as "loaderFrame"
ExportAssets (56)Timeline Frame 1Symbol 135 as "dinoEntry"
ExportAssets (56)Timeline Frame 1Symbol 157 as "explosion_medium"
ExportAssets (56)Timeline Frame 1Symbol 163 as "SAMrocket"
SerialNumber (41)Timeline Frame 1

Labels

"dinowaurs"Frame 1




http://swfchan.com/14/68513/info.shtml
Created: 11/4 -2019 00:03:26 Last modified: 11/4 -2019 00:03:26 Server time: 22/12 -2024 23:13:48