Source

ld3k / objs / Line.as

Full commit
package objs
{
	public class Line extends Obj
	{
		public var startx:Number;
		public var starty:Number;
		public var endx:Number;
		public var endy:Number;
		
		public function Line(Frame:int, Startx:Number, Starty:Number,
							Endx:Number, Endy:Number, Dx:Number=0, Dy:Number=0, Both:Boolean=false)
		{
			frame = Frame;
			startx = Both ? Startx+Dx : Startx;
			starty = Both ? Starty+Dy : Starty;
			endx = Endx+Dx;
			endy = Endy+Dy;
		}
	}
}