summary refs log tree commit diff stats
path: root/Classes/FallingObject.h
blob: 3e28903857e11c157667023f6ce4d120d2552b44 (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
//
//  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;
}

@property (readonly) CCSprite* sprite;
@property (readonly) int weight;
@property (nonatomic,retain) id<FallingObjectDelegate> delegate;
- (id)init;
- (BOOL)tick;
- (void)collideWithCart;
- (void)collideWithFloor;

@end