diff options
Diffstat (limited to 'Classes/Highscore.m')
-rwxr-xr-x | Classes/Highscore.m | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Classes/Highscore.m b/Classes/Highscore.m new file mode 100755 index 0000000..7239cca --- /dev/null +++ b/Classes/Highscore.m | |||
@@ -0,0 +1,37 @@ | |||
1 | // | ||
2 | // Highscore.m | ||
3 | // Cart Collect | ||
4 | // | ||
5 | // Created by iD Student Account on 7/20/11. | ||
6 | // Copyright 2011 __MyCompanyName__. All rights reserved. | ||
7 | // | ||
8 | |||
9 | #import "Highscore.h" | ||
10 | |||
11 | |||
12 | @implementation Highscore | ||
13 | |||
14 | @synthesize name, score, date; | ||
15 | |||
16 | - (id)initWithName:(NSString*)m_name score:(int)m_score date:(NSDate*)m_date | ||
17 | { | ||
18 | self = [super init]; | ||
19 | |||
20 | if (nil != self) | ||
21 | { | ||
22 | name = [m_name retain]; | ||
23 | score = m_score; | ||
24 | date = [m_date retain]; | ||
25 | } | ||
26 | |||
27 | return self; | ||
28 | } | ||
29 | |||
30 | - (void)dealloc | ||
31 | { | ||
32 | [name release]; | ||
33 | [date release]; | ||
34 | [super dealloc]; | ||
35 | } | ||
36 | |||
37 | @end | ||