summary refs log blame commit diff stats
path: root/Classes/Cart.h
blob: 105802575cf0b8709407663f79957e07ba6e2318 (plain) (tree)
1
2
3
4
5
6
7
8
9
10








                                                    
                        


                            
                  
                              
                         

                                      
                                 
                                                       
                                        



                                                                                                  
//
//  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)accelerometer:(UIAccelerometer*)accelerometer didAccelerate:(UIAcceleration*)acceleration;

@end