-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGEGameObject.m
More file actions
42 lines (34 loc) · 735 Bytes
/
GEGameObject.m
File metadata and controls
42 lines (34 loc) · 735 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// GEGameObject.m
// BallStack
//
// Created by Adam McDonald on 11/9/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import "GEGameObject.h"
@implementation GEGameObject
@synthesize active, moving, visible, radius, width, height, identifier, direction, position;
- (id)initWithFrame:(CGRect)frame {
if (self = [super initWithFrame:frame]) {
// Initialization code (default)
self.active = YES;
self.moving = NO;
self.visible = YES;
}
return self;
}
- (void)dealloc {
[super dealloc];
}
/*
* Override this method in subclass (if needed).
*/
- (void)draw {
[self.image drawAtPoint:self.frame.origin];
}
/*
* Override this method in subclass.
*/
- (void)update {
}
@end