blob: 6cb0c14d222be85f321626233078813795fa38fd (
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
|
//
// 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];
}
@property (readonly) CCSprite* sprite;
@property (readonly) int weight;
@property (nonatomic,retain) id<FallingObjectDelegate> delegate;
- (id)init;
- (BOOL)tick;
- (void)collideWithCart;
- (void)collideWithFloor;
@end
|