Animation Class Reference

#import <Sprite.h>

Inherits CocosAnimation-p.

Collaboration diagram for Animation:

Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithName:delay:firstTexture:vaList:
(id) - initWithName:delay:
(id) - initWithName:delay:firstImage:vaList:
(void) - addFrame:
(void) - addFrameWithFilename:
(void) - addFrameWithTexture:

Static Public Member Functions

(id) + animationWithName:delay:
(id) + animationWithName:delay:images:
(id) + animationWithName:delay:textures:


Detailed Description

an Animation object used within Sprites to perform animations

Member Function Documentation

- (void) addFrame:  

adds a frame to an Animation

Deprecated:
Use addFrameWithFilename instead. Will be removed in v0.8

- (void) addFrameWithFilename: (NSString *)  filename  

adds a frame to an Animation

- (void) addFrameWithTexture: (Texture2D *)  tex  

adds a frame from a Texture2D object to an Animation

+ (id) animationWithName: (NSString *)  name
delay: (float)  delay 

creates an Animation with name, delay and frames from image files

+ (id) animationWithName: (NSString *)  name
delay: (float)  delay
images: (image1) 
,   NS_REQUIRES_NIL_TERMINATION 

creates an Animation with name, delay and frames from image files

+ (id) animationWithName: (NSString *)  name
delay: (float)  delay
textures: (tex1) 
,   NS_REQUIRES_NIL_TERMINATION 

creates an Animation with name, delay and frames from Texture2D objects

- (id) initWithName: (NSString *)  name
delay: (float)  delay 

initializes an Animation with name and delay

- (id) initWithName: (NSString *)  name
delay: (float)  delay
firstImage: (NSString *)  filename
vaList: (va_list)  args 

initializes an Animation with name, delay and frames from image files

- (id) initWithName: (NSString *)  name
delay: (float)  delay
firstTexture: (Texture2D *)  tex
vaList: (va_list)  args 

initializes an Animation with name, delay and frames from Texture2D objects


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

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