summary refs log tree commit diff stats
path: root/Classes/Cart.h
blob: af463f2b13377c4cf66f2eee835f870ef27e795e (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
31
//
//  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;
    BOOL boundedByScreen;
}

@property (readonly) CCSprite* sprite;
@property (assign) BOOL immobile;
@property (nonatomic,retain) id<CartDelegate> delegate;
@property (assign) BOOL falling;
@property (assign) BOOL boundedByScreen;
- (id)initWithSprite:(CCSprite*)sprite;
- (void)tick;
- (void)deviceDidRotate:(double)pitch;

@end