cocoaTouch/GravesViewController.m
author koda
Sat, 17 Apr 2010 04:59:10 +0000
changeset 3352 ac5d14a35482
parent 3340 96dd168b080b
child 3364 e5403e2bf02c
permissions -rw-r--r--
complete previews on the team settings moved image functions in a category of UIImage other code cleanup
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
     1
//
3352
ac5d14a35482 complete previews on the team settings
koda
parents: 3340
diff changeset
     2
//  GravesViewController.m
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
     3
//  HedgewarsMobile
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
     4
//
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
     5
//  Created by Vittorio on 02/04/10.
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
     7
//
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
     8
3340
96dd168b080b fix all of what was committed before
koda
parents: 3339
diff changeset
     9
#import "GravesViewController.h"
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    10
#import "CommodityFunctions.h"
3352
ac5d14a35482 complete previews on the team settings
koda
parents: 3340
diff changeset
    11
#import "UIImageExtra.h"
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    12
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    13
@implementation GravesViewController
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    14
@synthesize teamDictionary, graveArray, graveSprites, lastIndexPath;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    15
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    16
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    17
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    18
	return rotationManager(interfaceOrientation);
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    19
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    20
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    21
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    22
#pragma mark -
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    23
#pragma mark View lifecycle
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    24
- (void)viewDidLoad {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    25
    [super viewDidLoad];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    26
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    27
    // load all the voices names and store them into voiceArray
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    28
    NSArray *array = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:GRAVES_DIRECTORY() error:NULL];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    29
    self.graveArray = array;
3340
96dd168b080b fix all of what was committed before
koda
parents: 3339
diff changeset
    30
    
