3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.dogcows.com/chaz/wiki/TheCheat
6 * Copyright (c) 2003-2010, Charles McGarvey et al.
8 * Distributable under the terms and conditions of the 2-clause BSD
9 * license; see the file COPYING for the legal text of the license.
12 #import <Cocoa/Cocoa.h>
18 @interface CheatData
: NSObject
< NSCoding
>
20 NSString
*myWindowTitle
;
21 NSString
*myCheatInfo
;
24 NSMutableArray
*myVariables
;
27 NSTimeInterval myRepeatInterval
;
30 // #############################################################################
32 // #############################################################################
34 - (id
)initWithCoder
:(NSCoder
*)coder
;
35 - (void)encodeWithCoder
:(NSCoder
*)coder
;
38 // #############################################################################
39 #pragma mark Accessing Properties
40 // #############################################################################
42 - (NSString
*)windowTitle
;
43 - (NSString
*)cheatInfo
;
44 - (NSString
*)gameName
;
45 - (NSString
*)gameVersion
;
48 - (NSTimeInterval
)repeatInterval
;
50 - (void)setWindowTitle
:(NSString
*)title
;
51 - (void)setCheatInfo
:(NSString
*)info
;
52 - (void)setProcess
:(Process
*)process
;
53 - (void)setRepeats
:(BOOL
)repeats
;
54 - (void)setRepeatInterval
:(NSTimeInterval
)interval
;
57 // #############################################################################
58 #pragma mark Variables
59 // #############################################################################
61 - (NSArray
*)variables
;
62 - (unsigned)variableCount
;
63 - (unsigned)indexOfVariable
:(Variable
*)variable
;
64 - (Variable
*)variableAtIndex
:(unsigned)index
;
65 - (Variable
*)lastVariable
;
67 - (void)addVariable
:(Variable
*)variable
;
68 - (void)insertVariable
:(Variable
*)variable atIndex
:(unsigned)index
;
70 - (void)removeAllVariables
;
71 - (void)removeVariable
:(Variable
*)variable
;
72 - (void)removeVariableAtIndex
:(unsigned)index
;
74 - (NSArray
*)enabledVariables
;
75 - (unsigned)enabledVariableCount
;