CCNode
CCNode
Cocos2DInheritance: System.Object
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}
Constructors
CCNode()
CCNode()()CCNode(CCSize)
CCNode(CCSize)(Cocos2D.CCSize contentSize)Parameters:
contentSize (Cocos2D.CCSize)Fields
_cascadeColorEnabled(System.Boolean)
_cascadeOpacityEnabled(System.Boolean)
_displayedColor(Cocos2D.CCColor3B)
_displayedOpacity(System.Byte)
_realColor(Cocos2D.CCColor3B)
_realOpacity(System.Byte)
kCCNodeTagInvalid(System.Int32)
m_NodeToWorldTransform(Cocos2D.CCAffineTransform)
m_bIgnoreAnchorPointForPosition(System.Boolean)
m_bInverseDirty(System.Boolean)
m_bReorderChildDirty(System.Boolean)
m_bRunning(System.Boolean)
m_bTransformDirty(System.Boolean)
m_bVisible(System.Boolean)
m_bWorldTransformIsDirty(System.Boolean)
m_fRotationX(System.Single)
m_fRotationY(System.Single)
m_fScaleX(System.Single)
m_fScaleY(System.Single)
m_fSkewX(System.Single)
m_fSkewY(System.Single)
m_fVertexZ(System.Single)
m_obAnchorPoint(Cocos2D.CCPoint)
m_obAnchorPointInPoints(Cocos2D.CCPoint)
m_obContentSize(Cocos2D.CCSize)
m_obPosition(Cocos2D.CCPoint)
m_pActionManager(Cocos2D.CCActionManager)
m_pCamera(Cocos2D.CCCamera)
m_pChildren(Cocos2D.CCRawListCocos2D.CCNode)
m_pChildrenByTag(System.Collections.Generic.DictionarySystem.Int32,System.Collections.Generic.ListCocos2D.CCNode)
m_pGrid(Cocos2D.CCGridBase)
m_pParent(Cocos2D.CCNode)
m_pScheduler(Cocos2D.CCScheduler)
m_pUserData(System.Object)
m_sTransform(Cocos2D.CCAffineTransform)
m_uOrderOfArrival(System.UInt32)
pDispatcher(Cocos2D.CCTouchDispatcher)
Properties
ActionManager(Cocos2D.CCActionManager)
AdditionalTransform(Cocos2D.CCAffineTransform)
AffineLocalTransform(Cocos2D.CCAffineTransform)
AffineWorldTransform(Cocos2D.CCAffineTransform)
AnchorPoint(Cocos2D.CCPoint)
AnchorPointInPoints(Cocos2D.CCPoint)
BoundingBox(Cocos2D.CCRect)
BoundingBoxInPixels(Cocos2D.CCRect)
BoundingBoxTransformedToWorld(Cocos2D.CCRect)
Camera(Cocos2D.CCCamera)
CanReceiveFocus(System.Boolean)
CascadeColorEnabled(System.Boolean)
CascadeOpacityEnabled(System.Boolean)
Children(Cocos2D.CCRawListCocos2D.CCNode)
ChildrenCount(System.Int32)
CollisionCategory(System.UInt32)
CollisionCategoryMask(System.UInt32)
Color(Cocos2D.CCColor3B)
ContentSize(Cocos2D.CCSize)
ContentSizeInPixels(Cocos2D.CCSize)
DisplayedColor(Cocos2D.CCColor3B)
DisplayedOpacity(System.Byte)
GamePadEnabled(System.Boolean)
Grid(Cocos2D.CCGridBase)
HasFocus(System.Boolean)
IgnoreAnchorPointForPosition(System.Boolean)
IsOpacityModifyRGB(System.Boolean)
IsRunning(System.Boolean)
IsSerializable(System.Boolean)
KeyboardEnabled(System.Boolean)
KeyboardMode(Cocos2D.CCKeyboardMode)
KeypadEnabled(System.Boolean)
LocalMInZForChildren(System.Int32)
LocalMaxZForChildren(System.Int32)
Name(System.String)
Opacity(System.Byte)
OrderOfArrival(System.UInt32)
Parent(Cocos2D.CCNode)
Position(Cocos2D.CCPoint)
PositionX(System.Single)
PositionY(System.Single)
Rotation(System.Single)
RotationX(System.Single)
RotationY(System.Single)
Scale(System.Single)
ScaleX(System.Single)
ScaleY(System.Single)
ScaledContentSize(Cocos2D.CCSize)
Scheduler(Cocos2D.CCScheduler)
Size(Cocos2D.CCSize)
SkewX(System.Single)
SkewY(System.Single)
Tag(System.Int32)
TouchEnabled(System.Boolean)
TouchMode(Cocos2D.CCNode.CCTouchMode)
TouchPriority(System.Int32)
UserData(System.Object)
UserObject(System.Object)
VertexZ(System.Single)
Visible(System.Boolean)
VisibleForTouches(System.Boolean)
VisibleInParent(System.Boolean)
WorldBoundingBox(Cocos2D.CCRect)
ZOrder(System.Int32)
Methods
AddChild(CCNode)
AddChild(CCNode)(Cocos2D.CCNode child)Parameters:
child (Cocos2D.CCNode)AddChild(CCNode, int)
AddChild(CCNode, int)(Cocos2D.CCNode child, System.Int32 zOrder)Parameters:
child (Cocos2D.CCNode)zOrder (System.Int32)AddChild(CCNode, int, int)
AddChild(CCNode, int, int)(Cocos2D.CCNode child, System.Int32 zOrder, System.Int32 tag)Parameters:
child (Cocos2D.CCNode)zOrder (System.Int32)tag (System.Int32)AddedToScene()
AddedToScene()()CleanUpParentsProperly()
CleanUpParentsProperly()()Cleanup()
Cleanup()()Compare(CCNode, CCNode)
System.Int32 Compare(CCNode, CCNode)(Cocos2D.CCNode n1, Cocos2D.CCNode n2)Parameters:
n1 (Cocos2D.CCNode)n2 (Cocos2D.CCNode)Returns:
System.Int32Example
ConvertPointTo(ref CCPoint, CCNode)
Cocos2D.CCPoint ConvertPointTo(ref CCPoint, CCNode)(Cocos2D.CCPoint ptInNode, Cocos2D.CCNode target)Parameters:
ptInNode (Cocos2D.CCPoint)target (Cocos2D.CCNode)Returns:
Cocos2D.CCPointConvertToNodeSpace(CCPoint)
Cocos2D.CCPoint ConvertToNodeSpace(CCPoint)(Cocos2D.CCPoint worldPoint)Parameters:
worldPoint (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointConvertToNodeSpaceAr(CCPoint)
Cocos2D.CCPoint ConvertToNodeSpaceAr(CCPoint)(Cocos2D.CCPoint worldPoint)Parameters:
worldPoint (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointConvertToWindowSpace(CCPoint)
Cocos2D.CCPoint ConvertToWindowSpace(CCPoint)(Cocos2D.CCPoint nodePoint)Parameters:
nodePoint (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointConvertToWorldSpace(CCPoint)
Cocos2D.CCPoint ConvertToWorldSpace(CCPoint)(Cocos2D.CCPoint nodePoint)Parameters:
nodePoint (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointConvertToWorldSpaceAr(CCPoint)
Cocos2D.CCPoint ConvertToWorldSpaceAr(CCPoint)(Cocos2D.CCPoint nodePoint)Parameters:
nodePoint (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointConvertTouchToNodeSpace(CCTouch)
Cocos2D.CCPoint ConvertTouchToNodeSpace(CCTouch)(Cocos2D.CCTouch touch)Parameters:
touch (Cocos2D.CCTouch)Returns:
Cocos2D.CCPointConvertTouchToNodeSpaceAr(CCTouch)
Cocos2D.CCPoint ConvertTouchToNodeSpaceAr(CCTouch)(Cocos2D.CCTouch touch)Parameters:
touch (Cocos2D.CCTouch)Returns:
Cocos2D.CCPointDeserialize(Stream)
Deserialize(Stream)(System.IO.Stream stream)Parameters:
stream (System.IO.Stream)Dispose()
Dispose()()Dispose(bool)
Dispose(bool)(System.Boolean disposing)Parameters:
disposing (System.Boolean)Draw()
Draw()()~CCNode()
~CCNode()()ForceTransformRefresh()
ForceTransformRefresh()()GetAction(int)
Cocos2D.CCAction GetAction(int)(System.Int32 tag)Parameters:
tag (System.Int32)Returns:
Cocos2D.CCActionGetBoundingBox(CCNode)
Cocos2D.CCRect GetBoundingBox(CCNode)(Cocos2D.CCNode target)Parameters:
target (Cocos2D.CCNode)Returns:
Cocos2D.CCRectGetChildByTag(int)
Cocos2D.CCNode GetChildByTag(int)(System.Int32 tag)Parameters:
tag (System.Int32)Returns:
Cocos2D.CCNodeGetPosition(out float, out float)
GetPosition(out float, out float)(System.Single x, System.Single y)Parameters:
x (System.Single)y (System.Single)Init()
System.Boolean Init()()Returns:
System.BooleanKeyBackClicked()
KeyBackClicked()()Example
KeyMenuClicked()
KeyMenuClicked()()Example
KeyPressed(Keys)
KeyPressed(Keys)(Microsoft.Xna.Framework.Input.Keys key)Parameters:
key (Microsoft.Xna.Framework.Input.Keys)Example
KeyReleased(Keys)
KeyReleased(Keys)(Microsoft.Xna.Framework.Input.Keys key)Parameters:
key (Microsoft.Xna.Framework.Input.Keys)Example
KeyboardCurrentState(KeyboardState)
KeyboardCurrentState(KeyboardState)(Microsoft.Xna.Framework.Input.KeyboardState currentState)Parameters:
currentState (Microsoft.Xna.Framework.Input.KeyboardState)Example
NodeToParentTransform()
Cocos2D.CCAffineTransform NodeToParentTransform()()Returns:
Cocos2D.CCAffineTransformNodeToWorldTransform()
Cocos2D.CCAffineTransform NodeToWorldTransform()()Returns:
Cocos2D.CCAffineTransformNumberOfRunningActions()
System.Int32 NumberOfRunningActions()()Returns:
System.Int32OnEnter()
OnEnter()()OnEnterTransitionDidFinish()
OnEnterTransitionDidFinish()()OnExit()
OnExit()()OnExitTransitionDidStart()
OnExitTransitionDidStart()()OnGamePadButtonUpdate(CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, PlayerIndex)
OnGamePadButtonUpdate(CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, PlayerIndex)(Cocos2D.CCGamePadButtonStatus backButton, Cocos2D.CCGamePadButtonStatus startButton, Cocos2D.CCGamePadButtonStatus systemButton, Cocos2D.CCGamePadButtonStatus aButton, Cocos2D.CCGamePadButtonStatus bButton, Cocos2D.CCGamePadButtonStatus xButton, Cocos2D.CCGamePadButtonStatus yButton, Cocos2D.CCGamePadButtonStatus leftShoulder, Cocos2D.CCGamePadButtonStatus rightShoulder, Microsoft.Xna.Framework.PlayerIndex player)Parameters:
backButton (Cocos2D.CCGamePadButtonStatus)startButton (Cocos2D.CCGamePadButtonStatus)systemButton (Cocos2D.CCGamePadButtonStatus)aButton (Cocos2D.CCGamePadButtonStatus)bButton (Cocos2D.CCGamePadButtonStatus)xButton (Cocos2D.CCGamePadButtonStatus)yButton (Cocos2D.CCGamePadButtonStatus)leftShoulder (Cocos2D.CCGamePadButtonStatus)rightShoulder (Cocos2D.CCGamePadButtonStatus)player (Microsoft.Xna.Framework.PlayerIndex)OnGamePadConnectionUpdate(PlayerIndex, bool)
OnGamePadConnectionUpdate(PlayerIndex, bool)(Microsoft.Xna.Framework.PlayerIndex player, System.Boolean IsConnected)Parameters:
player (Microsoft.Xna.Framework.PlayerIndex)IsConnected (System.Boolean)OnGamePadDPadUpdate(CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, PlayerIndex)
OnGamePadDPadUpdate(CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, CCGamePadButtonStatus, PlayerIndex)(Cocos2D.CCGamePadButtonStatus leftButton, Cocos2D.CCGamePadButtonStatus upButton, Cocos2D.CCGamePadButtonStatus rightButton, Cocos2D.CCGamePadButtonStatus downButton, Microsoft.Xna.Framework.PlayerIndex player)Parameters:
leftButton (Cocos2D.CCGamePadButtonStatus)upButton (Cocos2D.CCGamePadButtonStatus)rightButton (Cocos2D.CCGamePadButtonStatus)downButton (Cocos2D.CCGamePadButtonStatus)player (Microsoft.Xna.Framework.PlayerIndex)OnGamePadStickUpdate(CCGameStickStatus, CCGameStickStatus, PlayerIndex)
OnGamePadStickUpdate(CCGameStickStatus, CCGameStickStatus, PlayerIndex)(Cocos2D.CCGameStickStatus leftStick, Cocos2D.CCGameStickStatus rightStick, Microsoft.Xna.Framework.PlayerIndex player)Parameters:
leftStick (Cocos2D.CCGameStickStatus)rightStick (Cocos2D.CCGameStickStatus)player (Microsoft.Xna.Framework.PlayerIndex)OnGamePadTriggerUpdate(float, float, PlayerIndex)
OnGamePadTriggerUpdate(float, float, PlayerIndex)(System.Single leftTriggerStrength, System.Single rightTriggerStrength, Microsoft.Xna.Framework.PlayerIndex player)Parameters:
leftTriggerStrength (System.Single)rightTriggerStrength (System.Single)player (Microsoft.Xna.Framework.PlayerIndex)ParentToNodeTransform()
Cocos2D.CCAffineTransform ParentToNodeTransform()()Returns:
Cocos2D.CCAffineTransformPause()
Pause()()PauseSchedulerAndActions()
PauseSchedulerAndActions()()RegisterWithTouchDispatcher()
RegisterWithTouchDispatcher()()RemoveAllChildren(bool)
RemoveAllChildren(bool)(System.Boolean cleanup)Parameters:
cleanup (System.Boolean)RemoveAllChildrenByTag(int)
RemoveAllChildrenByTag(int)(System.Int32 tag)Parameters:
tag (System.Int32)RemoveAllChildrenByTag(int, bool)
RemoveAllChildrenByTag(int, bool)(System.Int32 tag, System.Boolean cleanup)Parameters:
tag (System.Int32)cleanup (System.Boolean)RemoveChild(CCNode, bool)
RemoveChild(CCNode, bool)(Cocos2D.CCNode child, System.Boolean cleanup)Parameters:
child (Cocos2D.CCNode)cleanup (System.Boolean)RemoveChildByTag(int)
RemoveChildByTag(int)(System.Int32 tag)Parameters:
tag (System.Int32)RemoveChildByTag(int, bool)
RemoveChildByTag(int, bool)(System.Int32 tag, System.Boolean cleanup)Parameters:
tag (System.Int32)cleanup (System.Boolean)RemoveFromParent(bool)
RemoveFromParent(bool)(System.Boolean cleanup)Parameters:
cleanup (System.Boolean)ReorderChild(CCNode, int)
ReorderChild(CCNode, int)(Cocos2D.CCNode child, System.Int32 zOrder)Parameters:
child (Cocos2D.CCNode)zOrder (System.Int32)Repeat(CCFiniteTimeAction, uint)
Cocos2D.CCAction Repeat(CCFiniteTimeAction, uint)(Cocos2D.CCFiniteTimeAction action, System.UInt32 times)Parameters:
action (Cocos2D.CCFiniteTimeAction)times (System.UInt32)Returns:
Cocos2D.CCActionRepeat(CCFiniteTimeAction[], uint)
Cocos2D.CCAction Repeat(CCFiniteTimeAction[], uint)(Cocos2D.CCFiniteTimeAction[] actions, System.UInt32 times)Parameters:
actions (Cocos2D.CCFiniteTimeAction[])times (System.UInt32)Returns:
Cocos2D.CCActionRepeatForever(CCActionInterval)
Cocos2D.CCAction RepeatForever(CCActionInterval)(Cocos2D.CCActionInterval action)Parameters:
action (Cocos2D.CCActionInterval)Returns:
Cocos2D.CCActionRepeatForever(params CCActionInterval[])
Cocos2D.CCAction RepeatForever(params CCActionInterval[])(Cocos2D.CCActionInterval[] actions)Parameters:
actions (Cocos2D.CCActionInterval[])Returns:
Cocos2D.CCActionResetCleanState()
ResetCleanState()()Resume()
Resume()()ResumeSchedulerAndActions()
ResumeSchedulerAndActions()()RunAction(CCAction)
Cocos2D.CCAction RunAction(CCAction)(Cocos2D.CCAction action)Parameters:
action (Cocos2D.CCAction)Returns:
Cocos2D.CCActionRunActions(params CCFiniteTimeAction[])
Cocos2D.CCAction RunActions(params CCFiniteTimeAction[])(Cocos2D.CCFiniteTimeAction[] actions)Parameters:
actions (Cocos2D.CCFiniteTimeAction[])Returns:
Cocos2D.CCActionSchedule(Action)
Schedule(Action)(System.ActionSystem.Single selector)Parameters:
selector (System.ActionSystem.Single)Schedule(Action, float)
Schedule(Action, float)(System.ActionSystem.Single selector, System.Single interval)Parameters:
selector (System.ActionSystem.Single)interval (System.Single)Schedule(Action, float, uint, float)
Schedule(Action, float, uint, float)(System.ActionSystem.Single selector, System.Single interval, System.UInt32 repeat, System.Single delay)Parameters:
selector (System.ActionSystem.Single)interval (System.Single)repeat (System.UInt32)delay (System.Single)ScheduleOnce(Action, float)
ScheduleOnce(Action, float)(System.ActionSystem.Single selector, System.Single delay)Parameters:
selector (System.ActionSystem.Single)delay (System.Single)ScheduleUpdate()
ScheduleUpdate()()ScheduleUpdateWithPriority(int)
ScheduleUpdateWithPriority(int)(System.Int32 priority)Parameters:
priority (System.Int32)Serialize(Stream)
Serialize(Stream)(System.IO.Stream stream)Parameters:
stream (System.IO.Stream)SetPosition(float, float)
SetPosition(float, float)(System.Single x, System.Single y)Parameters:
x (System.Single)y (System.Single)SetTransform(CCAffineTransform)
SetTransform(CCAffineTransform)(Cocos2D.CCAffineTransform tx)Parameters:
tx (Cocos2D.CCAffineTransform)SetTransformIsDirty()
SetTransformIsDirty()()SetWorldTransformIsDirty()
SetWorldTransformIsDirty()()SortAllChildren()
SortAllChildren()()StopAction(CCAction)
StopAction(CCAction)(Cocos2D.CCAction action)Parameters:
action (Cocos2D.CCAction)StopAction(int)
StopAction(int)(System.Int32 tag)Parameters:
tag (System.Int32)StopAllActions()
StopAllActions()()TouchBegan(CCTouch)
System.Boolean TouchBegan(CCTouch)(Cocos2D.CCTouch touch)Parameters:
touch (Cocos2D.CCTouch)Returns:
System.BooleanExample
TouchCancelled(CCTouch)
TouchCancelled(CCTouch)(Cocos2D.CCTouch touch)Parameters:
touch (Cocos2D.CCTouch)Example
TouchEnded(CCTouch)
TouchEnded(CCTouch)(Cocos2D.CCTouch touch)Parameters:
touch (Cocos2D.CCTouch)Example
TouchMoved(CCTouch)
TouchMoved(CCTouch)(Cocos2D.CCTouch touch)Parameters:
touch (Cocos2D.CCTouch)Example
TouchesBegan(List)
TouchesBegan(List)(System.Collections.Generic.ListCocos2D.CCTouch touches)Parameters:
touches (System.Collections.Generic.ListCocos2D.CCTouch)Example
TouchesCancelled(List)
TouchesCancelled(List)(System.Collections.Generic.ListCocos2D.CCTouch touches)Parameters:
touches (System.Collections.Generic.ListCocos2D.CCTouch)Example
TouchesEnded(List)
TouchesEnded(List)(System.Collections.Generic.ListCocos2D.CCTouch touches)Parameters:
touches (System.Collections.Generic.ListCocos2D.CCTouch)Example
TouchesMoved(List)
TouchesMoved(List)(System.Collections.Generic.ListCocos2D.CCTouch touches)Parameters:
touches (System.Collections.Generic.ListCocos2D.CCTouch)Example
Transform()
Transform()()TransformAncestors()
TransformAncestors()()Unschedule(Action)
Unschedule(Action)(System.ActionSystem.Single selector)Parameters:
selector (System.ActionSystem.Single)UnscheduleAll()
UnscheduleAll()()UnscheduleAllSelectors()
UnscheduleAllSelectors()()UnscheduleUpdate()
UnscheduleUpdate()()Update(float)
Update(float)(System.Single dt)Parameters:
dt (System.Single)Example
UpdateDisplayedColor(CCColor3B)
UpdateDisplayedColor(CCColor3B)(Cocos2D.CCColor3B parentColor)Parameters:
parentColor (Cocos2D.CCColor3B)Example
UpdateDisplayedOpacity(byte)
UpdateDisplayedOpacity(byte)(System.Byte parentOpacity)Parameters:
parentOpacity (System.Byte)Example
UpdateGraphIndex()
UpdateGraphIndex()()UpdateTransform()
UpdateTransform()()UpdateZOrderRange()
UpdateZOrderRange()()Visit()
Visit()()Visit(ref CCAffineTransform)
Visit(ref CCAffineTransform)(Cocos2D.CCAffineTransform parentWorldTransform)Parameters:
parentWorldTransform (Cocos2D.CCAffineTransform)VisitRenderer(ref CCAffineTransform)
VisitRenderer(ref CCAffineTransform)(Cocos2D.CCAffineTransform worldTransform)Parameters:
worldTransform (Cocos2D.CCAffineTransform)WorldToNodeTransform()
Cocos2D.CCAffineTransform WorldToNodeTransform()()Returns:
Cocos2D.CCAffineTransform