-
Notifications
You must be signed in to change notification settings - Fork 1
/
Map.h
37 lines (24 loc) · 1.02 KB
/
Map.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
#import "SPSprite.h"
@interface Map : SPSprite {
NSMutableArray *tiles;
SPCompiledSprite *mapSprite;
SPSprite *coinSprite;
SPSprite *platformSprite;
SPJuggler *juggler;
}
@property (nonatomic, strong) NSMutableArray *tileData;
@property (nonatomic, assign) int tileWidth;
@property (nonatomic, assign) int tileHeight;
@property (nonatomic, strong) NSMutableArray *tileIDs;
@property (nonatomic, strong) NSMutableArray *coins;
@property (nonatomic, strong) NSMutableArray *platforms;
-(id) initWithCSV:(NSString *)csvName tileSize:(CGSize)mTileSize andTileImage:(NSString *)tileImageName;
-(void) makeTilesFromImage:(NSString *)tileImageName;
-(void) setupMapWithCSV:(NSString *)csvName;
-(void) drawMap;
-(int) getTileID:(SPPoint *)loc;
-(NSMutableArray *) getPlatforms:(SPPoint *)loc;
-(void) removeCoinAtColumn:(int)column andRow:(int)row;
-(bool) isPoint:(SPPoint *)point inRotatedObject:(SPDisplayObject *)obj;
-(NSMutableArray *) windmillWithLength:(int)length atX:(float)xOffset andY:(float)yOffset;
@end