X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=SubAction.m;h=07011ca90427f6ac09a877ee728ba42611c2a2ba;hp=cfca78b3d6c7bf1bb546a1d58fe0a4fe1b734560;hb=e68c19b5923618b763543c74bf8dd6f85d4d323e;hpb=fad073260e61084c4962e172c58a0595261bd811 diff --git a/SubAction.m b/SubAction.m index cfca78b..07011ca 100644 --- a/SubAction.m +++ b/SubAction.m @@ -5,21 +5,27 @@ // Created by Sam McCall on 5/05/09. // -@implementation SubAction +// TODO(jfw): This class is useless and can just be replaced w/ JSAction probably. -@synthesize base, name, index, active; +#import "SubAction.h" --(id) initWithIndex:(int)newIndex name: (NSString*)newName base: (JSAction*)newBase { - if(self = [super init]) { - [self setName: newName]; - [self setBase: newBase]; - [self setIndex: newIndex]; +@implementation SubAction { + BOOL active; +} + +@synthesize active; + +- (id)initWithIndex:(int)newIndex name:(NSString *)newName base:(JSAction *)newBase { + if ((self = [super init])) { + self.name = newName; + self.base = newBase; + self.index = newIndex; } return self; } -(NSString*) stringify { - return [[NSString alloc] initWithFormat: @"%@~%d", [base stringify], index]; + return [[NSString alloc] initWithFormat: @"%@~%d", [base stringify], self.index]; } @end