CCNodeAdornmentBase Class Reference
Inherits from | CCNode |
Conforms to | CCNodeAdornmentProtocol |
Declared in | CCNodeAdornments.h |
Overview
A base implementation of the CCNodeAdornmentProtocol as a CCNode extension. This base class can be used to create concrete adornment subclasses. Initial zOrder is set to kAdornmentOverZOrder. This places the adornment above the content of the adorned node (which may have other children aside from the adornment). The implementation of activate and deactivate in this abstract class do nothing.
Tasks
-
zOrder
property -
actionDuration
property -
– init
-
+ adornment
-
– initWithActionDuration:
-
+ adornmentWithActionDuration:
Properties
actionDuration
Most adornments will invoke a CCActionInterval when activated and deactivated in order to animate the display or reversion of the adornment. The duration of these actions is controlled by the value of this property.
@property (nonatomic, assign) CCTime actionDuration
Declared In
CCNodeAdornments.h
zOrder
Overridden to expose the zOrder property to be assignable for CCNodeAdornments. Setting zOrder in an adornment before adding it to the base CCNode allows the adornment to be placed either over or under the base CCNode and its other children. Initial value is kAdornmentOverZOrder, which places the adornment above the content of the adorned CCNode.
@property (nonatomic, assign) NSInteger zOrder
Declared In
CCNodeAdornments.h