00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #import "AMControl.h"
00011 #import "AMTime.h"
00012 #import <Foundation/Foundation.h>
00013
00014
00015
00016 static const NSString *const AM_TRIGGER_CONTROL_ATTRIBUTE_CHANCE = @"chance";
00017 static const NSString *const AM_TRIGGER_CONTROL_ATTRIBUTE_AUTOSTART = @"autoStart";
00018
00020 enum AMTriggerControlAttributes {
00021 AM_TRI_CHANCE = 0,
00022 AM_TRI_AUTOSTART
00023 };
00024
00025
00029 @interface AMTriggerControl : AMControl {
00030
00031 int chance;
00032 AMTime *autoStart;
00033 }
00034
00039 @property (nonatomic) int chance;
00040
00045 @property (nonatomic, copy) AMTime *autoStart;
00046
00047 @end