Big rename part 3: 'target' to 'output'.
[enjoyable.git] / NJOutput.h
diff --git a/NJOutput.h b/NJOutput.h
new file mode 100644 (file)
index 0000000..2bfc167
--- /dev/null
@@ -0,0 +1,26 @@
+//
+//  NJOutput.h
+//  Enjoy
+//
+//  Created by Sam McCall on 5/05/09.
+//  Copyright 2009 University of Otago. All rights reserved.
+//
+
+@class NJInputController;
+
+@interface NJOutput : NSObject
+
+@property (nonatomic, assign) float magnitude;
+@property (nonatomic, assign) BOOL running;
+@property (nonatomic, readonly) BOOL isContinuous;
+
+- (void)trigger;
+- (void)untrigger;
+- (BOOL)update:(NJInputController *)jc;
+
+- (NSDictionary *)serialize;
++ (NJOutput *)outputDeserialize:(NSDictionary *)serialization
+                   withMappings:(NSArray *)mappings;
++ (NSString *)serializationCode;
+
+@end