| Package | com.whirled.contrib.platformer.board |
| Class | public class SimpleActorBounds |
| Inheritance | SimpleActorBounds ActorBounds DynamicBounds |
| Implements | SimpleBounds |
| Property | Defined by | ||
|---|---|---|---|
![]() | actor : Actor | ActorBounds | |
![]() | controller : DynamicController | DynamicBounds | |
![]() | dyn : Dynamic | DynamicBounds | |
| fcCalls : int = 0 [static]
| SimpleActorBounds | ||
| hitX : Boolean | SimpleActorBounds | ||
| hitY : Boolean | SimpleActorBounds | ||
| Property | Defined by | ||
|---|---|---|---|
| _buffer : Array | SimpleActorBounds | ||
![]() | _collider : Collider | DynamicBounds | |
| _hitX : Boolean | SimpleActorBounds | ||
| _hitY : Boolean | SimpleActorBounds | ||
| _lines : Array | SimpleActorBounds | ||
| _log : String | SimpleActorBounds | ||
| _mlines : Array | SimpleActorBounds | ||
![]() | _rect : Rect | DynamicBounds | |
| _resetMLines : Boolean | SimpleActorBounds | ||
| Method | Defined by | ||
|---|---|---|---|
| SimpleActorBounds | |||
|
adjustHeight(newHeight:Number):Boolean
| SimpleActorBounds | ||
![]() |
checkAndPush(dest:Array, source:Array):void
| DynamicBounds | |
|
collidedWith(ab:SimpleActorBounds, crosslines:Array):void
| SimpleActorBounds | ||
|
Returns an array of crossing lines.
| SimpleActorBounds | ||
|
Returns true if any of the actor bounds crosses the line after the translation.
| SimpleActorBounds | ||
| SimpleActorBounds | |||
| SimpleActorBounds | |||
|
getBoundLines():Array
| SimpleActorBounds | ||
![]() |
getInteractingBounds():Array
| DynamicBounds | |
|
getMovementBoundLines():Array
| SimpleActorBounds | ||
![]() | DynamicBounds | ||
|
Returns true if any part of the actor is inside the convex shape made by the two lines.
| SimpleActorBounds | ||
![]() |
isInteresting(db:DynamicBounds):Boolean
| DynamicBounds | |
|
move(cd:ColliderDetails):Number
Attempts to move an actor on it's current vector for the supplied amount of time.
| SimpleActorBounds | ||
|
simpleCollide(ab:SimpleActorBounds):Boolean
Returns true if these actors are colliding.
| SimpleActorBounds | ||
|
simpleCollideLines(olines:Array):Boolean
| SimpleActorBounds | ||
|
translate(dX:Number, dY:Number):void
Translates the actor and updates all the boundary data.
| SimpleActorBounds | ||
|
updateBounds():void
| SimpleActorBounds | ||
![]() | DynamicBounds | ||
| Method | Defined by | ||
|---|---|---|---|
|
clearLog():void
| SimpleActorBounds | ||
![]() |
dynamicCollider(cd:ColliderDetails):void
| DynamicBounds | |
![]() | DynamicBounds | ||
![]() |
dynUpdateLD(line:LineData, x1:Number, y1:Number, x2:Number, y2:Number, reset:Boolean = false):void
| DynamicBounds | |
|
flog(... data):void
| SimpleActorBounds | ||
|
genMovementBounds(cdX:Number, cdY:Number):void
| SimpleActorBounds | ||
|
getLines():Array
| SimpleActorBounds | ||
| SimpleActorBounds | |||
|
log(... data):void
| SimpleActorBounds | ||
| SimpleActorBounds | |||
|
startLog():void
| SimpleActorBounds | ||
|
writeLog():void
| SimpleActorBounds | ||
| Constant | Defined by | ||
|---|---|---|---|
| DEBUG : Boolean = false [static]
| SimpleActorBounds | ||
| Constant | Defined by | ||
|---|---|---|---|
| ACTOR_BOUND : int [static]
| SimpleActorBounds | ||
| MIN_ATTACH_DIST : Number = 0.1 [static]
| SimpleActorBounds | ||
| _buffer | property |
protected var _buffer:Array
| fcCalls | property |
public static var fcCalls:int = 0
| _hitX | property |
protected var _hitX:Boolean
| hitX | property |
hitX:Boolean [read-write]Implementation
public function get hitX():Boolean
public function set hitX(value:Boolean):void
| _hitY | property |
protected var _hitY:Boolean
| hitY | property |
hitY:Boolean [read-write]Implementation
public function get hitY():Boolean
public function set hitY(value:Boolean):void
| _lines | property |
protected var _lines:Array
| _log | property |
protected var _log:String
| _mlines | property |
protected var _mlines:Array
| _resetMLines | property |
protected var _resetMLines:Boolean
| SimpleActorBounds | () | constructor |
public function SimpleActorBounds(ac:ActorController, c:Collider)Parameters
ac:ActorController |
|
c:Collider |
| adjustHeight | () | method |
public function adjustHeight(newHeight:Number):BooleanParameters
newHeight:Number |
Boolean |
| clearLog | () | method |
protected function clearLog():void
| collidedWith | () | method |
public function collidedWith(ab:SimpleActorBounds, crosslines:Array):voidParameters
ab:SimpleActorBounds |
|
crosslines:Array |
| crossers | () | method |
public function crossers(ld:LineData, xd:Number, yd:Number):ArrayReturns an array of crossing lines.
Parametersld:LineData |
|
xd:Number |
|
yd:Number |
Array |
| didCross | () | method |
public function didCross(ld:LineData, xd:Number, yd:Number):BooleanReturns true if any of the actor bounds crosses the line after the translation.
Parametersld:LineData |
|
xd:Number |
|
yd:Number |
Boolean |
| findColliders | () | method |
public function findColliders(delta:Number, cd:ColliderDetails = null):ColliderDetailsParameters
delta:Number |
|
cd:ColliderDetails (default = null) |
ColliderDetails |
| flog | () | method |
protected function flog(... data):voidParameters
... data |
| genMovementBounds | () | method |
protected function genMovementBounds(cdX:Number, cdY:Number):voidParameters
cdX:Number |
|
cdY:Number |
| getBottomLine | () | method |
| getBoundLines | () | method |
public function getBoundLines():Array
Returns
Array |
| getLines | () | method |
protected function getLines():Array
Returns
Array |
| getMovementBoundLines | () | method |
public function getMovementBoundLines():Array
Returns
Array |
| inYBounds | () | method |
| isContained | () | method |
public function isContained(ld0:LineData, ld1:LineData, sides:Array):BooleanReturns true if any part of the actor is inside the convex shape made by the two lines.
Parametersld0:LineData |
|
ld1:LineData |
|
sides:Array |
Boolean |
| log | () | method |
protected function log(... data):voidParameters
... data |
| move | () | method |
public function move(cd:ColliderDetails):NumberAttempts to move an actor on it's current vector for the supplied amount of time. If the actor collides with any world objects, the actor may get attached to a new ground line, the movement vector may be altered. returns: The remaining time left after the first collision occured.
Parameterscd:ColliderDetails |
Number |
| pointLine | () | method |
protected function pointLine(x:Number, y:Number):LineDataParameters
x:Number |
|
y:Number |
LineData |
| simpleCollide | () | method |
public function simpleCollide(ab:SimpleActorBounds):BooleanReturns true if these actors are colliding.
Parametersab:SimpleActorBounds |
Boolean |
| simpleCollideLines | () | method |
public function simpleCollideLines(olines:Array):BooleanParameters
olines:Array |
Boolean |
| startLog | () | method |
protected function startLog():void
| translate | () | method |
public override function translate(dX:Number, dY:Number):voidTranslates the actor and updates all the boundary data.
ParametersdX:Number |
|
dY:Number |
| updateBounds | () | method |
public override function updateBounds():void
| writeLog | () | method |
protected function writeLog():void
| ACTOR_BOUND | constant |
protected static const ACTOR_BOUND:int
| DEBUG | constant |
public static const DEBUG:Boolean = false
| MIN_ATTACH_DIST | constant |
protected static const MIN_ATTACH_DIST:Number = 0.1