A HitTestable that always returns the boolean value
passed to the constructor.
public function BoolHitTestable(b:Boolean)
Creates an instance which always returns the passed value.
Parameters
| b:Boolean — The boolean value to return.
|
public function isHit(x:Number, y:Number, ctx:ICanvasContext):Boolean
Always returns the boolean value passed in the constructor function.
Parameters
| x:Number — Not used.
|
| |
| y:Number — Not used.
|
| |
| ctx:ICanvasContext — Not used.
|
Returns
| Boolean — The boolean value passed in the constructor.
|