blob: d9406d5de6243fd1d97a25ee984a62f65719e39d (
plain) (
blame)
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
|
//
// GameObject.h
// Cart Collect
//
// Created by iD Student Account on 7/19/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "FallingObjectDelegate.h"
@interface FallingObject : NSObject {
CCSprite* sprite;
int weight;
id<FallingObjectDelegate> delegate;
BOOL flags[4];
int objectType;
}
@property (readonly) CCSprite* sprite;
@property (readonly) int weight;
@property (readonly) int objectType;
@property (nonatomic,retain) id<FallingObjectDelegate> delegate;
- (id)initWithSpriteFilename:(NSString*)filename weight:(int)weight objectType:(int)objectType;
- (BOOL)tick;
- (BOOL)flag:(int)flag;
- (void)setFlag:(int)flag withValue:(BOOL)value;
@end
|