Methods added to the base CCNode to support structural node hierarchies containing controlled nodes. More...
#import <CCNodeController.h>
Public Member Functions | |
(void) | - deviceOrientationDidChange: |
- (void) deviceOrientationDidChange: | (ccDeviceOrientation) | newOrientation |
Called automatically on the child node of a controlled node to propagate the notification of the change in device orientation.
By adding this to the base CCNode, it allows the parent controlled node to propagate to all its children without regard to type, and allows other controlled nodes to be buried in a structural node hierarchy. This base implementation simply propagates the notification to its children. Actual controlled node subclasses will override.