< CocosNodeFrames > Protocol Reference

#import <CocosNode.h>

Inherited by AtlasSprite, and Sprite.

List of all members.

Public Member Functions

(void) - setDisplayFrame:
(void) - setDisplayFrame:index:
(BOOL) - isFrameDisplayed:
(id) - displayFrame
(id< CocosAnimation >) - animationByName:
(void) - addAnimation:
(void) - setAutoCenterFrames:


Detailed Description

Nodes supports frames protocol
Since:
v0.7.1

Member Function Documentation

- (void) addAnimation: (id< CocosAnimation >)  animation  

adds an Animation to the Sprite

- (id<CocosAnimation>) animationByName: (NSString *)  animationName  

returns an Animation given it's name

- (id) displayFrame  

returns the current displayed frame

- (BOOL) isFrameDisplayed: (id)  frame  

returns the current displayed frame

- (void) setAutoCenterFrames: (BOOL)  autoCenterFrames  

whether or not the method 'setDisplayFrame' will auto center the frames or not

Deprecated:
Added only to fix issue #281. v0.8 will use relative transformAnchor point.
Since:
v0.7.2

- (void) setDisplayFrame: (id)  newFrame  

sets a new display frame to the node

- (void) setDisplayFrame: (NSString *)  animationName
index: (int)  frameIndex 

changes the display frame based on an animation and an index


The documentation for this protocol was generated from the following file:

Generated on Tue Jun 9 10:39:33 2009 for cocos2d for iPhone 0.7.3 by  doxygen 1.5.8