| Package | com.kraftner.justlineon.lineservers |
| Class | public class LineServer |
| Inheritance | LineServer flash.display.Sprite |
| Subclasses | AlwaysTurn, AlwaysTurnImplosion, CircularExplosion, CircularImplosion, PathPlayer |
This Class defines the base functionality of all LineServers. It doesn't create any path on it's own but uses the mousePosition instead.
| Property | Defined by | ||
|---|---|---|---|
| isAlive : Boolean [read-only]
true if this LineServer is active
| LineServer | ||
| Property | Defined by | ||
|---|---|---|---|
| counter : uint = 0
Counts the number of Segments already drawn
| LineServer | ||
| initial_angle : Number = 0 | LineServer | ||
| initial_length : Number = 0 | LineServer | ||
| initial_rel_x : Number = 0 | LineServer | ||
| initial_rel_y : Number = 0 | LineServer | ||
| initial_x : Number = 0 | LineServer | ||
| initial_y : Number = 0 | LineServer | ||
| killme : Boolean = false
Stores if this Lineserver is active or not.
| LineServer | ||
| newSegment : Segment
[read-only]
This method defines the new Segment.
| LineServer | ||
| prev_Segment : Segment | LineServer | ||
| Method | Defined by | ||
|---|---|---|---|
| LineServer | |||
|
addPainter(painter:Painter):void
Adds a Painter to this LineServer
| LineServer | ||
|
addPointTransformer(pointTransformer:PointTransformer):void
Adds a PointTransformer to this LineServer
| LineServer | ||
|
destroy():void
Contains Code to be executed when this LineServer is destroyed.
| LineServer | ||
|
dump():void
Dumps the content of all Painters in this LineServer to a Bitmap.
| LineServer | ||
|
step():Boolean
This method is called by the main application to trigger a new Segment.
| LineServer | ||
| counter | property |
protected var counter:uint = 0Counts the number of Segments already drawn
| initial_angle | property |
protected var initial_angle:Number = 0
| initial_length | property |
protected var initial_length:Number = 0
| initial_rel_x | property |
protected var initial_rel_x:Number = 0
| initial_rel_y | property |
protected var initial_rel_y:Number = 0
| initial_x | property |
protected var initial_x:Number = 0
| initial_y | property |
protected var initial_y:Number = 0
| isAlive | property |
isAlive:Boolean [read-only]true if this LineServer is active
Implementation public function get isAlive():Boolean
See also
| killme | property |
protected var killme:Boolean = falseStores if this Lineserver is active or not.
See also
| newSegment | property |
newSegment:Segment [read-only]This method defines the new Segment. It should be overwritten if you subclass your own LineServer.
Implementation protected function get newSegment():Segment
| prev_Segment | property |
protected var prev_Segment:Segment
| LineServer | () | constructor |
public function LineServer()
| addPainter | () | method |
public function addPainter(painter:Painter):voidAdds a Painter to this LineServer
Parameterspainter:Painter — Painter to add to this LineServer
|
| addPointTransformer | () | method |
public function addPointTransformer(pointTransformer:PointTransformer):voidAdds a PointTransformer to this LineServer
ParameterspointTransformer:PointTransformer — PointTransformer to add to this LineServer
|
| destroy | () | method |
public function destroy():voidContains Code to be executed when this LineServer is destroyed. Use this to destroy all kinds of Listeners and other dependencies. Should be overwritten in Subclasses.
| dump | () | method |
public function dump():voidDumps the content of all Painters in this LineServer to a Bitmap. This makes Vector export impossible but improves performance.
| step | () | method |
public function step():BooleanThis method is called by the main application to trigger a new Segment.
ReturnsBoolean — true if this LineServer is deactivated
|
See also