Packageverlocity.components
Classpublic final class verCollision
InheritanceverCollision Inheritance Component Inheritance Singleton Inheritance Object

Manages all the collision handling. Contains different types of collision methods which provide solutions for every possible collision information your game could require.



Public Properties
 PropertyDefined By
 InheritedclassName : Object
[read-only] Returns the class name of the component for dictionary registration.
Component
Protected Properties
 PropertyDefined By
 Inheritedstage : Stage
Component
Public Methods
 MethodDefined By
  
Constructor of the component.
verCollision
  
_Destruct():void
[override] Destructor of the component.
verCollision
 Inherited
_IsNotUpdating():Boolean
Returns if the component is not updating (paused).
Component
 Inherited
_IsValid():Boolean
Returns if this singleton is active/valid.
Singleton
 Inherited
_SetUpdating(bUpdating:Boolean):void
Pauses/resumes the component updating, if it's pausable.
Component
  
Preforms various collision checks on an entity
verCollision
 Inherited
Updates the component, if possible.
Component
  
EnableCollision(bEnable:Boolean):void
Enables/disables collision to be applied
verCollision
  
Returns if collision is being applied
verCollision
Protected Methods
 MethodDefined By
 Inherited
Called if verConsole is enabled, used to create concommands for the component.
Component
 Inherited
_Update():void
Called each engine tick (verEngine), if the component updates
Component
Public Constants
 ConstantDefined By
  CO_BASIC : int = 1
verCollision
  CO_CDK : int = 4
verCollision
  CO_POINT : int = 3
verCollision
  CO_TILEMAP : int = 2
verCollision
Constructor Detail
verCollision()Constructor
public function verCollision()

Constructor of the component.

Method Detail
_Destruct()method
override public function _Destruct():void

Destructor of the component.

_UpdateCollision()method 
public final function _UpdateCollision(ent:DynamicEntity, headNode:ListNode):void

Preforms various collision checks on an entity

Parameters

ent:DynamicEntity
 
headNode:ListNode

EnableCollision()method 
public final function EnableCollision(bEnable:Boolean):void

Enables/disables collision to be applied

Parameters

bEnable:Boolean — Enable/disable collision

IsCollisionEnabled()method 
public final function IsCollisionEnabled():Boolean

Returns if collision is being applied

Returns
Boolean
Constant Detail
CO_BASICConstant
public const CO_BASIC:int = 1

CO_CDKConstant 
public const CO_CDK:int = 4

CO_POINTConstant 
public const CO_POINT:int = 3

CO_TILEMAPConstant 
public const CO_TILEMAP:int = 2