Removing stale, unremoved files.
authorchsieh <chester.developer@hotmail.com>
Mon, 9 May 2011 02:05:20 +0000 (19:05 -0700)
committerchsieh <chester.developer@hotmail.com>
Mon, 9 May 2011 02:05:20 +0000 (19:05 -0700)
tanks/tanks/Game/Unit/Unit.h [deleted file]
tanks/tanks/Game/Unit/Unit.m [deleted file]

diff --git a/tanks/tanks/Game/Unit/Unit.h b/tanks/tanks/Game/Unit/Unit.h
deleted file mode 100644 (file)
index 1c8fea5..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-//
-//  Unit.h
-//  tanks
-//
-//  Created by Doris Chen on 5/7/11.
-//  Copyright 2011 __MyCompanyName__. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import "Sparrow.h"
-
-
-@interface Unit : NSObject {
-}
-
-@property(nonatomic, retain) SPQuad* quad;
-
--(Unit*)initWithWidth:(int)width height:(int)height X:(int)x Y:(int)y;
--(void)onTouch:(SPTouchEvent*)event;
-@end
diff --git a/tanks/tanks/Game/Unit/Unit.m b/tanks/tanks/Game/Unit/Unit.m
deleted file mode 100644 (file)
index 66da593..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-//
-//  Unit.m
-//  tanks
-//
-//  Created by Doris Chen on 5/7/11.
-//  Copyright 2011 __MyCompanyName__. All rights reserved.
-//
-
-#import "Unit.h"
-
-
-@implementation Unit
-
-@synthesize quad;
-
--(Unit*)initWithWidth:(int)width height:(int)height X:(int)x Y:(int)y {
-  quad = [SPQuad quadWithWidth:width height:height];
-  quad.color = 0xff0000;
-  quad.x = x;
-  quad.y = y;
-  
-  return self;
-}
-
--(void)onTouch:(SPTouchEvent*)event {
-  SPTouch* touch = [[event touchesWithTarget:quad.parent] anyObject];
-  if (touch) {
-    SPPoint* touchPosition = [touch locationInSpace:quad.parent];
-    quad.x = touchPosition.x - quad.width / 2.0f;
-    quad.y = touchPosition.y - quad.height / 2.0f;
-  }
-}
-
-@end