LHNodeAnimationProtocol Protocol Reference

LHNodeAnimationProtocol.h

Overview

LevelHelper 2 nodes that can be animated conform to this protocol.

Instance Methods

activeAnimation

- (LHAnimation *)activeAnimation
Discussion

Returns the active animation on a node or nil if no active animation.

Declared In
LHNodeAnimationProtocol.h

animations

- (NSArray *)animations
Discussion

Returns all animations available on this node.

Declared In
LHNodeAnimationProtocol.h

animationWithName:

- (LHAnimation *)animationWithName:(NSString *)animName
Parameters
animName

The name of the animation.

Discussion

Returns the animation with a given name or nil if no animation with the specified name is found on the node.

Declared In
LHNodeAnimationProtocol.h

setActiveAnimation:

- (void)setActiveAnimation:(LHAnimation *)animation
Parameters
animation

The animation that is about to get activated.

Discussion

Set the active animation on a node.

Declared In
LHNodeAnimationProtocol.h

setAlpha:

- (void)setAlpha:(CGFloat)opacity
Parameters
opacity

A opacity value between 0 and 1.

Discussion

Set opacity on the node controlled by the animation.

Declared In
LHNodeAnimationProtocol.h

setPosition:

- (void)setPosition:(CGPoint)point
Parameters
point

A point value.

Discussion

Set position on the node controlled by the animation.

Declared In
LHNodeAnimationProtocol.h

setXScale:

- (void)setXScale:(CGFloat)xScale
Parameters
xScale

A scale value for the x axis.

Discussion

Set x scale on the node controlled by the animation.

Declared In
LHNodeAnimationProtocol.h

setYScale:

- (void)setYScale:(CGFloat)yScale
Parameters
yScale

A scale value for the y axis.

Discussion

Set y scale on the node controlled by the animation.

Declared In
LHNodeAnimationProtocol.h

setZRotation:

- (void)setZRotation:(CGFloat)radians
Parameters
radians

A rotation value in radians.

Discussion

Set rotation on the node controlled by the animation.

Declared In
LHNodeAnimationProtocol.h
Last updated: 2015-2-12

Back to top

Copyright © VLADU BOGDAN DANIEL PFA.