C# Class BBGamelib.CCNode

ファイルを表示 Open project: BigWoodGames/cocos2d-unity Class Usage Examples

Protected Properties

Property Type Description
_actionManager CCActionManager
_anchorPoint Vector2
_anchorPointInPixels Vector2
_children List
_contentSize Vector2
_gear CCFactoryGear
_ignoreAnchorPointForPosition bool
_isInverseDirty bool
_isReorderChildDirty bool
_isRunning bool
_isTransformDirty bool
_isUpdateTransformDirty bool
_orderOfArrival uint
_parent CCNode
_position Vector2
_rotation float
_scaleX float
_scheduler CCScheduler
_skewX float
_transform CGAffineTransform
_userObject System.Object
_userTag string
_vertexZ float
_visible bool
_zOrder int

Public Methods

Method Description
CCNode ( ) : UnityEngine
ToString ( ) : string
addChild ( CCNode child ) : void
addChild ( CCNode child, int z ) : void
addChild ( CCNode child, int z, string tag ) : void
cleanup ( ) : void
convertMouseEventToNodeSpace ( NSEvent evt ) : Vector2
convertMouseEventToNodeSpaceAR ( NSEvent evt ) : Vector2
convertToNodeSpace ( Bounds bounds ) : Bounds
convertToNodeSpace ( Vector2 worldPoint ) : Vector2
convertToNodeSpaceAR ( Vector2 worldPoint ) : Vector2
convertToWindowSpace ( Vector2 nodePoint ) : Vector2
convertToWorldSpace ( Vector2 nodePoint ) : Vector2
convertToWorldSpaceAR ( Vector2 nodePoint ) : Vector2
convertTouchToNodeSpace ( UITouch touch ) : Vector2
convertTouchToNodeSpaceAR ( UITouch touch ) : Vector2
forceTransformDirty ( ) : void
getActionByTag ( int aTag ) : CCAction
getChildByTag ( string tag ) : CCNode
insertChild ( CCNode child, int z ) : void
nodeToParentTransform ( ) : CGAffineTransform
nodeToWorldTransform ( ) : CGAffineTransform
numberOfRuningActions ( ) : uint
onEnter ( ) : void
onEnterTransitionDidFinish ( ) : void
onExit ( ) : void
onExitTransitionDidStart ( ) : void
parentToNodeTransform ( ) : CGAffineTransform
pauseSchedulerAndActions ( ) : void
removeAllChildrenAndCleanup ( bool cleanup = true ) : void
removeChild ( CCNode child ) : void
removeChildAndCleanup ( CCNode child, bool cleanup ) : void
removeChildByTag ( string tag, bool cleanup = true ) : void
removeFromParent ( ) : void
removeFromParentAndCleanup ( bool cleanup ) : void
reorderChild ( CCNode child, int z ) : void
resumeSchedulerAndActions ( ) : void
runAction ( CCAction action ) : CCAction
schedule ( TICK_IMP selector, float interval, uint repeat = CCScheduler.kCCRepeatForever, float delay ) : void
scheduleOnce ( TICK_IMP selector, float delay ) : void
scheduleUpdateWithPriority ( int priority ) : void
stopAction ( CCAction action ) : void
stopActionByTag ( int aTag ) : void
stopAllActions ( ) : void
unschedule ( TICK_IMP selector ) : void
unscheduleAllSelectors ( ) : void
unscheduleUpdate ( ) : void
update ( float dt ) : void
updateTransform ( ) : void
visit ( ) : void
visitOnGUI ( ) : void
worldToNodeTransform ( ) : CGAffineTransform

Protected Methods

Method Description
_setZOrder ( int z ) : void
draw ( ) : void
drawOnGUI ( ) : void
init ( ) : void
initWithGear ( CCFactoryGear gear ) : void
recycleGear ( ) : void
sortAllChildren ( ) : void
transformAncestors ( ) : void

Private Methods

Method Description
detachChild ( CCNode child, bool cleanup ) : void

Method Details

CCNode() public method

public CCNode ( ) : UnityEngine
return UnityEngine

ToString() public method

