home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 148
/
MOBICLIC148.ISO
/
mac
/
DATA
/
DSS148
/
DSS148_01
/
DSS148_01.swf
/
scripts
/
dss148_01
/
Enemy.as
< prev
next >
Wrap
Text File
|
2012-10-16
|
3KB
|
111 lines
package dss148_01
{
import com.milanpresse.engine.timelines.TimelineLinear;
import com.milanpresse.engineaddons.facades.EngineExt;
import com.milanpresse.engineaddons.initdisplayobject.ExtendedClip;
import flash.display.DisplayObject;
import flash.display.MovieClip;
import flash.geom.Point;
public class Enemy
{
private var _e:EngineExt;
public var clip:ExtendedClip;
public var pointsHitLogi:Number = -20;
public var speedOriX:Number = 2;
public var speedX:Number = 2;
public var timeline:TimelineLinear;
public var type:String;
public var launched:Boolean = false;
public var intouchable:Boolean = false;
public var hited:Boolean = false;
public function Enemy(param1:Object)
{
super();
this._e = param1.engineExt;
this.type = param1.type;
this.clip = new ExtendedClip(param1.clip as MovieClip,this._e);
this.pointsHitLogi = param1.pointsHitLogi;
this.speedOriX = param1.speedOriX;
this.timeline = new TimelineLinear(this.clip.movie,this._e.engine,this,this._e.timelineManager,{
"E2":"prioAnim",
"E3":"prioAnim"
});
this.timeline.GotoAndStop("E1");
this.visible = false;
}
public function gotoAndStop(param1:*, param2:Function = null) : void
{
this.clip.gotoAndStop(param1,param2);
}
public function getChildByName(param1:String) : DisplayObject
{
return this.clip.getChildByName(param1);
}
public function get scaleX() : Number
{
return this.clip.scaleX;
}
public function set scaleX(param1:Number) : void
{
this.clip.scaleX = param1;
}
public function get x() : Number
{
return this.clip.x;
}
public function set x(param1:Number) : void
{
this.clip.x = param1;
}
public function get y() : Number
{
return this.clip.y;
}
public function set y(param1:Number) : void
{
this.clip.y = param1;
}
public function set visible(param1:Boolean) : void
{
this.clip.visible = param1;
}
public function get visible() : Boolean
{
return this.clip.visible;
}
public function localToGlobal(param1:Point) : Point
{
return this.clip.movie.localToGlobal(param1);
}
public function hitTestPoint(param1:Number, param2:Number, param3:Boolean = false) : Boolean
{
return this.clip.hitTestPoint(param1,param2,param3);
}
}
}