C# Class BBGamelib.CCTouchDispatcher

Inheritance: CCTouchDelegate
Datei anzeigen Open project: BigWoodGames/cocos2d-unity Class Usage Examples

Public Properties

Property Type Description
dispatchEvents bool

Public Methods

Method Description
CCTouchDispatcher ( ) : UnityEngine
addStandardDelegate ( CCTouchAllAtOnceDelegate aDelegate, int priority ) : void
addTargetedDelegate ( CCTouchOneByOneDelegate aDelegate, int priority, bool swallowsTouches ) : void
getStandardHandlers ( ) : List
getTargetedHandlers ( ) : List
removeAllDelegates ( ) : void
removeDelegate ( System aDelegate ) : void
setPriority ( int priority, System aDelegate ) : void
touchesBegan ( HashSet aTouches ) : void
touchesCancelled ( HashSet aTouches ) : void
touchesEnded ( HashSet aTouches ) : void
touchesMoved ( HashSet aTouches ) : void

Private Methods

Method Description
findHandler ( System aDelegate ) : CCTouchHandler
forceAddHandler ( CCTouchHandler handler, List array ) : void
forceRemoveAllDelegates ( ) : void
forceRemoveDelegate ( System aDelegate ) : void
rearrangeHandlers ( List array ) : void
removeDelegate ( System del, ArrayList fromQueue ) : bool
sortByPriority ( CCTouchHandler first, CCTouchHandler second ) : int
touches ( HashSet touches, kCCTouch touchType ) : void

Method Details

CCTouchDispatcher() public method

public CCTouchDispatcher ( ) : UnityEngine
return UnityEngine

addStandardDelegate() public method

public addStandardDelegate ( CCTouchAllAtOnceDelegate aDelegate, int priority ) : void
aDelegate CCTouchAllAtOnceDelegate
priority int
return void

addTargetedDelegate() public method

public addTargetedDelegate ( CCTouchOneByOneDelegate aDelegate, int priority, bool swallowsTouches ) : void
aDelegate CCTouchOneByOneDelegate
priority int
swallowsTouches bool
return void

getStandardHandlers() public method

public getStandardHandlers ( ) : List
return List

getTargetedHandlers() public method

public getTargetedHandlers ( ) : List
return List

removeAllDelegates() public method

public removeAllDelegates ( ) : void
return void

removeDelegate() public method

public removeDelegate ( System aDelegate ) : void
aDelegate System
return void

setPriority() public method

public setPriority ( int priority, System aDelegate ) : void
priority int
aDelegate System
return void

touchesBegan() public method

public touchesBegan ( HashSet aTouches ) : void
aTouches HashSet
return void

touchesCancelled() public method

public touchesCancelled ( HashSet aTouches ) : void
aTouches HashSet
return void

touchesEnded() public method

public touchesEnded ( HashSet aTouches ) : void
aTouches HashSet
return void

touchesMoved() public method

public touchesMoved ( HashSet aTouches ) : void
aTouches HashSet
return void

Property Details

dispatchEvents public_oe property

public bool dispatchEvents
return bool