Forked Enjoy, mouse movement
[enjoyable.git] / SubAction.m
1 //
2 // SubAction.m
3 // Enjoy
4 //
5 // Created by Sam McCall on 5/05/09.
6 //
7
8 @implementation SubAction
9
10 @synthesize base, name, index, active;
11
12 -(id) initWithIndex:(int)newIndex name: (NSString*)newName base: (JSAction*)newBase {
13 if(self = [super init]) {
14 [self setName: newName];
15 [self setBase: newBase];
16 [self setIndex: newIndex];
17 }
18 return self;
19 }
20
21 -(NSString*) stringify {
22 return [[NSString alloc] initWithFormat: @"%@~%d", [base stringify], index];
23 }
24
25 @end