Packagecom.whirled.contrib.platformer.piece
Classpublic class DestructableGate
InheritanceDestructableGate Inheritance Gate Inheritance RectDynamic Inheritance Dynamic

A gate that can be destroyed by shooting.



Public Properties
 PropertyDefined by
 InheriteddeathSoundEffect : SoundEffect
Gate
 Inheriteddx : Number
Dynamic
 Inheriteddy : Number
Dynamic
 InheritedenemyCount : int
Dynamic
  health : Number
DestructableGate
 Inheritedheight : Number = 0
RectDynamic
  hitCollision : Collision
DestructableGate
 Inheritedid : int
Dynamic
 Inheritedinter : int
Dynamic
  missCollision : Collision
DestructableGate
 Inheritedopen : Boolean
Gate
 Inheritedowner : int
Dynamic
  playerImpervious : Boolean
DestructableGate
 InheritedsoundEvents : Array
Dynamic
 Inheritedsprite : String
Dynamic
  startHealth : Number
DestructableGate
 Inheritedtype : String
Dynamic
 InheritedupdateState : int
Dynamic
  wasHit : Boolean
DestructableGate
 Inheritedwidth : Number = 0
RectDynamic
 Inheritedx : Number
Dynamic
 Inheritedy : Number
Dynamic
Protected Properties
 PropertyDefined by
 Inherited_dx : Number = 0
Dynamic
 Inherited_dy : Number = 0
Dynamic
  _health : Number
DestructableGate
 Inherited_inState : int
Dynamic
 Inherited_inter : int
Dynamic
 Inherited_owner : int
Dynamic
 Inherited_x : Number = 0
Dynamic
 Inherited_y : Number = 0
Dynamic
Public Methods
 MethodDefined by
  
DestructableGate(insxml:XML = null)
DestructableGate
 Inherited
alwaysSpawn():Boolean
Dynamic
 Inherited
amOwner():Boolean
Dynamic
 Inherited
equals(other:Object):Boolean
Dynamic
 Inherited
forceOwner():Boolean
Dynamic
  
fromBytes(bytes:ByteArray):void
DestructableGate
 Inherited
RectDynamic
 Inherited
getNewOwner(closest:int):int
Dynamic
 Inherited
hashCode():int
Dynamic
 Inherited
isAlive():Boolean
Dynamic
 Inherited
isAttachable():Boolean
Gate
 Inherited
ownerType():int
Gate
 Inherited
shouldSpawn():Boolean
Dynamic
 Inherited
spawnDist():Number
Dynamic
  
toBytes(bytes:ByteArray = null):ByteArray
DestructableGate
 Inherited
useCache():Boolean
Dynamic
  
DestructableGate
Public Constants
 ConstantDefined by
 InheritedDEAD : int = 3
[static]
Dynamic
 InheritedDYN_COUNT : int = 2
[static]
Dynamic
 InheritedENEMY : int = 2
[static]
Dynamic
  GATE_COUNT : int = 3
[static]
DestructableGate
 InheritedGLOBAL : int = 0
[static]
Dynamic
 InheritedOWN_ALL : int = 3
[static]
Dynamic
 InheritedOWN_PLAYER : int = 1
[static]
Dynamic
 InheritedOWN_SERVER : int = 2
[static]
Dynamic
 InheritedPLAYER : int = 1
[static]
Dynamic
 InheritedSPAWN : int = 4
[static]
Dynamic
  U_HEALTH : int
[static]
DestructableGate
 InheritedU_INTER : int
[static]
Dynamic
 InheritedU_POS : int
[static]
Dynamic
 InheritedU_VEL : int
[static]
Dynamic
Property detail
_healthproperty
protected var _health:Number
healthproperty 
health:Number  [read-write]Implementation
    public function get health():Number
    public function set health(value:Number):void
hitCollisionproperty 
public var hitCollision:Collision
missCollisionproperty 
public var missCollision:Collision
playerImperviousproperty 
public var playerImpervious:Boolean
startHealthproperty 
public var startHealth:Number
wasHitproperty 
public var wasHit:Boolean
Constructor detail
DestructableGate()constructor
public function DestructableGate(insxml:XML = null)Parameters
insxml:XML (default = null)
Method detail
fromBytes()method
public override function fromBytes(bytes:ByteArray):voidParameters
bytes:ByteArray
toBytes()method 
public override function toBytes(bytes:ByteArray = null):ByteArrayParameters
bytes:ByteArray (default = null)

Returns
ByteArray
xmlInstance()method 
public override function xmlInstance():XML

Returns
XML
Constant detail
GATE_COUNTconstant
public static const GATE_COUNT:int = 3
U_HEALTHconstant 
public static const U_HEALTH:int