ofs | hex dump | ascii |
---|
0000 | 52 49 46 46 ac ad 41 00 57 41 56 45 4a 55 4e 4b 1c 00 00 00 ac ad 41 00 00 00 00 00 30 a9 41 00 | RIFF..A.WAVEJUNK......A.....0.A. |
0020 | 00 00 00 00 88 f1 0a 00 00 00 00 00 00 00 00 00 66 6d 74 20 10 00 00 00 01 00 02 00 44 ac 00 00 | ................fmt.........D... |
0040 | 98 09 04 00 06 00 18 00 64 61 74 61 30 a9 41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ........data0.A................. |
0060 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0080 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
00a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
00c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
00e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 9e 00 00 00 00 00 2f 08 | ............................../. |
0100 | 00 00 00 00 79 26 00 00 00 00 5d 6b 00 0a 00 00 6e d4 00 81 00 00 d1 4e 01 cb 01 00 7d c8 01 74 | ....y&....]k....n......N....}..t |
0120 | 01 00 00 3a 02 49 f7 ff f1 a9 02 a0 da ff 96 27 03 1e ae ff 59 bb 03 6e 81 ff ae 5c 04 88 65 ff | ...:.I.........'....Y..n...\..e. |
0140 | e1 f3 04 2a 64 ff d7 79 05 ef 7a ff 89 ec 05 16 9d ff 2d 4d 06 58 b7 ff 57 9f 06 48 bd ff 60 e4 | ...*d..y..z.......-M.X..W..H..`. |
0160 | 06 18 b3 ff 05 1b 07 32 aa ff a2 40 07 6f b7 ff bd 56 07 d0 ea ff 47 68 07 be 48 00 e5 80 07 3e | .......2...@.o...V....Gh..H....> |
0180 | c6 00 a4 a3 07 9b 4e 01 fa c5 07 b0 d2 01 49 d9 07 aa 52 02 46 cf 07 bf d6 02 22 a2 07 cf 65 03 | ......N.......I...R.F....."...e. |
01a0 | df 5c 07 2b 02 04 8e 19 07 a1 a9 04 83 eb 06 e9 56 05 41 d3 06 94 06 06 7d c4 06 d6 ba 06 b0 ac | .\.+............V.A.....}....... |
01c0 | 06 69 74 07 fe 79 06 02 2b 08 7f 26 06 1c d0 08 da bf 05 7d 59 09 af 59 05 ae c4 09 32 ff 04 c9 | .it..y..+..&.......}Y..Y....2... |
01e0 | 17 0a 61 b3 04 59 60 0a 3d 74 04 30 ac 0a 4c 3d 04 9f 02 0b e7 0a 04 1f 5a 0b a0 e0 03 1f a3 0b | ..a..Y`.=t.0..L=........Z....... |
0200 | 23 c4 03 69 cf 0b 56 b5 03 94 d8 0b 3d ad 03 0b c2 0b 95 a6 03 03 9b 0b ad a4 03 29 76 0b 5c b3 | #..i..V.....=..............)v.\. |
0220 | 03 d6 5c 0b 16 e0 03 0f 49 0b 3c 33 04 80 2f 0b 75 a8 04 0b 07 0b 9d 2c 05 e3 cb 0a 48 a6 05 5f | ..\.....I.<3../.u......,....H.._ |
0240 | 7f 0a 56 07 06 1c 26 0a 2a 54 06 46 c2 09 48 9b 06 f2 51 09 f3 ec 06 a1 d2 08 57 53 07 7f 4a 08 | ..V...&.*T.F..H...Q.......WS..J. |
0260 | 73 cb 07 05 c5 07 83 42 08 fc 48 07 4a a4 08 5e d5 06 be ea 08 28 62 06 94 17 09 c3 e2 05 af 31 | s......B..H.J..^.....(b........1 |
0280 | 09 22 4c 05 01 42 09 89 9f 04 28 4e 09 b9 ee 03 6c 54 09 1d 51 03 5f 50 09 c9 d7 02 71 43 09 f7 | ."L..B....(N....lT..Q._P....qC.. |
02a0 | 86 02 4b 32 09 c5 54 02 56 1f 09 f3 2c 02 2b 06 09 ae fc 01 1e de 08 85 c1 01 86 9d 08 8f 89 01 | ..K2..T.V...,.+................. |
02c0 | c3 40 08 d7 65 01 fc cc 07 11 5f 01 f2 52 07 a8 75 01 71 e4 06 31 a2 01 dd 85 06 6e d8 01 86 2b | .@..e....._..R..u.q..1.....n...+ |
02e0 | 06 f6 10 02 6e c1 05 8f 4c 02 4d 36 05 c7 8a 02 58 81 04 b0 c4 02 48 ab 03 34 f2 02 7a cb 02 34 | ....n...L.M6....X.....H..4..z..4 |
0300 | 10 03 5e f8 01 38 22 03 5f 38 01 a2 30 03 b8 84 00 f2 46 03 74 d3 ff 25 6c 03 d5 1b ff 28 9a 03 | ..^..8"._8..0.....F.t..%l....(.. |
0320 | f4 5a fe dd be 03 ad 98 fd d8 c7 03 f4 e0 fc ba ac 03 b6 37 fc f0 72 03 e9 9a fb 1a 2b 03 54 0c | .Z.................7..r.....+.T. |
0340 | fb e4 ea 02 36 93 fa 92 c0 02 7c 36 fa a7 a6 02 f1 fa f9 78 88 02 52 e0 f9 51 53 02 4e db f9 5d | ....6.....|6.......x..R..QS.N..] |
0360 | ff 01 c9 d8 f9 79 8e 01 a4 ca f9 f0 09 01 f1 b1 f9 3a 7e 00 6c 9d f9 5a f0 ff 57 9f f9 a0 5b ff | .....y...........:~.l..Z..W...[. |
0380 | a9 c3 f9 c7 bb fe 11 09 fa d0 13 fe 00 5e fa 16 68 fd e9 a7 fa 7f b8 fc 7d d4 fa df 01 fc 39 e5 | .............^..h.......}.....9. |
03a0 | fa 42 3f fb da e8 fa 7f 6a fa da ee fa 6d 83 f9 ed 01 fb 83 98 f8 b7 23 fb 0b bf f7 91 4a fb c1 | .B?.....j....m.........#.....J.. |
03c0 | 06 f7 87 6a fb a8 72 f6 f5 80 fb 4f fa f5 0d 91 fb d6 8b f5 54 9a fb 35 17 f5 46 98 fb 89 98 f4 | ...j..r....O........T..5..F..... |
03e0 | 6c 87 fb f3 1c f4 87 66 fb b9 b9 f3 87 37 fb 36 7d f3 77 03 fb 81 68 f3 16 d7 fa 18 73 f3 d9 b6 | l......f.....7.6}.w...h./*
* cocos2d for iPhone: http://www.cocos2d-iphone.org
*
* Copyright (c) 2008-2010 Ricardo Quesada
* Copyright (c) 2011 Zynga Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
*/
#import "CCAction.h"
/** Instant actions are immediate actions. They don't have a duration like
the CCIntervalAction actions.
*/
@interface CCActionInstant : CCFiniteTimeAction <NSCopying>
{
}
@end
/** Show the node
*/
@interface CCShow : CCActionInstant
{
}
@end
/** Hide the node
*/
@interface CCHide : CCActionInstant
{
}
@end
/** Toggles the visibility of a node
*/
@interface CCToggleVisibility : CCActionInstant
{
}
@end
/** Flips the sprite horizontally
@since v0.99.0
*/
@interface CCFlipX : CCActionInstant
{
BOOL flipX;
}
+(id) actionWithFlipX:(BOOL)x;
-(id) initWithFlipX:(BOOL)x;
@end
/** Flips the sprite vertically
@since v0.99.0
*/
@interface CCFlipY : CCActionInstant
{
BOOL flipY;
}
+(id) actionWithFlipY:(BOOL)y;
-(id) initWithFlipY:(BOOL)y;
@end
/** Places the node in a certain position
*/
@interface CCPlace : CCActionInstant <NSCopying>
{
CGPoint position;
}
/** creates a Place action with a position */
+(id) actionWithPosition: (CGPoint) pos;
/** Initializes a Place action with a position */
-(id) initWithPosition: (CGPoint) pos;
@end
/** Calls a 'callback'
*/
@interface CCCallFunc : CCActionInstant <NSCopying>
{
id targetCallback_;
SEL selector_;
}
/** Target that will be called */
@property (nonatomic, readwrite, retain) id targetCallback;
/** creates the action with the callback */
+(id) actionWithTarget: (id) t selector:(SEL) s;
/** initializes the action with the callback */
-(id) initWithTarget: (id) t selector:(SEL) s;
/** exeuctes the callback */
-(void) execute;
@end
/** Calls a 'callback' with the node as the first argument.
N means Node
*/
@interface CCCallFuncN : CCCallFunc
{
}
@end
typedef void (*CC_CALLBACK_ND)(id, SEL, id, void *);
/** Calls a 'callback' with the node as the first argument and the 2nd argument is data.
* ND means: Node and Data. Data is void *, so it could be anything.
*/
@interface CCCallFuncND : CCCallFuncN
{
void *data_;
CC_CALLBACK_ND callbackMethod_;
}
/** Invocation object that has the target#selector and the parameters */
@property (nonatomic,readwrite) CC_CALLBACK_ND callbackMethod;
/** creates the action with the callback and the data to pass as an argument */
+(id) actionWithTarget: (id) t selector:(SEL) s data:(void*)d;
/** initializes the action with the callback and the data to pass as an argument */
-(id) initWithTarget:(id) t selector:(SEL) s data:(void*) d;
@end
/** Calls a 'callback' with an object as the first argument.
O means Object.
@since v0.99.5
*/
@interface CCCallFuncO : CCCallFunc
{
id object_;
}
/** object to be passed as argument */
@property (nonatomic, readwrite, retain) id object;
/** creates the action with the callback and the object to pass as an argument */
+(id) actionWithTarget: (id) t selector:(SEL) s object:(id)object;
/** initializes the action with the callback and the object to pass as an argument */
-(id) initWithTarget:(id) t selector:(SEL) s object:(id)object;
@end
#pragma mark Blocks Support
#if NS_BLOCKS_AVAILABLE
/** Executes a callback using a block.
*/
@interface CCCallBlock : CCActionInstant<NSCopying>
{
void (^block_)();
}
/** creates the action with the specified block, to be used as a callback.
The block will be "copied".
*/
+(id) actionWithBlock:(void(^)())block;
/** initialized the action with the specified block, to be used as a callback.
The block will be "copied".
*/
-(id) initWithBlock:(void(^)())block;
/** executes the callback */
-(void) execute;
@end
@class CCNode;
/** Executes a callback using a block with a single CCNode parameter.
*/
@interface CCCallBlockN : CCActionInstant<NSCopying>
{
void (^block_)(CCNode *);
}
/** creates the action with the specified block, to be used as a callback.
The block will be "copied".
*/
+(id) actionWithBlock:(void(^)(CCNode *node))block;
/** initialized the action with the specified block, to be used as a callback.
The block will be "copied".
*/
-(id) initWithBlock:(void(^)(CCNode *node))block;
/** executes the callback */
-(void) execute;
@end
#endif
|