X-Git-Url: https://git.yukkurigames.com/?a=blobdiff_plain;f=SubAction.m;h=501d457b4c8fa2a238fcf1252881c4daaab3e154;hb=51d43664909060e85c943c4d63cc3cff307ceb1d;hp=cfca78b3d6c7bf1bb546a1d58fe0a4fe1b734560;hpb=530009447c5bbd360ac5023979cffc6d32a28df3;p=enjoyable.git diff --git a/SubAction.m b/SubAction.m index cfca78b..501d457 100644 --- a/SubAction.m +++ b/SubAction.m @@ -5,21 +5,23 @@ // Created by Sam McCall on 5/05/09. // -@implementation SubAction +// TODO(jfw): This class is useless and can just be replaced w/ JSAction probably. + +#import "SubAction.h" -@synthesize base, name, index, active; +@implementation SubAction --(id) initWithIndex:(int)newIndex name: (NSString*)newName base: (JSAction*)newBase { - if(self = [super init]) { - [self setName: newName]; - [self setBase: newBase]; - [self setIndex: newIndex]; +- (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