summary refs log tree commit diff stats
path: root/Classes/Cart.h
blob: 302e5ec4b729f3595acbae4ab4c6354fcecc2f4e (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
//
//  Cart.h
//  Cart Collect
//
//  Created by Starla Insigna on 8/9/11.
//  Copyright 2011 Four Island. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "CartDelegate.h"

@interface Cart : NSObject {
    CCSprite* sprite;
    float accelX;
    BOOL immobile;
    id<CartDelegate> delegate;
    BOOL falling;
}

@property (readonly) CCSprite* sprite;
@property (assign) BOOL immobile;
@property (nonatomic,retain) id<CartDelegate> delegate;
@property (assign) BOOL falling;
- (id)initWithSprite:(CCSprite*)sprite;
- (void)tick;
- (void)accelerometer:(UIAccelerometer*)accelerometer didAccelerate:(UIAcceleration*)acceleration;

@end