Packagecom.whirled.contrib.platformer.display
Classpublic class DestructableGateSprite
InheritanceDestructableGateSprite Inheritance GateSprite Inheritance DynamicSprite Inheritance flash.display.Sprite



Public Properties
 PropertyDefined by
 InheriteddisplayHeight : Number
DynamicSprite
 InheriteddisplayWidth : Number
DynamicSprite
Protected Properties
 PropertyDefined by
  _dg : DestructableGate
DestructableGateSprite
 Inherited_disp : DisplayObject
DynamicSprite
 Inherited_dynamic : Dynamic
DynamicSprite
 Inherited_gate : Gate
GateSprite
 Inherited_hitFilter : ColorMatrixFilter
DynamicSprite
 Inherited_hitFilterIndex : int
DynamicSprite
 Inherited_hitLeft : Number = 0
DynamicSprite
 Inherited_listeners : Object
DynamicSprite
 Inherited_particleCallback : Function
DynamicSprite
 Inherited_state : int = -1
DynamicSprite
 Inherited_static : Boolean
DynamicSprite
Public Methods
 MethodDefined by
  
DestructableGateSprite(dg:DestructableGate, disp:DisplayObject = null)
DestructableGateSprite
 Inherited
forceBack():Boolean
DynamicSprite
 Inherited
DynamicSprite
 Inherited
setParticleCallback(callback:Function):void
DynamicSprite
 Inherited
setStatic(s:Boolean):void
DynamicSprite
 Inherited
showState():int
DynamicSprite
 Inherited
shutdown():void
DynamicSprite
  
update(delta:Number):void
DestructableGateSprite
Protected Methods
 MethodDefined by
 Inherited
bindSoundEffectPlayback(soundEffect:SoundEffect):Function
DynamicSprite
 Inherited
changeState(newState:int):void
DynamicSprite
 Inherited
clearDisp():void
DynamicSprite
 Inherited
findNode(node:String, disp:DisplayObject):DisplayObject
DynamicSprite
 Inherited
generateAttachedEffect(name:String, node:DisplayObjectContainer):void
DynamicSprite
 Inherited
generateEffect(effect:Effect, node:DisplayObject, filter:ColorMatrixFilter = null, scaleY:Number = 1):void
DynamicSprite
  
getStateFrame(state:int):Object
DestructableGateSprite
 Inherited
handleAdded(event:Event):void
DynamicSprite
 Inherited
handleRemoved(event:Event):void
DynamicSprite
  
idle():void
DestructableGateSprite
 Inherited
isDead(state:int):Boolean
GateSprite
 Inherited
onAdded():void
DynamicSprite
 Inherited
onRemoved():void
DynamicSprite
 Inherited
DynamicSprite
 Inherited
playState():void
DynamicSprite
 Inherited
recolorNodes(node:String, disp:DisplayObject, filter:ColorMatrixFilter):void
DynamicSprite
 Inherited
recolorNodesToColor(node:String, disp:DisplayObject, color:int):ColorMatrixFilter
DynamicSprite
 Inherited
registerDispEventListener(event:String, func:Function):void
DynamicSprite
  
setDamageState(damage:int, damaged:int):void
DestructableGateSprite
 Inherited
setSoundEffectPlaying(effect:SoundEffect, playing:Boolean):void
DynamicSprite
 Inherited
showHit(filter:ColorMatrixFilter = null, length:Number):Boolean
DynamicSprite
 Inherited
DynamicSprite
Public Constants
 ConstantDefined by
 InheritedALWAYS : int = 1
[static]
DynamicSprite
 InheritedNEVER : int = 2
[static]
DynamicSprite
 InheritedNORMAL : int = 0
[static]
DynamicSprite
 InheritedUNTIL_REMOVED : int = 3
[static]
DynamicSprite
Protected Constants
 ConstantDefined by
  DAMAGE_1 : int = 3
[static]
DestructableGateSprite
  DAMAGE_2 : int = 5
[static]
DestructableGateSprite
  DAMAGED_1 : int = 4
[static]
DestructableGateSprite
  DAMAGED_2 : int = 6
[static]
DestructableGateSprite
 InheritedDEAD : int = 2
[static]
GateSprite
 InheritedDEATH : int = 1
[static]
GateSprite
  DGS_STATES : Array
[static]
DestructableGateSprite
 InheritedGS_COUNT : int = 3
[static]
GateSprite
 InheritedGS_STATES : Array
[static]
GateSprite
 InheritedHIT_LENGTH : Number = 0.1
[static]
DynamicSprite
 InheritedIDLE : int = 0
[static]
GateSprite
 InheritedSOUND_NORMAL_DISTANCE : Number
[static]
DynamicSprite
Property detail
_dgproperty
protected var _dg:DestructableGate
Constructor detail
DestructableGateSprite()constructor
public function DestructableGateSprite(dg:DestructableGate, disp:DisplayObject = null)Parameters
dg:DestructableGate
 
disp:DisplayObject (default = null)
Method detail
getStateFrame()method
protected override function getStateFrame(state:int):ObjectParameters
state:int

Returns
Object
idle()method 
protected override function idle():void
setDamageState()method 
protected function setDamageState(damage:int, damaged:int):voidParameters
damage:int
 
damaged:int
update()method 
public override function update(delta:Number):voidParameters
delta:Number
Constant detail
DAMAGE_1constant
protected static const DAMAGE_1:int = 3
DAMAGE_2constant 
protected static const DAMAGE_2:int = 5
DAMAGED_1constant 
protected static const DAMAGED_1:int = 4
DAMAGED_2constant 
protected static const DAMAGED_2:int = 6
DGS_STATESconstant 
protected static const DGS_STATES:Array