public ToString ( ) : string
return string

_setZOrder() protected method

protected _setZOrder ( int z ) : void
z int
return void

addChild() public method

public addChild ( CCNode child ) : void
child CCNode
return void

addChild() public method

public addChild ( CCNode child, int z ) : void
child CCNode
z int
return void

addChild() public method

public addChild ( CCNode child, int z, string tag ) : void
child CCNode
z int
tag string
return void

cleanup() public method

public cleanup ( ) : void
return void

convertMouseEventToNodeSpace() public method

public convertMouseEventToNodeSpace ( NSEvent evt ) : Vector2
evt NSEvent
return Vector2

convertMouseEventToNodeSpaceAR() public method

public convertMouseEventToNodeSpaceAR ( NSEvent evt ) : Vector2
evt NSEvent
return Vector2

convertToNodeSpace() public method

public convertToNodeSpace ( Bounds bounds ) : Bounds
bounds UnityEngine.Bounds
return UnityEngine.Bounds

convertToNodeSpace() public method

public convertToNodeSpace ( Vector2 worldPoint ) : Vector2
worldPoint Vector2
return Vector2

convertToNodeSpaceAR() public method

public convertToNodeSpaceAR ( Vector2 worldPoint ) : Vector2
worldPoint Vector2
return Vector2

convertToWindowSpace() public method

public convertToWindowSpace ( Vector2 nodePoint ) : Vector2
nodePoint Vector2
return Vector2

convertToWorldSpace() public method

public convertToWorldSpace ( Vector2 nodePoint ) : Vector2
nodePoint Vector2
return Vector2

convertToWorldSpaceAR() public method

public convertToWorldSpaceAR ( Vector2 nodePoint ) : Vector2
nodePoint Vector2
return Vector2

convertTouchToNodeSpace() public method

public convertTouchToNodeSpace ( UITouch touch ) : Vector2
touch UITouch
return Vector2

convertTouchToNodeSpaceAR() public method

public convertTouchToNodeSpaceAR ( UITouch touch ) : Vector2
touch UITouch
return Vector2

draw() protected method

protected draw ( ) : void
return void

drawOnGUI() protected method

protected drawOnGUI ( ) : void
return void

forceTransformDirty() public method

public forceTransformDirty ( ) : void
return void

getActionByTag() public method

public getActionByTag ( int aTag ) : CCAction
aTag int
return CCAction

getChildByTag() public method

public getChildByTag ( string tag ) : CCNode
tag string
return CCNode

init() protected method

protected init ( ) : void
return void

initWithGear() protected method

protected initWithGear ( CCFactoryGear gear ) : void
gear CCFactoryGear
return void

insertChild() public method

public insertChild ( CCNode child, int z ) : void
child CCNode
z int
return void

nodeToParentTransform() public method

public nodeToParentTransform ( ) : CGAffineTransform
return CGAffineTransform

nodeToWorldTransform() public method

public nodeToWorldTransform ( ) : CGAffineTransform
return CGAffineTransform

numberOfRuningActions() public method

public numberOfRuningActions ( ) : uint
return uint

onEnter() public method

public onEnter ( ) : void
return void

onEnterTransitionDidFinish() public method

public onEnterTransitionDidFinish ( ) : void
return void

onExit() public method

public onExit ( ) : void
return void

onExitTransitionDidStart() public method

public onExitTransitionDidStart ( ) : void
return void

parentToNodeTransform() public method

public parentToNodeTransform ( ) : CGAffineTransform
return CGAffineTransform

pauseSchedulerAndActions() public method

public pauseSchedulerAndActions ( ) : void
return void

recycleGear() protected method

protected recycleGear ( ) : void
return void

removeAllChildrenAndCleanup() public method

public removeAllChildrenAndCleanup ( bool cleanup = true ) : void
cleanup bool
return void

removeChild() public method

public removeChild ( CCNode child ) : void
child CCNode
return void

removeChildAndCleanup() public method

public removeChildAndCleanup ( CCNode child, bool cleanup ) : void
child CCNode
cleanup bool
return void

removeChildByTag() public method

