home *** CD-ROM | disk | FTP | other *** search
- package Code.LOGIC.OBJECTS.ACTORS.BLOB
- {
- import Code.LIB.SOUND._wj196;
- import Code.LIB._bm350;
- import Code.LIB._iv163;
- import Code.LIB._uu24;
- import Code.LOGIC.OBJECTS.ACTORS.INTERFACES._mk516;
- import Code.LOGIC.OBJECTS.ACTORS.RECTS._hk305;
- import Code.LOGIC.OBJECTS.ACTORS.RECTS._tr528;
- import Code.LOGIC._cd449;
- import Code.org.cove.ape._be271;
- import Code.org.cove.ape._hu144;
- import Code.org.cove.ape._ku414;
- import Code.org.cove.ape._ms106;
- import Code.org.cove.ape._yo331;
-
- public class _la458 extends _ku414 implements _mk516
- {
-
- public static const stMove:int = 4;
-
- public static const stNormal:int = 0;
-
- public static const stSwim:int = 7;
-
- public static const stFly:int = 6;
-
- public static const stInvisible:int = 1;
-
- public static const stFree:int = 9;
-
- public static const stJump:int = 5;
-
- public static const stDelay:int = 8;
-
- public static const stFixed:int = 3;
-
- public static const stPlum:int = 10;
-
- public static const stNone:int = 2;
-
-
- protected var initalState:int;
-
- private var id:int;
-
- protected var initalCoords:_be271;
-
- private var color:int;
-
- private var _group:_yo331;
-
- public var onUpdate:Function;
-
- protected var state:int;
-
- public function _la458(param1:Object)
- {
- var _loc2_:_ms106 = null;
- var _loc3_:_iv163 = null;
- super(param1.x,param1.y,param1.radius,false);
- id = param1._tp253;
- color = param1.color;
- owner = this;
- _loc2_ = new _ms106();
- _loc2_.graphics.beginFill(color,1);
- _loc2_.graphics.drawCircle(0,0,param1.radius * _bm350._tc204);
- _loc2_.graphics.endFill();
- _loc3_ = _uu24._ec508(_loc2_);
- _loc2_.addChild(_loc3_);
- _mb474(_loc2_);
- initalCoords = new _be271(param1.x,param1.y);
- _my161 = _un167;
- }
-
- public static function _lu255() : Object
- {
- var _loc1_:Object = null;
- return {
- "toolClass":_hg469,
- "name":"blob",
- "params":{
- "radius":10,
- "color":16448250,
- "states":[["jump",_la458.stJump],["fly",_la458.stFly]]
- }
- };
- }
-
- public function set group(param1:_yo331) : void
- {
- _group = param1;
- }
-
- public function _nu27(param1:_hk305) : void
- {
- if(state != stSwim && state != stInvisible)
- {
- State = stSwim;
- }
- }
-
- public function get _tp253() : int
- {
- return id;
- }
-
- public function get State() : int
- {
- return this.state;
- }
-
- public function get group() : _yo331
- {
- return _group;
- }
-
- private function _un167(param1:_hu144, param2:_hu144) : void
- {
- if(param2.owner is _tr528 && _tr528(param2.owner).fixed == false)
- {
- State = stPlum;
- }
- }
-
- public function _eu538() : Object
- {
- var _loc1_:Object = null;
- _loc1_ = new Object();
- _loc1_.prClass = "TActorBlob";
- _loc1_.x = _ej28;
- _loc1_.y = _th99;
- _loc1_.radius = radius;
- _loc1_.State = initalState;
- return _loc1_;
- }
-
- public function _ur45() : Object
- {
- var _loc1_:Object = null;
- _loc1_ = _lu255();
- _loc1_.x = _ej28;
- _loc1_.y = _th99;
- _loc1_.radius = radius;
- return _loc1_;
- }
-
- override public function update(param1:Number) : void
- {
- if(onUpdate != null)
- {
- this.onUpdate(this);
- }
- super.update(param1);
- }
-
- public function get _do489() : Boolean
- {
- return state == stInvisible;
- }
-
- public function set State(param1:int) : void
- {
- var _loc2_:Number = NaN;
- this.state = param1;
- switch(state)
- {
- case stPlum:
- break;
- case stSwim:
- if(_cd449.timerWater > 30)
- {
- _loc2_ = _cd449.BLOB._ej28;
- if(Math.abs(_loc2_ - _ej28) < _cd449.screenWidth * 0.8)
- {
- _wj196._va384("bulb");
- _cd449.timerWater = 0;
- }
- }
- }
- }
-
- public function _xa427() : void
- {
- State = stInvisible;
- }
- }
- }
-