//
//  Campaign.m
//  longspear
//
//  Created by Niko Matsakis on Sat Jun 12 2004.
//  Copyright (c) 2004 __MyCompanyName__. All rights reserved.
//

#import "Campaign.h"


@implementation Campaign

- init
{
    if ( (self = [super init]) ) {
        _characters = [[NSMutableArray alloc] initWithCapacity:32];
        _combats = [[NSMutableArray alloc] initWithCapacity:32];
    }
    return self;
}

- initWithCoder:(NSCoder*)coder
{
    _characters = [[coder decodeObjectForKey:@"characters"] retain];
    _combats = [[coder decodeObjectForKey:@"combats"] retain];
    return self;
}

- (void) encodeWithCoder:(NSCoder*)coder
{
    [coder encodeObject:_characters forKey:@"characters"];
    [coder encodeObject:_combats forKey:@"combats"];
}

- (void) dealloc
{
    [_characters release];
    [_combats release];
}

- (NSMutableArray*) characters
{
    return _characters;
}

- (NSMutableArray*) combats
{
    return _combats;
}

/* cocoa stuff */


@end
