Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 79 lines (57 sloc) 2.11 kb
d27548f @chazmcgarvey The Cheat 1.2
chazmcgarvey authored
1
556707a @chazmcgarvey The Cheat 1.2.5
chazmcgarvey authored
2 /*
3 * The Cheat - The legendary universal game trainer for Mac OS X.
1654f21 @chazmcgarvey update contact information and project URL
chazmcgarvey authored
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
556707a @chazmcgarvey The Cheat 1.2.5
chazmcgarvey authored
5 *
1654f21 @chazmcgarvey update contact information and project URL
chazmcgarvey authored
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
556707a @chazmcgarvey The Cheat 1.2.5
chazmcgarvey authored
7 *
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.
10 */
d27548f @chazmcgarvey The Cheat 1.2
chazmcgarvey authored
11
12 #import <Cocoa/Cocoa.h>
13
14 #import "Process.h"
15 #import "Variable.h"
16
17
18 @interface CheatData : NSObject < NSCoding >
19 {
20 NSString *myWindowTitle;
21 NSString *myCheatInfo;
22
23 Process *myProcess;
24 NSMutableArray *myVariables;
25
26 BOOL myRepeats;
27 NSTimeInterval myRepeatInterval;
28 }
29
30 // #############################################################################
31 #pragma mark NSCoding
32 // #############################################################################
33
34 - (id)initWithCoder:(NSCoder *)coder;
35 - (void)encodeWithCoder:(NSCoder *)coder;
36
37
38 // #############################################################################
39 #pragma mark Accessing Properties
40 // #############################################################################
41
42 - (NSString *)windowTitle;
43 - (NSString *)cheatInfo;
44 - (NSString *)gameName;
45 - (NSString *)gameVersion;
46 - (Process *)process;
47 - (BOOL)repeats;
48 - (NSTimeInterval)repeatInterval;
49
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;
55
56
57 // #############################################################################
58 #pragma mark Variables
59 // #############################################################################
60
61 - (NSArray *)variables;
62 - (unsigned)variableCount;
63 - (unsigned)indexOfVariable:(Variable *)variable;
64 - (Variable *)variableAtIndex:(unsigned)index;
65 - (Variable *)lastVariable;
66
67 - (void)addVariable:(Variable *)variable;
68 - (void)insertVariable:(Variable *)variable atIndex:(unsigned)index;
69
70 - (void)removeAllVariables;
71 - (void)removeVariable:(Variable *)variable;
72 - (void)removeVariableAtIndex:(unsigned)index;
73
74 - (NSArray *)enabledVariables;
75 - (unsigned)enabledVariableCount;
76
77
78 @end
Something went wrong with that request. Please try again.