-
Notifications
You must be signed in to change notification settings - Fork 1
/
Box.h
40 lines (33 loc) · 798 Bytes
/
Box.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// Box.h
// Alif
//
// Created by Saida Memon on 4/8/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "cocos2d.h"
#import "constants.h"
#import "Tile.h"
@interface Box : NSObject {
id first, second;
CGSize size;
NSMutableArray *content;
NSMutableSet *readyToRemoveTiles;
BOOL lock;
CCLayer *layer;
Tile *OutBorderTile;
int score;
int highscore;
CCParticleExplosion *myEmitter;
}
@property(nonatomic, retain) CCLayer *layer;
@property(nonatomic, readonly) CGSize size;
@property(nonatomic) BOOL lock;
-(id) initWithSize: (CGSize) size factor: (int) factor;
-(Tile *) objectAtX: (int) posX Y: (int) posY;
-(int) scored;
-(void) unlock;
-(void) removeSprite: (id) sender;
-(void) afterAllMoveDone;
-(void)callEmitter: (id) sender;
@end