|
cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
|
00001 /* 00002 * cocos2d for iPhone: http://www.cocos2d-iphone.org 00003 * 00004 * Copyright (c) 2009 On-Core 00005 * 00006 * Permission is hereby granted, free of charge, to any person obtaining a copy 00007 * of this software and associated documentation files (the "Software"), to deal 00008 * in the Software without restriction, including without limitation the rights 00009 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00010 * copies of the Software, and to permit persons to whom the Software is 00011 * furnished to do so, subject to the following conditions: 00012 * 00013 * The above copyright notice and this permission notice shall be included in 00014 * all copies or substantial portions of the Software. 00015 * 00016 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00017 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00018 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00019 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00020 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00021 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00022 * THE SOFTWARE. 00023 * 00024 */ 00025 00026 00027 #import "CCActionInterval.h" 00028 #import "CCActionInstant.h" 00029 #import "CCGrid.h" 00030 00031 @class CCGridBase; 00032 00034 @interface CCGridAction : CCActionInterval 00035 { 00036 ccGridSize gridSize_; 00037 } 00038 00040 @property (nonatomic,readwrite) ccGridSize gridSize; 00041 00043 +(id) actionWithSize:(ccGridSize)size duration:(ccTime)d; 00045 -(id) initWithSize:(ccGridSize)gridSize duration:(ccTime)d; 00047 -(CCGridBase *)grid; 00048 00049 @end 00050 00052 00056 @interface CCGrid3DAction : CCGridAction 00057 { 00058 } 00059 00061 -(ccVertex3F)vertex:(ccGridSize)pos; 00063 -(ccVertex3F)originalVertex:(ccGridSize)pos; 00065 -(void)setVertex:(ccGridSize)pos vertex:(ccVertex3F)vertex; 00066 00067 @end 00068 00070 00072 @interface CCTiledGrid3DAction : CCGridAction 00073 { 00074 } 00075 00077 -(ccQuad3)tile:(ccGridSize)pos; 00079 -(ccQuad3)originalTile:(ccGridSize)pos; 00081 -(void)setTile:(ccGridSize)pos coords:(ccQuad3)coords; 00082 00083 @end 00084 00086 00088 @interface CCAccelDeccelAmplitude : CCActionInterval 00089 { 00090 float rate_; 00091 CCActionInterval *other_; 00092 } 00093 00095 @property (nonatomic,readwrite) float rate; 00096 00098 +(id)actionWithAction:(CCAction*)action duration:(ccTime)d; 00100 -(id)initWithAction:(CCAction*)action duration:(ccTime)d; 00101 00102 @end 00103 00105 00107 @interface CCAccelAmplitude : CCActionInterval 00108 { 00109 float rate_; 00110 CCActionInterval *other_; 00111 } 00112 00114 @property (nonatomic,readwrite) float rate; 00115 00117 +(id)actionWithAction:(CCAction*)action duration:(ccTime)d; 00119 -(id)initWithAction:(CCAction*)action duration:(ccTime)d; 00120 00121 @end 00122 00124 00126 @interface CCDeccelAmplitude : CCActionInterval 00127 { 00128 float rate_; 00129 CCActionInterval *other_; 00130 } 00131 00133 @property (nonatomic,readwrite) float rate; 00134 00136 +(id)actionWithAction:(CCAction*)action duration:(ccTime)d; 00138 -(id)initWithAction:(CCAction*)action duration:(ccTime)d; 00139 00140 @end 00141 00143 00149 @interface CCStopGrid : CCActionInstant 00150 { 00151 } 00152 @end 00153 00155 00157 @interface CCReuseGrid : CCActionInstant 00158 { 00159 int t_; 00160 } 00162 +(id) actionWithTimes: (int) times; 00164 -(id) initWithTimes: (int) times; 00165 @end