project_files/HedgewarsMobile/Classes/WeaponCellView.m
author smaxx
Wed, 04 Aug 2010 17:35:45 +0200
changeset 3724 b8678667e7dc
parent 3697 d5b30d6373fc
child 3766 36b625111609
permissions -rw-r--r--
Engine: * Added Lua's table module
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     1
//
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     2
//  WeaponCellView.m
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     3
//  Hedgewars
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     4
//
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     5
//  Created by Vittorio on 03/07/10.
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     7
//
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     8
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
     9
#import "WeaponCellView.h"
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    10
#import "CommodityFunctions.h"
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    11
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    12
@implementation WeaponCellView
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    13
@synthesize delegate, weaponName, weaponIcon, initialQt, probabilityQt, delayQt, crateQt,
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    14
            initialImg, probabImg, delayImg, crateImg, initialLab, probLab, delLab, craLab;
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    15
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    16
-(id) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    17
    if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
3624
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
    18
        delegate = nil;
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
    19
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    20
        weaponName = [[UILabel alloc] init];
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    21
        weaponName.backgroundColor = [UIColor clearColor];
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    22
        weaponName.font = [UIFont boldSystemFontOfSize:[UIFont labelFontSize]];
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    23
        weaponIcon = [[UIImageView alloc] init];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
    24
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    25
        initialQt = [[UISlider alloc] init];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    26
        [initialQt addTarget:self action:@selector(valueChanged:) forControlEvents:UIControlEventValueChanged];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    27
        initialQt.maximumValue = 9;
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    28
        initialQt.minimumValue = 0;
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
    29
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    30
        probabilityQt = [[UISlider alloc] init];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    31
        [probabilityQt addTarget:self action:@selector(valueChanged:) forControlEvents:UIControlEventValueChanged];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    32
        probabilityQt.maximumValue = 9;
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    33
        probabilityQt.minimumValue = 0;
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
    34
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    35
        delayQt = [[UISlider alloc] init];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    36
        [delayQt addTarget:self action:@selector(valueChanged:) forControlEvents:UIControlEventValueChanged];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    37
        delayQt.maximumValue = 9;
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    38
        delayQt.minimumValue = 0;
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
    39
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    40
        crateQt = [[UISlider alloc] init];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    41
        [crateQt addTarget:self action:@selector(valueChanged:) forControlEvents:UIControlEventValueChanged];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    42
        crateQt.maximumValue = 9;
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    43
        crateQt.minimumValue = 0;
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
    44
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    45
        NSString *imgAmmoStr = [NSString stringWithFormat:@"%@/iconAmmo.png",BTN_DIRECTORY()];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    46
        NSString *imgDamageStr = [NSString stringWithFormat:@"%@/iconDamage.png",BTN_DIRECTORY()];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    47
        NSString *imgTimeStr = [NSString stringWithFormat:@"%@/iconTime.png",BTN_DIRECTORY()];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    48
        NSString *imgBoxStr = [NSString stringWithFormat:@"%@/iconBox.png",BTN_DIRECTORY()];
3624
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
    49
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    50
        initialImg = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:imgAmmoStr]];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    51
        probabImg = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:imgDamageStr]];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    52
        delayImg = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:imgTimeStr]];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    53
        crateImg = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:imgBoxStr]];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
    54
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    55
        initialLab = [[UILabel alloc] init];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    56
        initialLab.backgroundColor = [UIColor clearColor];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    57
        initialLab.textColor = [UIColor grayColor];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    58
        initialLab.textAlignment = UITextAlignmentCenter;
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
    59
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    60
        probLab = [[UILabel alloc] init];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    61
        probLab.backgroundColor = [UIColor clearColor];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    62
        probLab.textColor = [UIColor grayColor];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    63
        probLab.textAlignment = UITextAlignmentCenter;
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
    64
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    65
        delLab = [[UILabel alloc] init];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    66
        delLab.backgroundColor = [UIColor clearColor];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    67
        delLab.textColor = [UIColor grayColor];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    68
        delLab.textAlignment = UITextAlignmentCenter;
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
    69
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    70
        craLab = [[UILabel alloc] init];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    71
        craLab.backgroundColor = [UIColor clearColor];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    72
        craLab.textColor = [UIColor grayColor];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
    73
        craLab.textAlignment = UITextAlignmentCenter;
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
    74
3667
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    75
        [self.contentView addSubview:weaponName]; // [weaponName release];
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    76
        [self.contentView addSubview:weaponIcon]; // [weaponIcon release];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
    77
3667
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    78
        [self.contentView addSubview:initialQt];  // [initialQt release];
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    79
        [self.contentView addSubview:probabilityQt]; // [probabilityQt release];
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    80
        [self.contentView addSubview:delayQt];    // [delayQt release];
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    81
        [self.contentView addSubview:crateQt];    // [crateQt release];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
    82
3667
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    83
        [self.contentView addSubview:initialImg]; // [initialImg release];
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    84
        [self.contentView addSubview:probabImg];  // [probabImg release];
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    85
        [self.contentView addSubview:delayImg];   // [delayImg release];
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    86
        [self.contentView addSubview:crateImg];   // [crateImg release];
3624
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
    87
