//
//  PSItemWithCount.m
//  ArmorP3V1
//

#import "PSItemWithCount.h"
#import "PSMutex.h"

@implementation PSItemWithCount

@synthesize item = _item;
@synthesize count = _count;
@synthesize typeBody = _typeBody;

-initWithItem:(PSItem*) item: (int) count :(BOOL) typeBody{
    self = [super init];
    if (self) {
        _item = item;
        [_item retain];
        _count = count;
        _typeBody = typeBody;
    }else {
        [[PSMutex mainMutex] raiseMemoryError];
    }
    [[PSMutex mainMutex] showMemoryAlertIfError];
    return self;
}

-(void)dealloc {
    [_item release];
    [super dealloc];
}

@end
