Skip to content

Commit

Permalink
Updating Cocos2d folder to 2.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
mbustamanteo committed Oct 1, 2013
1 parent a45411e commit b06ed41
Show file tree
Hide file tree
Showing 188 changed files with 21,000 additions and 8,732 deletions.
1,146 changes: 600 additions & 546 deletions Smooth Drawing.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions Smooth Drawing/libs/cocos2d/CCAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ enum {
*/
@interface CCAction : NSObject <NSCopying>
{
id originalTarget_;
id target_;
NSInteger tag_;
id _originalTarget;
id _target;
NSInteger _tag;
}

/** The "target". The action will modify the target properties.
Expand Down Expand Up @@ -91,12 +91,12 @@ enum {
Possible actions:
- An action with a duration of 0 seconds
- An action with a duration of 35.5 seconds
Infitite time actions are valid
Infinite time actions are valid
*/
@interface CCFiniteTimeAction : CCAction <NSCopying>
{
//! duration in seconds
ccTime duration_;
ccTime _duration;
}
//! duration in seconds of the action
@property (nonatomic,readwrite) ccTime duration;
Expand All @@ -109,11 +109,11 @@ enum {
@class CCActionInterval;
/** Repeats an action for ever.
To repeat the an action for a limited number of times use the Repeat action.
@warning This action can't be Sequenceable because it is not an IntervalAction
@warning This action can't be Sequence-able because it is not an IntervalAction
*/
@interface CCRepeatForever : CCAction <NSCopying>
{
CCActionInterval *innerAction_;
CCActionInterval *_innerAction;
}
/** Inner action */
@property (nonatomic, readwrite, retain) CCActionInterval *innerAction;
Expand All @@ -127,22 +127,22 @@ enum {
/** Changes the speed of an action, making it take longer (speed<1)
or less (speed>1) time.
Useful to simulate 'slow motion' or 'fast forward' effect.
@warning This action can't be Sequenceable because it is not an CCIntervalAction
@warning This action can't be Sequence-able because it is not an CCIntervalAction
*/
@interface CCSpeed : CCAction <NSCopying>
{
CCActionInterval *innerAction_;
float speed_;
CCActionInterval *_innerAction;
CGFloat _speed;
}
/** alter the speed of the inner function in runtime */
@property (nonatomic,readwrite) float speed;
@property (nonatomic,readwrite) CGFloat speed;
/** Inner action of CCSpeed */
@property (nonatomic, readwrite, retain) CCActionInterval *innerAction;

/** creates the action */
+(id) actionWithAction: (CCActionInterval*) action speed:(float)value;
+(id) actionWithAction: (CCActionInterval*) action speed:(CGFloat)value;
/** initializes the action */
-(id) initWithAction: (CCActionInterval*) action speed:(float)value;
-(id) initWithAction: (CCActionInterval*) action speed:(CGFloat)value;
@end

@class CCNode;
Expand All @@ -157,23 +157,23 @@ enum {
@interface CCFollow : CCAction <NSCopying>
{
/* node to follow */
CCNode *followedNode_;
CCNode *_followedNode;

/* whether camera should be limited to certain area */
BOOL boundarySet;
BOOL _boundarySet;

/* if screensize is bigger than the boundary - update not needed */
BOOL boundaryFullyCovered;
/* if screen-size is bigger than the boundary - update not needed */
BOOL _boundaryFullyCovered;

/* fast access to the screen dimensions */
CGPoint halfScreenSize;
CGPoint fullScreenSize;
CGPoint _halfScreenSize;
CGPoint _fullScreenSize;

/* world boundaries */
float leftBoundary;
float rightBoundary;
float topBoundary;
float bottomBoundary;
float _leftBoundary;
float _rightBoundary;
float _topBoundary;
float _bottomBoundary;
}

/** alter behavior - turn on/off boundary */
Expand Down
Loading

0 comments on commit b06ed41

Please sign in to comment.