From: chsieh Date: Mon, 9 May 2011 02:05:20 +0000 (-0700) Subject: Removing stale, unremoved files. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=5395a3ee5e4a32780b42b1850089dc3a393b7980;p=tanks-ios.git Removing stale, unremoved files. --- diff --git a/tanks/tanks/Game/Unit/Unit.h b/tanks/tanks/Game/Unit/Unit.h deleted file mode 100644 index 1c8fea5..0000000 --- a/tanks/tanks/Game/Unit/Unit.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// Unit.h -// tanks -// -// Created by Doris Chen on 5/7/11. -// Copyright 2011 __MyCompanyName__. All rights reserved. -// - -#import -#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 index 66da593..0000000 --- a/tanks/tanks/Game/Unit/Unit.m +++ /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