PackageGame
Classpublic class Condition
SubclassesLossCondition, WinCondition



Public Properties
 PropertyDefined by
  isSatisfied : Boolean = false
Condition
  maxX : Number
Condition
  maxY : Number
Condition
  minX : Number
Condition
  minY : Number
Condition
  name : String
Condition
  object : int
Condition
  shape1 : ShapePart = null
Condition
  shape1Index : int = -1
Condition
  shape2 : ShapePart = null
Condition
  shape2Index : int = -1
Condition
  subject : int
Condition
Public Methods
 MethodDefined by
  
Condition(n:String, s:int, o:int)
Condition
  
ContactAdded(point:b2ContactPoint, parts:Array, cannonballs:Array):void
Condition
  
Update(parts:Array, cannonballs:Array):void
Condition
Property detail
isSatisfiedproperty
public var isSatisfied:Boolean = false
maxXproperty 
public var maxX:Number
maxYproperty 
public var maxY:Number
minXproperty 
public var minX:Number
minYproperty 
public var minY:Number
nameproperty 
public var name:String
objectproperty 
public var object:int
shape1property 
public var shape1:ShapePart = null
shape1Indexproperty 
public var shape1Index:int = -1
shape2property 
public var shape2:ShapePart = null
shape2Indexproperty 
public var shape2Index:int = -1
subjectproperty 
public var subject:int
Constructor detail
Condition()constructor
public function Condition(n:String, s:int, o:int)Parameters
n:String
 
s:int
 
o:int
Method detail
ContactAdded()method
public function ContactAdded(point:b2ContactPoint, parts:Array, cannonballs:Array):voidParameters
point:b2ContactPoint
 
parts:Array
 
cannonballs:Array
Update()method 
public function Update(parts:Array, cannonballs:Array):voidParameters
parts:Array
 
cannonballs:Array