96dd168b080b fix all of what was committed before
koda
parents: 3339
diff changeset
    31
    NSMutableArray *sprites = [[NSMutableArray alloc] initWithCapacity:[graveArray count]];
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    32
    for (NSString *graveName in graveArray) {
3340
96dd168b080b fix all of what was committed before
koda
parents: 3339
diff changeset
    33
        NSString *gravePath = [[NSString alloc] initWithFormat:@"%@/%@",GRAVES_DIRECTORY(),graveName];
96dd168b080b fix all of what was committed before
koda
parents: 3339
diff changeset
    34
        // because we also have multi frame graves, let's take the first one only
3352
ac5d14a35482 complete previews on the team settings
koda
parents: 3340
diff changeset
    35
        UIImage *graveSprite = [[UIImage alloc] initWithContentsOfFile:gravePath andCutAt:CGRectMake(0, 0, 32, 32)];
ac5d14a35482 complete previews on the team settings
koda
parents: 3340
diff changeset
    36
        [gravePath release];        
ac5d14a35482 complete previews on the team settings
koda
parents: 3340
diff changeset
    37
ac5d14a35482 complete previews on the team settings
koda
parents: 3340
diff changeset
    38
        [sprites addObject:graveSprite];
ac5d14a35482 complete previews on the team settings
koda
parents: 3340
diff changeset
    39
        [graveSprite release];
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    40
    }
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    41
    self.graveSprites = sprites;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    42
    [sprites release];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    43
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    44
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    45
- (void)viewWillAppear:(BOOL)animated {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    46
    [super viewWillAppear:animated];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    47
    
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    48
    // this moves the tableview to the top
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    49
    [self.tableView setContentOffset:CGPointMake(0,0) animated:NO];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    50
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    51
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    52
/*
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    53
- (void)viewDidAppear:(BOOL)animated {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    54
    [super viewDidAppear:animated];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    55
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    56
*/
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    57
/*
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    58
- (void)viewWillDisappear:(BOOL)animated {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    59
    [super viewWillDisappear:animated];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    60
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    61
*/
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    62
/*
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    63
- (void)viewDidDisappear:(BOOL)animated {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    64
    [super viewDidDisappear:animated];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    65
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    66
*/
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    67
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    68
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    69
#pragma mark -
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    70
#pragma mark Table view data source
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    71
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    72
    return 1;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    73
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    74
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    75
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    76
    return [self.graveArray count];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    77
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    78
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    79
// Customize the appearance of table view cells.
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    80
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    81
    
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    82
    static NSString *CellIdentifier = @"Cell";
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    83
    
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    84
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    85
    if (cell == nil) {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    86
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    87
    }
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    88
    
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    89
    NSString *grave = [[graveArray objectAtIndex:[indexPath row]] stringByDeletingPathExtension];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    90
    cell.textLabel.text = grave;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    91
    
3340
96dd168b080b fix all of what was committed before
koda
parents: 3339
diff changeset
    92
    if ([grave isEqualToString:[teamDictionary objectForKey:@"grave"]]) {
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    93
        cell.accessoryType = UITableViewCellAccessoryCheckmark;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    94
        self.lastIndexPath = indexPath;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    95
    } else {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    96
        cell.accessoryType = UITableViewCellAccessoryNone;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    97
    }
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
    98
    
3340
96dd168b080b fix all of what was committed before
koda
parents: 3339
diff changeset
    99
    cell.imageView.image = [graveSprites objectAtIndex:[indexPath row]];
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   100
    return cell;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   101
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   102
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   103
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   104
/*
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   105
// Override to support conditional editing of the table view.
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   106
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   107
    // Return NO if you do not want the specified item to be editable.
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   108
    return YES;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   109
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   110
*/
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   111
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   112
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   113
/*
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   114
// Override to support editing the table view.
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   115
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   116
    
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   117
    if (editingStyle == UITableViewCellEditingStyleDelete) {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   118
        // Delete the row from the data source
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   119
        [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   120
    }   
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   121
    else if (editingStyle == UITableViewCellEditingStyleInsert) {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   122
        // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   123
    }   
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   124
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   125
*/
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   126
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   127
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   128
/*
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   129
// Override to support rearranging the table view.
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   130
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   131
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   132
*/
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   133
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   134
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   135
/*
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   136
// Override to support conditional rearranging of the table view.
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   137
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   138
    // Return NO if you do not want the item to be re-orderable.
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   139
    return YES;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   140
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   141
*/
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   142
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   143
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   144
#pragma mark -
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   145
#pragma mark Table view delegate
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   146
- (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   147
    int newRow = [indexPath row];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   148
    int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   149
    
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   150
    if (newRow != oldRow) {
3340
96dd168b080b fix all of what was committed before
koda
parents: 3339
diff changeset
   151
        [teamDictionary setObject:[[graveArray objectAtIndex:newRow] stringByDeletingPathExtension] forKey:@"grave"];
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   152
        
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   153
        // tell our boss to write this new stuff on disk
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   154
        [[NSNotificationCenter defaultCenter] postNotificationName:@"setWriteNeedTeams" object:nil];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   155
        [self.tableView reloadData];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   156
        
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   157
        self.lastIndexPath = indexPath;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   158
        [self.tableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionNone];
3340
96dd168b080b fix all of what was committed before
koda
parents: 3339
diff changeset
   159
    }
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   160
    [self.tableView deselectRowAtIndexPath:indexPath animated:YES];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   161
    [self.navigationController popViewControllerAnimated:YES];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   162
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   163
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   164
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   165
#pragma mark -
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   166
#pragma mark Memory management
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   167
- (void)didReceiveMemoryWarning {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   168
    // Releases the view if it doesn't have a superview.
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   169
    [super didReceiveMemoryWarning];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   170
    // Relinquish ownership any cached data, images, etc that aren't in use.
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   171
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   172
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   173
- (void)viewDidUnload {
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   174
    [super viewDidUnload];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   175
    self.lastIndexPath = nil;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   176
    self.teamDictionary = nil;
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   177
    self.graveArray = nil;
3340
96dd168b080b fix all of what was committed before
koda
parents: 3339
diff changeset
   178
    self.graveSprites = nil;
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   179
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   180
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   181
- (void)dealloc {
3340
96dd168b080b fix all of what was committed before
koda
parents: 3339
diff changeset
   182
    [graveSprites release];
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   183
    [graveArray release];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   184
    [teamDictionary release];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   185
    [lastIndexPath release];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   186
    [super dealloc];
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   187
}
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   188
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   189
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   190
@end
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents:
diff changeset
   191