#import "Sparrow.h"
+
#import "render/QQSparrowExtensions.h"
#import "game/actor/Actor.h"
+#import "game/actor/UnitDelegate.h"
+
#import "physics/World.h"
@interface Unit : Actor {
@private
- SPDisplayObject* _shape;
+ SPDisplayObject* _shape;
+ id <UnitDelegate> _delegate;
}
////////////////////////////////////////////////////////////////////////////////////
@property (nonatomic, retain, readwrite) SPDisplayObject* shape;
+@property (nonatomic, retain, readwrite) id <UnitDelegate> delegate;
////////////////////////////////////////////////////////////////////////////////////
- (id) initWithFile:(NSString*)fileName atX:(float)x y:(float)y;
////////////////////////////////////////////////////////////////////////////////////
@synthesize shape = _shape;
+@synthesize delegate = _delegate;
////////////////////////////////////////////////////////////////////////////////////
- (id) init {
-//
-// UnitDelegate.h
-// tanks
-//
-// Created by Doris Chen on 5/14/11.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-
-
-@protocol UnitDelegate <NSObject>
+@protocol UnitDelegate
-(void)updateWithTick:(float)time;
@end