CCNodeAdornmentScaler Class Reference
Inherits from | CCNodeAdornmentBase : CCNode |
Declared in | CCNodeAdornments.h |
Overview
An adornment CCNode that implements the CCNodeAdornmentProtocol such that, when activated, will scale the adorned CCNode (the parent of this adornment), making it appear either larger or smaller and, when deactivated, will return the adorned CCNode to its original scale.
Properties
activatedScale
When activated, this CCNodeAdornmentScaler instance will scale the adorned CCNode by this scaling factor. This scaling is applied on top of any scaling applied to the adorned CCNode at the time this adornment is activated. For example, if the adorned CCNode is already scaled by a factor of two and this activatedScale property is set to a value of three, then the final scale of the adorned CCNode when the adornment is activated will be six. If needed, different scaling values can be set for the width and height to cause non-uniform scaling.
@property (nonatomic, assign) CGSize activatedScale
Declared In
CCNodeAdornments.h
Class Methods
adornmentToScaleBy:
Allocates and initializes an autoreleased instance to scale the adorned CCNode by the specified factor. The duration of this scaling will default to kDefaultScalingDuration. The width and height scaling components may be set to different values to cause non-uniform scaling.
+ (id)adornmentToScaleBy:(CGSize)aScale
Declared In
CCNodeAdornments.h
adornmentToScaleBy:scaleDuration:
Allocates and initializes an autoreleased instance to scale the adorned CCNode by the specified factor over the specified duration. The width and height scaling components may be set to different values to cause non-uniform scaling.
+ (id)adornmentToScaleBy:(CGSize)aScale scaleDuration:(CCTime)aDuration
Declared In
CCNodeAdornments.h
adornmentToScaleUniformlyBy:
Allocates and initializes an autoreleased instance to scale the adorned CCNode by the specified factor. The duration of this scaling will default to kDefaultScalingDuration. Scaling will be uniform in both width and height.
+ (id)adornmentToScaleUniformlyBy:(float)aScale
Declared In
CCNodeAdornments.h
adornmentToScaleUniformlyBy:scaleDuration:
Allocates and initializes an autoreleased instance to scale the adorned CCNode by the specified factor over the specified duration. Scaling will be uniform in both width and height.
+ (id)adornmentToScaleUniformlyBy:(float)aScale scaleDuration:(CCTime)aDuration
Declared In
CCNodeAdornments.h
Instance Methods
initToScaleBy:
Initializes this instance to scale the adorned CCNode by the specified factor. The duration of this scaling will default to kDefaultScalingDuration. The width and height scaling components may be set to different values to cause non-uniform scaling.
- (id)initToScaleBy:(CGSize)aScale
Declared In
CCNodeAdornments.h
initToScaleBy:scaleDuration:
Initializes this instance to scale the adorned CCNode by the specified factor over the specified duration. The width and height scaling components may be set to different values to cause non-uniform scaling.
- (id)initToScaleBy:(CGSize)aScale scaleDuration:(CCTime)aDuration
Declared In
CCNodeAdornments.h
initToScaleUniformlyBy:
Initializes this instance to scale the adorned CCNode by the specified factor. The duration of this scaling will default to kDefaultScalingDuration. Scaling will be uniform in both width and height.
- (id)initToScaleUniformlyBy:(float)aScale
Declared In
CCNodeAdornments.h
initToScaleUniformlyBy:scaleDuration:
Initializes this instance to scale the adorned CCNode by the specified factor over the specified duration. Scaling will be uniform in both width and height.
- (id)initToScaleUniformlyBy:(float)aScale scaleDuration:(CCTime)aDuration
Declared In
CCNodeAdornments.h