Packagecom.pblabs.engine.core
Classpublic class PBGroup
InheritancePBGroup Inheritance PBObject Inheritance Object

A group which owns the objects contained it. When the PBGroup is deleted, it deletes its owned objects. Assign a PBObject to a PBGroup by setting object.owningGroup.



Public Properties
 PropertyDefined By
 Inheritedalias : String
[read-only]
PBObject
  length : int
[read-only] How many PBObjects are in this group?
PBGroup
 Inheritedname : String
[read-only]
PBObject
 InheritedowningGroup : PBGroup
PBObject
Protected Properties
 PropertyDefined By
  items : Array
PBGroup
 Inherited_name : String
PBObject
 Inherited_owningGroup : PBGroup
PBObject
 Inherited_sets : Array
PBObject
Public Methods
 MethodDefined By
  
addToGroup(item:IPBObject):Boolean
PBGroup
  
clear():void
Destroy all the objects in this group, but do not delete the group.
PBGroup
  
destroy():void
[override]
PBGroup
  
getItem(index:int):IPBObject
Return the IPBObject at the specified index.
PBGroup
 Inherited
initialize(name:String = null, alias:String = null):void
PBObject
 Inherited
PBObject
 Inherited
PBObject
  
PBGroup
Property Detail
itemsproperty
protected var items:Array

lengthproperty 
length:int  [read-only]

How many PBObjects are in this group?


Implementation
    public function get length():int
Method Detail
addToGroup()method
public function addToGroup(item:IPBObject):Boolean

Parameters

item:IPBObject

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

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

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

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

Return the IPBObject at the specified index.

Parameters

index:int

Returns
IPBObject
removeFromGroup()method 
public function removeFromGroup(item:IPBObject):Boolean

Parameters

item:IPBObject

Returns
Boolean