public removeChildByTag ( string tag, bool cleanup = true ) : void
tag string
cleanup bool
return void

removeFromParent() public method

public removeFromParent ( ) : void
return void

removeFromParentAndCleanup() public method

public removeFromParentAndCleanup ( bool cleanup ) : void
cleanup bool
return void

reorderChild() public method

public reorderChild ( CCNode child, int z ) : void
child CCNode
z int
return void

resumeSchedulerAndActions() public method

public resumeSchedulerAndActions ( ) : void
return void

runAction() public method

public runAction ( CCAction action ) : CCAction
action CCAction
return CCAction

schedule() public method

public schedule ( TICK_IMP selector, float interval, uint repeat = CCScheduler.kCCRepeatForever, float delay ) : void
selector TICK_IMP
interval float
repeat uint
delay float
return void

scheduleOnce() public method

public scheduleOnce ( TICK_IMP selector, float delay ) : void
selector TICK_IMP
delay float
return void

scheduleUpdateWithPriority() public method

public scheduleUpdateWithPriority ( int priority ) : void
priority int
return void

sortAllChildren() protected method

protected sortAllChildren ( ) : void
return void

stopAction() public method

public stopAction ( CCAction action ) : void
action CCAction
return void

stopActionByTag() public method

public stopActionByTag ( int aTag ) : void
aTag int
return void

stopAllActions() public method

public stopAllActions ( ) : void
return void

transformAncestors() protected method

protected transformAncestors ( ) : void
return void

unschedule() public method

public unschedule ( TICK_IMP selector ) : void
selector TICK_IMP
return void

unscheduleAllSelectors() public method

public unscheduleAllSelectors ( ) : void
return void

unscheduleUpdate() public method

public unscheduleUpdate ( ) : void
return void

update() public method

public update ( float dt ) : void
dt float
return void

updateTransform() public method

public updateTransform ( ) : void
return void

visit() public method

public visit ( ) : void
return void

visitOnGUI() public method

public visitOnGUI ( ) : void
return void

worldToNodeTransform() public method

public worldToNodeTransform ( ) : CGAffineTransform
return CGAffineTransform

Property Details

_actionManager protected_oe property

protected CCActionManager,BBGamelib _actionManager
return CCActionManager

_anchorPoint protected_oe property

protected Vector2 _anchorPoint
return Vector2

_anchorPointInPixels protected_oe property

protected Vector2 _anchorPointInPixels
return Vector2

_children protected_oe property

protected List _children
return List

_contentSize protected_oe property

protected Vector2 _contentSize
return Vector2

_gear protected_oe property

protected CCFactoryGear _gear
return CCFactoryGear

_ignoreAnchorPointForPosition protected_oe property

protected bool _ignoreAnchorPointForPosition
return bool

_isInverseDirty protected_oe property

protected bool _isInverseDirty
return bool

_isReorderChildDirty protected_oe property

protected bool _isReorderChildDirty
return bool

_isRunning protected_oe property

protected bool _isRunning
return bool

_isTransformDirty protected_oe property

protected bool _isTransformDirty
return bool

_isUpdateTransformDirty protected_oe property

protected bool _isUpdateTransformDirty
return bool

_orderOfArrival protected_oe property

protected uint _orderOfArrival
return uint

_parent protected_oe property

protected CCNode,BBGamelib _parent
return CCNode

_position protected_oe property

protected Vector2 _position
return Vector2

_rotation protected_oe property

protected float _rotation
return float

_scaleX protected_oe property

protected float _scaleX
return float

_scheduler protected_oe property

protected CCScheduler,BBGamelib _scheduler
return CCScheduler

_skewX protected_oe property

protected float _skewX
return float

_transform protected_oe property

protected CGAffineTransform,BBGamelib _transform
return CGAffineTransform

_userObject protected_oe property

protected Object,System _userObject
return System.Object

_userTag protected_oe property

protected string _userTag
return string

_vertexZ protected_oe property

protected float _vertexZ
return float

_visible protected_oe property

protected bool _visible
return bool

_zOrder protected_oe property

protected int _zOrder
return int