Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 224 lines (178 sloc) 5.696 kb
d27548f8 »
2005-02-22 The Cheat 1.2
1
556707a7 »
2010-11-20 The Cheat 1.2.5
2 /*
3 * The Cheat - The legendary universal game trainer for Mac OS X.
1654f21c »
2011-12-19 update contact information and project URL
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
556707a7 »
2010-11-20 The Cheat 1.2.5
5 *
1654f21c »
2011-12-19 update contact information and project URL
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
556707a7 »
2010-11-20 The Cheat 1.2.5
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 */
d27548f8 »
2005-02-22 The Cheat 1.2
11
12 #import "LocalCheater.h"
13
14
15 @implementation Cheater
16
17
18 // #############################################################################
19 #pragma mark Initialization
20 // #############################################################################
21
22 - (id)initWithDelegate:(id)delegate
23 {
24 if ( self = [self init] ) {
25 // set the delegate
26 [self setDelegate:delegate];
27 ChazLog( @"init Cheater %p", self );
28 }
29 return self;
30 }
31
32 - (void)dealloc
33 {
34 ChazLog( @"dealloc Cheater %p", self );
35 [super dealloc];
36 }
37
38
39 - (id)delegate
40 {
41 return _delegate;
42 }
43
44 - (void)setDelegate:(id)delegate
45 {
46 // make sure the delegate is not nil and that it conforms to the CheaterDelegate
47 if ( [delegate conformsToProtocol:@protocol(CheaterDelegate)] ) {
48 _delegate = delegate;
49 }
50 else {
51 _delegate = nil;
52 }
53 }
54
55
56 - (BOOL)isConnected
57 {
58 return _isConnected;
59 }
60
61 - (BOOL)isAuthenticated
62 {
63 return _isAuthenticated;
64 }
65
66 - (NSString *)hostAddress
67 {
68 return @"";
69 }
70
71
72 // #############################################################################
73 #pragma mark Cheating Control
74 // #############################################################################
75
76 - (void)connect
77 {
78 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
79 NSStringFromClass(isa),
80 NSStringFromSelector(_cmd)];
81 }
82
83 - (void)disconnect
84 {
85 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
86 NSStringFromClass(isa),
87 NSStringFromSelector(_cmd)];
88 }
89
90 - (void)authenticateWithPassword:(NSString *)password
91 {
92 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
93 NSStringFromClass(isa),
94 NSStringFromSelector(_cmd)];
95 }
96
97
98 - (void)getProcessList
99 {
100 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
101 NSStringFromClass(isa),
102 NSStringFromSelector(_cmd)];
103 }
104
105
106 - (void)setTarget:(Process *)target
107 {
108 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
109 NSStringFromClass(isa),
110 NSStringFromSelector(_cmd)];
111 }
112
113 - (void)pauseTarget
114 {
115 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
116 NSStringFromClass(isa),
117 NSStringFromSelector(_cmd)];
118 }
119
120 - (void)resumeTarget
121 {
122 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
123 NSStringFromClass(isa),
124 NSStringFromSelector(_cmd)];
125 }
126
127
128 - (void)limitReturnedResults:(unsigned)limit
129 {
130 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
131 NSStringFromClass(isa),
132 NSStringFromSelector(_cmd)];
133 }
134
135 - (void)searchForVariable:(Variable *)data comparison:(TCSearchOperator)op
136 {
137 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
138 NSStringFromClass(isa),
139 NSStringFromSelector(_cmd)];
140 }
141
142 - (void)searchLastValuesComparison:(TCSearchOperator)op
143 {
144 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
145 NSStringFromClass(isa),
146 NSStringFromSelector(_cmd)];
147 }
148
149 - (void)cancelSearch
150 {
151 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
152 NSStringFromClass(isa),
153 NSStringFromSelector(_cmd)];
154 }
155
156 - (void)clearSearch
157 {
158 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
159 NSStringFromClass(isa),
160 NSStringFromSelector(_cmd)];
161 }
162
163 - (void)getMemoryDump
164 {
165 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
166 NSStringFromClass(isa),
167 NSStringFromSelector(_cmd)];
168 }
169
170 - (void)cancelMemoryDump
171 {
172 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
173 NSStringFromClass(isa),
174 NSStringFromSelector(_cmd)];
175 }
176
177
178 - (void)makeVariableChanges:(NSArray *)variables repeat:(BOOL)doRepeat interval:(NSTimeInterval)repeatInterval
179 {
180 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
181 NSStringFromClass(isa),
182 NSStringFromSelector(_cmd)];
183 }
184
185 - (void)stopChangingVariables
186 {
187 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
188 NSStringFromClass(isa),
189 NSStringFromSelector(_cmd)];
190 }
191
192
193 - (void)undo
194 {
195 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
196 NSStringFromClass(isa),
197 NSStringFromSelector(_cmd)];
198 }
199
200 - (void)redo
201 {
202 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
203 NSStringFromClass(isa),
204 NSStringFromSelector(_cmd)];
205 }
206
207
208 - (void)watchVariablesAtIndex:(unsigned)index count:(unsigned)count interval:(NSTimeInterval)checkInterval
209 {
210 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
211 NSStringFromClass(isa),
212 NSStringFromSelector(_cmd)];
213 }
214
215 - (void)stopWatchingVariables
216 {
217 [NSException raise:@"TCNotImplemented" format:@"The subclass of Cheater (%@) needs to implement selector %@.",
218 NSStringFromClass(isa),
219 NSStringFromSelector(_cmd)];
220 }
221
222
223 @end
Something went wrong with that request. Please try again.