PackageGame
Classpublic class Draw
InheritanceDraw Inheritance Box2D.Dynamics.b2DebugDraw



Public Methods
 MethodDefined by
  
DrawCannon(shape:b2Shape, xf:b2XForm, color:b2Color, alpha:Number, showOutlines:Boolean = true):void
Draw
  
DrawCannonForOutline(shape:b2Shape, xf:b2XForm, color:b2Color, alpha:Number):void
Draw
  
DrawJoint(joint:b2Joint):void
Draw
  
DrawShape(shape:b2Shape, xf:b2XForm, color:b2Color, alpha:Number, showOutlines:Boolean = true, cannonball:Boolean = false):void
Draw
  
DrawShapeForOutline(shape:b2Shape, xf:b2XForm, color:b2Color, alpha:Number):void
Draw
  
DrawTempShape(creatingItem:int, actionStep:int, firstClickX:Number, firstClickY:Number, secondClickX:Number, secondClickY:Number, mouseX:Number, mouseY:Number):void
Draw
  
DrawWorld(allParts:Array, selectedParts:Array, world:b2World, notStarted:Boolean, drawStatic:Boolean = true, showJoints:Boolean = true, showOutlines:Boolean = true, challenge:Challenge = null):void
Draw
Method detail
DrawCannon()method
public function DrawCannon(shape:b2Shape, xf:b2XForm, color:b2Color, alpha:Number, showOutlines:Boolean = true):voidParameters
shape:b2Shape
 
xf:b2XForm
 
color:b2Color
 
alpha:Number
 
showOutlines:Boolean (default = true)
DrawCannonForOutline()method 
public function DrawCannonForOutline(shape:b2Shape, xf:b2XForm, color:b2Color, alpha:Number):voidParameters
shape:b2Shape
 
xf:b2XForm
 
color:b2Color
 
alpha:Number
DrawJoint()method 
public function DrawJoint(joint:b2Joint):voidParameters
joint:b2Joint
DrawShape()method 
public function DrawShape(shape:b2Shape, xf:b2XForm, color:b2Color, alpha:Number, showOutlines:Boolean = true, cannonball:Boolean = false):voidParameters
shape:b2Shape
 
xf:b2XForm
 
color:b2Color
 
alpha:Number
 
showOutlines:Boolean (default = true)
 
cannonball:Boolean (default = false)
DrawShapeForOutline()method 
public function DrawShapeForOutline(shape:b2Shape, xf:b2XForm, color:b2Color, alpha:Number):voidParameters
shape:b2Shape
 
xf:b2XForm
 
color:b2Color
 
alpha:Number
DrawTempShape()method 
public function DrawTempShape(creatingItem:int, actionStep:int, firstClickX:Number, firstClickY:Number, secondClickX:Number, secondClickY:Number, mouseX:Number, mouseY:Number):voidParameters
creatingItem:int
 
actionStep:int
 
firstClickX:Number
 
firstClickY:Number
 
secondClickX:Number
 
secondClickY:Number
 
mouseX:Number
 
mouseY:Number
DrawWorld()method 
public function DrawWorld(allParts:Array, selectedParts:Array, world:b2World, notStarted:Boolean, drawStatic:Boolean = true, showJoints:Boolean = true, showOutlines:Boolean = true, challenge:Challenge = null):voidParameters
allParts:Array
 
selectedParts:Array
 
world:b2World
 
notStarted:Boolean
 
drawStatic:Boolean (default = true)
 
showJoints:Boolean (default = true)
 
showOutlines:Boolean (default = true)
 
challenge:Challenge (default = null)