cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
CCMoveTo Class Reference

#import <CCActionInterval.h>

+ Inheritance diagram for CCMoveTo:
+ Collaboration diagram for CCMoveTo:

List of all members.

Public Member Functions

(id) - initWithDuration:position:

Static Public Member Functions

(id) + actionWithDuration:position:

Protected Attributes

CGPoint _endPosition

Detailed Description

Moves a CCNode object to the position x,y. x and y are absolute coordinates by modifying it's position attribute. Several CCMoveTo actions can be concurrently called, and the resulting movement will be the sum of individual movements.


Member Function Documentation

+ (id) actionWithDuration: (ccTime duration
position: (CGPoint)  position 

creates the action

Implements CCMoveBy.

- (id) initWithDuration: (ccTime duration
position: (CGPoint)  position 

initializes the action

Implements CCMoveBy.

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