Packageorg.rapidphysics
Classpublic class RapidWorld
InheritanceRapidWorld Inheritance RapidGroup Inheritance RapidBasic Inheritance Object
Subclasses SuperPong, TestCircles, TestLineCircle, TestMovingPoint, TestMovingPointWithCircles, TestWorld, TitleScreen

RapidWorld is like FlxState. All physics, gameplay, and/or menu screens should be classes that extend RapidWorld



Public Properties
 PropertyDefined By
 Inheritedactive : Boolean
RapidBasic
 Inheritedexists : Boolean
RapidBasic
  flashSprite : Sprite
Convenient access point to the Flash Display List
RapidWorld
 Inheritedvisible : Boolean
RapidBasic
Protected Properties
 PropertyDefined By
  host : RapidSim
RapidWorld
  islandManager : IslandManager
Add your Islands to this manager!
RapidWorld
 Inheritedmembers : Vector.<RapidBasic>
RapidGroup
 InheritedmembersDict : Dictionary
RapidGroup
Public Methods
 MethodDefined By
  
RapidWorld
  
add(basic:RapidBasic):void
[override] Add objects to the world (very important!)
RapidWorld
  
create():void
Override this function with your initilization code
RapidWorld
 Inherited
debugDraw():void
[override]
RapidGroup
 Inherited
destroy():void
[override]
RapidGroup
 Inherited
draw():void
[override]
RapidGroup
  
postUpdate():void
[override]
RapidWorld
 Inherited
preDraw():void
[override]
RapidGroup
  
preUpdate():void
[override]
RapidWorld
 Inherited
RapidGroup
  
setBackgroundColor(color:uint, alpha:Number = 1.0):void
RapidWorld
  
setHost(host:RapidSim):void
RapidWorld
 Inherited
update():void
[override]
RapidGroup
Property Detail
flashSpriteproperty
public var flashSprite:Sprite

Convenient access point to the Flash Display List

hostproperty 
protected var host:RapidSim

islandManagerproperty 
protected var islandManager:IslandManager

Add your Islands to this manager!

Constructor Detail
RapidWorld()Constructor
public function RapidWorld()



Method Detail
add()method
override public function add(basic:RapidBasic):void

Add objects to the world (very important!)

Parameters

basic:RapidBasic

create()method 
public function create():void

Override this function with your initilization code

postUpdate()method 
override public function postUpdate():void

preUpdate()method 
override public function preUpdate():void

setBackgroundColor()method 
public function setBackgroundColor(color:uint, alpha:Number = 1.0):void

Parameters

color:uint
 
alpha:Number (default = 1.0)

setHost()method 
public function setHost(host:RapidSim):void

Parameters

host:RapidSim