author | inu |
Sun, 07 Nov 2010 11:23:30 -0500 | |
changeset 4170 | 7fb7386423d8 |
parent 3948 | 24daa33a3114 |
child 4478 | 05029b4d8490 |
permissions | -rw-r--r-- |
3829 | 1 |
/* |
2 |
* Hedgewars-iOS, a Hedgewars port for iOS devices |
|
3 |
* Copyright (c) 2009-2010 Vittorio Giovara <vittorio.giovara@gmail.com> |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
17 |
* |
|
18 |
* File created on 02/04/2010. |
|
19 |
*/ |
|
20 |
||
3547 | 21 |
|
22 |
#import "SingleTeamViewController.h" |
|
23 |
#import "HogHatViewController.h" |
|
24 |
#import "GravesViewController.h" |
|
25 |
#import "VoicesViewController.h" |
|
26 |
#import "FortsViewController.h" |
|
27 |
#import "FlagsViewController.h" |
|
28 |
#import "LevelViewController.h" |
|
29 |
#import "CommodityFunctions.h" |
|
30 |
#import "UIImageExtra.h" |
|
3926
668b71f31e51
use dynamic data from engine instead of using hardcoded values
koda
parents:
3924
diff
changeset
|
31 |
#import "PascalImports.h" |
3547 | 32 |
|
3660 | 33 |
#define TEAMNAME_TAG 78789 |
3547 | 34 |
|
35 |
@implementation SingleTeamViewController |
|
3816 | 36 |
@synthesize teamDictionary, normalHogSprite, secondaryItems, moreSecondaryItems, teamName; |
3547 | 37 |
|
38 |
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation { |
|
39 |
return rotationManager(interfaceOrientation); |
|
40 |
} |
|
41 |
||
42 |
#pragma mark - |
|
3660 | 43 |
#pragma mark editableCellViewDelegate methods |
3547 | 44 |
// set the new value |
3660 | 45 |
-(void) saveTextFieldValue:(NSString *)textString withTag:(NSInteger) tagValue { |
46 |
if (TEAMNAME_TAG == tagValue) { |
|
47 |
// delete old file |
|
48 |
[[NSFileManager defaultManager] removeItemAtPath:[NSString stringWithFormat:@"%@/%@.plist",TEAMS_DIRECTORY(),self.teamName] error:NULL]; |
|
49 |
// update filename |
|
50 |
self.teamName = textString; |
|
51 |
// save new file |
|
52 |
[self writeFile]; |
|
53 |
} else { |
|
54 |
// replace the old value with the new one |
|
55 |
NSMutableDictionary *hog = [[teamDictionary objectForKey:@"hedgehogs"] objectAtIndex:tagValue]; |
|
56 |
[hog setObject:textString forKey:@"hogname"]; |
|
3547 | 57 |
isWriteNeeded = YES; |
58 |
} |
|
59 |
} |
|
60 |
||
61 |
#pragma mark - |
|
62 |
#pragma mark View lifecycle |
|
63 |
-(void) viewDidLoad { |
|
64 |
[super viewDidLoad]; |
|
3697 | 65 |
|
3547 | 66 |
// labels for the entries |
67 |
NSArray *array = [[NSArray alloc] initWithObjects: |
|
68 |
NSLocalizedString(@"Grave",@""), |
|
69 |
NSLocalizedString(@"Voice",@""), |
|
70 |
NSLocalizedString(@"Fort",@""), |
|
71 |
NSLocalizedString(@"Flag",@""), |
|
72 |
NSLocalizedString(@"Level",@""),nil]; |
|
73 |
self.secondaryItems = array; |
|
74 |
[array release]; |
|
3816 | 75 |
|
76 |
// labels for the subtitles |
|
77 |
NSArray *moreArray = [[NSArray alloc] initWithObjects: |
|
78 |
NSLocalizedString(@"Mark the death of your fallen warriors",@""), |
|
79 |
NSLocalizedString(@"Pick a slang your hogs will speak",@""), |
|
80 |
NSLocalizedString(@"Select the team invincible fortress (only valid for fort games)",@""), |
|
81 |
NSLocalizedString(@"Choose a charismatic symbol for your team",@""), |
|
82 |
NSLocalizedString(@"Opt for controlling the team or let the AI lead",@""),nil]; |
|
83 |
self.moreSecondaryItems = moreArray; |
|
84 |
[moreArray release]; |
|
3547 | 85 |
|
86 |
// load the base hog image, drawing will occure in cellForRow... |
|
87 |
NSString *normalHogFile = [[NSString alloc] initWithFormat:@"%@/Hedgehog.png",GRAPHICS_DIRECTORY()]; |
|
88 |
UIImage *hogSprite = [[UIImage alloc] initWithContentsOfFile:normalHogFile andCutAt:CGRectMake(96, 0, 32, 32)]; |
|
89 |
[normalHogFile release]; |
|
90 |
self.normalHogSprite = hogSprite; |
|
91 |
[hogSprite release]; |
|
3697 | 92 |
|
3547 | 93 |
// listen if any childController modifies the plist and write it if needed |
94 |
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(setWriteNeeded) name:@"setWriteNeedTeams" object:nil]; |
|
95 |
isWriteNeeded = NO; |
|
3697 | 96 |
|
3660 | 97 |
self.title = NSLocalizedString(@"Edit team settings",@""); |
3547 | 98 |
} |
99 |
||
100 |
-(void) viewWillAppear:(BOOL)animated { |
|
101 |
[super viewWillAppear:animated]; |
|
3697 | 102 |
|
3660 | 103 |
// load data about the team and write if there has been a change from other childControllers |
3697 | 104 |
if (isWriteNeeded) |
3547 | 105 |
[self writeFile]; |
3697 | 106 |
|
3660 | 107 |
NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/%@.plist",TEAMS_DIRECTORY(),self.teamName]; |
3547 | 108 |
NSMutableDictionary *teamDict = [[NSMutableDictionary alloc] initWithContentsOfFile:teamFile]; |
109 |
self.teamDictionary = teamDict; |
|
110 |
[teamDict release]; |
|
111 |
[teamFile release]; |
|
3697 | 112 |
|
3547 | 113 |
[self.tableView reloadData]; |
114 |
} |
|
115 |
||
116 |
// write on file if there has been a change |
|
117 |
-(void) viewWillDisappear:(BOOL)animated { |
|
118 |
[super viewWillDisappear:animated]; |
|
119 |
||
3697 | 120 |
if (isWriteNeeded) |
3660 | 121 |
[self writeFile]; |
3547 | 122 |
} |
123 |
||
124 |
#pragma mark - |
|
125 |
// needed by other classes to warn about a user change |
|
126 |
-(void) setWriteNeeded { |
|
127 |
isWriteNeeded = YES; |
|
128 |
} |
|
129 |
||
130 |
-(void) writeFile { |
|
3660 | 131 |
NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/%@.plist",TEAMS_DIRECTORY(),self.teamName]; |
132 |
[self.teamDictionary writeToFile:teamFile atomically:YES]; |
|
133 |
[teamFile release]; |
|
3547 | 134 |
|
3789
c3eb56754e92
added a smaller version of forts, fixed a couple of regressions
koda
parents:
3783
diff
changeset
|
135 |
//DLog(@"%@",teamDictionary); |
3547 | 136 |
isWriteNeeded = NO; |
137 |
} |
|
138 |
||
139 |
#pragma mark - |
|
140 |
#pragma mark Table view data source |
|
141 |
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView { |
|
142 |
return 3; |
|
143 |
} |
|
144 |
||
145 |
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { |
|
146 |
NSInteger rows = 0; |
|
147 |
switch (section) { |
|
148 |
case 0: // team name |
|
149 |
rows = 1; |
|
150 |
break; |
|
151 |
case 1: // team members |
|
3926
668b71f31e51
use dynamic data from engine instead of using hardcoded values
koda
parents:
3924
diff
changeset
|
152 |
rows = HW_getMaxNumberOfHogs(); |
3547 | 153 |
break; |
154 |
case 2: // team details |
|
155 |
rows = [self.secondaryItems count]; |
|
156 |
break; |
|
157 |
default: |
|
158 |
break; |
|
159 |
} |
|
160 |
return rows; |
|
161 |
} |
|
162 |
||
3660 | 163 |
-(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { |
164 |
NSString *sectionTitle = nil; |
|
165 |
switch (section) { |
|
166 |
case 0: |
|
167 |
sectionTitle = NSLocalizedString(@"Team Name", @""); |
|
168 |
break; |
|
169 |
case 1: |
|
170 |
sectionTitle = NSLocalizedString(@"Names and Hats", @""); |
|
171 |
break; |
|
172 |
case 2: |
|
173 |
sectionTitle = NSLocalizedString(@"Team Preferences", @""); |
|
174 |
break; |
|
175 |
default: |
|
176 |
DLog(@"Nope"); |
|
177 |
break; |
|
178 |
} |
|
179 |
return sectionTitle; |
|
180 |
} |
|
181 |
||
3547 | 182 |
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { |
183 |
static NSString *CellIdentifier0 = @"Cell0"; |
|
184 |
static NSString *CellIdentifier1 = @"Cell1"; |
|
185 |
static NSString *CellIdentifier2 = @"Cell2"; |
|
3697 | 186 |
|
3547 | 187 |
NSArray *hogArray; |
188 |
UITableViewCell *cell = nil; |
|
3660 | 189 |
EditableCellView *editableCell = nil; |
3547 | 190 |
NSInteger row = [indexPath row]; |
191 |
UIImage *accessoryImage; |
|
3697 | 192 |
|
3547 | 193 |
switch ([indexPath section]) { |
194 |
case 0: |
|
3660 | 195 |
editableCell = (EditableCellView *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier0]; |
196 |
if (editableCell == nil) { |
|
3697 | 197 |
editableCell = [[[EditableCellView alloc] initWithStyle:UITableViewCellStyleDefault |
3547 | 198 |
reuseIdentifier:CellIdentifier0] autorelease]; |
3660 | 199 |
editableCell.delegate = self; |
200 |
editableCell.tag = TEAMNAME_TAG; |
|
3547 | 201 |
} |
3697 | 202 |
|
3660 | 203 |
editableCell.imageView.image = nil; |
204 |
editableCell.accessoryType = UITableViewCellAccessoryNone; |
|
205 |
editableCell.textField.text = self.teamName; |
|
206 |
||
207 |
cell = editableCell; |
|
3547 | 208 |
break; |
209 |
case 1: |
|
3660 | 210 |
editableCell = (EditableCellView *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier1]; |
211 |
if (editableCell == nil) { |
|
3697 | 212 |
editableCell = [[[EditableCellView alloc] initWithStyle:UITableViewCellStyleDefault |
3547 | 213 |
reuseIdentifier:CellIdentifier1] autorelease]; |
3660 | 214 |
editableCell.delegate = self; |
215 |
editableCell.tag = [indexPath row]; |
|
3547 | 216 |
} |
3697 | 217 |
|
3547 | 218 |
hogArray = [self.teamDictionary objectForKey:@"hedgehogs"]; |
3697 | 219 |
|
3660 | 220 |
// draw the hat on top of the hog |
3547 | 221 |
NSString *hatFile = [[NSString alloc] initWithFormat:@"%@/%@.png", HATS_DIRECTORY(), [[hogArray objectAtIndex:row] objectForKey:@"hat"]]; |
222 |
UIImage *hatSprite = [[UIImage alloc] initWithContentsOfFile: hatFile andCutAt:CGRectMake(0, 0, 32, 32)]; |
|
223 |
[hatFile release]; |
|
3948
24daa33a3114
some rethinking of initial menu presentation and initial orientation (also merging images should be threadsafe now)
koda
parents:
3926
diff
changeset
|
224 |
editableCell.imageView.image = [self.normalHogSprite mergeWith:hatSprite atPoint:CGPointMake(0, 5)]; |
3547 | 225 |
[hatSprite release]; |
3697 | 226 |
|
3660 | 227 |
editableCell.textField.text = [[hogArray objectAtIndex:row] objectForKey:@"hogname"]; |
228 |
editableCell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; |
|
3697 | 229 |
|
3660 | 230 |
cell = editableCell; |
3547 | 231 |
break; |
232 |
case 2: |
|
233 |
cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier2]; |
|
234 |
if (cell == nil) { |
|
3816 | 235 |
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle |
3547 | 236 |
reuseIdentifier:CellIdentifier2] autorelease]; |
237 |
} |
|
3697 | 238 |
|
3547 | 239 |
cell.textLabel.text = [self.secondaryItems objectAtIndex:row]; |
3816 | 240 |
cell.detailTextLabel.text = [self.moreSecondaryItems objectAtIndex:row]; |
3547 | 241 |
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; |
242 |
switch (row) { |
|
243 |
case 0: // grave |
|
244 |
accessoryImage = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@.png", |
|
245 |
GRAVES_DIRECTORY(),[teamDictionary objectForKey:@"grave"]] |
|
246 |
andCutAt:CGRectMake(0,0,32,32)]; |
|
247 |
cell.imageView.image = accessoryImage; |
|
248 |
[accessoryImage release]; |
|
249 |
break; |
|
3816 | 250 |
case 1: // voice |
251 |
accessoryImage = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/HellishBomb.png", |
|
252 |
GRAPHICS_DIRECTORY()]]; |
|
253 |
cell.imageView.image = accessoryImage; |
|
254 |
[accessoryImage release]; |
|
255 |
break; |
|
3547 | 256 |
case 2: // fort |
3789
c3eb56754e92
added a smaller version of forts, fixed a couple of regressions
koda
parents:
3783
diff
changeset
|
257 |
accessoryImage = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@-preview.png", |
3547 | 258 |
FORTS_DIRECTORY(),[teamDictionary objectForKey:@"fort"]]]; |
3816 | 259 |
cell.imageView.image = [accessoryImage scaleToSize:CGSizeMake(32, 32)]; |
3547 | 260 |
[accessoryImage release]; |
261 |
break; |
|
262 |
case 3: // flags |
|
263 |
accessoryImage = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@.png", |
|
264 |
FLAGS_DIRECTORY(),[teamDictionary objectForKey:@"flag"]]]; |
|
3825 | 265 |
cell.imageView.image = [accessoryImage scaleToSize:CGSizeMake(27, 19)]; |
3547 | 266 |
[accessoryImage release]; |
267 |
break; |
|
268 |
case 4: // level |
|
269 |
accessoryImage = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%d.png", |
|
270 |
BOTLEVELS_DIRECTORY(),[[[[teamDictionary objectForKey:@"hedgehogs"] |
|
271 |
objectAtIndex:0] objectForKey:@"level"] |
|
272 |
intValue]]]; |
|
3816 | 273 |
cell.imageView.image = [accessoryImage scaleToSize:CGSizeMake(32, 32)]; |
3547 | 274 |
[accessoryImage release]; |
275 |
break; |
|
276 |
default: |
|
277 |
cell.imageView.image = nil; |
|
278 |
break; |
|
279 |
} |
|
280 |
break; |
|
281 |
} |
|
3697 | 282 |
|
3547 | 283 |
return cell; |
284 |
} |
|
285 |
||
286 |
||
287 |
#pragma mark - |
|
288 |
#pragma mark Table view delegate |
|
289 |
-(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
|
290 |
NSInteger row = [indexPath row]; |
|
291 |
NSInteger section = [indexPath section]; |
|
3697 | 292 |
|
3547 | 293 |
if (2 == section) { |
294 |
switch (row) { |
|
295 |
case 0: // grave |
|
296 |
if (nil == gravesViewController) |
|
297 |
gravesViewController = [[GravesViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
|
3924 | 298 |
|
299 |
[gravesViewController setTeamDictionary:teamDictionary]; |
|
300 |
[self.navigationController pushViewController:gravesViewController animated:YES]; |
|
3547 | 301 |
break; |
302 |
case 1: // voice |
|
303 |
if (nil == voicesViewController) |
|
304 |
voicesViewController = [[VoicesViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
|
3924 | 305 |
|
306 |
[voicesViewController setTeamDictionary:teamDictionary]; |
|
307 |
[self.navigationController pushViewController:voicesViewController animated:YES]; |
|
3547 | 308 |
break; |
309 |
case 2: // fort |
|
310 |
if (nil == fortsViewController) |
|
311 |
fortsViewController = [[FortsViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
|
3924 | 312 |
|
313 |
[fortsViewController setTeamDictionary:teamDictionary]; |
|
314 |
[self.navigationController pushViewController:fortsViewController animated:YES]; |
|
3547 | 315 |
break; |
316 |
case 3: // flag |
|
3697 | 317 |
if (nil == flagsViewController) |
3547 | 318 |
flagsViewController = [[FlagsViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
3924 | 319 |
|
320 |
[flagsViewController setTeamDictionary:teamDictionary]; |
|
321 |
[self.navigationController pushViewController:flagsViewController animated:YES]; |
|
3547 | 322 |
break; |
323 |
case 4: // level |
|
324 |
if (nil == levelViewController) |
|
325 |
levelViewController = [[LevelViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
|
3924 | 326 |
|
327 |
[levelViewController setTeamDictionary:teamDictionary]; |
|
328 |
[self.navigationController pushViewController:levelViewController animated:YES]; |
|
329 |
break; |
|
330 |
default: |
|
331 |
DLog(@"Nope"); |
|
3547 | 332 |
break; |
333 |
} |
|
334 |
} else { |
|
3660 | 335 |
EditableCellView *cell = (EditableCellView *)[aTableView cellForRowAtIndexPath:indexPath]; |
336 |
[cell replyKeyboard]; |
|
3547 | 337 |
[aTableView deselectRowAtIndexPath:indexPath animated:NO]; |
338 |
} |
|
339 |
||
340 |
} |
|
341 |
||
342 |
// action to perform when you want to change a hog hat |
|
3660 | 343 |
-(void) tableView:(UITableView *)aTableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { |
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
344 |
if (nil == hogHatViewController) |
3547 | 345 |
hogHatViewController = [[HogHatViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
3697 | 346 |
|
3547 | 347 |
// cache the dictionary file of the team, so that other controllers can modify it |
348 |
hogHatViewController.teamDictionary = self.teamDictionary; |
|
349 |
hogHatViewController.selectedHog = [indexPath row]; |
|
3697 | 350 |
|
3660 | 351 |
// if we are editing the field undo any change before proceeding |
352 |
EditableCellView *cell = (EditableCellView *)[aTableView cellForRowAtIndexPath:indexPath]; |
|
353 |
[cell cancel:nil]; |
|
3697 | 354 |
|
3547 | 355 |
[self.navigationController pushViewController:hogHatViewController animated:YES]; |
356 |
} |
|
357 |
||
358 |
||
359 |
#pragma mark - |
|
360 |
#pragma mark Memory management |
|
361 |
-(void) didReceiveMemoryWarning { |
|
362 |
[super didReceiveMemoryWarning]; |
|
363 |
if (hogHatViewController.view.superview == nil) |
|
364 |
hogHatViewController = nil; |
|
365 |
if (gravesViewController.view.superview == nil) |
|
366 |
gravesViewController = nil; |
|
367 |
if (voicesViewController.view.superview == nil) |
|
368 |
voicesViewController = nil; |
|
369 |
if (fortsViewController.view.superview == nil) |
|
370 |
fortsViewController = nil; |
|
371 |
if (flagsViewController.view.superview == nil) |
|
372 |
flagsViewController = nil; |
|
373 |
if (levelViewController.view.superview == nil) |
|
374 |
levelViewController = nil; |
|
3660 | 375 |
MSG_MEMCLEAN(); |
3547 | 376 |
} |
377 |
||
378 |
-(void) viewDidUnload { |
|
3783 | 379 |
[[NSNotificationCenter defaultCenter] removeObserver:self]; |
3547 | 380 |
self.teamDictionary = nil; |
381 |
self.teamName = nil; |
|
382 |
self.normalHogSprite = nil; |
|
383 |
self.secondaryItems = nil; |
|
3816 | 384 |
self.moreSecondaryItems = nil; |
3547 | 385 |
hogHatViewController = nil; |
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
386 |
gravesViewController = nil; |
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
387 |
voicesViewController = nil; |
3547 | 388 |
flagsViewController = nil; |
389 |
fortsViewController = nil; |
|
390 |
levelViewController = nil; |
|
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
391 |
MSG_DIDUNLOAD(); |
3547 | 392 |
[super viewDidUnload]; |
393 |
} |
|
394 |
||
395 |
-(void) dealloc { |
|
396 |
[teamDictionary release]; |
|
397 |
[teamName release]; |
|
398 |
[normalHogSprite release]; |
|
399 |
[secondaryItems release]; |
|
3816 | 400 |
[moreSecondaryItems release]; |
3547 | 401 |
[hogHatViewController release]; |
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
402 |
[gravesViewController release]; |
3547 | 403 |
[fortsViewController release]; |
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
404 |
[voicesViewController release]; |
3547 | 405 |
[flagsViewController release]; |
406 |
[levelViewController release]; |
|
407 |
[super dealloc]; |
|
408 |
} |
|
409 |
||
410 |
||
411 |
@end |
|
412 |