3667
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    88
        [self.contentView addSubview:initialLab]; // [initialLab release];
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    89
        [self.contentView addSubview:probLab];    // [probLab release];
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    90
        [self.contentView addSubview:delLab];     // [delLab release];
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
    91
        [self.contentView addSubview:craLab];     // [craLab release];
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    92
    }
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    93
    return self;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    94
}
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    95
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    96
-(void) layoutSubviews {
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    97
    [super layoutSubviews];
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    98
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
    99
    CGRect contentRect = self.contentView.bounds;
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   100
    CGFloat boundsX = contentRect.origin.x;
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
   101
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   102
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   103
        boundsX += 65;
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   104
    else
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   105
        boundsX -= 9;
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   106
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   107
    weaponIcon.frame = CGRectMake(5, 5, 32, 32);
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   108
    weaponName.frame = CGRectMake(45, 8, 200, 25);
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
   109
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   110
    // second line
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   111
    initialImg.frame = CGRectMake(boundsX+20, 40, 32, 32);
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   112
    initialLab.frame = CGRectMake(boundsX+56, 40, 20, 32);
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   113
    initialLab.text = ((int)initialQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)initialQt.value];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   114
    initialQt.frame = CGRectMake(boundsX+80, 40, 150, 32);
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
   115
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   116
    probabImg.frame = CGRectMake(boundsX+255, 40, 32, 32);
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   117
    probLab.frame = CGRectMake(boundsX+291, 40, 20, 32);
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   118
    probLab.text = ((int)probabilityQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)probabilityQt.value];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   119
    probabilityQt.frame = CGRectMake(boundsX+314, 40, 150, 32);
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
   120
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   121
    // third line
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   122
    delayImg.frame = CGRectMake(boundsX+20, 80, 32, 32);
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   123
    delLab.frame = CGRectMake(boundsX+56, 80, 20, 32);
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   124
    delLab.text = ((int)delayQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)delayQt.value];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   125
    delayQt.frame = CGRectMake(boundsX+80, 80, 150, 32);
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
   126
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   127
    crateImg.frame = CGRectMake(boundsX+255, 80, 32, 32);
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   128
    craLab.frame = CGRectMake(boundsX+291, 80, 20, 32);
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   129
    craLab.text = ((int)crateQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)crateQt.value];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   130
    crateQt.frame = CGRectMake(boundsX+314, 80, 150, 32);
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   131
}
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   132
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   133
/*
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   134
-(void) setSelected:(BOOL)selected animated:(BOOL)animated {
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   135
    [super setSelected:selected animated:animated];
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   136
    // Configure the view for the selected state
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   137
}
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   138
*/
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   139
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   140
-(void) valueChanged:(id) sender {
3624
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
   141
    if (self.delegate != nil) {
3643
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   142
        initialLab.text = ((int)initialQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)initialQt.value];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   143
        probLab.text = ((int)probabilityQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)probabilityQt.value];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   144
        delLab.text = ((int)delayQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)delayQt.value];
858b20bafb6e reworked the ammunition configuration page (visually)
koda
parents: 3624
diff changeset
   145
        craLab.text = ((int)crateQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)crateQt.value];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
   146
3644
42c5684289ae finished ammo configuration (which is the last page missing in config \o/)
koda
parents: 3643
diff changeset
   147
        [delegate updateValues:[NSArray arrayWithObjects:
42c5684289ae finished ammo configuration (which is the last page missing in config \o/)
koda
parents: 3643
diff changeset
   148
                                [NSNumber numberWithInt:(int)initialQt.value],
42c5684289ae finished ammo configuration (which is the last page missing in config \o/)
koda
parents: 3643
diff changeset
   149
                                [NSNumber numberWithInt:(int)probabilityQt.value],
42c5684289ae finished ammo configuration (which is the last page missing in config \o/)
koda
parents: 3643
diff changeset
   150
                                [NSNumber numberWithInt:(int)delayQt.value],
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3667
diff changeset
   151
                                [NSNumber numberWithInt:(int)crateQt.value], nil]
3644
42c5684289ae finished ammo configuration (which is the last page missing in config \o/)
koda
parents: 3643
diff changeset
   152
                       atIndex:self.tag];
3624
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
   153
    } else
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
   154
        DLog(@"error - delegate = nil!");
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
   155
}
304c6d32383a button to open ammomenu
koda
parents: 3621
diff changeset
   156
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   157
-(void) dealloc {
3667
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   158
    self.delegate = nil;
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   159
    releaseAndNil(weaponName);
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   160
    releaseAndNil(weaponIcon);
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   161
    releaseAndNil(initialQt);
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   162
    releaseAndNil(probabilityQt);
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   163
    releaseAndNil(delayQt);
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   164
    releaseAndNil(crateQt);
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   165
    releaseAndNil(initialImg);
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   166
    releaseAndNil(probabImg);
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   167
    releaseAndNil(delayImg);
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   168
    releaseAndNil(crateImg);
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   169
    releaseAndNil(initialLab);
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   170
    releaseAndNil(probLab);
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   171
    releaseAndNil(delLab);
9359a70df013 use external libs more consistently
koda
parents: 3659
diff changeset
   172
    releaseAndNil(craLab);
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   173
    [super dealloc];
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   174
}
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   175
a8ddf681ba7d initial support for customizing weaponset
koda
parents:
diff changeset
   176
@end