Packagecom.pblabs.engine.core
Classpublic class PBSet
InheritancePBSet Inheritance PBObject Inheritance Object

Set of PBObjects. A PBObject may be in many sets; sets do not destroy their contained objects when they are destroyed. Sets automatically remove destroy()'ed objects.



Public Properties
 PropertyDefined By
 Inheritedalias : String
[read-only]
PBObject
  length : int
[read-only]
PBSet
 Inheritedname : String
[read-only]
PBObject
 InheritedowningGroup : PBGroup
PBObject
Protected Properties
 PropertyDefined By
  items : Array
PBSet
 Inherited_name : String
PBObject
 Inherited_owningGroup : PBGroup
PBObject
 Inherited_sets : Array
PBObject
Public Methods
 MethodDefined By
  
add(item:PBObject):Boolean
PBSet
  
clear():void
Destroy all the objects in this set, but do not delete the set.
PBSet
  
contains(item:PBObject):Boolean
PBSet
  
destroy():void
[override]
PBSet
  
getItem(index:int):PBObject
PBSet
 Inherited
initialize(name:String = null, alias:String = null):void
PBObject
 Inherited
PBObject
 Inherited
PBObject
  
remove(item:PBObject):Boolean
PBSet
Property Detail
itemsproperty
protected var items:Array

lengthproperty 
length:int  [read-only]


Implementation
    public function get length():int
Method Detail
add()method
public function add(item:PBObject):Boolean

Parameters

item:PBObject

Returns
Boolean
clear()method 
public function clear():void

Destroy all the objects in this set, but do not delete the set.

contains()method 
public function contains(item:PBObject):Boolean

Parameters

item:PBObject

Returns
Boolean
destroy()method 
override public function destroy():void

getItem()method 
public function getItem(index:int):PBObject

Parameters

index:int

Returns
PBObject
remove()method 
public function remove(item:PBObject):Boolean

Parameters

item:PBObject

Returns
Boolean